We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Maximum value of Y not change when show/hide series

When show or hide series maximum of Y value of axis does not change according to attached screenshot.

Attachment: Screenshot_43379169.zip

3 Replies

KC Kalaimathi Chellaiah Syncfusion Team September 25, 2019 03:59 AM

Hi Sutthipong, 
Greetings from Syncfusion. 
We have analyzed your query. From that, we would like to let you know that the maximum value of the multiple series calculates comparatively highest range in given series. We have tried to replicate the reported scenario at our end. Unfortunately, We are unable to reproduce the reported issue.  Here we have attached a sample which is used by testing. Please find below sample, 
Series Show 
Series Hide 
Since we are not aware of your exact scenario which the issue is reproduced. So Please share the following information which will be more helpful for further analysis and provide you the solution sooner. 

  • Try to reproduce the reported scenario in the above sample
  • Please share your sample (or) code snippet with full configurations.

  • Share the details if you have done any other customization in your sample.
  • Share your dataSource file
  • Share the details whether you have mentioned any range in axis.


SU Sutthipong October 3, 2019 03:30 AM

In my scenario the chart is stacked column chart when hide some series the maximum of Y axis still become sum of all series even though some series is hidden.

Based on example on https://jsplayground.syncfusion.com/Sync_0dsc3xgu hide some series but maximum Y value of axis still the same

KC Kalaimathi Chellaiah Syncfusion Team October 3, 2019 06:32 AM

Hi Sutthipong, 
Thanks for the update. 
We have analyzed your query with attached sample. From that we suspect that the problem is occurred due to the max range set into the axis. This is not an issue, that is the default behavior of an chart axis. So we suggest to remove maximum range from your sample. We have modified the attached sample. In that range is updating properly when show or hide the series. Please find below sample, 
Code Snippet: 
              title: { text: 'Number of visitors in Millions' }, 
              range: { min: 0, interval: 400 } 
Initial Rendering 
After series hide 

Kindly check the above sample and revert us, if still you have faced any problems. 

Live Chat Icon For mobile
Up arrow icon