Skip to content

How to set Label Width and Custom Color to FunelChart Sections #10

Description

@yatindeokar

I want to set label width to each section of funnel chart and show fix custom color to each section. Now in getting different colors for each section every time when i run the app. i am using lib version
compile 'com.numetriclabz.numandroidcharts:numandroidcharts:1.0.20'
code:
funnelChart = (FunnelChart) findViewById(R.id.pyramid);
List values = new ArrayList<>();

    values.add(new ChartData("visits", 400));
    values.add(new ChartData("unique visits", 2000));
    values.add(new ChartData("unique visitors", 1000));
    values.add(new ChartData("unique session", 500));
    values.add(new ChartData("log out", 3000));
    values.add(new ChartData("log out1", 3000));
    values.add(new ChartData("log out2", 100));
    values.add(new ChartData("log out3", 1500));
    values.add(new ChartData("log", 2500));
    values.add(new ChartData("log o", 2000));

    funnelChart.setData(values);

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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