DataLabelSettings constructor
DataLabelSettings({
- ChartAlignment alignment = ChartAlignment.center,
- Color? color,
- TextStyle textStyle = const TextStyle(fontFamily: 'Roboto', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, fontSize: 12),
- 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,
- LabelIntersectAction labelIntersectAction = LabelIntersectAction.hide,
- ConnectorLineSettings connectorLineSettings = const ConnectorLineSettings(),
- ChartDataLabelPosition labelPosition = ChartDataLabelPosition.inside,
Creating an argument constructor of DataLabelSettings class.
Implementation
DataLabelSettings(
{this.alignment = ChartAlignment.center,
this.color,
this.textStyle = const TextStyle(
fontFamily: 'Roboto',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.normal,
fontSize: 12),
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.labelIntersectAction = LabelIntersectAction.hide,
this.connectorLineSettings = const ConnectorLineSettings(),
this.labelPosition = ChartDataLabelPosition.inside});