GNCartesianChartWidget constructor
const
GNCartesianChartWidget({
- Key? key,
- ChartAxis primaryChartXAxis = const CategoryAxis(),
- ChartAxis primaryChartYAxis = const NumericAxis(),
- ChartTitle chartTitle = const ChartTitle(),
- Legend chartLegend = const Legend(),
- EdgeInsets chartMargin = const EdgeInsets.all(25),
- Color? chartBgColor,
- Color? chartBorderColor,
- ZoomPanBehavior? chartZoomPanBehavior,
- TooltipBehavior? chartToolTipBehavior,
- required List<
CartesianSeries> cartesianSeriesList, - double? chartBorderWidth,
- Color? plotAreaBackgroundColor,
- Color? plotAreaBorderColor,
- double plotAreaBorderWidth = CommonSpace.DECIMAL_07,
- ImageProvider<
Object> ? plotAreaBackgroundImage, - ChartTooltipCallback? onTooltipRender,
- ChartActualRangeChangedCallback? onActualRangeChanged,
- ChartDataLabelRenderCallback? onDataLabelRender,
- ChartLegendRenderCallback? onLegendItemRender,
- ChartTrackballCallback? onTrackballPositionChanging,
- ChartCrosshairCallback? onCrosshairPositionChanging,
- ChartZoomingCallback? onZooming,
- ChartZoomingCallback? onZoomStart,
- ChartZoomingCallback? onZoomEnd,
- ChartZoomingCallback? onZoomReset,
- ChartAxisLabelTapCallback? onAxisLabelTapped,
- DataLabelTapCallback? onDataLabelTapped,
- ChartLegendTapCallback? onLegendTapped,
- ChartSelectionCallback? onSelectionChanged,
- ChartTouchInteractionCallback? onChartTouchInteractionUp,
- ChartTouchInteractionCallback? onChartTouchInteractionDown,
- ChartTouchInteractionCallback? onChartTouchInteractionMove,
- ChartMarkerRenderCallback? onMarkerRender,
- bool isTransposed = false,
- bool enableAxisAnimation = false,
- List<
CartesianChartAnnotation> ? annotations, - LoadMoreViewBuilderCallback? loadMoreIndicatorBuilder,
- ChartPlotAreaSwipeCallback? onPlotAreaSwipe,
- List<
Color> ? palette, - SelectionType selectionType = SelectionType.point,
- ActivationMode selectionGesture = ActivationMode.singleTap,
- bool enableMultiSelection = false,
- CrosshairBehavior? crosshairBehavior,
- TrackballBehavior? trackballBehavior,
- List<
ChartAxis> axes = const <ChartAxis>[], - List<
TechnicalIndicator> indicators = const <TechnicalIndicator>[], - bool enableSideBySideSeriesPlacement = true,
Implementation
const GNCartesianChartWidget({
super.key,
this.primaryChartXAxis = const CategoryAxis(),
this.primaryChartYAxis = const NumericAxis(),
this.chartTitle = const ChartTitle(),
this.chartLegend = const Legend(),
this.chartMargin = const EdgeInsets.all(25),
this.chartBgColor,
this.chartBorderColor,
this.chartZoomPanBehavior,
this.chartToolTipBehavior,
required this.cartesianSeriesList,
this.chartBorderWidth,
this.plotAreaBackgroundColor,
this.plotAreaBorderColor,
this.plotAreaBorderWidth = CommonSpace.DECIMAL_07,
this.plotAreaBackgroundImage,
this.onTooltipRender,
this.onActualRangeChanged,
this.onDataLabelRender,
this.onLegendItemRender,
this.onTrackballPositionChanging,
this.onCrosshairPositionChanging,
this.onZooming,
this.onZoomStart,
this.onZoomEnd,
this.onZoomReset,
this.onAxisLabelTapped,
this.onDataLabelTapped,
this.onLegendTapped,
this.onSelectionChanged,
this.onChartTouchInteractionUp,
this.onChartTouchInteractionDown,
this.onChartTouchInteractionMove,
this.onMarkerRender,
this.isTransposed = false,
this.enableAxisAnimation = false,
this.annotations,
this.loadMoreIndicatorBuilder,
this.onPlotAreaSwipe,
this.palette,
this.selectionType = SelectionType.point,
this.selectionGesture = ActivationMode.singleTap,
this.enableMultiSelection = false,
this.crosshairBehavior,
this.trackballBehavior,
this.axes = const <ChartAxis>[],
this.indicators = const <TechnicalIndicator>[],
this.enableSideBySideSeriesPlacement = true,
});