TLineChart constructor
const
TLineChart({
- Key? key,
- required String title,
- required List<
List< data,LineChartData> > - List<
LegendLabel> ? legendLabels, - VoidCallback? optionTap,
- bool showLegends = true,
- bool showOption = true,
- double? height = 300,
Creates a line chart widget.
title: The chart's title.data: The series data for the chart.legendLabels: Labels for the chart legends.optionTap: A callback function for the options button.showLegends: Whether to show legends.showOption: Whether to show the options button.height: The height of the chart widget.
Implementation
const TLineChart({
super.key,
required this.title,
required this.data,
this.legendLabels,
this.optionTap,
this.showLegends = true,
this.showOption = true,
this.height = 300,
});