配置项手册
Serie 系列
- Bar
- BaseScatter
- Candlestick
- EffectScatter
- Heatmap
- Line
- Parallel
- Pie
- Radar
- Ring
- Scatter
- Serie
- SimplifiedBar
- SimplifiedCandlestick
- SimplifiedLine
Theme 主题
- AngleAxisTheme
- AxisTheme
- BaseAxisTheme
- ComponentTheme
- DataZoomTheme
- LegendTheme
- PolarAxisTheme
- RadarAxisTheme
- RadiusAxisTheme
- SerieTheme
- SubTitleTheme
- Theme
- ThemeSnapshotJson
- ThemeStyle
- TitleTheme
- TooltipTheme
- UIComponentTheme
- VisualMapTheme
MainComponent 主组件
- AngleAxis
- Axis
- Background
- CalendarCoord
- Comment
- CoordSystem
- DataZoom
- GridCoord
- GridCoord3D
- GridLayout
- Legend
- MarkArea
- MarkLine
- ParallelAxis
- ParallelCoord
- PolarCoord
- RadarCoord
- RadiusAxis
- Settings
- SingleAxis
- SingleAxisCoord
- Title
- Tooltip
- VisualMap
- XAxis
- XAxis3D
- YAxis
- YAxis3D
- ZAxis3D
ChildComponent 子组件
- AngleAxisTheme
- AnimationStyle
- AreaStyle
- ArrowStyle
- AxisAnimation
- AxisLabel
- AxisLine
- AxisMinorSplitLine
- AxisMinorTick
- AxisName
- AxisSplitArea
- AxisSplitLine
- AxisTheme
- AxisTick
- BaseAxisTheme
- BaseLine
- BlurStyle
- BorderStyle
- CommentItem
- CommentMarkStyle
- ComponentTheme
- DataZoomTheme
- EmphasisStyle
- EndLabelStyle
- IconStyle
- ImageStyle
- ItemStyle
- LabelLine
- LabelStyle
- LegendTheme
- Level
- LevelStyle
- LineArrow
- LineStyle
- Location
- MarkAreaData
- MarkLineData
- MarqueeStyle
- MLValue
- Padding
- PolarAxisTheme
- RadarAxisTheme
- RadiusAxisTheme
- SelectStyle
- SerieData
- SerieDataLink
- SerieSymbol
- SerieTheme
- StageColor
- StateStyle
- SubTitleTheme
- SymbolStyle
- TextLimit
- TextPadding
- TextStyle
- ThemeStyle
- TitleStyle
- TitleTheme
- TooltipTheme
- UIComponentTheme
- ViewControl
- VisualMapRange
- VisualMapTheme
ISerieComponent 可添加到Serie的组件
ISerieDataComponent 可添加到SerieData的组件
- AreaStyle
- BlurStyle
- EmphasisStyle
- ImageStyle
- ItemStyle
- LabelLine
- LabelStyle
- LineStyle
- SelectStyle
- SerieSymbol
- TitleStyle
Other 其他
- AnimationAddition
- AnimationChange
- AnimationExchange
- AnimationFadeIn
- AnimationFadeOut
- AnimationHiding
- AnimationInfo
- AnimationInteraction
- BaseSerie
- ChartJson
- ChartSettingsJson
- ChartText
- ChildComponent
- ComponentJson
- DebugInfo
- Indicator
- INeedSerieContainer
- IPropertyChanged
- ISerieComponent
- ISerieContainer
- ISerieDataComponent
- ISimplifiedSerie
- IUpdateRuntimeData
- Lang
- LangCandlestick
- LangTime
- MainComponent
- ResourceRef
- SerieJson
- UIComponentJson
- Wrapper<T>
- XCResourcesImporter
- XCSettings
AngleAxis
class in XCharts.Runtime / 继承自: Axis
极坐标系的角度轴。
AngleAxis.startAngle
float 0
起始刻度的角度,默认为 0 度,即圆心的正右方。
AngleAxisTheme
class in XCharts.Runtime / 继承自: BaseAxisTheme
AnimationAddition
class in XCharts.Runtime / 继承自: AnimationInfo
从
v3.8.0开始支持
数据新增动画。
AnimationChange
class in XCharts.Runtime / 继承自: AnimationInfo
从
v3.8.0开始支持
数据变更动画。
AnimationExchange
class in XCharts.Runtime / 继承自: AnimationInfo
从
v3.15.0开始支持
数据交换动画。一般用于图表数据排序时顺序变化的动画。
AnimationFadeIn
class in XCharts.Runtime / 继承自: AnimationInfo
从
v3.8.0开始支持
淡入动画。
AnimationFadeOut
class in XCharts.Runtime / 继承自: AnimationInfo
从
v3.8.0开始支持
淡出动画。
AnimationHiding
class in XCharts.Runtime / 继承自: AnimationInfo
从
v3.8.0开始支持
数据隐藏动画。
AnimationInfo
class in XCharts.Runtime / 子类: AnimationFadeIn, AnimationFadeOut, AnimationChange, AnimationAddition, AnimationHiding, AnimationInteraction, AnimationExchange
从
v3.8.0开始支持
动画配置参数。
AnimationInfo.delay
float 0 v3.8.0
动画开始前的延迟时间。
AnimationInfo.duration
float 1000 v3.8.0
动画的时长。默认用于计算动画的速度。也可以通过speed指定速度。
AnimationInfo.enable
bool true v3.8.0
是否开启动画效果。
AnimationInfo.reverse
bool false v3.8.0
是否开启反向动画效果。
AnimationInfo.speed
float 0 v3.14.0
动画的速度。当指定speed时,duration将失效。默认为0,表示不指定速度。
AnimationInteraction
class in XCharts.Runtime / 继承自: AnimationInfo
从
v3.8.0开始支持
交互动画。
AnimationInteraction.offset
MLValue v3.8.0
交互的多样式数值。如饼图的扇形选中时的偏移。
AnimationInteraction.radius
MLValue v3.8.0
半径的多样式数值。
AnimationInteraction.width
MLValue v3.8.0
宽度的多样式数值。
AnimationStyle
class in XCharts.Runtime / 继承自: ChildComponent
动画组件,用于控制图表的动画播放。支持配置五种动画表现:FadeIn(渐入动画),FadeOut(渐出动画),Change(变更动画),Addition(新增动画),Interaction(交互动画),Exchange(交换动画)。 按作用的对象可以分为两类:SerieAnimation(系列动画)和DataAnimation(数据动画)。
AnimationStyle.addition
AnimationAddition v3.8.0
数据新增动画配置。
AnimationStyle.change
AnimationChange v3.8.0
数据变更动画配置。
AnimationStyle.easting
可选:
Linear:
AnimationStyle.enable
bool true
是否开启动画效果。
AnimationStyle.exchange
AnimationExchange v3.15.0
交换动画配置。如在排序柱图中有效。
AnimationStyle.fadeIn
AnimationFadeIn v3.8.0
渐入动画配置。
AnimationStyle.fadeOut
AnimationFadeOut v3.8.0
渐出动画配置。
AnimationStyle.hiding
AnimationHiding v3.8.0
数据隐藏动画配置。
AnimationStyle.interaction
AnimationInteraction v3.8.0
交互动画配置。
AnimationStyle.threshold
int 2000
是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。
AnimationStyle.type
动画类型。
可选:
Default: 默认。内部会根据实际情况选择一种动画播放方式。LeftToRight: 从左往右播放动画。BottomToTop: 从下往上播放动画。InsideOut: 由内到外播放动画。AlongPath: 沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。Clockwise: 顺时针播放动画。
AnimationStyle.unscaledTime
bool v3.4.0
动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。
AreaStyle
class in XCharts.Runtime / 继承自: ChildComponent, ISerieComponent, ISerieDataComponent
区域填充样式。
AreaStyle.color
Color32
区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。
AreaStyle.innerFill
bool v3.2.0
是否只填充多边形区域。目前只支持凸多边形。
AreaStyle.opacity
float 0.6f
图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
AreaStyle.origin
区域填充的起始 位置。
可选:
Auto: 填充坐标轴轴线到数据间的区域。Start: 填充坐标轴底部到数据间的区域。End: 填充坐标轴顶部到数据间的区域。
AreaStyle.show
bool true
是否显示区域填充。
AreaStyle.toColor
Color32
渐变色的终点颜色。
AreaStyle.toTop
bool true v3.6.0
渐变色是到顶部还是到实际位置。默认为true到顶部。
ArrowStyle
class in XCharts.Runtime / 继承自: ChildComponent
ArrowStyle.color
Color32 Color.clear
箭头颜色。
ArrowStyle.dent
float 3
箭头的凹度。
ArrowStyle.height
float 15
箭头高。
ArrowStyle.offset
float 0
箭头偏移。
ArrowStyle.width
float 10
箭头宽。
Axis
class in XCharts.Runtime / 继承自: MainComponent / 子类: AngleAxis, ParallelAxis, RadiusAxis, SingleAxis, XAxis, XAxis3D, YAxis, YAxis3D, ZAxis3D
直角坐标系的坐标轴组件。
Axis.animation
坐标轴动画。
Axis.axisLabel
坐标轴刻度标签。
Axis.axisLine
坐标轴轴线。
Axis.axisName
坐标轴名称。
Axis.axisTick
坐标轴刻度。
Axis.boundaryGap
bool true
坐标轴两边是否留白。只对类目轴有效。
Axis.ceilRate
double 0
最大最小值向上取整的倍率。默认为0时自动计算。
Axis.clockwise
bool true
刻度增长是否按顺时针,默认顺时针。
Axis.data
List<string>
类目数据,在类目轴(type: 'category')中有效。
Axis.gridIndex
int
坐标轴所在的 grid 的索引,默认位于第一个 grid。
Axis.icons
List<Sprite>
类目数据对应的图标。
Axis.indicatorLabel
LabelStyle v3.4.0
指示器文本的样式。Tooltip为Cross时使用。
Axis.insertDataToHead
bool
添加新数据时是在列表的头部还是尾部加入。
Axis.interval
double 0
强制设置坐标轴分割间隔。无法在类目轴中使用。
Axis.inverse
bool false
是否 反向坐标轴。在类目轴中无效。
Axis.logBase
float 10
对数轴的底数,只在对数轴(type:'Log')中有效。
Axis.logBaseE
bool false
对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。
Axis.mainAxis
bool false v3.15.0
是否为主轴。当XY轴类型都相同时,设置为主轴的轴会决定朝向,如横向柱图和纵向柱图。
Axis.max
double
设定的坐标轴刻度最大值,当minMaxType为Custom时有效。
Axis.maxCache
int 0
The first data will be remove when the size of axis data is larger then maxCache.
Axis.min
double
设定的坐标轴刻度最小值,当minMaxType为Custom时有效。
Axis.minCategorySpacing
float 0 v3.11.0
类目之间的最小间距。
Axis.minMaxType
坐标轴刻度最大最小值显示类型。
可选:
Default: 0-最大值。MinMax: 最小值-最大值。Custom: 自定义最小值最大值。MinMaxAuto: [since("v3.7.0")]最小值-最大值。自动计算合适的值。
Axis.minorSplitLine
AxisMinorSplitLine v3.2.0
坐标轴次分割线。
Axis.minorTick
AxisMinorTick v3.2.0
坐标轴次刻度。
Axis.offset
float
坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。
Axis.parallelIndex
int
坐标轴所在的 parallel 的索引,默认位于第一个 parallel。
Axis.polarIndex
int
坐标轴所在的 ploar 的索引,默认位于第一个 polar。
Axis.position
坐标轴在Grid中的位置。
可选:
Left: 坐标轴在Grid中的位置Right: 坐标轴在Grid中的位置Bottom: 坐标轴在Grid中的位置Top: 坐标轴在Grid中的位置Center: 坐标轴在Grid中的位置
Axis.show
bool true
是否显示坐标轴。
Axis.splitArea
坐标轴分割区域。
Axis.splitLine
坐标轴分割线。
Axis.splitNumber
int 0
坐标轴的期望的分割段数。默认为0表示自动分割。
Axis.type
坐标轴类型。
可选:
Value: 数值轴。适用于连续数据。Category: 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。Log: 对数轴。适用于对数数据。Time: 时间轴。适用于连续的时序数据。
AxisAnimation
class in XCharts.Runtime / 继承自: ChildComponent
从
v3.9.0开始支持
坐标轴动画配置。
AxisAnimation.duration
float
动画时长(ms)。 默认设置为0时,会自动获取serie的动画时长。
AxisAnimation.show
bool true
是否开启动画。
AxisAnimation.unscaledTime
bool
动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。
AxisLabel
class in XCharts.Runtime / 继承自: LabelStyle
坐标轴刻度标签的相关设置。
AxisLabel.inside
bool false
刻度标签是否朝内,默认朝外。
AxisLabel.interval
int 0
坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
AxisLabel.onZero
bool false
刻度标签显示在0刻度上。
AxisLabel.showAsPositiveNumber
bool false
将负数数值显示为正数。一般和Serie的showAsPositiveNumber配合使用。
AxisLabel.showEndLabel
bool true
是否显示最后一个文本。
AxisLabel.showStartLabel
bool true
是否显示第一个文本。
AxisLabel.showZeroLabel
bool true v3.15.0
是否显示0刻度文本。
AxisLabel.textLimit
文本限制。
AxisLine
class in XCharts.Runtime / 继承自: BaseLine
坐标轴轴线。
AxisLine.arrow
轴线箭头。
AxisLine.endExtendLength
float
轴线终点延长线长度。
AxisLine.onZero
bool
X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。
AxisLine.showArrow
bool
是否显示箭头。
AxisLine.startExtendLength
float
轴线起点延长线长度。
AxisMinorSplitLine
class in XCharts.Runtime / 继承自: BaseLine
从
v3.2.0开始支持
坐标轴在 grid 区域中的次分隔线。次分割线会对齐次刻度线 minorTick。
AxisMinorSplitLine.autoColor
bool
自动设置颜色。
AxisMinorSplitLine.distance
float
刻度线与轴线的距离。
AxisMinorTick
class in XCharts.Runtime / 继承自: BaseLine
从
v3.2.0开始支持
坐标轴次刻度相关设置。注意:次刻度无法在类目轴中使用。
AxisMinorTick.autoColor
bool
AxisMinorTick.splitNumber
int 5
分隔线之间分割的刻度数。
AxisName
class in XCharts.Runtime / 继承自: ChildComponent
坐标轴名称。
AxisName.labelStyle
文本样式。
AxisName.name
string
坐标轴名称。
AxisName.onZero
bool v3.1.0
坐标轴名称的位置是否保持和Y轴0刻度一致。
AxisName.show
bool
是否显示坐标轴名称。
AxisSplitArea
class in XCharts.Runtime / 继承自: ChildComponent
坐标轴在 grid 区域中的分隔区域,默认不显示。
AxisSplitArea.color
List<Color32>
分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
AxisSplitArea.show
bool
是否显示分隔区域。
AxisSplitLine
class in XCharts.Runtime / 继承自: BaseLine
坐标轴在 grid 区域中的分隔线。
AxisSplitLine.autoColor
bool
自动设置颜色。
AxisSplitLine.distance
float
刻度线与轴线的距离。
AxisSplitLine.interval
int
坐标轴分隔线的显示间隔。
AxisSplitLine.showEndLine
bool true v3.3.0
是否显示最后一条分割线。
AxisSplitLine.showStartLine
bool true v3.3.0
是否显示第一条分割线。
AxisSplitLine.showZLine
bool true v3.11.0
是否显示Z轴部分分割线。一般用于3D坐标系。
AxisTheme
class in XCharts.Runtime / 继承自: BaseAxisTheme
AxisTick
class in XCharts.Runtime / 继承自: BaseLine
坐标轴刻度相关设置。
AxisTick.alignWithLabel
bool
类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。
AxisTick.autoColor
bool
AxisTick.distance
float
刻度线与轴线的距离。
AxisTick.inside
bool
坐标轴刻度是否朝内,默认朝外。
AxisTick.showEndTick
bool
是否显示最后一个刻度。
AxisTick.showStartTick
bool
是否显示第一个刻度。
AxisTick.splitNumber
int 0
分隔线之间分割的刻度数。
Background
class in XCharts.Runtime / 继承自: MainComponent
背景组件。
Background.autoColor
bool true
当background组件开启时,是 否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时,用imageColor作为颜色。
Background.borderStyle
BorderStyle v3.10.0
背景边框样式。
Background.image
Sprite
背景图。
Background.imageColor
Color
背景图颜色。
Background.imageHeight
float 0 v3.10.0
背景图高度。
Background.imageType
Image.Type
背景图填充类型。
Background.imageWidth
float 0 v3.10.0
背景图宽度。
Background.show
bool true
是否启用背景组件。
Bar
class in XCharts.Runtime / 继承自: Serie, INeedSerieContainer
BaseAxisTheme
class in XCharts.Runtime / 继承自: ComponentTheme / 子类: AxisTheme, RadiusAxisTheme, AngleAxisTheme, PolarAxisTheme, RadarAxisTheme
BaseAxisTheme.lineColor
Color32
坐标轴线颜色。
BaseAxisTheme.lineLength
float 0f
坐标轴线长。
BaseAxisTheme.lineType
坐标轴线类型。
可选:
Solid: 实线Dashed: 虚线Dotted: 点线DashDot: 点划线DashDotDot: 双点划线None: 双点划线
BaseAxisTheme.lineWidth
float 1f
坐标轴线宽。
BaseAxisTheme.minorSplitLineColor
Color32
次分割线线颜色。
BaseAxisTheme.splitAreaColors
List<Color32>
坐标轴分隔区域的颜色。
BaseAxisTheme.splitLineColor
Color32
分割线线颜色。
BaseAxisTheme.splitLineLength
float 0f
分割线线长。
BaseAxisTheme.splitLineType
分割线线类型。
可选:
Solid: 实线Dashed: 虚线Dotted: 点线DashDot: 点划线DashDotDot: 双点划线None: 双点划线
BaseAxisTheme.splitLineWidth
float 1f
分割线线宽。
BaseAxisTheme.tickColor
Color32
坐标轴线颜色。
BaseAxisTheme.tickLength
float 5f
刻度线线长。
BaseAxisTheme.tickWidth
float 1f
刻度线线宽。
BaseLine
class in XCharts.Runtime / 继承自: ChildComponent / 子类: AxisLine, AxisMinorSplitLine, AxisMinorTick, AxisSplitLine, AxisTick
线条基础配置。
BaseLine.lineStyle
线条样式
BaseLine.show
bool
是否显示坐标轴轴线。
BaseScatter
class in XCharts.Runtime / 继承自: Serie, INeedSerieContainer / 子类: EffectScatter, Scatter
BaseSerie
class in XCharts.Runtime / 子类: Serie
BlurStyle
class in XCharts.Runtime / 继承自: StateStyle, ISerieComponent, ISerieDataComponent
从
v3.2.0开始支持
淡出状态样式。
BorderStyle
class in XCharts.Runtime / 继承自: ChildComponent
从
v3.10.0开始支持
边框样式。
BorderStyle.borderColor
Color32
边框颜色。
BorderStyle.borderWidth
float
边框宽度。
BorderStyle.cornerRadius
float[]
圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。当为(1,1,1,1)时为全圆角。
BorderStyle.roundedCorner
bool true
是否显示圆角。
BorderStyle.show
bool false
是否显示边框。
CalendarCoord
class in XCharts.Runtime / 继承自: CoordSystem, IUpdateRuntimeData, ISerieContainer
Candlestick
class in XCharts.Runtime / 继承自: Serie, INeedSerieContainer
ChartJson
class in XCharts.Runtime
ChartSettingsJson
class in XCharts.Runtime
ChartText
class in XCharts.Runtime
ChildComponent
class in XCharts.Runtime / 子类: AnimationStyle, AxisAnimation, AxisName, AxisSplitArea, AreaStyle, ArrowStyle, BaseLine, BorderStyle, IconStyle, ImageStyle, ItemStyle, Level, LevelStyle, LineArrow, LineStyle, Location, MLValue, MarqueeStyle, Padding, StageColor, SymbolStyle, TextLimit, TextStyle, CommentItem, CommentMarkStyle, LabelLine, LabelStyle, MarkAreaData, MarkLineData, StateStyle, VisualMapRange, ViewControl, UIComponentTheme, SerieData, SerieDataLink, ComponentTheme, SerieTheme, ThemeStyle
Comment
class in XCharts.Runtime / 继承自: MainComponent, IPropertyChanged
从
v3.15.0开始支持
图表注解组件。用于标注图表中的特殊信息。
Comment.items
List<CommentItem>
注解项。每个注解组件可以设置多个注解项。
Comment.labelStyle
所有组件的文本样式。
Comment.layer
CommentLayer v3.15.0
注解的显示层级。
可选:
Lower: 注解在系列下方。Upper: 注解在系列上方。
Comment.markStyle
所有组件的文本样式。
Comment.show
bool true
是否显示注解组件。
CommentItem
class in XCharts.Runtime / 继承自: ChildComponent
注解项。
CommentItem.content
string
注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。
CommentItem.labelStyle
注解项的文本样式。
CommentItem.location
Location v3.5.0
Comment显示的位置。
CommentItem.markRect
Rect
注解区域。
CommentItem.markStyle
注解标记区域样式。
CommentItem.show
bool true
是否显示当前注解项。
CommentMarkStyle
class in XCharts.Runtime / 继承自: ChildComponent
注解项区域样式。
CommentMarkStyle.lineStyle
线条样式。
CommentMarkStyle.show
bool true
是否显示当前注解项。
ComponentJson
class in XCharts.Runtime
ComponentTheme
class in XCharts.Runtime / 继承自: ChildComponent / 子类: BaseAxisTheme, DataZoomTheme, LegendTheme, SubTitleTheme, TitleTheme, TooltipTheme, VisualMapTheme
ComponentTheme.font
Font
字体。
ComponentTheme.fontSize
int 18
文本字体大小。
ComponentTheme.textBackgroundColor
Color
文本颜色。
ComponentTheme.textColor
Color
文本颜色。
ComponentTheme.tMPFont
TMP_FontAsset
字体。
CoordSystem
class in XCharts.Runtime / 继承自: MainComponent / 子类: RadarCoord, CalendarCoord, GridCoord, GridCoord3D, ParallelCoord, PolarCoord, SingleAxisCoord
坐标系系统。
DataZoom
class in XCharts.Runtime / 继承自: MainComponent, IUpdateRuntimeData
DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。
DataZoom.areaStyle
阴影填充样式。
DataZoom.backgroundColor
Color32
组件的背景颜色。
DataZoom.borderColor
Color32
边框颜色。
DataZoom.borderWidth
float
边框宽。
DataZoom.bottom
float
组件离容器下侧的距离。
DataZoom.enable
bool true
是否显示缩放区域。
DataZoom.end
float
数据窗口范围的结束百分比。范围是:0 ~ 100。
DataZoom.endLock
bool v3.6.0
固定结束值,不让改变。
DataZoom.fillerColor
Color32
数据区域颜色。
DataZoom.filterAxisRange
bool true v3.12.0
是否根据DataZoom的缩放窗口过滤坐标轴的最大最小值范围。为true时坐标轴范围随缩放窗口变化;为false时坐标轴始终显示全部数据范围。
DataZoom.filterMode
数据过滤类型。
可选:
Filter: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。WeakFilter: 当前数据窗口外的数据,被 过 滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。Empty: 当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。None: 不过滤数据,只改变数轴范围。
DataZoom.labelStyle
文本标签格式。
DataZoom.left
float
组件离容器左侧的距离。
DataZoom.lineStyle
阴影线条样式。
DataZoom.marqueeStyle
MarqueeStyle v3.5.0
选取框样式。
DataZoom.minZoomRatio
float 0.2f
缩放区域组件的最小缩放比例,范围0f-1f。
DataZoom.orient
布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
可选:
Horizonal: 水平Vertical: 垂直
DataZoom.rangeMode
取绝对值还是百分比。
可选:
//Value: The value type of start and end.取值类型Percent: 百分比。
DataZoom.right
float
组件离容器右侧的距离。
DataZoom.scrollSensitivity
float 1.1f
缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。
DataZoom.showDataShadow
bool
是否显示数据阴影。数据阴影可以简单地反应数据走势。
DataZoom.showDetail
bool
是否显示detail,即拖拽时候显示详细数值信息。
DataZoom.start
float
数据窗口范围的起始百分比。范围是:0 ~ 100。
DataZoom.startLock
bool v3.6.0
固定起始值,不让改变。
DataZoom.supportInside
bool
是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。
DataZoom.supportInsideDrag
bool true
是否支持坐标系内拖拽
DataZoom.supportInsideScroll
bool true
是否支持坐标系内滚动
DataZoom.supportMarquee
bool
是否支持框选。提供一个选框进行数据区域缩放。
DataZoom.supportSlider
bool
是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。
DataZoom.top
float
组件离容器上侧的距离。
DataZoom.xAxisIndexs
List<int>
控制的 x 轴索引列表。
DataZoom.yAxisIndexs
List<int>
控制的 y 轴索引列表。
DataZoom.zoomLock
bool
是否锁定选择区域(或叫做数据窗口)的大小。 如果 设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。
DataZoomTheme
class in XCharts.Runtime / 继承自: ComponentTheme
DataZoomTheme.backgroundColor
Color32
背景颜色。
DataZoomTheme.borderColor
Color32
边框颜色。
DataZoomTheme.borderWidth
float
边框线宽。
DataZoomTheme.dataAreaColor
Color32
数据阴影的填充颜色。
DataZoomTheme.dataLineColor
Color32
数据阴影的线条颜色。
DataZoomTheme.dataLineWidth
float
数据阴影线宽。
DataZoomTheme.fillerColor
Color32
数据区域颜色。
DebugInfo
class in XCharts.Runtime
DebugInfo.foldSeries
bool false
是否在Inspector上折叠Serie。
DebugInfo.labelStyle
DebugInfo.show
bool true
是否显示Debug组件。
DebugInfo.showAllChartObject
bool false
是否在Hierarchy试图显示所有chart下的节点。
DebugInfo.showDebugInfo
bool false
EffectScatter
class in XCharts.Runtime / 继承自: BaseScatter
EmphasisStyle
class in XCharts.Runtime / 继承自: StateStyle, ISerieComponent, ISerieDataComponent
从
v3.2.0开始支持
高亮状态样式。
EmphasisStyle.blurScope
在开启focus的时候,可以通过blurScope配置淡出的范围。
可选:
GridCoord: 淡出范围为坐标系,默认使用该配置。Series: 淡出范围为系列。Global: 淡出范围为全局。
EmphasisStyle.focus
在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。
可选:
None: 不淡出其它图形,默认使用该配置。Self: 只聚焦(不淡出)当前高亮的数据的图形。Series: 聚焦当前高亮的数据所在的系列的所有图形。
EmphasisStyle.scale
float 1.1f
高亮时的缩放倍数。
EndLabelStyle
class in XCharts.Runtime / 继承自: LabelStyle
GridCoord
class in XCharts.Runtime / 继承自: CoordSystem, IUpdateRuntimeData, ISerieContainer
Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
GridCoord.backgroundColor
Color32
网格背景色,默认透明。
GridCoord.borderColor
Color32
网格边框颜色。
GridCoord.borderWidth
float 0f
网格边框宽。
GridCoord.bottom
float 0.14f
grid 组件离容器下侧的距离。
GridCoord.layoutIndex
int -1 v3.8.0
网格所属的网格布局组件的索引。默认为-1,表示不属于任何网格布局组件。当设置了该值时,left、right、top、bottom属性将失效。
GridCoord.left
float 0.11f
grid 组件离容器左侧的距离。
GridCoord.right
float 0.08f
grid 组件离容器右侧的距离。
GridCoord.show
bool true
是否显示直角坐标系网格。
GridCoord.showBorder
bool false
是否显示网格边框。
GridCoord.top
float 0.22f
grid 组件离容器上侧的距离。
GridCoord3D
class in XCharts.Runtime / 继承自: CoordSystem, IUpdateRuntimeData, ISerieContainer
从
v3.11.0开始支持
Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
GridCoord3D.bottom
float 0.15f
grid 组件离容器下侧的距离。
GridCoord3D.boxDepth
float 0.2f
坐标系的深度。
GridCoord3D.boxHeight
float 0.4f
坐标系的高度。
GridCoord3D.boxWidth
float 0.55f
坐标系的宽度。
GridCoord3D.left
float 0.15f
grid 组件离容器左侧的距离。
GridCoord3D.right
float 0.2f
grid 组件离容器右侧的距离。
GridCoord3D.show
bool true
是否显示直角坐标系网格。
GridCoord3D.showBorder
bool false
是否显示网格边框。
GridCoord3D.top
float 0.3f
grid 组件离容器上侧的距离。
GridCoord3D.viewControl
3D视角控制组件。
GridCoord3D.xYExchanged
bool false
GridLayout
class in XCharts.Runtime / 继承自: MainComponent, IUpdateRuntimeData
从
v3.8.0开始支持
网格布局组件。用于管理多个GridCoord的布局,可以通过row和column来控制网格的行列数。
GridLayout.bottom
float 0.12f
grid 组件离容器下侧的距离。
GridLayout.column
int 2
网格布局的列数。
GridLayout.inverse
bool false
是否反转网格布局。
GridLayout.left
float 0.1f
grid 组件离容器左侧的距离。
GridLayout.right
float 0.08f
grid 组件离容器右侧的距离。
GridLayout.row
int 2
网格布局的行数。
GridLayout.show
bool true
是否显示直角坐标系网格。
GridLayout.spacing
Vector2 Vector2.zero
网格布局的间距。
GridLayout.top
float 0.22f
grid 组件离容器上侧的距离。
Heatmap
class in XCharts.Runtime / 继承自: Serie, INeedSerieContainer
Heatmap.heatmapType
HeatmapType v3.3.0
热力图类型。通过颜色映射划分。
可选:
Data: 数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。Count: 个数映射型。统计数据在划分的格子中出现的次数,作为颜色映射。要求数据至少有2个维度数据。
IconStyle
class in XCharts.Runtime / 继承自: ChildComponent
IconStyle.align
水平方向对齐方式。
可选:
Center: 对齐方式。文本,图标,图形等的对齐方式。Left: 对齐方式。文本,图标,图形等的对齐方式。Right: 对齐方式。文本,图标,图形等的对齐 方式。
IconStyle.autoHideWhenLabelEmpty
bool false
当label内容为空时是否自动隐藏图标
IconStyle.color
Color
图标颜色。
IconStyle.height
float 20
图标高。
IconStyle.layer
显示在上层还是在下层。
可选:
UnderText: The icon is display under the label text. 图标在标签文字下AboveText: The icon is display above the label text. 图标在标签文字上
IconStyle.offset
Vector3
图标偏移。
IconStyle.show
bool false
是否显示图标。
IconStyle.sprite
Sprite
图标的图片。
IconStyle.type
Image.Type
图片的显示类型。
IconStyle.width
float 20
图标宽。
ImageStyle
class in XCharts.Runtime / 继承自: ChildComponent, ISerieComponent, ISerieDataComponent
ImageStyle.autoColor
bool
是否自动颜色。
ImageStyle.color
Color
图标颜色。
ImageStyle.height
float 0
图标高。
ImageStyle.show
bool true
是否显示图标。
ImageStyle.sprite
Sprite
图标的图片。
ImageStyle.type
Image.Type
图片的显示类型。
ImageStyle.width
float 0
图标宽。
Indicator
class in XCharts.Runtime
雷达图的指示器,用来指定雷达图中的多个变量(维度)。
Indicator.axisLine
轴线。
Indicator.axisName
雷达图每个指示器名称的配置项。
Indicator.ceilRate
double 0
最大最小值向上取整的倍率。默认为0时自动计算。
Indicator.center
float[]
雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。
Indicator.connectCenter
bool false
数值是否连线到中心点。
Indicator.gridIndex
int -1 v3.8.0
所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。
Indicator.indicator
bool true
是否显示指示器。
Indicator.indicatorGap
float 10
指示器和雷达的间距。
Indicator.indicatorList
List<Indicator>
指示器列表。
Indicator.isAxisTooltip
bool
是否Tooltip显示轴线上的所有数据。
Indicator.lineGradient
bool true
数值线段是否需要渐变。
Indicator.max
double
指示器的最大值,默认为 0 无限制。
Indicator.min
double
指示器的最小值,默认为 0 无限制。
Indicator.name
string
指示器名称。
Indicator.outRangeColor
Color32 Color.red
数值超出范围时显示的颜色。
Indicator.positionType
PositionType
显示位置类型。
Indicator.radius
float 100
雷达图的半径。
Indicator.range
double[]
正常值范围。当数值不在这个范围时,会自动变更显示颜色。
Indicator.shape
Shape
雷达图绘制类型,支持 'Polygon' 和 'Circle'。
Indicator.show
bool
是否显示雷达坐标系组件。
Indicator.splitArea
分割区域。
Indicator.splitLine
分割线。
Indicator.splitNumber
int 5
指示器轴的分割段数。
Indicator.startAngle
float v3.4.0
起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。
INeedSerieContainer
class in XCharts.Runtime / 子类: Bar, SimplifiedBar, Candlestick, SimplifiedCandlestick, Heatmap, Line, SimplifiedLine, Parallel, Radar, BaseScatter
IPropertyChanged
class in XCharts.Runtime / 子类: Location, Comment, Legend, Title
属性变更接口
ISerieComponent
class in XCharts.Runtime / 子类: AreaStyle, ImageStyle, LineArrow, LabelLine, LabelStyle, BlurStyle, EmphasisStyle, SelectStyle, TitleStyle
可用于Serie的组件。
ISerieContainer
class in XCharts.Runtime / 子类: RadarCoord, CalendarCoord, GridCoord, GridCoord3D, ParallelCoord, PolarCoord
ISerieDataComponent
class in XCharts.Runtime / 子类: AreaStyle, ImageStyle, ItemStyle, LineStyle, SerieSymbol, LabelLine, LabelStyle, BlurStyle, EmphasisStyle, SelectStyle, TitleStyle
可用于SerieData的组件。
ISimplifiedSerie
class in XCharts.Runtime / 子类: SimplifiedBar, SimplifiedCandlestick, SimplifiedLine
ItemStyle
class in XCharts.Runtime / 继承自: ChildComponent, ISerieDataComponent
图形样式。
ItemStyle.backgroundColor
Color32
数据项背景颜色。
ItemStyle.backgroundGap
float v3.15.0
数据项背景间隙。
ItemStyle.backgroundWidth
float
数据项背景宽度。
ItemStyle.borderColor
Color32
边框的颜色。
ItemStyle.borderColor0
Color32
边框的颜色。
ItemStyle.borderGap
float 0
边框间隙。
ItemStyle.borderToColor
Color32
边框的渐变色。
ItemStyle.borderWidth
float 0
边框宽。
ItemStyle.centerColor
Color32
中心区域颜色。
ItemStyle.centerGap
float
中心区域间隙。
ItemStyle.color
Color32
数据项颜色。
ItemStyle.color0
Color32
数据项颜色。
ItemStyle.cornerRadius
float[]
圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。
ItemStyle.itemFormatter
string
提示框单项的字符串模版格式器。具体配置参考Tooltip的formatter
ItemStyle.itemMarker
string
提示框单项的字符标志。用在Tooltip中。
ItemStyle.markColor
Color32 v3.6.0
Serie的标识颜色。仅用于Legend和Tooltip的展示,不影响绘制颜色,默认为clear。
ItemStyle.numericFormatter
string
标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以date开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以time开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d.HH:mm:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要v3.12.0以上版本才支持。
ItemStyle.opacity
float 1
透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
ItemStyle.show
bool true
是否启用。
ItemStyle.toColor
Color32
渐变色的颜色1。
ItemStyle.toColor2
Color32
渐变色的颜色2。只在折线图中有效。
IUpdateRuntimeData
class in XCharts.Runtime / 子类: SingleAxis, DataZoom, CalendarCoord, GridCoord, GridLayout, GridCoord3D, ParallelCoord
LabelLine
class in XCharts.Runtime / 继承自: ChildComponent, ISerieComponent, ISerieDataComponent
标签的引导线
LabelLine.endSymbol
结束点的图形标记。
LabelLine.lineAngle
float 60
视觉引导线的固定角度。对折线和曲线有效。在Pie中无效。
LabelLine.lineColor
Color32 Color32(0,0,0,0)
视觉引导线颜色。默认和serie一致取自调色板。
LabelLine.lineEndX
float 0f v3.8.0
视觉引导线结束点的固定x位置。当不为0时,会代替lineLength2设定引导线的x位置。
LabelLine.lineGap
float 1.0f
视觉引导线和容器的间距。
LabelLine.lineLength1
float 25f
视觉引导线第一段的长度。
LabelLine.lineLength2
float 15f
视觉引导线第二段的长度。
LabelLine.lineType
视觉引导线类型。
可选:
BrokenLine: 折线Curves: 曲线HorizontalLine: 水平线
LabelLine.lineWidth
float 1.0f
视觉引导线的宽度。
LabelLine.show
bool true
是否显示视觉引导线。
LabelLine.startSymbol
起始点的图形标记。
LabelStyle
class in XCharts.Runtime / 继承自: ChildComponent, ISerieComponent, ISerieDataComponent / 子类: AxisLabel, EndLabelStyle, TitleStyle
图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
LabelStyle.autoOffset
bool false
是否开启自动偏移。当开启时,Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。
LabelStyle.autoRotate
bool false v3.6.0
是否自动旋转。
LabelStyle.background
背景图样式。
LabelStyle.distance
float
距离轴线的距离。
LabelStyle.fixedX
float 0 v3.15.0
固定的X值。不为0时,会固定在指定的X值上。
LabelStyle.fixedY
float 0 v3.15.0
固定的Y值。不为0时,会固定在指定的Y值上。
LabelStyle.formatter
string
标签内容字符串模版格式器。支持用 \n 换行。部分组件的格式器会不生效。
模板通配符有以下这些,部分只适用于固定的组件:
\{.\}:圆点标记。
\{a\}:系列名。
\{b\}:X轴类目名或数据名。
\{c\}:数据值。
\{d\}:百分比。
\{e\}:数据名。
\{f\}:数据和。
\{g\}:数据总个数。
\{h\}:十六进制颜色值。
\{y\}:Y轴的类目名。
\{value\}:坐标轴或图例的值。
\{index\}:坐标轴编号。
以下通配符适用UITable组件:
\{name\}: 表格的行名。
\{index\}: 表格的行号。
以下通配符适用UIStatistc组件:
\{title\}:标题文本。
\{dd\}:天。
\{hh\}:小时。
\{mm\}:分钟。
\{ss\}:秒。
\{fff\}:毫秒。
\{d\}:天。
\{h\}:小时。
\{m\}:分钟。
\{s\}:秒。
\{f\}:毫秒。
示例:“{b}:{c}”
LabelStyle.height
float 0
标签的高度。一般不用指定,不指定时则自动是文字的高度。
LabelStyle.icon
图标样式。
LabelStyle.numericFormatter
string
标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以date开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以time开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d.HH:mm:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要v3.12.0以上版本才支持。
LabelStyle.offset
Vector3
距离图形元素的偏移
LabelStyle.Position
[SerializeField]
标签的位置。
LabelStyle.rotate
float
文本的旋转。
LabelStyle.show
bool true
是否显示文本标签。
LabelStyle.showCondition
LabelStyle.ShowCondition v3.16.0
标签基于值的显示条件。默认为ShowCondition.Always,总是显示。 设为GreaterThan或LessThan时,只有满足showThreshold阈值条件的数据点才显示标签。
可选:
Always: 总是显示标签。GreaterThan: 大于showThreshold才显示标签。LessThan: 小于showThreshold才显示标签。
LabelStyle.showFilter
LabelStyle.ShowFilter v3.16.0
标签基于数据形态的显示筛选。默认为ShowFilter.All,所有数据点都显示。 设为Peak或Valley时,只在局部波峰或波谷的数据点显示标签。
可选:
All: 所有数据点都显示标签。Peak: 波峰才显示标签。Valley: 波谷才显示标签。
LabelStyle.showMinGap
float 0 v3.16.0
the gap between label and the previous label. When the distance to the previous label is less than this value, the label with smaller y value will be hidden. Default is 0, which means this function is turned off. 和上一个标签的最小间距。当和上一个标签的距离小于该值时,隐藏对应y值较小的标签。默认为0不开启该功能。
LabelStyle.showThreshold
double 0 v3.16.0
showCondition的阈值。当showCondition为GreaterThan或LessThan时生效,只有满足比较条件的值才显示标签。默认值为0。
LabelStyle.textPadding
文本的边距。
LabelStyle.textStyle
文本样式。
LabelStyle.width
float 0
标签的宽度。一般不用指定,不指定时则自动是文字的宽度。
Lang
class in XCharts.Runtime / 继承自: ScriptableObject
国际化语言表。
LangCandlestick
class in XCharts.Runtime
LangTime
class in XCharts.Runtime
Legend
class in XCharts.Runtime / 继承自: MainComponent, IPropertyChanged
图例组件。 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。
Legend.background
ImageStyle v3.1.0
背景图样式。
Legend.colors
List<Color>
图例标记的颜色列表。
Legend.data
List<string>
图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。
Legend.formatter
string
不再使用,使用LabelStyle.formatter代替。
Legend.height
float 0 v3.16.0
图例组件的高。默认为0自适应。当设置0-1的值时,表示相对于图表宽高的比例。
Legend.icons
List<Sprite>
自定义的图例标记图形。
Legend.iconType
图例类型。
可选:
Auto: 自动匹配。Custom: 自定义图标。EmptyCircle: 空心圆。Circle: 圆形。Rect: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。Triangle: 三角形。Diamond: 菱形。Candlestick: 烛台(可 用于K线图)。
Legend.itemAutoColor
bool true
图例标记的图形是否自动匹配颜色。
Legend.itemGap
float 10f
图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。
Legend.itemHeight
float 12.0f
图例标记的图形高度。
Legend.itemInactiveOpacity
float 1 v3.15.0
图例标记的图形在非激活状态下的颜色透明度。
Legend.itemOpacity
float 1
图例标记的图形的颜色透明度。
Legend.itemWidth
float 25.0f
图例标记的图形宽度。
Legend.labelStyle
文本样式。
Legend.location
图例显示的位置。
Legend.orient
布局方式是横还是竖。
可选:
Horizonal: 水平Vertical: 垂直
Legend.padding
Padding v3.1.0
图例标记和背景的间距。
Legend.positions
List<Vector3> v3.6.0
图例标记的自定义位置列表。
Legend.selectedMode
选择模式。控制是否可以通过点击图 例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
可选:
Multiple: 多选。Single: 单选。None: 无法选择。
Legend.show
bool true
是否显示图例组件。
Legend.textLimit
TextLimit v3.10.0
文本限制。
Legend.width
float 0 v3.16.0
图例组件的宽。默认为0自适应。当设置0-1的值时,表示相对于图表宽高的比例。
LegendTheme
class in XCharts.Runtime / 继承自: ComponentTheme
LegendTheme.inactiveColor
Color
非激活状态时的颜色。
Level
class in XCharts.Runtime / 继承自: ChildComponent
Level.depth
int 0 v3.10.0
层级深度。
Level.itemStyle
数据项样式。
Level.label
文本标签样式。
Level.lineStyle
LineStyle v3.10.0
线条样式。
Level.upperLabel
上方的文本标签样式。
LevelStyle
class in XCharts.Runtime / 继承自: ChildComponent
从
v3.10.0开始支持
LevelStyle.levels
List<Level>
各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。
LevelStyle.show
bool false
是否启用LevelStyle
Line
class in XCharts.Runtime / 继承自: Serie, INeedSerieContainer
LineArrow
class in XCharts.Runtime / 继承自: ChildComponent, ISerieComponent
LineArrow.arrow
箭头。
LineArrow.position
箭头位置。
可选:
End: 末端箭头Start: 头端箭头
LineArrow.show
bool
是否显示箭头。
LineStyle
class in XCharts.Runtime / 继承自: ChildComponent, ISerieDataComponent
线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。 toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。
LineStyle.color
Color32
线的颜色。
LineStyle.dashLength
float 4 v3.8.1
虚线的长度。默认0时为线条宽度的12倍。在折线图中代表分割段数的倍数。
LineStyle.dotLength
float 2 v3.8.1
点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。
LineStyle.gapLength
float 2 v3.8.1
点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。
LineStyle.length
float 0
线长。
LineStyle.opacity
float 1
线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
LineStyle.show
bool true
是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。
LineStyle.toColor
Color32
线的渐变颜色(需要水平方向渐变时)。
LineStyle.toColor2
Color32
线的渐变颜色2(需要水平方向三个渐变色的渐变时)。
LineStyle.type
线的类型。
可选:
Solid: 实线Dashed: 虚线Dotted: 点线DashDot: 点划线DashDotDot: 双点划线None: 双点划线
LineStyle.width
float 0
线宽。
Location
class in XCharts.Runtime / 继承自: ChildComponent, IPropertyChanged
位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。
Location.align
对齐方式。
可选:
TopLeft: 对齐方式TopRight: 对齐方式TopCenter: 对齐方式BottomLeft: 对齐方式BottomRight: 对齐方式BottomCenter: 对齐方式Center: 对齐方式CenterLeft: 对齐方式CenterRight: 对齐方式
Location.bottom
float
离容器下侧的距离。
Location.left
float
离容器左侧的距离。
Location.right
float
离容器右侧的距离。
Location.top
float
离容器上侧的距离。
MainComponent
class in XCharts.Runtime / 继承自: IComparable / 子类: Axis, Background, Comment, DataZoom, Legend, MarkArea, MarkLine, Settings, Title, Tooltip, VisualMap, GridLayout, CoordSystem
MarkArea
class in XCharts.Runtime / 继承自: MainComponent
图表标域,常用于标记图表中某个范围的数据。
MarkArea.end
标域范围的结束数据。
MarkArea.itemStyle
标域样式。
MarkArea.label
标域文本样式。
MarkArea.serieIndex
int 0
Serie index of markArea. 标域影响的Serie索引。
MarkArea.show
bool true
是否显示标域。
MarkArea.start
标域范围的起始数据。
MarkArea.text
string
The text of markArea. 标域显示的文本。
MarkAreaData
class in XCharts.Runtime / 继承自: ChildComponent
标域的数据。
MarkAreaData.dimension
int 1
从哪个维度的数据计算最大最小值等。
MarkAreaData.name
string
标注名称。会作为文字显示。
MarkAreaData.type
特殊的标域类型,用于标注最大值最小值等。
可选:
None: 标域类型Min: 最小值。Max: 最大值。Average: 平均值。Median: 中位数。
MarkAreaData.xPosition
float
相对原点的 x 坐标,单位像素。当type为None时有效。
MarkAreaData.xValue
double
X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
MarkAreaData.yPosition
float
相对原点的 y 坐标,单位像素。当type为None时有效。
MarkAreaData.yValue
double
Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
MarkLine
class in XCharts.Runtime / 继承自: MainComponent
图表标线。
MarkLine.animation
标线的动画样式。