I am using Echart.js library.
var echartLine = echarts.init(document.getElementById('myChart'), theme);
In echart option I add :
tooltip: {
show: true,
showContent: true,
alwaysShowContent: true,
triggerOn: 'mousemove',
trigger: 'axis',
axisPointer:
{
label: {
show: true,
}
}
},
Tooltip don't appear. Image is bellow.
for visitors: do not use canvas
as container, init
your echarts with div
instead, tooltips should show then.
Change the option trigger: 'axis' to trigger: 'item' and it should work like a charm.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With