Sign In Register

How can we help you today?

Start a new topic
Answered

Help generating c3 graph in manage

 So this code works to generate a chart using the static data.

<div id="mychartelement"></div>

<script>
    c3.generate({
    bindto: '#mychartelement',
    data: {
      columns: [
        ['data1', 30, 200, 100, 400, 150, 250],
        ['data2', 50, 20, 10, 40, 15, 25]
      ]
    }
});
</script>

 But I would like to use data in the Response JSON and cannot seem to figure it out. Is this possible?


Best Answer
Hey James,

You can see an example of how to get that data into the chart here -> https://support.gamesparks.net/discussions/topics/1000083711

 


Hi James,


Apologies for the delayed response, I'll look into this some more for you to find out if this is possible.


Thanks,

Liam

Answer
Hey James,

You can see an example of how to get that data into the chart here -> https://support.gamesparks.net/discussions/topics/1000083711

 

Login to post a comment