AcmeChart constructor
const
AcmeChart({
- required DataSeries<
Tick> mainSeries, - required int granularity,
- required String activeSymbol,
- MarkerSeries? markerSeries,
- ChartController? controller,
- VoidCallback? onCrosshairAppeared,
- VoidCallback? onCrosshairDisappeared,
- OnCrosshairHoverCallback? onCrosshairHover,
- VisibleAreaChangedCallback? onVisibleAreaChanged,
- VisibleQuoteAreaChangedCallback? onQuoteAreaChanged,
- ChartTheme? theme,
- bool isLive = false,
- bool dataFitEnabled = false,
- bool showCrosshair = true,
- List<
ChartAnnotation< ? annotations,ChartObject> > - double opacity = 1.0,
- int pipSize = 4,
- ChartAxisConfig chartAxisConfig = const ChartAxisConfig(),
- Repository<
IndicatorConfig> ? indicatorsRepo, - Repository<
DrawingToolConfig> ? drawingToolsRepo, - DrawingTools? drawingTools,
- double? msPerPx,
- double? minIntervalWidth,
- double? maxIntervalWidth,
- EdgeInsets? dataFitPadding,
- Duration? currentTickAnimationDuration,
- Duration? quoteBoundsAnimationDuration,
- bool? showCurrentTickBlinkAnimation,
- double? verticalPaddingFraction,
- EdgeInsets? bottomChartTitleMargin,
- bool? showDataFitButton,
- bool? showScrollToLastTickButton,
- Color? loadingAnimationColor,
- CrosshairVariant crosshairVariant = CrosshairVariant.smallScreen,
- InteractiveLayerBehaviour? interactiveLayerBehaviour,
- bool useDrawingToolsV2 = false,
- 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,
});