As you can see in the chart my timestamp get's interpreted as Value:
E.g von the server I get the following data point:
'2020-05-01T01:14:59.595+00:00', 201
To get this JSON-Date into the Highcharts format I do:
new Date('2020-05-01T01:14:59.595+00:00').getTime()
What gives me: 1588295699595
But that seems to be wrong:
My chart settings: /THANK YOU
Code: Select all
const options = {
chart: {
type: 'line',
zoomType: 'x',
height: 600
},
boost: {
useGPUTranslations: true
},
navigator: {
adaptToUpdatedData: false,
series: Object.values(series)
},
scrollbar: {
liveRedraw: false
},
rangeSelector: {
buttons: [
{
type: 'millisecond',
count: 10000,
text: '10s'
}, {
type: 'm',
count: 1,
text: 'n'
}, {
type: 'hour',
count: 1,
text: 's'
}, {
type: 'day',
count: 1,
text: 'd'
},
{
type: 'week',
count: 1,
text: 's'
},
{
type: 'month',
count: 1,
text: 'd'
}],
buttonSpacing : 5,
buttonTheme : {
width: 55,
height : 12,
},
inputEnabled: false, // it supports only days
//selected: 4, // all
allButtonsEnabled: true
},
xAxis: {
events: {
afterSetExtremes: afterSetExtremes
}
},
yAxis: {
floor: 0
},
//yAxis: Object.keys(traces).map(function(x) { return { title: { text: x }, visible: false } }),
series: Object.values(series)
};