d3.js & nvd3.js — How to set y-axis range

后端 未结 6 1538
闹比i
闹比i 2020-12-05 04:00

I\'m trying to set the y-axis range of the chart from 1-100.

Consulted the API documentation and found a possible solution with axis.tickValues as seen here https://

6条回答
  •  醉酒成梦
    2020-12-05 04:28

    For stacked area charts, .forceY([0,100]) does not work. Use instead .yDomain([0,100])

提交回复
热议问题