BankPortfolioPerformanceChart constructor

const BankPortfolioPerformanceChart({
  1. required List<BankChartDataPoint> dataPoints,
  2. Key? key,
  3. bool showGrid = true,
  4. Color? lineColor,
  5. BankChartTimeRange selectedRange = BankChartTimeRange.oneMonth,
  6. ValueChanged<BankChartTimeRange>? onRangeChanged,
  7. double? height,
  8. double? lineWidth,
  9. Gradient? gradient,
  10. Color? gridColor,
  11. TextStyle? tooltipStyle,
  12. Color? tooltipBackgroundColor,
  13. String? currencyCode,
  14. String valueFormatter(
    1. double value
    )?,
  15. String dateFormatter(
    1. DateTime date
    )?,
  16. bool showAxisLabels = true,
  17. bool showChangeHeader = true,
  18. Color? gainColor,
  19. Color? lossColor,
  20. Color? accentColor,
  21. Map<BankChartTimeRange, String>? rangeLabels,
  22. String emptyLabel = 'No data available',
  23. TextStyle? emptyLabelStyle,
  24. String? semanticLabel,
})

Implementation

const BankPortfolioPerformanceChart({
  required this.dataPoints,
  super.key,
  this.showGrid = true,
  this.lineColor,
  this.selectedRange = BankChartTimeRange.oneMonth,
  this.onRangeChanged,
  this.height,
  this.lineWidth,
  this.gradient,
  this.gridColor,
  this.tooltipStyle,
  this.tooltipBackgroundColor,
  this.currencyCode,
  this.valueFormatter,
  this.dateFormatter,
  this.showAxisLabels = true,
  this.showChangeHeader = true,
  this.gainColor,
  this.lossColor,
  this.accentColor,
  this.rangeLabels,
  this.emptyLabel = 'No data available',
  this.emptyLabelStyle,
  this.semanticLabel,
});