CustomWaterfallChart constructor

const CustomWaterfallChart({
  1. Key? key,
  2. required List<WaterfallData> data,
  3. String? title,
  4. String? xAxisLabel,
  5. String? yAxisLabel,
  6. Color backgroundColor = Colors.white,
  7. Color positiveColor = const Color(0xFF10B981),
  8. Color negativeColor = const Color(0xFFEF4444),
  9. Color totalColor = const Color(0xFF6366F1),
  10. Color startColor = const Color(0xFF9CA3AF),
  11. Color? gridColor,
  12. TextStyle? textStyle,
  13. bool showValues = true,
  14. bool showLabels = true,
  15. bool showGrid = false,
  16. EdgeInsets padding = const EdgeInsets.all(40),
})

Implementation

const CustomWaterfallChart({
  super.key,
  required this.data,
  this.title,
  this.xAxisLabel,
  this.yAxisLabel,
  this.backgroundColor = Colors.white,
  this.positiveColor = const Color(0xFF10B981),
  this.negativeColor = const Color(0xFFEF4444),
  this.totalColor = const Color(0xFF6366F1),
  this.startColor = const Color(0xFF9CA3AF),
  this.gridColor,
  this.textStyle,
  this.showValues = true,
  this.showLabels = true,
  this.showGrid = false,
  this.padding = const EdgeInsets.all(40),
});