AcmeChart constructor

const AcmeChart({
  1. required DataSeries<Tick> mainSeries,
  2. required int granularity,
  3. required String activeSymbol,
  4. MarkerSeries? markerSeries,
  5. ChartController? controller,
  6. VoidCallback? onCrosshairAppeared,
  7. VoidCallback? onCrosshairDisappeared,
  8. OnCrosshairHoverCallback? onCrosshairHover,
  9. VisibleAreaChangedCallback? onVisibleAreaChanged,
  10. VisibleQuoteAreaChangedCallback? onQuoteAreaChanged,
  11. ChartTheme? theme,
  12. bool isLive = false,
  13. bool dataFitEnabled = false,
  14. bool showCrosshair = true,
  15. List<ChartAnnotation<ChartObject>>? annotations,
  16. double opacity = 1.0,
  17. int pipSize = 4,
  18. ChartAxisConfig chartAxisConfig = const ChartAxisConfig(),
  19. Repository<IndicatorConfig>? indicatorsRepo,
  20. Repository<DrawingToolConfig>? drawingToolsRepo,
  21. DrawingTools? drawingTools,
  22. double? msPerPx,
  23. double? minIntervalWidth,
  24. double? maxIntervalWidth,
  25. EdgeInsets? dataFitPadding,
  26. Duration? currentTickAnimationDuration,
  27. Duration? quoteBoundsAnimationDuration,
  28. bool? showCurrentTickBlinkAnimation,
  29. double? verticalPaddingFraction,
  30. EdgeInsets? bottomChartTitleMargin,
  31. bool? showDataFitButton,
  32. bool? showScrollToLastTickButton,
  33. Color? loadingAnimationColor,
  34. CrosshairVariant crosshairVariant = CrosshairVariant.smallScreen,
  35. InteractiveLayerBehaviour? interactiveLayerBehaviour,
  36. bool useDrawingToolsV2 = false,
  37. Key? key,
})

Initializes

Implementation

const AcmeChart({
  required this.mainSeries,
  required this.granularity,
  required this.activeSymbol,
  this.markerSeries,
  this.controller,
  this.onCrosshairAppeared,
  this.onCrosshairDisappeared,
  this.onCrosshairHover,
  this.onVisibleAreaChanged,
  this.onQuoteAreaChanged,
  this.theme,
  this.isLive = false,
  this.dataFitEnabled = false,
  this.showCrosshair = true,
  this.annotations,
  this.opacity = 1.0,
  this.pipSize = 4,
  this.chartAxisConfig = const ChartAxisConfig(),
  this.indicatorsRepo,
  this.drawingToolsRepo,
  this.drawingTools,
  this.msPerPx,
  this.minIntervalWidth,
  this.maxIntervalWidth,
  this.dataFitPadding,
  this.currentTickAnimationDuration,
  this.quoteBoundsAnimationDuration,
  this.showCurrentTickBlinkAnimation,
  this.verticalPaddingFraction,
  this.bottomChartTitleMargin,
  this.showDataFitButton,
  this.showScrollToLastTickButton,
  this.loadingAnimationColor,
  this.crosshairVariant = CrosshairVariant.smallScreen,
  this.interactiveLayerBehaviour,
  this.useDrawingToolsV2 = false,
  super.key,
});