GNCartesianChartWidget constructor

const GNCartesianChartWidget({
  1. Key? key,
  2. ChartAxis primaryChartXAxis = const CategoryAxis(),
  3. ChartAxis primaryChartYAxis = const NumericAxis(),
  4. ChartTitle chartTitle = const ChartTitle(),
  5. Legend chartLegend = const Legend(),
  6. EdgeInsets chartMargin = const EdgeInsets.all(25),
  7. Color? chartBgColor,
  8. Color? chartBorderColor,
  9. ZoomPanBehavior? chartZoomPanBehavior,
  10. TooltipBehavior? chartToolTipBehavior,
  11. required List<CartesianSeries> cartesianSeriesList,
  12. double? chartBorderWidth,
  13. Color? plotAreaBackgroundColor,
  14. Color? plotAreaBorderColor,
  15. double plotAreaBorderWidth = CommonSpace.DECIMAL_07,
  16. ImageProvider<Object>? plotAreaBackgroundImage,
  17. ChartTooltipCallback? onTooltipRender,
  18. ChartActualRangeChangedCallback? onActualRangeChanged,
  19. ChartDataLabelRenderCallback? onDataLabelRender,
  20. ChartLegendRenderCallback? onLegendItemRender,
  21. ChartTrackballCallback? onTrackballPositionChanging,
  22. ChartCrosshairCallback? onCrosshairPositionChanging,
  23. ChartZoomingCallback? onZooming,
  24. ChartZoomingCallback? onZoomStart,
  25. ChartZoomingCallback? onZoomEnd,
  26. ChartZoomingCallback? onZoomReset,
  27. ChartAxisLabelTapCallback? onAxisLabelTapped,
  28. DataLabelTapCallback? onDataLabelTapped,
  29. ChartLegendTapCallback? onLegendTapped,
  30. ChartSelectionCallback? onSelectionChanged,
  31. ChartTouchInteractionCallback? onChartTouchInteractionUp,
  32. ChartTouchInteractionCallback? onChartTouchInteractionDown,
  33. ChartTouchInteractionCallback? onChartTouchInteractionMove,
  34. ChartMarkerRenderCallback? onMarkerRender,
  35. bool isTransposed = false,
  36. bool enableAxisAnimation = false,
  37. List<CartesianChartAnnotation>? annotations,
  38. LoadMoreViewBuilderCallback? loadMoreIndicatorBuilder,
  39. ChartPlotAreaSwipeCallback? onPlotAreaSwipe,
  40. List<Color>? palette,
  41. SelectionType selectionType = SelectionType.point,
  42. ActivationMode selectionGesture = ActivationMode.singleTap,
  43. bool enableMultiSelection = false,
  44. CrosshairBehavior? crosshairBehavior,
  45. TrackballBehavior? trackballBehavior,
  46. List<ChartAxis> axes = const <ChartAxis>[],
  47. List<TechnicalIndicator> indicators = const <TechnicalIndicator>[],
  48. 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,
});