DataLabelSettings constructor
const
DataLabelSettings({
- ChartAlignment alignment = ChartAlignment.center,
- Color? color,
- TextStyle? textStyle,
- EdgeInsets margin = const EdgeInsets.fromLTRB(5, 5, 5, 5),
- double opacity = 1,
- ChartDataLabelAlignment labelAlignment = ChartDataLabelAlignment.auto,
- double borderRadius = 5,
- bool isVisible = false,
- int angle = 0,
- ChartWidgetBuilder? builder,
- bool useSeriesColor = false,
- Offset? offset,
- bool showCumulativeValues = false,
- bool showZeroValue = true,
- Color borderColor = Colors.transparent,
- double borderWidth = 0,
- OverflowMode overflowMode = OverflowMode.none,
- LabelIntersectAction labelIntersectAction = LabelIntersectAction.shift,
- ConnectorLineSettings connectorLineSettings = const ConnectorLineSettings(),
- ChartDataLabelPosition labelPosition = ChartDataLabelPosition.inside,
Creating an argument constructor of DataLabelSettings class.
Implementation
const DataLabelSettings(
{this.alignment = ChartAlignment.center,
this.color,
this.textStyle,
this.margin = const EdgeInsets.fromLTRB(5, 5, 5, 5),
this.opacity = 1,
this.labelAlignment = ChartDataLabelAlignment.auto,
this.borderRadius = 5,
this.isVisible = false,
this.angle = 0,
this.builder,
this.useSeriesColor = false,
this.offset,
this.showCumulativeValues = false,
this.showZeroValue = true,
this.borderColor = Colors.transparent,
this.borderWidth = 0,
this.overflowMode = OverflowMode.none,
this.labelIntersectAction = LabelIntersectAction.shift,
this.connectorLineSettings = const ConnectorLineSettings(),
this.labelPosition = ChartDataLabelPosition.inside});