我正在寻找一个javascript图表库,我可以在其中设置自定义步长。 我想要一个条形图,其中某些值比其他值更重要。
我想要像[0,50,90,99,100]这样的刻度。并且这些值之间的空间相同。我已经尝试了Google Charts和Chartist,但他们都把99和100非常接近,但我希望它平分秋色。
这是个主意:
任何想法如何实现这一目标?
答案 0 :(得分:1)
If these are your domain values, then provide them as strings instead of numbers. Then they will be evenly distributed.
But if these are your target or range values, you'll have to do something trickier. You'll have to use integer values like 0 through 4, and then use the explicit ticks option for the vAxis to specify both the values and how to display them.