QuantitativeComparisonChart constructor

QuantitativeComparisonChart({
  1. required String label,
  2. required num primaryValue,
  3. required num secondaryValue,
  4. String primaryLabel = '',
  5. String secondaryLabel = '',
  6. String unit = '',
  7. bool enableToolTip = false,
  8. ChartThemeData? themeData,
  9. NumberFormat? numberFormat,
})

Implementation

QuantitativeComparisonChart({
  required String label,
  required this.primaryValue,
  required this.secondaryValue,
  this.primaryLabel = '',
  this.secondaryLabel = '',
  String unit = '',
  bool enableToolTip = false,
  this.themeData,
  this.numberFormat, // Add this
}) : super(
          label: label,
          value: primaryValue,
          unit: unit,
          enableTooltip: enableToolTip);