CustomWaterfallChart constructor
const
CustomWaterfallChart({
- Key? key,
- required List<
WaterfallData> data, - String? title,
- String? xAxisLabel,
- String? yAxisLabel,
- Color backgroundColor = Colors.white,
- Color positiveColor = const Color(0xFF10B981),
- Color negativeColor = const Color(0xFFEF4444),
- Color totalColor = const Color(0xFF6366F1),
- Color startColor = const Color(0xFF9CA3AF),
- Color? gridColor,
- TextStyle? textStyle,
- bool showValues = true,
- bool showLabels = true,
- bool showGrid = false,
- 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),
});