How to add more attributes in tooltip series in Angular NVD3 line chart
问题 I need to add more attributes in tooltip series in Angular NVD3 line chart, if possible, without modifying the NVD3 source code. I know there are similar posts, but none of them covers this scenario. Here is my tooltip section in options: interactiveLayer: { tooltip: { contentGenerator: function (d) { // output is key, value, color, which is the default for tooltips console.log(JSON.stringify(d.series[0])); //{"key":"Name","value":1000,"color":"rgba(255,140,0, 1)"} // and I need more