On Android, hiding a series causes chart to scroll to the end


#1

On Android, we’re noticing that when a series is hidden or shown using setHidden(), the chart will scroll/snap back to the end (far right). This doesn’t happen on iOS. Is this a bug or can you account for this somehow? Thanks.

Shinobi version: ShinobiCharts - Version: 2.7.3.hotfix1-1, Edition: Premium, Release Date: Sep 30 2014


#2

Hi,

Thank you for getting in touch. 

Could you please try using the following method (set to true) after you have added your series to the chart, but before any hiding has taken place:

https://www.shinobicontrols.com/docs/ShinobiControls/ShinobiChartsAndroid/1.7.2/Premium/Normal/apidocs/docs/reference/com/shinobicontrols/charts/Axis.html#setCurrentDisplayedRangePreservedOnUpdate(boolean)

Thanks and kind regards,

Kai.