JSON Structure for HighChart Line

2

I would like to know what would be the correct structure for creating a LINE chart in HighCharts with dynamic data: Example link Home I have values that I want to show in a row, its evolution during the months, but I do not have all the months filled and that way the chart would start in the middle of the year (for example).

What would be the best way to do JSON to fill the X-axis with the referenced months along with the values?

    
asked by anonymous 03.06.2014 / 18:56

1 answer

1

I do not know if I really understood what you want as an answer. If you're talking about the JSON format, you can do something like this:

{"Result":[["Maio", "Junho", "Julho"], [20, 30, 15]]}

Then when to use do:

categories: Result[0];

E

series: Result[1]

    
05.06.2014 / 19:07