Jump to content
JChartFX Community
  • 0

Tool tip issue with Custom tooltip




i m trying the example given in http://support.softwarefx.com/jChartFX/article/2501235#27182674-0690-e211-84a5-0019b9e6b500

http://support.softwarefx.com/jChartFX/article/2501235#27182674-0690-e211-84a5-0019b9e6b500'>I downloaded the code and tried. Everything is working fine but tooltip showing the same data ( first bar info) even i moved cursor to other place...

when i debugged the code, country id passed same everytime.  


 file: sample.js

function updateDetailsChart(args) {

      countryID = args.getPoint();

    doDataCountry(countryID, chartDetails);




 file: jchartfx.coreVector.js

getPoint: function () {

            return null != this.a ? this.a.b : -1


i could not able to fix the issue .. pls help.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

If you want to know the data associated with a specific point you can do something like this

var value = chart1.getData().getItem(args.getSeries(), args.getPoint());

Note that value will contain the value plotted for the specific bar/point you are highlighting, this is not the pixel position of the cursor. About the release date for the fix, we recently released build 4982 which should fix the tooltip issue where point and series was always returned as 0.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...