nvd3 piechart.js - How to edit the tooltip?

前端 未结 9 1618
别那么骄傲
别那么骄傲 2020-11-27 06:09

I\'m using nvd3\'s piechart.js component to generate a piechart on my site. The provided .js file includes several var\'s, as follows:

var margin = {top: 30,         


        
9条回答
  •  一整个雨季
    2020-11-27 06:44

    I think you're missing the 'x' parameter in your tooltip function. The format of the function call is:

    function(key, x, y, e, graph)
    

提交回复
热议问题