How to customize the tooltip display content in a dual axis chart?
Question Description
I am using VChart, as shown in the following figure. How should I hide the information of the bar series in the dimension tooltip and only display the information of the line series?
Solution
VChart's tooltips can be configured not only at the chart level, but also at the series level. You can turn off the dimension tooltip in the spec of the bar series. As shown in the following demo:
Code Example
Result
Quote
github:https://github.com/VisActor/VChart
option docs: https://www.visactor.io/vchart/option/barChart#tooltip.dimension.visible