NrbLineChart constructor
const
NrbLineChart({
- Key? key,
- required List<
double> data, - List<
String> ? xAxisLabels, - double width = double.infinity,
- double height = 200.0,
- Color lineColor = const Color(0xFF0B7A3E),
- double lineWidth = 2.5,
- Duration animationDuration = const Duration(milliseconds: 1500),
- bool showGrid = false,
- Color gridColor = const Color(0xFFE0E0E0),
- Color textColor = const Color(0xFF757575),
Constructor for the Line Chart.
Implementation
const NrbLineChart({
super.key,
required this.data,
this.xAxisLabels,
this.width = double.infinity,
this.height = 200.0,
this.lineColor = const Color(0xFF0B7A3E),
this.lineWidth = 2.5,
this.animationDuration = const Duration(milliseconds: 1500),
this.showGrid = false, // Defaulting to false to keep it backwards compatible
this.gridColor = const Color(0xFFE0E0E0),
this.textColor = const Color(0xFF757575),
});