AnyChart / AnyChart-Android

AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
2.29k stars 369 forks source link

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

Open shruti3007 opened 3 years ago

shruti3007 commented 3 years ago

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.

Shestac92 commented 3 years ago

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

zeylevruntime commented 2 years ago

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