width property

double? width
final

Width of the series.

In line, spline, step line, and fast line series, width of the line will be changed. In column series, width of the column rectangle will be changed. In bar series, the height of the bar rectangle will be changed.

Note: This is not applicable for area, scatter, and bubble series.

Default to 2.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <LineSeries<LineData, num>>[
      LineSeries<LineData, num>(
        width: 3,
      ),
    ],
  );
}

Implementation

final double? width;