Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we control the gradient size inside the graph? #100

Open
divyanshu2345 opened this issue Jun 27, 2023 · 1 comment
Open

Can we control the gradient size inside the graph? #100

divyanshu2345 opened this issue Jun 27, 2023 · 1 comment

Comments

@divyanshu2345
Copy link

Hey there, Thanks @apgapg for creating beautiful library. I'm using this library to enhance my knowledge and i notices one thing that when we give the gradient inside the ring and when the value is full then the gradient size is decreased. How can we increase the size of the gradient. I attached the code below:

final gradientList = <List<Color>>[
  [
    Color.fromRGBO(223, 250, 92, 1),
    Color.fromRGBO(129, 250, 112, 1),
  ],
  [
    Color.fromRGBO(129, 182, 205, 1),
    Color.fromRGBO(91, 253, 199, 1),
  ],
  [
    Color.fromRGBO(175, 63, 62, 1.0),
    Color.fromRGBO(254, 154, 92, 1),
  ]
];

PieChart(
  dataMap: {"Flutter" : 5},
  chartType: ChartType.ring,
  chartRadius: 100,
  ringStrokeWidth: 10,
  baseChartColor: pieChartGreyColor,
  colorList: colorList,
  totalValue: 5,
  gradientList: gradientList
  emptyColor: Colors.white,
),
@apgapg
Copy link
Owner

apgapg commented Jun 28, 2023

Can you please explain about increase in gradient size? May be some screenshots will help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants