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

Message ListMessage List     Post MessagePost Message

  Mouse over for Financial Charts
Posted by Pankaj Arya on Nov-13-2010 13:57
I have seen one site
http://nseguide.com/charts.php?name=IFCI
while taking the mouse to the candle it shows the cross over and corresponding values

is this possible ?

please help

Thanks
Pankaj Arya

  Re: Mouse over for Financial Charts
Posted by Peter Kwan on Nov-15-2010 23:02
Hi Pankaj,

The site you mentioned is written using ChartDirector. So anything you see on that site must be possible with ChartDirector.

To achieve the same effect, you may use the following code:

(a) Handle the Javascript mousemove event of the image. In the event handler, computes the candlestick that the mouse is over based on the mouse x-coordinate. See the following thread for an example:

http://www.chartdir.com/forum/download_thread.php?site=chartdir&bn=chartdir_support&thread=1143449610#N1289602318

(b) After your code gets the index of the candlestick, you may update your DIV block to show the information. (If you look careful at http://nseguide.com/charts.php?name=IFCI, you can see that the values that changes are not part of the chart. They are just normal HTML DIV blocks that floats over the chart image.)

Hope this can help.

Regards
Peter Kwan

  Re: Mouse over for Financial Charts
Posted by Daniel on Mar-09-2012 05:51
Is this also possible to do in a Java application?

  Re: Mouse over for Financial Charts
Posted by Peter Kwan on Mar-10-2012 00:50
Hi Daniel,

Yes. It is possible in a Java application.

In fact, we will have this feature built-in ChartDirector Ver 5.1. The JSP/Java edition of ChartDirector Ver 5.1 should be available this month. I can probably send you a release candidate before the end of next week.

Hope this can help.

Regards
Peter Kwan

  Re: Mouse over for Financial Charts
Posted by Daniel on Mar-10-2012 00:52
That would be great! Thank you

  Re: Mouse over for Financial Charts
Posted by Daniel on Mar-31-2012 07:04
Any word on the release? Thanks!

  Re: Mouse over for Financial Charts
Posted by Peter Kwan on Apr-03-2012 02:40
Hi Daniel,

Sorry. I forgot about the release candidate. It is at:

http://www.advsofteng.com/chartdir_java_510rc.zip

We are now porting Ver 5.1 to the C++ based editions of ChartDirector (including C++, ASP/COM/VB, PHP, Perl, Python, Ruby). The PHP, Perl, Python editions should be available as release candidates shortly.

Regards
Peter Kwan

  Re: Mouse over for Financial Charts
Posted by Daniel on Apr-24-2012 03:31
Hi Peter,

I've downloaded and now using the RC for Java. Can you provide some sample code so that
I can have a custom mouseover tooltip for the Finance Chart?


Thanks,

Daniel

  Re: Mouse over for Financial Charts
Posted by Peter Kwan on Apr-25-2012 02:09
Attachments:
Hi Daniel,

I have attached an example for a JSP finance chart that contains custom tooltips for the OHLC symbols.

In brief, you can add tooltips to a finance chart just like adding tooltips to any other chart - simply created an image map using getHTMLImageMap, and include the image map in the HTML.

For custom tooltips, if you would like to add custom tooltips to something in the FinanceChart (eg. the OHLC symbols), you may add an extra field to the layer that represent the symbols, and use setHTMLImageMap to configure an image map specific that that layer that uses the extra field.

Hope this can help.

Regards
Peter Kwan
finance.jsp
finance.jsp

3.74 Kb