我想在NVD3历史条形图上显示相应的数值。我已经尝试了离散条形图的代码。但我无法显示数值。
这是一个DiscreteBar的例子。
但我想在历史条形图中也显示同样的值
historicalBarChart 没有 showValues(true) 方法 (不像其他一些 nvd3 图表类型)。所以,你必须自己实现它。这个答案 展示了如何做到这一点。
historicalBarChart
showValues(true)