BarChartController constructor

BarChartController({
  1. bool highlightFullBarEnabled = true,
  2. bool drawValueAboveBar = false,
  3. bool drawBarShadow = false,
  4. bool fitBars = true,
  5. int maxVisibleCount = 100,
  6. bool autoScaleMinMaxEnabled = true,
  7. bool doubleTapToZoomEnabled = true,
  8. bool highlightPerDragEnabled = true,
  9. bool dragXEnabled = true,
  10. bool dragYEnabled = true,
  11. bool scaleXEnabled = true,
  12. bool scaleYEnabled = true,
  13. bool drawGridBackground = false,
  14. bool drawBorders = false,
  15. bool clipValuesToContent = false,
  16. double minOffset = 30.0,
  17. OnDrawListener? drawListener,
  18. YAxis? axisLeft,
  19. YAxis? axisRight,
  20. YAxisRenderer? axisRendererLeft,
  21. YAxisRenderer? axisRendererRight,
  22. Transformer? leftAxisTransformer,
  23. Transformer? rightAxisTransformer,
  24. XAxisRenderer? xAxisRenderer,
  25. bool customViewPortEnabled = false,
  26. Matrix4? zoomMatrixBuffer,
  27. bool pinchZoomEnabled = true,
  28. bool keepPositionOnRotation = false,
  29. Paint? gridBackgroundPaint,
  30. Paint? borderPaint,
  31. Color? backgroundColor,
  32. Color? gridBackColor,
  33. Color? borderColor,
  34. double borderStrokeWidth = 1.0,
  35. AxisLeftSettingFunction? axisLeftSettingFunction,
  36. AxisRightSettingFunction? axisRightSettingFunction,
  37. OnTouchEventListener? touchEventListener,
  38. ChartTransListener? chartTransListener,
  39. IMarker? marker,
  40. Description? description,
  41. String noDataText = "No chart data available.",
  42. XAxisSettingFunction? xAxisSettingFunction,
  43. LegendSettingFunction? legendSettingFunction,
  44. DataRendererSettingFunction? rendererSettingFunction,
  45. OnChartValueSelectedListener? selectionListener,
  46. double maxHighlightDistance = 100.0,
  47. bool highLightPerTapEnabled = true,
  48. double extraTopOffset = 0.0,
  49. double extraRightOffset = 0.0,
  50. double extraBottomOffset = 0.0,
  51. double extraLeftOffset = 0.0,
  52. bool drawMarkers = true,
  53. bool resolveGestureHorizontalConflict = false,
  54. bool resolveGestureVerticalConflict = false,
  55. double descTextSize = 12,
  56. double infoTextSize = 12,
  57. Color? descTextColor,
  58. Color? infoTextColor,
  59. Color? infoBgColor,
})

Implementation

