AnyChart/AnyChart-Android

Multiple charts cannot be viewed even after using latest version as well as "APIlib.getInstance().setActiveAnyChartView(anyChartView)"

shruti3007 opened this issue · 2 comments

Hi, I can't add multiple AnyChartView in my fragment. I'm using version 1.1.2. Even adding APIlib.getInstance().setActiveAnyChartView(anyChartView); after every AnyChartView declaration only one view is seen.
Thanks.

@shruti3007
Unfortunately, the current version of the library doesn't guarantee compatibility with Fragment. Here is the guide for rendering multiple charts in a single layout.

@shruti3007
my multiple fragment inside FragmentStatePagerAdapter and just calling notifyDataSetChanged after APIlib.getInstance().setActiveAnyChartView(anyChartView); on this adapter is working for me
Screenshot_2021-09-23-10-40-51 (3)