Hi There,
I am using high stock to show multiple series in a single chart, and came to a wired situation where tooltip is showing wrong datetime. Below is the code for pointFormatter;
pointFormatter: function () {
const data = props.graphData; // this is series data
const unitData = data.filter(obj => obj.color === this.color);
return `<br/><span style="color:${this.color}">● </span>
<b>${this.y)</b>
<br/>
<div style="padding-left:15px;">
${moment(this.x).format("DD. MMM YYYY, HH:mm:ss")} hrs
</div>`
}
Actually it is taking some other epoch date
actual data to graph:
0: [1605594600000, 29.4]
1: [1605595740000, 33.5]
2: [1605596880000, 33.8]
3: [1605598020000, 66.45]
4: [1605599160000, 32.25]
and when hovered on points then
1605595500000 33.5
In above data for 33.5 actual datetime is 1605595740000 which is coming as 1605595500000 on tool tip. Is there anything wrong I am doing? CAn anyone see and suggest what could be the issue?
-Thanks