FinancialSeriesBase<T, D> constructor

const FinancialSeriesBase<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. List<T>? dataSource,
  4. required ChartValueMapper<T, D>? xValueMapper,
  5. ChartValueMapper<T, num>? lowValueMapper,
  6. ChartValueMapper<T, num>? highValueMapper,
  7. ChartValueMapper<T, num>? openValueMapper,
  8. ChartValueMapper<T, num>? closeValueMapper,
  9. ChartValueMapper<T, num>? volumeValueMapper,
  10. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  11. ChartValueMapper<T, Color>? pointColorMapper,
  12. ChartValueMapper<T, String>? dataLabelMapper,
  13. SortingOrder sortingOrder = SortingOrder.none,
  14. List<double>? dashArray,
  15. String? xAxisName,
  16. String? yAxisName,
  17. String? name,
  18. Color? color,
  19. double width = 0.7,
  20. double spacing = 0,
  21. MarkerSettings markerSettings = const MarkerSettings(),
  22. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  23. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  24. bool initialIsVisible = true,
  25. LinearGradient? gradient,
  26. bool enableTooltip = true,
  27. double animationDuration = 1500,
  28. double borderWidth = 2,
  29. SelectionBehavior? selectionBehavior,
  30. List<int>? initialSelectedDataIndexes,
  31. bool isVisibleInLegend = true,
  32. LegendIconType legendIconType = LegendIconType.seriesType,
  33. String? legendItemText,
  34. bool enableSolidCandles = false,
  35. Color bearColor = Colors.red,
  36. Color bullColor = Colors.green,
  37. double opacity = 1.0,
  38. double animationDelay = 0,
  39. bool showIndicationForSameValues = false,
  40. List<Trendline>? trendlines,
  41. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  42. ChartPointInteractionCallback? onPointTap,
  43. ChartPointInteractionCallback? onPointDoubleTap,
  44. ChartPointInteractionCallback? onPointLongPress,
  45. CartesianShaderCallback? onCreateShader,
})

Creates an instance of financial series base.

Implementation

const FinancialSeriesBase({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  this.lowValueMapper,
  this.highValueMapper,
  this.openValueMapper,
  this.closeValueMapper,
  this.volumeValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.dashArray,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  this.width = 0.7,
  this.spacing = 0,
  super.markerSettings,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.gradient,
  super.enableTooltip = true,
  super.animationDuration,
  super.borderWidth = 2,
  super.selectionBehavior,
  super.initialSelectedDataIndexes,
  super.isVisibleInLegend,
  super.legendIconType,
  super.legendItemText,
  this.enableSolidCandles = false,
  this.bearColor = Colors.red,
  this.bullColor = Colors.green,
  super.opacity,
  super.animationDelay,
  this.showIndicationForSameValues = false,
  super.trendlines,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
});