BarChart constructor
BarChart({})
Implementation
BarChart({
List<double>? data,
required List<String> labels,
List<BarChartSeries>? series,
double height = 200.0,
String barColor = '#6366f1',
String? className,
Map<String, Object?> props = const {},
Map<String, Object?> style = const {},
DartStyle? dartStyle,
}) : super(
'div',
props: mergeComponentProps(
props,
className: className,
defaultStyle: const {'width': '100%'},
dartStyle: dartStyle,
style: style,
),
children: [
_buildSvg(
series ??
[
BarChartSeries(
data: data ?? const [],
barColor: barColor,
),
],
labels,
height,
)
],
);