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 08:59 AM UTC

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, 
 
 
Screenshot: 
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.

 
Regards, 
Kalai. 
 



SU Sutthipong October 3, 2019 08:30 AM UTC

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 11:32 AM UTC

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: 
primaryYAxis: 
            { 
              title: { text: 'Number of visitors in Millions' }, 
              range: { min: 0, interval: 400 } 
            },                                                                                       
 
 
Screenshot: 
Initial Rendering 
After series hide 
 
 
 

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




Loader.
Up arrow icon