質問

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);
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top