September 21, 2016 at 1:59 pm jqxChart Y-Axis does not always update on new values set #87596
I have a scatter chart with a fixed axis range of 0 to 300.
Now i wanted to implement a “zoom” by using sliders to set new values for both axis.
As far as I can see:
- setting new values to the X-Axis always results in correct re-calculation.
- setting new values to the Y-Axis does not always update the chart
But the main problem is: the value displayed and the axis-value out of the api differ!
This only seem to happen for the valueAxis.
example given: https://jsfiddle.net/r3ufqxo1/2/
- move Y-Axis sliders for max/min to new values and the new values for the slider will be displayed
- click on the button: and the chart logs its axis values
What did i do wrong?September 22, 2016 at 10:44 am jqxChart Y-Axis does not always update on new values set #87620
Hello Florian Auer,
I check this example and on first look nothing wrong.
This is one too big data source and we could not spend time to create/check (private) project.
Please, provide us small examples with a concrete issue.
I would like to suggest you to look one example.
September 23, 2016 at 7:13 am jqxChart Y-Axis does not always update on new values set #87648
- This reply was modified 7 years, 5 months ago by Hristo.
I minified the example to be easier to overview & reproduce.
When you cklick the button, the y-axis sliders maximum will be moved a half tickDistance down. The chart also notices this due the y-axis max value changes but it does not rerender. So the displayed axis max value mismatches the one from the api.
The x-axis does not have this effect. Everey change from moving the slider results in a rerenderd chart.
Why is that so?September 27, 2016 at 8:02 am jqxChart Y-Axis does not always update on new values set #87719
Hello Florian Auer,
About the example that I post I only would like show changes in the Chart.
The presented data is with big distance of the measure lines.
First I would like to suggest you to use
Also one another approach to set
unitInterval. Please, take a look at this example.
http://www.jqwidgets.comSeptember 28, 2016 at 9:24 am jqxChart Y-Axis does not always update on new values set #87760
Thx for the reply.
As far as i understood, the “render-reaction” of the charts axis depend on the unit-interval that has been set.
When this interval f.ex ist 50 and the max-value for the axis will be set in steps of 10 it will not always re-render.
Remark: What i see is, that even with lower value-ranges the x and y axis do not behave the same.
This can be seen here with ranges from 0 to 300 on both axis: https://jsfiddle.net/r3ufqxo1/9/
The chart re-renders on any x-axis change with step 10 but only on y-axis changes with size of the unitInterval.
Is that correct?
An if, should the min and max value of the y-axis, when read via API, not alwys give the value that is displayed?September 28, 2016 at 11:08 am jqxChart Y-Axis does not always update on new values set #87763
You must be logged in to reply to this topic.