ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  tool tip text
Posted by Subh on Apr-03-2014 20:24
Hi
Peter ,
for tool tip text getHotSpot() always returning zero.for that i am not able to see tool tip.
in which cases it should return some values?please help.

Thanks
Subh

  Re: tool tip text
Posted by Peter Kwan on Apr-04-2014 04:37
Hi Subh,

Would you mind to inform me how you configure the tooltips? Have you use
BaseChart.getHTMLImageMap to configure the tooltips, such as:

m_ChartViewer.setImageMap(myFinanceChart->getHTMLImageMap("", "",
"title='{xLabel|yyyy-mm-dd}:{value}'"));

Regards
Peter Kwan

  Re: tool tip text
Posted by Subh on Apr-04-2014 13:17
hi
i use this code

char buffer[1024];
sprintf(buffer, "title='%s {value|P}'",  m_pFinanceChart->getToolTipDateFormat());
setImageMap( m_pFinanceChart->getHTMLImageMap("", "", buffer));



Thanks
Subh

  Re: tool tip text
Posted by Subh on Apr-04-2014 13:17
hi
i use this code

char buffer[1024];
sprintf(buffer, "title='%s {value|P}'",  m_pFinanceChart->getToolTipDateFormat());
setImageMap( m_pFinanceChart->getHTMLImageMap("", "", buffer));



Thanks
Subh

  Re: tool tip text
Posted by Peter Kwan on Apr-05-2014 01:45
Attachments:
Hi Subh,

In ChartDirector for C++, there is an MFC sample code called "HelloWorld". I have just
modified it to show a FinanceChart, and use your code for the tooltip, and it works normally.
I have attached the complete modified "HelloWorld" project for your reference.

If the above still cannot solve the problem, is it possible to provide an example project
(perhaps my modifying the HelloWorld sample code) to allow me to reproduce the problem?
It is not easy to debug the program with only one or a few lines of your code. It would
facilitate troubleshooting greatly if you can provide a working example.

Regards
Peter Kwan
financechart_tooltip.zip
financechart_tooltip.zip

30.69 Kb