Question

there are 3 objects in my example, which are A,B and C. Each object contains N points. for example

enter image description here

A - 2 points
B - 2 points
C - 1 points

I need to show object name in X axis, the x value of name is same as x of first point in an object.

but I don't know how to design the data structure to hold data and show it in jqPlot.

Was it helpful?

Solution

You need to put the objects in the array of arrays for jqplot as follows [[A,1],[A,2],[B,1],[B,2],[C,1]]

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top