Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
id: 'bar_active', data: [0,1,0,0,0],
我有一个使用 rgraph 生成的条形图并将数据传递给它。我的数据传递是'[0,1,0,0,0]'。生成此图时,Y Label生成不正确。我希望仅在 Y 标签中获得 1,但我得到重复的 1 标签。
Y Label
Y 刻度值正在四舍五入。您可以通过设置来解决此问题:
scaleDecimals: 1
为了在 Y 刻度上获得小数位。