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
Performance issue showing White space in recyclerview android. #240
I'm using range chart in recyclerView, But some time it is showing white space and some time it is working fine. Can you guide me how can properly load the chart in recyclerview every time?
//initialize this one time in view holder
anyChartView = root.findViewById(R.id.any_chart_view);
linearGauge = AnyChart.linear();
I'm using range chart in recyclerView, But some time it is showing white space and some time it is working fine. Can you guide me how can properly load the chart in recyclerview every time?
//initialize this one time in view holder anyChartView = root.findViewById(R.id.any_chart_view); linearGauge = AnyChart.linear();
//assign values in onBindViewHolder function
holder.linearGauge.data(new SingleValueDataSet(new Double[]{data})); holder.linearGauge.layout(Layout.HORIZONTAL);