I'm using the heatmap chart from apexcharts and I want to customize the tooltips. For each number of the data I want to provide a matching description as a string. The description values are stored in a simple array like this:
let chartLabels = ['January', 'February', 'March'];
How can I use the custom
field in the chart options to provide the data fields with the custom tooltips?
chartData:
let chartData = {
options: {
chart: {
toolbar: {
show: false
},
},
yaxis: {
show: false
},
xaxis: {
show: false,
labels: {
show: false,
}
},
tooltip: {
enabled: true,
//custom:
},
},
series: [{
name: ' ',
data: [24, 53, 54, 545, 545]
},
{
name: ' ',
data: [654, 454, 454, 44, 34]
}]
};
<Chart
options={chartData.options}
series={chartData.series}
type='heatmap'/>