Home forums Using CanvasJS CanvasJS – Get Current Time Range Reply To: CanvasJS – Get Current Time Range

#15003

However, those values are some Integers, how can i get the Date values ? Can i set somewhere the type to Date ?

My options object looks like this:
{
zoomEnabled: true,
title: {
text: “Temperature History”
},
rangeChanged: null,
data: [
{
type: “line”,
showInLegend: true,
name: “Temperature”,
legendText: “Temperature”,
lineThickness: 1,
markerType: “circle”,
//markerSize: 3,
legendMarkerType: “circle”,
dataPoints: [ ]
},
{
type: “line”,
legendText: “Temperature Set”,
name: “TemperatureSet”,
showInLegend: true,
lineThickness: 1,
markerType: “triangle”,
//markerSize: 3,
legendMarkerType: “triangle”,
dataPoints: []
}
]
}