I came across an issue I can't seem to shake. It is required that I set a custom maximum value to the 'YY' axis of a chart I use but the definition of the wholeRange/valueRange on the object doesn't seem to set it correctly. I annexed a snapshot of the resulting chart. Currently my code looks like this:
wholeRange: [0, UsageChartHighValue]
Can youtell what I'm doing wrong?
Let me jump into this conversation. As far as I can see, the main issue is that you do not see the "UsageChartHighValue" value on your Y axis, but you see "3.5", isn't it? Unfortunately, at this moment, the value axis doesn't provide a functionality to show the value of a visual range's "endValue" option if it is not a multiple of tickInterval. For example. if in Vova's sample you set the "endValue" option to 11, you still will see 10 in the value axis.
It is in our future plans to support this functionality. At the moment, you can calculate tickInterval's value in order to show your "UsageChartHighValue" or
you can add another constant line with a value equal to your "UsageChartHighValue". I've modified Vova's sample to demonstrate this idea:
Let me know if it meets your needs.