UDoughnutChart constructor

const UDoughnutChart({
  1. required List<ChartData> data,
  2. Widget? centerWidget,
  3. ChartLegendPosition legendPosition = ChartLegendPosition.left,
  4. ChartOverflowMode overflowMode = ChartOverflowMode.wrap,
  5. bool showLegend = true,
  6. bool enableTooltip = true,
  7. String radius = "100%",
  8. String innerRadius = "50%",
  9. bool explode = true,
  10. double animationDuration = 1000,
  11. double animationDelay = 1000,
  12. DataLabelSettings dataLabelSettings = const DataLabelSettings(isVisible: true),
  13. Key? key,
})

Implementation

const UDoughnutChart({
  required this.data,
  this.centerWidget,
  this.legendPosition = ChartLegendPosition.left,
  this.overflowMode = ChartOverflowMode.wrap,
  this.showLegend = true,
  this.enableTooltip = true,
  this.radius = "100%",
  this.innerRadius = "50%",
  this.explode = true,
  this.animationDuration = 1000,
  this.animationDelay = 1000,
  this.dataLabelSettings = const DataLabelSettings(isVisible: true),
  super.key,
});