我如何在NVD3历史条形图上显示数值?

问题描述 投票:1回答:1

我想在NVD3历史条形图上显示相应的数值。我已经尝试了离散条形图的代码。但我无法显示数值。

这是一个DiscreteBar的例子。

enter image description here

但我想在历史条形图中也显示同样的值

d3.js nvd3.js
1个回答
1
投票

historicalBarChart 没有 showValues(true) 方法 (不像其他一些 nvd3 图表类型)。所以,你必须自己实现它。这个答案 展示了如何做到这一点。

© www.soinside.com 2019 - 2024. All rights reserved.