ChartCoordinateRender class abstract
坐标渲染器, 每次刷新会重新构造,切忌不要存放状态数据,数据都在state里面
Constructors
-
ChartCoordinateRender({required EdgeInsets margin, required EdgeInsets padding, required List<
ChartBodyRender> charts, TooltipWidgetBuilder? tooltipBuilder, double? minZoom, double? maxZoom, bool outDraw = false, Duration? animationDuration, List<Annotation> ? backgroundAnnotations, List<Annotation> ? foregroundAnnotations, EdgeInsets? safeArea})
Properties
- animationDuration → Duration?
-
动画时间
final
-
backgroundAnnotations
→ List<
Annotation> ? -
背景标注
final
-
charts
→ List<
ChartBodyRender> -
坐标系中间的绘图
final
- controller ↔ ChartController
-
getter/setter pair
-
foregroundAnnotations
→ List<
Annotation> ? -
前景标注
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- margin → EdgeInsets
-
图形外边距,用于控制坐标轴的外边距
final
- maxZoom → double?
-
最大缩放
final
- minZoom → double?
-
最小缩放
final
- outDraw → bool
-
不在屏幕内是否绘制 默认不绘制
final
- padding → EdgeInsets
-
图形内边距,用于控制坐标轴的内边距 不支持垂直方向的padding
assert(padding.bottom == 0 && padding.top == 0, "暂不支持垂直方向的内间距")
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeArea → EdgeInsets?
-
安全区域
final
- tooltipBuilder → TooltipWidgetBuilder?
-
用widget弹框来处理点击
final
Methods
-
canZoom(
) → bool -
hasChange(
ChartCoordinateRender other) → bool - 判断图表数量和类型是否发生改变 未改变就做tween动画 改变了就重置 防止数据错乱
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas, ChartsState state) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited