Hi,
I need to populate a big data to a line chart where the x-axis is of numbers/strings.
I know it’s possible for x-Axis of type date, but this isn’t what i need.
Currently the x-axis labels overlapped because the chart hasn’t categorize the x-axis and just labeled the x-Axis for each y-Axis value!!
Is it possible?
Let’s say i built the json like this:
function doGeneration() {
var num= 50000, data = [], curr = 10;
for (var i = 0; i < num; i++) {
if (Math.random() > .5) {
curr += Math.random() * 2.0;
} else {
curr -= Math.random() * 2.0;
}
var val1 = Math.round(curr * 1000.0) / 1000.0;
data[i] = { X: i.toString(), Y: val1 };
}
currData = data;
}