Hey all,
I’m building a trendline solution to visualize serialized part data on an ApexCharts Line chart in Perspective. The goal is to show the serial number (SN) in the tooltip when hovering along the x-axis.
I’m using the following inline string for the formatter, which works if the mouse is directly over the data point:
function (value, { seriesIndex, dataPointIndex, w }) { return "SN: " + w.config.series[seriesIndex].data[dataPointIndex].sn; }
However, the tooltip only triggers when hovering precisely over the point - not when hovering anywhere along the x-value. This makes the tooltip unreliable and hard to interact with unless you’re exactly over the marker, which can lead to inaccessible values when a data point's y-value is outside of the chart bounds.
Looking for suggestions on how to get the tooltip to fire even if the mouse isn’t exactly over the dot.
Current tooltip config and behavior below:
"tooltip": {
"enabled": true,
"enabledOnSeries": [
0,
1,
3
],
"fillSeriesColor": true,
"followCursor": false,
"intersect": false,
"inverseOrder": false,
"marker": {
"show": true
},
"shared": true,
"style": {
"fontFamily": "Roboto",
"fontSize": "12px"
},
"theme": "light",
"x": {
"format": null,
"formatter": "function (value, { seriesIndex, dataPointIndex, w }) { return \"SN: \" + w.config.series[seriesIndex].data[dataPointIndex].sn; }",
"show": true
},
"y": {
"title": {
"formatter": null
}
}
}