BarChartController({
  this.highlightFullBarEnabled = true,
  this.drawValueAboveBar = false,
  this.drawBarShadow = false,
  this.fitBars = true,
  int maxVisibleCount = 100,
  bool autoScaleMinMaxEnabled = true,
  bool doubleTapToZoomEnabled = true,
  bool highlightPerDragEnabled = true,
  bool dragXEnabled = true,
  bool dragYEnabled = true,
  bool scaleXEnabled = true,
  bool scaleYEnabled = true,
  bool drawGridBackground = false,
  bool drawBorders = false,
  bool clipValuesToContent = false,
  double minOffset = 30.0,
  OnDrawListener? drawListener,
  YAxis? axisLeft,
  YAxis? axisRight,
  YAxisRenderer? axisRendererLeft,
  YAxisRenderer? axisRendererRight,
  Transformer? leftAxisTransformer,
  Transformer? rightAxisTransformer,
  XAxisRenderer? xAxisRenderer,
  bool customViewPortEnabled = false,
  Matrix4? zoomMatrixBuffer,
  bool pinchZoomEnabled = true,
  bool keepPositionOnRotation = false,
  Paint? gridBackgroundPaint,
  Paint? borderPaint,
  Color? backgroundColor,
  Color? gridBackColor,
  Color? borderColor,
  double borderStrokeWidth = 1.0,
  AxisLeftSettingFunction? axisLeftSettingFunction,
  AxisRightSettingFunction? axisRightSettingFunction,
  OnTouchEventListener? touchEventListener,
  ChartTransListener? chartTransListener,
  IMarker? marker,
  Description? description,
  String noDataText = "No chart data available.",
  XAxisSettingFunction? xAxisSettingFunction,
  LegendSettingFunction? legendSettingFunction,
  DataRendererSettingFunction? rendererSettingFunction,
  OnChartValueSelectedListener? selectionListener,
  double maxHighlightDistance = 100.0,
  bool highLightPerTapEnabled = true,
  double extraTopOffset = 0.0,
  double extraRightOffset = 0.0,
  double extraBottomOffset = 0.0,
  double extraLeftOffset = 0.0,
  bool drawMarkers = true,
  bool resolveGestureHorizontalConflict = false,
  bool resolveGestureVerticalConflict = false,
  double descTextSize = 12,
  double infoTextSize = 12,
  Color? descTextColor,
  Color? infoTextColor,
  Color? infoBgColor,
}) : super(
          marker: marker,
          description: description,
          noDataText: noDataText,
          xAxisSettingFunction: xAxisSettingFunction,
          legendSettingFunction: legendSettingFunction,
          rendererSettingFunction: rendererSettingFunction,
          selectionListener: selectionListener,
          maxHighlightDistance: maxHighlightDistance,
          highLightPerTapEnabled: highLightPerTapEnabled,
          extraTopOffset: extraTopOffset,
          extraRightOffset: extraRightOffset,
          extraBottomOffset: extraBottomOffset,
          extraLeftOffset: extraLeftOffset,
          drawMarkers: drawMarkers,
          resolveGestureHorizontalConflict: resolveGestureHorizontalConflict,
          resolveGestureVerticalConflict: resolveGestureVerticalConflict,
          descTextSize: descTextSize,
          infoTextSize: infoTextSize,
          descTextColor: descTextColor,
          infoTextColor: infoTextColor,
          infoBgColor: infoBgColor,
          maxVisibleCount: maxVisibleCount,
          autoScaleMinMaxEnabled: autoScaleMinMaxEnabled,
          doubleTapToZoomEnabled: doubleTapToZoomEnabled,
          highlightPerDragEnabled: highlightPerDragEnabled,
          dragXEnabled: dragXEnabled,
          dragYEnabled: dragYEnabled,
          scaleXEnabled: scaleXEnabled,
          scaleYEnabled: scaleYEnabled,
          drawGridBackground: drawGridBackground,
          drawBorders: drawBorders,
          clipValuesToContent: clipValuesToContent,
          minOffset: minOffset,
          drawListener: drawListener,
          axisLeft: axisLeft,
          axisRight: axisRight,
          axisRendererLeft: axisRendererLeft,
          axisRendererRight: axisRendererRight,
          leftAxisTransformer: leftAxisTransformer,
          rightAxisTransformer: rightAxisTransformer,
          xAxisRenderer: xAxisRenderer,
          customViewPortEnabled: customViewPortEnabled,
          zoomMatrixBuffer: zoomMatrixBuffer,
          pinchZoomEnabled: pinchZoomEnabled,
          keepPositionOnRotation: keepPositionOnRotation,
          gridBackgroundPaint: gridBackgroundPaint,
          borderPaint: borderPaint,
          backgroundColor: backgroundColor,
          gridBackColor: gridBackColor,
          borderColor: borderColor,
          borderStrokeWidth: borderStrokeWidth,
          axisLeftSettingFunction: axisLeftSettingFunction,
          axisRightSettingFunction: axisRightSettingFunction,
          touchEventListener: touchEventListener,
          chartTransListener: chartTransListener);