Hi,
I want to create charts where is laptimes in selected period but i cant get it work.
My laptimes is in milliseconds on database, and if i generate them in the laptimes like this:
{ x: 1, y: 1:57:420 }, { x: 2, y: 1:57:340 }, { x: 3, y: 1:56:587 }, { x: 4, y: 1:56:225 }, { x: 5, y: 2:0:110 }, { x: 6, y: 2:2:102 }
How i show them on chart?
I tested example this:
var options = {
animationEnabled: true,
title:{
text: “Monthly Sales – 2017”
},
axisX: {
valueFormatString: “m:s:fff”
},
axisY: {
title: “Sales (in USD)”,
prefix: “-“,
includeZero: false
},
data: [{
yValueFormatString: “”,
xValueFormatString: “m:s:fff”,
type: “spline”,
dataPoints: [ <? echo $data; ?>
]
}]
};
But i think the formatstrings need to be something else?