AnyChart-Android icon indicating copy to clipboard operation
AnyChart-Android copied to clipboard

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

Open shruti3007 opened this issue 4 years ago • 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 avatar Sep 09 '21 07:09 shruti3007

@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.

Shestac92 avatar Sep 10 '21 03:09 Shestac92

@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)

zeylevruntime avatar Sep 23 '21 03:09 zeylevruntime