WOILineGraph constructor
const
WOILineGraph({
- Key? key,
- required double height,
- required double width,
- required List<
LineProperties> yaxisValues, - required List xaxisValues,
- double yaxisTextBoxWidth = 40,
- Color backgroundColor = Colors.white,
- double xaxisSeparatorLength = 3,
- double xaxisAndTextGap = 30,
- double topSpacing = 10,
- double bottomSpacing = 0,
- double leftSpacing = 0,
- Color incrementLineColor = Colors.red,
- bool dottedYaxis = false,
- Text? heading,
- Text? xaxisLabel,
- Text? yaxisLabel,
The WOILineGraph essentially requires four variables i.e height, width, xaxisValues, yaxisValues. Number of entries should be equal in the xaxisValues and the yaxisValues list.
Implementation
const WOILineGraph({
super.key,
required this.height,
required this.width,
required this.yaxisValues,
required this.xaxisValues,
this.yaxisTextBoxWidth = 40,
this.backgroundColor = Colors.white,
this.xaxisSeparatorLength = 3,
this.xaxisAndTextGap = 30,
this.topSpacing = 10,
this.bottomSpacing = 0,
this.leftSpacing = 0,
this.incrementLineColor = Colors.red,
this.dottedYaxis = false,
this.heading,
this.xaxisLabel,
this.yaxisLabel,
});