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.32k stars 369 forks source link

using anychartview.clear() showing blank screen. Unable to replace a chart with another chart dynamically. Trying in android #178

Open trisandhyanagam opened 4 years ago

trisandhyanagam commented 4 years ago

I created a pie chart dynamically and tried to replace it with line graph in the same view on user selection of graph type.

Used anychartview.clear() before setting the graph but its showing blank screen. Also, anychartview.dispose() is not working. Please help me here.

Shestac92 commented 4 years ago

@trisandhyanagam Try to call the following code before creating new chart:

APIlib.getInstance().setActiveAnyChartView(anyChartView);

Also, do you receive any errors?