I've been using jChartFX for displaying some charts in my webpages and they worked great. I loved them.
However, I'm trying to implement some custom tooltips but I've been having some issues.
1) It seems
chart.on("gettip", onGetTip);
works fine, but
chart.off("gettip", offGetTip);
doesn't seem to work although chart.off() function has been defined.
Is there anyway we can get a callback when the cursor is off the chart element?
2) when we are using a custom tooltip, we're supposed to "add" a div containing our custom tooltip to the standard tooltip div as a child like,
args.tooltipDiv.appendChild(toolTip);
It's working fine w/r/t the issue above, but I don't like the fade-in/out feature.
Is there anyway I can turn it off? I managed to reduce the delay time for showing on/off the tooltip by modifying the library, but I can't find a place where the opacity is being changed...
3) I'd like to add a background shadow for a pie chart, and I wonder if there's any variable I can refer to in order to get the "acutal" chart being drown (not the size of div). I need to know it since the page size can vary, so the chart size changes.
I'd appreciated if you can give me answers or guideline where I can look for.
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.
Question
Jin
Hi,
I've been using jChartFX for displaying some charts in my webpages and they worked great. I loved them.
However, I'm trying to implement some custom tooltips but I've been having some issues.
1) It seems
chart.on("gettip", onGetTip);
works fine, but
chart.off("gettip", offGetTip);
doesn't seem to work although chart.off() function has been defined.
Is there anyway we can get a callback when the cursor is off the chart element?
2) when we are using a custom tooltip, we're supposed to "add" a div containing our custom tooltip to the standard tooltip div as a child like,
args.tooltipDiv.appendChild(toolTip);
It's working fine w/r/t the issue above, but I don't like the fade-in/out feature.
Is there anyway I can turn it off? I managed to reduce the delay time for showing on/off the tooltip by modifying the library, but I can't find a place where the opacity is being changed...
3) I'd like to add a background shadow for a pie chart, and I wonder if there's any variable I can refer to in order to get the "acutal" chart being drown (not the size of div). I need to know it since the page size can vary, so the chart size changes.
I'd appreciated if you can give me answers or guideline where I can look for.
Thank you very much in advance for your reply.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
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.