-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interactive Charts #2
Comments
From http://www.chartjs.org/docs/#generalIssues-chartInteractivity : "If you are looking to add interaction as a layer to charts, Chart.js is not On Mon, Mar 18, 2013 at 4:16 AM, Nuwan Bandara notifications@github.comwrote:
|
It would be good though to have basic tooltips support like github does it on its network graph using canvas https://github.com/nnnick/Chart.js/network |
I haven't planned to add interactivity to charts at this stage. The chart is a single canvas DOM node, which is similar in characteristics to an image, but with a lighter footprint. Canvas graphics sacrifice interactivity to raw speed. It's really up to you what is more important for your particular use case. There are a number of SVG based libraries for providing interactive graphs, including gRaphael, or other libraries built off d3.js. |
It is relatively easy to add interactivity: keep a list of chart elements(type, coordinates)+data associated with them, add one method getElementAtMouseCoordinates(x, y). For each type of chart element you need to be able to intersect the mouse coordinate with the element's geometry. Quite easy for bars, a bit more work for pie slices, etc. This will not sacrifice speed at all. |
By the way, your charts look gorgeous! How difficult is it to add new chart types, for example a heat/tree map? |
tooltip on mouseover would be great, don't know how implement this though. I like your chart and looking forward to it. |
…10816) * Update docs * Minor fixes * Replace screenshots with live demos * Replace the last screenshot with a live demo * Bring back images * Bring back images #2 * Remove unnecessary files * Apply suggestions from code review Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com> * Very last tiny fixes Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
Hi,
Any plans on making them interactive. Right now, you don't have tooltips etc for mouse pointers yeah ?
Regards,
/Nuwan
The text was updated successfully, but these errors were encountered: