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://github.com/mbostock/d3/wiki/SVG-Axes#wiki-tickValues
However, using the option does not work. Reading further down on the documentation page linked above under axis.tickSize, the following line was spotted
The end ticks are determined by the associated scale's domain extent,
and are part of the generated path domain rather than a tick line
So I take it setting the min and max of the range can't be done through the Axis option.
Any ideas on where I can specify the range?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…