You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm trying to display data in graph on my fragment it is showing only black bar
here is my code <com.broooapps.lineargraphview2.LinearGraphView android:id="@+id/linear_graph_view"android:layout_width="match_parent" android:layout_height="wrap_content" app:lgv_border_anim_duration="600"/>
i'm trying to display data in graph on my fragment it is showing only black bar
here is my code
<com.broooapps.lineargraphview2.LinearGraphView
android:id="@+id/linear_graph_view"android:layout_width="match_parent"
android:layout_height="wrap_content"
app:lgv_border_anim_duration="600"/>
List<DataModel> dataList = new ArrayList<>();
dataList.add(new DataModel("One", getActivity().getColor(R.color.yellow), (int)confirmed));
dataList.add(new DataModel("Two", getActivity().getColor(R.color.green), (int)recovered));
dataList.add(new DataModel("Three", getActivity().getColor(R.color.red), (int)dead));
linear_graph_view.setData(dataList, total);
The text was updated successfully, but these errors were encountered: