ChartDimensionsCoordinateRender class
象限坐标系
- Inheritance
-
- Object
- ChartCoordinateRender
- ChartDimensionsCoordinateRender
- Implementers
Constructors
-
ChartDimensionsCoordinateRender({EdgeInsets margin = const EdgeInsets.only(left: 30, top: 0, right: 0, bottom: 25), EdgeInsets padding = const EdgeInsets.only(left: 30, top: 0, right: 0, bottom: 0), 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
-
十字准星样式
final
-
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坐标轴
final
-
yAxis
→ List<
YAxis> -
y坐标轴
final
Methods
-
canZoom(
) → bool -
override
-
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 -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited