I'm struggling to find the proper location within the w.globals
object to display the x-axis value, which is a datetime
, in the tooltip of the datapoint.
var chartOptions = {
...
xaxis: { type: "datetime" },
tooltip: {
x: { format: "dd MMM yyyy" },
y: {
formatter: (value, { series, seriesIndex, dataPointIndex, w })=> {
return '<div>'+'Value: ' + value + '</div>' +
'<div>'+'Timestamp: ' + ?? + '</div>'
}
}
...
}
I've been trying to implement something similar to this solution, but I haven't had any success yet. It appears to only work with categorical data as shown in this example.