UChartStyle constructor

const UChartStyle({
  1. List<Color>? palette,
  2. Color? backgroundColor,
  3. Color? gridColor,
  4. Color? axisColor,
  5. Color? labelColor,
  6. double labelFontSize = 11,
  7. bool showGrid = true,
  8. bool showAxis = true,
  9. bool showLabels = true,
  10. bool showLegend = true,
  11. bool showValues = false,
  12. bool animate = true,
  13. Duration animationDuration = const Duration(milliseconds: 900),
  14. Curve animationCurve = Curves.easeOutCubic,
  15. EdgeInsets padding = const EdgeInsets.all(12),
  16. int gridDivisions = 5,
  17. double cornerRadius = 6,
  18. String valueFormatter(
    1. double value
    )?,
})

Implementation

const UChartStyle({
  this.palette,
  this.backgroundColor,
  this.gridColor,
  this.axisColor,
  this.labelColor,
  this.labelFontSize = 11,
  this.showGrid = true,
  this.showAxis = true,
  this.showLabels = true,
  this.showLegend = true,
  this.showValues = false,
  this.animate = true,
  this.animationDuration = const Duration(milliseconds: 900),
  this.animationCurve = Curves.easeOutCubic,
  this.padding = const EdgeInsets.all(12),
  this.gridDivisions = 5,
  this.cornerRadius = 6,
  this.valueFormatter,
});