ChartInvertDimensionsCoordinateRender class

象限坐标系 x轴在左边 y轴在下面 ,后续可能会有 原点在右下角或者左上角等可能,所有通过子类化 减少逻辑复杂度。

Inheritance

Constructors

ChartInvertDimensionsCoordinateRender({EdgeInsets margin = const EdgeInsets.only(left: 25, top: 0, right: 0, bottom: 30), EdgeInsets padding = const EdgeInsets.only(left: 0, top: 0, right: 0, bottom: 10), required List<ChartBodyRender> charts, required List<YAxis> yAxis, required XAxis xAxis, List<Annotation>? backgroundAnnotations, List<Annotation>? foregroundAnnotations, double? minZoom, double? maxZoom, EdgeInsets? safeArea, bool outDraw = false, Duration? animationDuration, TooltipWidgetBuilder? tooltipBuilder, CrossHairStyle crossHair = const CrossHairStyle()})

Properties

animationDuration Duration?
动画时间
finalinherited
backgroundAnnotations List<Annotation>?
背景标注
finalinherited
charts List<ChartBodyRender>
坐标系中间的绘图
finalinherited
controller ChartController
getter/setter pairinherited
crossHair CrossHairStyle
十字准星样式
finalinherited
foregroundAnnotations List<Annotation>?
前景标注
finalinherited
hashCode int
The hash code for this object.
no setterinherited
margin EdgeInsets
图形外边距,用于控制坐标轴的外边距
finalinherited
maxZoom double?
最大缩放
finalinherited
minZoom double?
最小缩放
finalinherited
outDraw bool
不在屏幕内是否绘制 默认不绘制
finalinherited
padding EdgeInsets
图形内边距,用于控制坐标轴的内边距 不支持垂直方向的padding assert(padding.bottom == 0 && padding.top == 0, "暂不支持垂直方向的内间距")
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeArea EdgeInsets?
安全区域
finalinherited
tooltipBuilder TooltipWidgetBuilder?
用widget弹框来处理点击
finalinherited
xAxis XAxis
x坐标轴
finalinherited
yAxis List<YAxis>
y坐标轴
finalinherited

Methods

canZoom() bool
inherited
hasChange(ChartCoordinateRender other) bool
判断图表数量和类型是否发生改变 未改变就做tween动画 改变了就重置 防止数据错乱
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, ChartsState state) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited