ChartAxis class

ChartAxis 图表的坐标轴样式 可对坐标轴的刻度样式、线条样式、偏移量等数据进行设置

Constructors

ChartAxis({required List<AxisItem> axisItemList, AxisStyle axisStyle = AxisStyle.axisStyleSolid, bool inclineText = false})

Properties

axisItemList List<AxisItem>
final
axisStyle AxisStyle
实线/虚线/无
final
hashCode int
The hash code for this object.
no setterinherited
inclineText bool
倾斜坐标轴文本,避免文本距离过近,目前仅针对X轴文本有效
final
leadingSpace double
0/刻度偏移量
getter/setter pair
maxTextWidth double
显示文本最大宽度
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
space double?
两个刻度间距
getter/setter pair
textStyle TextStyle
x,y 轴文本样式
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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