CurvedChartPainter constructor

CurvedChartPainter({
  1. required List<Map<String, double>> xValues,
  2. required List<Map<String, double>> yValues,
  3. required double strokeWidth,
  4. Color? color,
  5. List<Color> gradientColors = const [Color(0x00F63E02), Color(0xFFFFFFFF)],
  6. List<double> gradientStops = const [0.0, 1.0],
  7. TextStyle labelTextStyle = const TextStyle(color: Colors.grey, fontSize: 12),
})

Implementation

CurvedChartPainter({
  required this.xValues,
  required this.yValues,
  required this.strokeWidth,
  this.color,
  this.gradientColors = const [
    Color(0x00F63E02),
    Color(0xFFFFFFFF),
  ],
  this.gradientStops = const [0.0, 1.0],
  this.labelTextStyle = const TextStyle(color: Colors.grey, fontSize: 12),
});