How to set the domain and scale on an yaxis on a discreteBarChart nvd3.js

前端 未结 3 601
我寻月下人不归
我寻月下人不归 2021-01-18 11:47

I\'m using d3.js charts in one of my applications. Here they are in this image See Charts

For Y axis on Money chart (See in the Image), I want maximum value rounded

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-18 12:28

    Force Y

    List of numbers to Force into the Y scale (ie. 0, or a max / min, etc.). The numbers tell the d3.js the values to use in the scale, rather than d3.js determining the values.

    Datatype: Array of Numbers (i.e. [0, 50]

    http://cmaurer.github.io/angularjs-nvd3-directives/line.chart.html

提交回复
热议问题