Skip to content

showing blank bar in fragment #1

@altafc22

Description

@altafc22

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions