Home › forums › Chart Support › Select Piechart for events
Tagged: AJAX, php
Hi,
I’m looking for graphic solutions to a game I’m making with PHP.
In reference to the following example I have the following questions:
canvasjs-1.9.9/examples/04-pie-chart/pie-chart-with-index-label.html
1. How do I select the various datapoints? I would like something like this: $(‘#id’).on(“click”, function() { [code here…] });
2. Can I retrieve values from PHP via AJAX/websocket onto various chart values. How do I integrate CanvasJS with AJAX/websocket so that it communicates with my PHP?
3. Can these pie charts be animated and added effects with jQuery UI?
Thanks for your help!
@claudiu,
If you want to assign click event handler on dataPoint level, please check this page.
Yes, You can receive values via AJAX call and update the chart dynamically. Please, refer this jsFiddle for more details.
Changing the animation behavior is not possible, as of now.
—- Bivek Singh, Team CanvasJS
You must be logged in to reply to this topic.