I have tried to set the useHTML and return an HTML element built with template string literals
Code: Select all
yAxis: {
offset: 10,
crosshair: {
snap: false,
width: 1,
color: "gray",
dashStyle: "Dash",
label: {
useHTML: true,
enabled: true,
formatter: (e) => {
return getCrosshairYFormatter(e);
},
},
}
}
I can't find anything in the documentation: yAxis->crosshair about the label option. However, if I use the useHTML on the yAxis->plotlines->label I am able to customize that label as HTML fully. The plotlines also have a tab for the label in the documentation