UChartStyle constructor
const
UChartStyle({
- List<
Color> ? palette, - Color? backgroundColor,
- Color? gridColor,
- Color? axisColor,
- Color? labelColor,
- double labelFontSize = 11,
- bool showGrid = true,
- bool showAxis = true,
- bool showLabels = true,
- bool showLegend = true,
- bool showValues = false,
- bool animate = true,
- Duration animationDuration = const Duration(milliseconds: 900),
- Curve animationCurve = Curves.easeOutCubic,
- EdgeInsets padding = const EdgeInsets.all(12),
- int gridDivisions = 5,
- double cornerRadius = 6,
- String valueFormatter(
- 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,
});