Home Forums Chart Support Select Piechart for events

Select Piechart for events

Viewing 2 posts - 1 through 2 (of 2 total)
  • #15383

    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!

    #15390

    @claudiu,

    If you want to assign click event handler on dataPoint level, please check this page.

    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?

    Yes, You can receive values via AJAX call and update the chart dynamically. Please, refer this jsFiddle for more details.

    3. Can these pie charts be animated and added effects with jQuery UI?

    Changing the animation behavior is not possible, as of now.

    —-
    Bivek Singh,
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.