Skip to content

SfCircularChart supports three gradient types: linear, sweep, and radial. Follow these steps to achieve those gradients in our chart using the onCreateShader event. The data points of pie, doughnut and radial bar charts can be filled with three types of gradient such as Gradient.linear, Gradient.sweep and Gradient.radial. All the data points in ...

Notifications You must be signed in to change notification settings

SyncfusionExamples/flutter-pie-chart-gradient-fill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

How to fill the Flutter pie chart with gradient? (SfCircularChart)

SfCircularChart supports three gradient types: linear, sweep, and radial. Follow these steps to achieve those gradients in our chart using the onCreateShader event. The data points of pie, doughnut and radial bar charts can be filled with three types of gradient such as Gradient.linear, Gradient.sweep and Gradient.radial. All the data points in the circular chart are together considered as a single segment and the shader is applied commonly.

Documentation: https://help.syncfusion.com/flutter/circular-charts/circular-series-customization#gradient-and-image-shader

Requirements to run the demo

How to run this application

To run this application, you need to first clone or download the ‘flutter pie chart gradient fill’ repository and open it in your preferred IDE. Then, build and run your project to view the output.

Further help

For more help, check the Syncfusion Flutter documentation, or Flutter documentation.

About

SfCircularChart supports three gradient types: linear, sweep, and radial. Follow these steps to achieve those gradients in our chart using the onCreateShader event. The data points of pie, doughnut and radial bar charts can be filled with three types of gradient such as Gradient.linear, Gradient.sweep and Gradient.radial. All the data points in ...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published