DataLabelSettings constructor
const
DataLabelSettings({
- bool isVisible = false,
- ChartAlignment alignment = ChartAlignment.center,
- Color? color,
- TextStyle? textStyle,
- EdgeInsets margin = const EdgeInsets.all(5.0),
- double opacity = 1.0,
- ChartDataLabelAlignment labelAlignment = ChartDataLabelAlignment.auto,
- double borderRadius = 5.0,
- int angle = 0,
- ChartWidgetBuilder? builder,
- bool useSeriesColor = false,
- Offset offset = Offset.zero,
- bool showCumulativeValues = false,
- bool showZeroValue = true,
- Color borderColor = Colors.transparent,
- double borderWidth = 1.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.isVisible = false,
this.alignment = ChartAlignment.center,
this.color,
this.textStyle,
this.margin = const EdgeInsets.all(5.0),
this.opacity = 1.0,
this.labelAlignment = ChartDataLabelAlignment.auto,
this.borderRadius = 5.0,
this.angle = 0,
this.builder,
this.useSeriesColor = false,
this.offset = Offset.zero,
this.showCumulativeValues = false,
this.showZeroValue = true,
this.borderColor = Colors.transparent,
this.borderWidth = 1.0,
this.overflowMode = OverflowMode.none,
this.labelIntersectAction = LabelIntersectAction.shift,
this.connectorLineSettings = const ConnectorLineSettings(),
this.labelPosition = ChartDataLabelPosition.inside,
});