BarChartRodStackItem constructor
BarChartRodStackItem(
- double fromY,
- double toY,
- Color color, [
- BorderSide borderSide = Utils.defaultBorderSide,
Renders a section of Stacked Chart from fromY to toY with color for example if you want to have a Stacked Chart with three colors:
BarChartRodData(
y: 9,
color: Colors.grey,
rodStackItems: [
BarChartRodStackItem(0, 3, Colors.red),
BarChartRodStackItem(3, 6, Colors.green),
BarChartRodStackItem(6, 9, Colors.blue),
]
)
Implementation
BarChartRodStackItem(
this.fromY,
this.toY,
this.color, [
this.borderSide = Utils.defaultBorderSide,
]);