BipolarChart<T> constructor
const
BipolarChart<T> ({
- Key? key,
- Widget? child,
- Color upperColor = Colors.red,
- Color fairColor = Colors.black45,
- Color lowerColor = Colors.green,
- double strokeWidth = 1,
- PaintingStyle upperStyle = PaintingStyle.fill,
- PaintingStyle fairStyle = PaintingStyle.fill,
- PaintingStyle lowerStyle = PaintingStyle.fill,
- Color crossLineColor = Colors.red,
- double crossLineWidth = 0.5,
- required List<
double> transform(- List<
T> values
- List<
- required BarStyle transformBarStyle(
- T item
- TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 8),
- double paddingTop = 0,
- bool showText = true,
Implementation
const BipolarChart({
super.key,
super.child,
super.upperColor = Colors.red,
super.fairColor = Colors.black45,
super.lowerColor = Colors.green,
super.strokeWidth = 1,
super.upperStyle = PaintingStyle.fill,
super.fairStyle = PaintingStyle.fill,
super.lowerStyle = PaintingStyle.fill,
super.crossLineColor = Colors.red,
super.crossLineWidth = 0.5,
required super.transform,
required super.transformBarStyle,
super.textStyle,
super.paddingTop,
super.showText,
});