You can set the y tooltip content to null
to achieve this:
var chart = nv.models.scatterChart()
.showDistY(false)
.tooltipYContent(null);
题
I am trying to disable the y value from being shown when the mouse hovers over a circle in nvd3 Bubble/Scatter chart. The live code is here. I tried this
var chart = nv.models.scatterChart()
.showDistY(false)
but it only makes the line to the y axis disappear and not the y axis value. How do I disable the y axis label from being shown when the mouse hovers over the circles/bubbles?
解决方案
You can set the y tooltip content to null
to achieve this:
var chart = nv.models.scatterChart()
.showDistY(false)
.tooltipYContent(null);