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

前端 未结 3 624
我寻月下人不归
我寻月下人不归 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:19

    I use nvd3 and for me this worked instead:

    nv.models.discreteBarChart().yDomain([0,400])
    

    I could'nt get it to work with yScale.domain

提交回复
热议问题