NrbMultiLineChart constructor

const NrbMultiLineChart({
  1. Key? key,
  2. required List<NrbLineSeries> series,
  3. required List<String> xAxisLabels,
  4. double width = double.infinity,
  5. double height = 250.0,
  6. Color gridColor = const Color(0xFFE0E0E0),
  7. Color textColor = const Color(0xFF555555),
  8. Duration animationDuration = const Duration(milliseconds: 1500),
})

Constructor for the multi-line chart.

Implementation

const NrbMultiLineChart({
  super.key,
  required this.series,
  required this.xAxisLabels,
  this.width = double.infinity,
  this.height = 250.0,
  this.gridColor = const Color(0xFFE0E0E0), // Light grey for day mode
  this.textColor = const Color(0xFF555555), // Dark grey for day mode
  this.animationDuration = const Duration(milliseconds: 1500),
});