LineChart constructor
LineChart({
- Key? key,
- List<
LineChartPoint> ? points, - Color bgColor = const Color(0xFFF7F8FA),
- Size size = Size.infinite,
- Color xAxisColor = const Color(0xFFE2E4EA),
- double xAxisWidth = 1,
- Color yAxisColor = const Color(0xFFE2E4EA),
- double yAxisWidth = 1,
- bool showYAxis = false,
- int xLineNums = 1,
- Color lineColor = const Color(0xFF1678FF),
- double lineWidth = 1,
- bool showXLineText = false,
- Color xLineTextColor = const Color(0xFF858B9C),
- LineChartPointConfig? config,
- bool showYLineMark = false,
- SelectedCallback? selectedCallback,
- List<
List< ? multipleLinePoints,LineChartPoint> > - List<
Color> ? multipleLinePointsColor, - List<
String> ? xLineMarks, - String? yUnit = '',
- bool useUnifyYUnit = false,
- LineChartController? controller,
Implementation
LineChart(
{Key? key,
this.points,
this.bgColor = const Color(0xFFF7F8FA),
this.size = Size.infinite,
this.xAxisColor = const Color(0xFFE2E4EA),
this.xAxisWidth = 1,
this.yAxisColor = const Color(0xFFE2E4EA),
this.yAxisWidth = 1,
this.showYAxis = false,
this.xLineNums = 1,
this.lineColor = const Color(0xFF1678FF),
this.lineWidth = 1,
this.showXLineText = false,
this.xLineTextColor = const Color(0xFF858B9C),
this.config,
this.showYLineMark = false,
this.selectedCallback,
this.multipleLinePoints,
this.multipleLinePointsColor,
this.xLineMarks,
this.yUnit = '',
this.useUnifyYUnit = false,
this.controller})
: super(key: key) {
// assert(points == null && multipleLinePoints == null);
}