You must be logged in to post your query.
Home › Forums › Chart Support › CanvasJS chart with signal peak loses xy zoom ability
I currently evaluate the CanvasJS chart for a web project and encounter a problem:
If the CanvasJS chart contains a series with a signal peak the chart is losing its xy zooming ability.
I created a jsfiddle to demonstrate a test case for this problem:
How can I solve this problem?
The behavior is designed such that zooming is limited upto a certain region so that the user doesn’t end up zooming into a blank region (region with no dataPoints). To zoom into a certain region, there should be a minimum of 3-4 dataPoints over the axis.
In your case, the zoom doesn’t work as there are less than 3-4 dataPoints with different values over the axisY in the signalPick dataSeries. We suggest you set the zoomType to x in such scenarios.
If the solution suggested doesn’t fulfill your requirement, kindly brief us further about your use case so that we can understand your scenario better and help you out with an appropriate solution.
Quick update: The “y” zoom type is also affected by the peak signal. Only zoom type “x” is still working.
I have updated the description text of the jsfiddle
Based on your scenario you can assign the dataSeries with signalPeak values to an existing y-axis instead of creating a new y-axis by setting axisYIndex and it should work fine.
Please take a look at this updated JSFiddle.
>Based on your scenario you can assign the dataSeries with signalPeak values to an existing y-axis
>instead of creating a new y-axis by setting axisYIndex and it should work fine.
Practical use may be difficult, because the signal curves will vary and the y axis are usually defined by customer.
As mentioned before, there is a restriction on the number of dataPoints required for zooming to work and we don’t have an option to remove this restriction as of now.
by request of my boss I would like to ask, if you have any plans to fix the xy zooming problem in this particular use case?
We will reconsider this behavior and improve it in future releases.
You must be logged in to reply to this topic. Login/Register