2022-11-19 21:24:08 +08:00
---
2023-03-04 21:09:50 +08:00
sidebar_position: 31
2022-11-19 21:24:08 +08:00
slug: /configuration
---
# 配置项手册
2022-03-24 21:48:53 +08:00
## Serie 系列
2023-02-14 13:18:39 +08:00
- [Bar ](#bar )
- [BaseScatter ](#basescatter )
- [Candlestick ](#candlestick )
- [EffectScatter ](#effectscatter )
- [Heatmap ](#heatmap )
- [Line ](#line )
- [Parallel ](#parallel )
- [Pie ](#pie )
- [Radar ](#radar )
- [Ring ](#ring )
- [Scatter ](#scatter )
- [Serie ](#serie )
- [SimplifiedBar ](#simplifiedbar )
- [SimplifiedCandlestick ](#simplifiedcandlestick )
- [SimplifiedLine ](#simplifiedline )
2022-03-24 21:48:53 +08:00
2022-03-26 21:34:38 +08:00
## Theme 主题
2023-02-14 13:18:39 +08:00
- [AngleAxisTheme ](#angleaxistheme )
- [AxisTheme ](#axistheme )
- [BaseAxisTheme ](#baseaxistheme )
- [ComponentTheme ](#componenttheme )
- [DataZoomTheme ](#datazoomtheme )
- [LegendTheme ](#legendtheme )
- [PolarAxisTheme ](#polaraxistheme )
- [RadarAxisTheme ](#radaraxistheme )
- [RadiusAxisTheme ](#radiusaxistheme )
- [SerieTheme ](#serietheme )
- [SubTitleTheme ](#subtitletheme )
- [Theme ](#theme )
- [ThemeStyle ](#themestyle )
- [TitleTheme ](#titletheme )
- [TooltipTheme ](#tooltiptheme )
2023-03-20 22:00:02 +08:00
- [UIComponentTheme ](#uicomponenttheme )
2023-02-14 13:18:39 +08:00
- [VisualMapTheme ](#visualmaptheme )
2022-03-26 21:34:38 +08:00
2022-03-24 21:48:53 +08:00
## MainComponent 主组件
2023-02-14 13:18:39 +08:00
- [AngleAxis ](#angleaxis )
- [Axis ](#axis )
- [Background ](#background )
- [CalendarCoord ](#calendarcoord )
- [Comment ](#comment )
- [CoordSystem ](#coordsystem )
- [DataZoom ](#datazoom )
- [GridCoord ](#gridcoord )
2024-04-22 22:25:12 +08:00
- [GridCoord3D ](#gridcoord3d )
2023-08-29 18:30:11 +08:00
- [GridLayout ](#gridlayout )
2023-02-14 13:18:39 +08:00
- [Legend ](#legend )
- [MarkArea ](#markarea )
- [MarkLine ](#markline )
- [ParallelAxis ](#parallelaxis )
- [ParallelCoord ](#parallelcoord )
- [PolarCoord ](#polarcoord )
- [RadarCoord ](#radarcoord )
- [RadiusAxis ](#radiusaxis )
- [Settings ](#settings )
- [SingleAxis ](#singleaxis )
- [SingleAxisCoord ](#singleaxiscoord )
- [Title ](#title )
- [Tooltip ](#tooltip )
- [VisualMap ](#visualmap )
- [XAxis ](#xaxis )
2024-04-22 22:25:12 +08:00
- [XAxis3D ](#xaxis3d )
2023-02-14 13:18:39 +08:00
- [YAxis ](#yaxis )
2024-04-22 22:25:12 +08:00
- [YAxis3D ](#yaxis3d )
- [ZAxis3D ](#zaxis3d )
2023-02-14 13:18:39 +08:00
2022-03-24 21:48:53 +08:00
## ChildComponent 子组件
2023-02-14 13:18:39 +08:00
- [AngleAxisTheme ](#angleaxistheme )
- [AnimationStyle ](#animationstyle )
- [AreaStyle ](#areastyle )
- [ArrowStyle ](#arrowstyle )
2023-11-24 08:29:55 +08:00
- [AxisAnimation ](#axisanimation )
2023-02-14 13:18:39 +08:00
- [AxisLabel ](#axislabel )
- [AxisLine ](#axisline )
- [AxisMinorSplitLine ](#axisminorsplitline )
- [AxisMinorTick ](#axisminortick )
- [AxisName ](#axisname )
- [AxisSplitArea ](#axissplitarea )
- [AxisSplitLine ](#axissplitline )
- [AxisTheme ](#axistheme )
- [AxisTick ](#axistick )
- [BaseAxisTheme ](#baseaxistheme )
- [BaseLine ](#baseline )
- [BlurStyle ](#blurstyle )
2024-01-01 22:57:50 +08:00
- [BorderStyle ](#borderstyle )
2023-02-14 13:18:39 +08:00
- [CommentItem ](#commentitem )
- [CommentMarkStyle ](#commentmarkstyle )
- [ComponentTheme ](#componenttheme )
- [DataZoomTheme ](#datazoomtheme )
- [EmphasisStyle ](#emphasisstyle )
- [EndLabelStyle ](#endlabelstyle )
- [IconStyle ](#iconstyle )
- [ImageStyle ](#imagestyle )
- [ItemStyle ](#itemstyle )
- [LabelLine ](#labelline )
- [LabelStyle ](#labelstyle )
- [LegendTheme ](#legendtheme )
- [Level ](#level )
- [LevelStyle ](#levelstyle )
- [LineArrow ](#linearrow )
- [LineStyle ](#linestyle )
- [Location ](#location )
- [MarkAreaData ](#markareadata )
- [MarkLineData ](#marklinedata )
- [MarqueeStyle ](#marqueestyle )
2023-07-27 07:58:10 +08:00
- [MLValue ](#mlvalue )
2023-02-14 13:18:39 +08:00
- [Padding ](#padding )
- [PolarAxisTheme ](#polaraxistheme )
- [RadarAxisTheme ](#radaraxistheme )
- [RadiusAxisTheme ](#radiusaxistheme )
- [SelectStyle ](#selectstyle )
- [SerieData ](#seriedata )
2023-12-09 23:22:00 +08:00
- [SerieDataLink ](#seriedatalink )
2023-02-14 13:18:39 +08:00
- [SerieSymbol ](#seriesymbol )
- [SerieTheme ](#serietheme )
- [StageColor ](#stagecolor )
- [StateStyle ](#statestyle )
- [SubTitleTheme ](#subtitletheme )
- [SymbolStyle ](#symbolstyle )
- [TextLimit ](#textlimit )
- [TextPadding ](#textpadding )
- [TextStyle ](#textstyle )
- [ThemeStyle ](#themestyle )
- [TitleStyle ](#titlestyle )
- [TitleTheme ](#titletheme )
- [TooltipTheme ](#tooltiptheme )
2023-03-20 22:00:02 +08:00
- [UIComponentTheme ](#uicomponenttheme )
2024-04-22 22:25:12 +08:00
- [ViewControl ](#viewcontrol )
2023-02-14 13:18:39 +08:00
- [VisualMapRange ](#visualmaprange )
- [VisualMapTheme ](#visualmaptheme )
2022-11-20 22:25:19 +08:00
2023-02-13 07:22:07 +08:00
## ISerieComponent 可添加到Serie的组件
2022-11-20 22:25:19 +08:00
2023-02-14 13:18:39 +08:00
- [AreaStyle ](#areastyle )
- [BlurStyle ](#blurstyle )
- [EmphasisStyle ](#emphasisstyle )
- [ImageStyle ](#imagestyle )
- [LabelLine ](#labelline )
- [LabelStyle ](#labelstyle )
- [LineArrow ](#linearrow )
- [SelectStyle ](#selectstyle )
- [TitleStyle ](#titlestyle )
2022-11-20 22:25:19 +08:00
2023-02-13 07:22:07 +08:00
## ISerieDataComponent 可添加到SerieData的组件
2022-11-20 22:25:19 +08:00
2023-02-14 13:18:39 +08:00
- [AreaStyle ](#areastyle )
- [BlurStyle ](#blurstyle )
- [EmphasisStyle ](#emphasisstyle )
- [ImageStyle ](#imagestyle )
- [ItemStyle ](#itemstyle )
- [LabelLine ](#labelline )
- [LabelStyle ](#labelstyle )
- [LineStyle ](#linestyle )
- [SelectStyle ](#selectstyle )
- [SerieSymbol ](#seriesymbol )
- [TitleStyle ](#titlestyle )
2022-11-20 22:25:19 +08:00
2023-05-28 22:42:49 +08:00
## Other 其他
2022-11-20 22:25:19 +08:00
2023-07-11 23:11:05 +08:00
- [AnimationAddition ](#animationaddition )
- [AnimationChange ](#animationchange )
2025-03-26 08:28:27 +08:00
- [AnimationExchange ](#animationexchange )
2023-07-11 23:11:05 +08:00
- [AnimationFadeIn ](#animationfadein )
2023-07-12 13:20:54 +08:00
- [AnimationFadeOut ](#animationfadeout )
2023-07-27 07:58:10 +08:00
- [AnimationHiding ](#animationhiding )
2023-07-11 23:11:05 +08:00
- [AnimationInfo ](#animationinfo )
2023-07-14 08:14:00 +08:00
- [AnimationInteraction ](#animationinteraction )
2023-02-14 13:18:39 +08:00
- [BaseSerie ](#baseserie )
- [ChartText ](#charttext )
- [ChildComponent ](#childcomponent )
- [DebugInfo ](#debuginfo )
- [Indicator ](#indicator )
2023-05-28 22:42:49 +08:00
- [INeedSerieContainer ](#ineedseriecontainer )
- [IPropertyChanged ](#ipropertychanged )
- [ISerieComponent ](#iseriecomponent )
- [ISerieContainer ](#iseriecontainer )
- [ISerieDataComponent ](#iseriedatacomponent )
- [ISimplifiedSerie ](#isimplifiedserie )
- [IUpdateRuntimeData ](#iupdateruntimedata )
2023-02-14 13:18:39 +08:00
- [Lang ](#lang )
- [LangCandlestick ](#langcandlestick )
- [LangTime ](#langtime )
- [MainComponent ](#maincomponent )
2024-05-09 13:13:51 +08:00
- [Wrapper<T> ](#wrappert )
2023-02-14 13:18:39 +08:00
- [XCResourcesImporter ](#xcresourcesimporter )
- [XCSettings ](#xcsettings )
2022-03-24 21:48:53 +08:00
2022-10-11 07:00:35 +08:00
## AngleAxis
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Axis ](#axis )
2022-03-24 21:48:53 +08:00
极坐标系的角度轴。
2024-09-21 13:31:16 +08:00
### AngleAxis.startAngle
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
起始刻度的角度,默认为 0 度,即圆心的正右方。
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## AngleAxisTheme
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [BaseAxisTheme ](#baseaxistheme )
2022-03-24 21:48:53 +08:00
2023-07-11 23:11:05 +08:00
## AnimationAddition
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
2023-07-11 23:11:05 +08:00
> 从 `v3.8.0` 开始支持
数据新增动画。
## AnimationChange
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
2023-07-11 23:11:05 +08:00
> 从 `v3.8.0` 开始支持
数据变更动画。
2025-03-26 08:28:27 +08:00
## AnimationExchange
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
> 从 `v3.15.0` 开始支持
数据交换动画。一般用于图表数据排序时顺序变化的动画。
2023-07-11 23:11:05 +08:00
## AnimationFadeIn
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
2023-07-11 23:11:05 +08:00
> 从 `v3.8.0` 开始支持
淡入动画。
2023-07-12 13:20:54 +08:00
## AnimationFadeOut
2023-07-11 23:11:05 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
2023-07-11 23:11:05 +08:00
> 从 `v3.8.0` 开始支持
淡出动画。
2023-07-27 07:58:10 +08:00
## AnimationHiding
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
2023-07-27 07:58:10 +08:00
> 从 `v3.8.0` 开始支持
数据隐藏动画。
2023-07-11 23:11:05 +08:00
## AnimationInfo
2025-03-26 08:28:27 +08:00
class in XCharts.Runtime / 子类: [AnimationFadeIn ](#animationfadein ), [AnimationFadeOut ](#animationfadeout ), [AnimationChange ](#animationchange ), [AnimationAddition ](#animationaddition ), [AnimationHiding ](#animationhiding ), [AnimationInteraction ](#animationinteraction ), [AnimationExchange ](#animationexchange )
2023-07-11 23:11:05 +08:00
> 从 `v3.8.0` 开始支持
动画配置参数。
2024-09-21 13:31:16 +08:00
### AnimationInfo.delay
2024-09-24 18:26:45 +08:00
`float` `0` `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
动画开始前的延迟时间。
### AnimationInfo.duration
2024-09-24 18:26:45 +08:00
`float` `1000` `v3.8.0`
2024-09-22 09:54:11 +08:00
2025-03-16 10:45:38 +08:00
动画的时长。默认用于计算动画的速度。也可以通过speed指定速度。
2023-07-11 23:11:05 +08:00
2024-09-21 13:31:16 +08:00
### AnimationInfo.enable
2023-07-11 23:11:05 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true` `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启动画效果。
### AnimationInfo.reverse
2024-09-24 18:26:45 +08:00
`bool` `false` `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启反向动画效果。
2023-07-11 23:11:05 +08:00
2025-03-16 10:45:38 +08:00
### AnimationInfo.speed
`float` `0` `v3.14.0`
动画的速度。当指定speed时, duration将失效。默认为0, 表示不指定速度。
2023-07-14 08:14:00 +08:00
## AnimationInteraction
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [AnimationInfo ](#animationinfo )
2023-07-14 08:14:00 +08:00
> 从 `v3.8.0` 开始支持
交互动画。
2024-09-21 13:31:16 +08:00
### AnimationInteraction.offset
2024-09-24 18:26:45 +08:00
[MLValue ](#mlvalue ) `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
交互的多样式数值。如饼图的扇形选中时的偏移。
2024-09-21 13:31:16 +08:00
### AnimationInteraction.radius
2023-07-14 08:14:00 +08:00
2024-09-24 18:26:45 +08:00
[MLValue ](#mlvalue ) `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
半径的多样式数值。
2023-07-14 08:14:00 +08:00
2024-09-21 13:31:16 +08:00
### AnimationInteraction.width
2024-09-24 18:26:45 +08:00
[MLValue ](#mlvalue ) `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
宽度的多样式数值。
2023-07-14 08:14:00 +08:00
2022-10-11 07:00:35 +08:00
## AnimationStyle
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2022-03-24 21:48:53 +08:00
2025-03-26 08:28:27 +08:00
动画组件, 用于控制图表的动画播放。支持配置五种动画表现: FadeIn( 渐入动画) , FadeOut( 渐出动画) , Change( 变更动画) , Addition( 新增动画) , Interaction( 交互动画) , Exchange( 交换动画) 。 按作用的对象可以分为两类: SerieAnimation( 系列动画) 和DataAnimation( 数据动画) 。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.addition
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[AnimationAddition ](#animationaddition ) `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
数据新增动画配置。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.change
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[AnimationChange ](#animationchange ) `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
数据变更动画配置。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.easting
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[AnimationEasing ](#animationeasing )
2022-03-24 21:48:53 +08:00
2023-05-28 22:42:49 +08:00
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
- `Linear` :
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.enable
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启动画效果。
2022-03-24 21:48:53 +08:00
2025-03-26 08:28:27 +08:00
### AnimationStyle.exchange
[AnimationExchange ](#animationexchange ) `v3.15.0`
交换动画配置。如在排序柱图中有效。
2024-09-21 13:31:16 +08:00
### AnimationStyle.fadeIn
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[AnimationFadeIn ](#animationfadein ) `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
渐入动画配置。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.fadeOut
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[AnimationFadeOut ](#animationfadeout ) `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
渐出动画配置。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.hiding
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[AnimationHiding ](#animationhiding ) `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
数据隐藏动画配置。
2023-11-24 08:29:55 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.interaction
2023-11-24 08:29:55 +08:00
2024-09-24 18:26:45 +08:00
[AnimationInteraction ](#animationinteraction ) `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
交互动画配置。
2023-11-24 08:29:55 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.threshold
2023-11-24 08:29:55 +08:00
2024-09-24 18:26:45 +08:00
`int` `2000`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。
2023-11-24 08:29:55 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.type
2023-11-24 08:29:55 +08:00
2024-09-24 18:26:45 +08:00
[AnimationType ](#animationtype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
动画类型。
2023-11-24 08:29:55 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
- `Default` : 默认。内部会根据实际情况选择一种动画播放方式。
- `LeftToRight` : 从左往右播放动画。
- `BottomToTop` : 从下往上播放动画。
- `InsideOut` : 由内到外播放动画。
- `AlongPath` : 沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。
- `Clockwise` : 顺时针播放动画。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AnimationStyle.unscaledTime
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool` `v3.4.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
## AreaStyle
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ), [ISerieComponent ](#iseriecomponent ), [ISerieDataComponent ](#iseriedatacomponent )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
区域填充样式。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AreaStyle.color
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
区域填充的颜色, 如果toColor不是默认值, 则表示渐变色的起点颜色。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AreaStyle.innerFill
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`bool` `v3.2.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否只填充多边形区域。目前只支持凸多边形。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AreaStyle.opacity
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`float` `0.6f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
2022-07-19 08:22:42 +08:00
2024-09-21 13:31:16 +08:00
### AreaStyle.origin
2022-07-19 08:22:42 +08:00
2024-09-24 18:26:45 +08:00
[AreaStyle.AreaOrigin ](#areastyleareaorigin )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
区域填充的起始位置。
2022-07-20 08:15:27 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-07-19 08:22:42 +08:00
2024-09-21 13:31:16 +08:00
- `Auto` : 填充坐标轴轴线到数据间的区域。
- `Start` : 填充坐标轴底部到数据间的区域。
- `End` : 填充坐标轴顶部到数据间的区域。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AreaStyle.show
2022-07-19 08:22:42 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示区域填充。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AreaStyle.toColor
2022-07-19 08:22:42 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
渐变色的终点颜色。
2022-07-19 08:22:42 +08:00
2024-09-21 13:31:16 +08:00
### AreaStyle.toTop
2022-07-20 08:15:27 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true` `v3.6.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
渐变色是到顶部还是到实际位置。默认为true到顶部。
2022-07-19 08:22:42 +08:00
2024-09-21 13:31:16 +08:00
## ArrowStyle
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2022-07-19 08:22:42 +08:00
2024-09-21 13:31:16 +08:00
### ArrowStyle.color
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`Color32` `Color.clear`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
箭头颜色。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### ArrowStyle.dent
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`float` `3`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
箭头的凹度。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### ArrowStyle.height
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`float` `15`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
箭头高。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### ArrowStyle.offset
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
箭头偏移。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### ArrowStyle.width
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`float` `10`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
箭头宽。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## Axis
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ) / 子类: [AngleAxis ](#angleaxis ), [ParallelAxis ](#parallelaxis ), [RadiusAxis ](#radiusaxis ), [SingleAxis ](#singleaxis ), [XAxis ](#xaxis ), [XAxis3D ](#xaxis3d ), [YAxis ](#yaxis ), [YAxis3D ](#yaxis3d ), [ZAxis3D ](#zaxis3d )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
直角坐标系的坐标轴组件。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.animation
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[AxisAnimation ](#axisanimation )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
坐标轴动画。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.axisLabel
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[AxisLabel ](#axislabel )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
坐标轴刻度标签。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.axisLine
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[AxisLine ](#axisline )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
坐标轴轴线。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.axisName
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[AxisName ](#axisname )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
坐标轴名称。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.axisTick
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[AxisTick ](#axistick )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
坐标轴刻度。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.boundaryGap
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴两边是否留白。只对类目轴有效。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.ceilRate
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`double` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
最大最小值向上取整的倍率。默认为0时自动计算。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.clockwise
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
刻度增长是否按顺时针,默认顺时针。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.data
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`List<string>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
类目数据, 在类目轴( type: 'category')中有效。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.gridIndex
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴所在的 grid 的索引,默认位于第一个 grid。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.icons
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`List<Sprite>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
类目数据对应的图标。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.indicatorLabel
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle ) `v3.4.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
指示器文本的样式。Tooltip为Cross时使用。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.insertDataToHead
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
添加新数据时是在列表的头部还是尾部加入。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.interval
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`double` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
强制设置坐标轴分割间隔。无法在类目轴中使用。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Axis.inverse
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否反向坐标轴。在类目轴中无效。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.logBase
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`float` `10`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
对数轴的底数, 只在对数轴( type:'Log')中有效。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.logBaseE
2022-07-25 07:46:03 +08:00
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。
2022-07-25 07:46:03 +08:00
2026-02-27 21:14:53 +08:00
### Axis.mainAxis
`bool` `false` `v3.15.0`
是否为主轴。当XY轴类型都相同时, 设置为主轴的轴会决定朝向, 如横向柱图和纵向柱图。
2024-09-21 13:31:16 +08:00
### Axis.max
2022-07-25 07:46:03 +08:00
2024-09-21 13:31:16 +08:00
`double`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
设定的坐标轴刻度最大值, 当minMaxType为Custom时有效。
2022-07-25 07:46:03 +08:00
2024-09-21 13:31:16 +08:00
### Axis.maxCache
2024-01-01 22:57:50 +08:00
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
The first data will be remove when the size of axis data is larger then maxCache.
2024-01-01 22:57:50 +08:00
2024-09-21 13:31:16 +08:00
### Axis.min
2024-01-01 22:57:50 +08:00
2024-09-21 13:31:16 +08:00
`double`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
设定的坐标轴刻度最小值, 当minMaxType为Custom时有效。
2024-01-01 22:57:50 +08:00
2024-09-21 13:31:16 +08:00
### Axis.minCategorySpacing
2024-01-01 22:57:50 +08:00
2024-09-24 18:26:45 +08:00
`float` `0` `v3.11.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
类目之间的最小间距。
2024-01-01 22:57:50 +08:00
2024-09-21 13:31:16 +08:00
### Axis.minMaxType
2024-01-01 22:57:50 +08:00
2024-09-24 18:26:45 +08:00
[Axis.AxisMinMaxType ](#axisaxisminmaxtype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴刻度最大最小值显示类型。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
- `Default` : 0-最大值。
- `MinMax` : 最小值-最大值。
- `Custom` : 自定义最小值最大值。
- `MinMaxAuto` : [since("v3.7.0")]最小值-最大值。自动计算合适的值。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.minorSplitLine
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[AxisMinorSplitLine ](#axisminorsplitline ) `v3.2.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
坐标轴次分割线。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.minorTick
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[AxisMinorTick ](#axisminortick ) `v3.2.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
坐标轴次刻度。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Axis.offset
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
### Axis.parallelIndex
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴所在的 parallel 的索引,默认位于第一个 parallel。
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
### Axis.polarIndex
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴所在的 ploar 的索引,默认位于第一个 polar。
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
### Axis.position
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[Axis.AxisPosition ](#axisaxisposition )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴在Grid中的位置。
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
- `Left` : 坐标轴在Grid中的位置
- `Right` : 坐标轴在Grid中的位置
- `Bottom` : 坐标轴在Grid中的位置
- `Top` : 坐标轴在Grid中的位置
- `Center` : 坐标轴在Grid中的位置
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
### Axis.show
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示坐标轴。
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
### Axis.splitArea
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[AxisSplitArea ](#axissplitarea )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
坐标轴分割区域。
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
### Axis.splitLine
2022-05-22 22:17:38 +08:00
2024-09-24 18:26:45 +08:00
[AxisSplitLine ](#axissplitline )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
坐标轴分割线。
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
### Axis.splitNumber
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴的期望的分割段数。默认为0表示自动分割。
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
### Axis.type
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[Axis.AxisType ](#axisaxistype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴类型。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
可选:
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
- `Value` : 数值轴。适用于连续数据。
- `Category` : 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。
- `Log` : 对数轴。适用于对数数据。
- `Time` : 时间轴。适用于连续的时序数据。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## AxisAnimation
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
> 从 `v3.9.0` 开始支持
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
坐标轴动画配置。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisAnimation.duration
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
动画时长(ms)。 默认设置为0时, 会自动获取serie的动画时长。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisAnimation.show
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启动画。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisAnimation.unscaledTime
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## AxisLabel
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [LabelStyle ](#labelstyle )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
坐标轴刻度标签的相关设置。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.inside
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
刻度标签是否朝内,默认朝外。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.interval
2023-05-30 07:32:24 +08:00
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴刻度标签的显示间隔, 在类目轴中有效。0表示显示所有标签, 1表示隔一个隔显示一个标签, 以此类推。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.onZero
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
刻度标签显示在0刻度上。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.showAsPositiveNumber
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
将负数数值显示为正数。一般和`Serie` 的`showAsPositiveNumber` 配合使用。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.showEndLabel
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示最后一个文本。
2022-07-25 07:46:03 +08:00
2024-09-21 13:31:16 +08:00
### AxisLabel.showStartLabel
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示第一个文本。
2022-03-24 21:48:53 +08:00
2025-04-15 22:51:59 +08:00
### AxisLabel.showZeroLabel
`bool` `true` `v3.15.0`
是否显示0刻度文本。
2024-09-21 13:31:16 +08:00
### AxisLabel.textLimit
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[TextLimit ](#textlimit )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
文本限制。
2022-05-22 22:17:38 +08:00
2024-09-21 13:31:16 +08:00
## AxisLine
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [BaseLine ](#baseline )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
坐标轴轴线。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisLine.arrow
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[ArrowStyle ](#arrowstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
轴线箭头。
2022-03-24 21:48:53 +08:00
2026-02-27 21:14:53 +08:00
### AxisLine.endExtendLength
`float`
轴线终点延长线长度。
2024-09-21 13:31:16 +08:00
### AxisLine.onZero
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisLine.showArrow
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示箭头。
2024-04-22 22:25:12 +08:00
2026-02-27 21:14:53 +08:00
### AxisLine.startExtendLength
`float`
轴线起点延长线长度。
2024-09-21 13:31:16 +08:00
## AxisMinorSplitLine
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [BaseLine ](#baseline )
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
> 从 `v3.2.0` 开始支持
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
坐标轴在 grid 区域中的次分隔线。次分割线会对齐次刻度线 minorTick。
2023-08-29 18:30:11 +08:00
2024-09-21 13:31:16 +08:00
### AxisMinorSplitLine.autoColor
2023-08-29 18:30:11 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
自动设置颜色。
2023-08-29 18:30:11 +08:00
2024-09-21 13:31:16 +08:00
### AxisMinorSplitLine.distance
2023-08-29 18:30:11 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
刻度线与轴线的距离。
2023-08-29 18:30:11 +08:00
2024-09-21 13:31:16 +08:00
## AxisMinorTick
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [BaseLine ](#baseline )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
> 从 `v3.2.0` 开始支持
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
坐标轴次刻度相关设置。注意:次刻度无法在类目轴中使用。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisMinorTick.autoColor
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisMinorTick.splitNumber
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`int` `5`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
分隔线之间分割的刻度数。
2022-04-26 08:24:45 +08:00
2024-09-21 13:31:16 +08:00
## AxisName
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2022-04-26 08:24:45 +08:00
2024-09-21 13:31:16 +08:00
坐标轴名称。
2022-04-26 08:24:45 +08:00
2024-09-21 13:31:16 +08:00
### AxisName.labelStyle
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
文本样式。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisName.name
2023-05-30 07:32:24 +08:00
2024-09-21 13:31:16 +08:00
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴名称。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisName.onZero
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`bool` `v3.1.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴名称的位置是否保持和Y轴0刻度一致。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisName.show
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示坐标轴名称。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
## AxisSplitArea
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
坐标轴在 grid 区域中的分隔区域,默认不显示。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisSplitArea.color
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`List<Color32>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisSplitArea.show
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示分隔区域。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
## AxisSplitLine
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [BaseLine ](#baseline )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
坐标轴在 grid 区域中的分隔线。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisSplitLine.autoColor
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
自动设置颜色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisSplitLine.distance
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
刻度线与轴线的距离。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisSplitLine.interval
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴分隔线的显示间隔。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisSplitLine.showEndLine
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true` `v3.3.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示最后一条分割线。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisSplitLine.showStartLine
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true` `v3.3.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示第一条分割线。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisSplitLine.showZLine
2022-05-05 13:23:33 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true` `v3.11.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示Z轴部分分割线。一般用于3D坐标系。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
## AxisTheme
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [BaseAxisTheme ](#baseaxistheme )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## AxisTick
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [BaseLine ](#baseline )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
坐标轴刻度相关设置。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisTick.alignWithLabel
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisTick.autoColor
2022-03-26 21:34:38 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2022-03-26 21:34:38 +08:00
2024-09-21 13:31:16 +08:00
### AxisTick.distance
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
刻度线与轴线的距离。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisTick.inside
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴刻度是否朝内,默认朝外。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### AxisTick.showEndTick
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示最后一个刻度。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisTick.showStartTick
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示第一个刻度。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### AxisTick.splitNumber
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
分隔线之间分割的刻度数。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## Background
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
背景组件。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Background.autoColor
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
当background组件开启时, 是否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时, 用imageColor作为颜色。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Background.borderStyle
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[BorderStyle ](#borderstyle ) `v3.10.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
背景边框样式。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Background.image
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`Sprite`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
背景图。
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
### Background.imageColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
背景图颜色。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Background.imageHeight
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`float` `0` `v3.10.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
背景图高度。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Background.imageType
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Image.Type`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
背景图填充类型。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Background.imageWidth
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`float` `0` `v3.10.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
背景图宽度。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Background.show
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否启用背景组件。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
## Bar
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Serie ](#serie ), [INeedSerieContainer ](#ineedseriecontainer )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## BaseAxisTheme
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ComponentTheme ](#componenttheme ) / 子类: [AxisTheme ](#axistheme ), [RadiusAxisTheme ](#radiusaxistheme ), [AngleAxisTheme ](#angleaxistheme ), [PolarAxisTheme ](#polaraxistheme ), [RadarAxisTheme ](#radaraxistheme )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.lineColor
2022-04-26 08:24:45 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴线颜色。
2022-04-26 08:24:45 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.lineLength
2022-04-26 08:24:45 +08:00
2024-09-24 18:26:45 +08:00
`float` `0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴线长。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.lineType
2022-04-26 08:24:45 +08:00
2024-09-24 18:26:45 +08:00
[LineStyle.Type ](#linestyletype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴线类型。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
- `Solid` : 实线
- `Dashed` : 虚线
- `Dotted` : 点线
- `DashDot` : 点划线
- `DashDotDot` : 双点划线
- `None` : 双点划线
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.lineWidth
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`float` `1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴线宽。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.minorSplitLineColor
2022-06-15 07:36:05 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
次分割线线颜色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.splitAreaColors
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`List<Color32>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴分隔区域的颜色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.splitLineColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
分割线线颜色。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.splitLineLength
2022-06-15 07:36:05 +08:00
2024-09-24 18:26:45 +08:00
`float` `0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
分割线线长。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.splitLineType
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[LineStyle.Type ](#linestyletype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
分割线线类型。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
- `Solid` : 实线
- `Dashed` : 虚线
- `Dotted` : 点线
- `DashDot` : 点划线
- `DashDotDot` : 双点划线
- `None` : 双点划线
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.splitLineWidth
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`float` `1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
分割线线宽。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.tickColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴线颜色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.tickLength
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`float` `5f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
刻度线线长。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### BaseAxisTheme.tickWidth
2023-11-01 22:41:47 +08:00
2024-09-24 18:26:45 +08:00
`float` `1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
刻度线线宽。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## BaseLine
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ) / 子类: [AxisLine ](#axisline ), [AxisMinorSplitLine ](#axisminorsplitline ), [AxisMinorTick ](#axisminortick ), [AxisSplitLine ](#axissplitline ), [AxisTick ](#axistick )
2022-11-20 22:25:19 +08:00
2024-09-21 13:31:16 +08:00
线条基础配置。
2022-11-20 22:25:19 +08:00
2024-09-21 13:31:16 +08:00
### BaseLine.lineStyle
2022-11-20 22:25:19 +08:00
2024-09-24 18:26:45 +08:00
[LineStyle ](#linestyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
线条样式
2022-11-20 22:25:19 +08:00
2024-09-21 13:31:16 +08:00
### BaseLine.show
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示坐标轴轴线。
2022-06-25 11:45:22 +08:00
2024-09-21 13:31:16 +08:00
## BaseScatter
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Serie ](#serie ), [INeedSerieContainer ](#ineedseriecontainer ) / 子类: [EffectScatter ](#effectscatter ), [Scatter ](#scatter )
2023-07-27 07:58:10 +08:00
2024-09-21 13:31:16 +08:00
## BaseSerie
2023-07-27 07:58:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 子类: [Serie ](#serie )
2023-07-27 07:58:10 +08:00
2024-09-21 13:31:16 +08:00
## BlurStyle
2023-07-27 07:58:10 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [StateStyle ](#statestyle ), [ISerieComponent ](#iseriecomponent ), [ISerieDataComponent ](#iseriedatacomponent )
2023-07-27 07:58:10 +08:00
2024-09-21 13:31:16 +08:00
> 从 `v3.2.0` 开始支持
2023-07-27 07:58:10 +08:00
2024-09-21 13:31:16 +08:00
淡出状态样式。
2023-07-27 07:58:10 +08:00
2024-09-21 13:31:16 +08:00
## BorderStyle
2022-06-25 11:45:22 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2022-06-25 11:45:22 +08:00
2024-09-21 13:31:16 +08:00
> 从 `v3.10.0` 开始支持
2022-06-25 11:45:22 +08:00
2024-09-21 13:31:16 +08:00
边框样式。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### BorderStyle.borderColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框颜色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### BorderStyle.borderWidth
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框宽度。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### BorderStyle.cornerRadius
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
圆角半径。用数组分别指定4个圆角半径( 顺时针左上, 右上, 右下, 左下) 。当为(1,1,1,1)时为全圆角。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### BorderStyle.roundedCorner
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示圆角。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### BorderStyle.show
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示边框。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
## CalendarCoord
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [CoordSystem ](#coordsystem ), [IUpdateRuntimeData ](#iupdateruntimedata ), [ISerieContainer ](#iseriecontainer )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
## Candlestick
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Serie ](#serie ), [INeedSerieContainer ](#ineedseriecontainer )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## ChartText
2023-09-12 22:42:36 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2023-09-12 22:42:36 +08:00
2024-09-21 13:31:16 +08:00
## ChildComponent
2023-09-12 22:42:36 +08:00
2024-11-30 23:45:28 +08:00
class in XCharts.Runtime / 子类: [AnimationStyle ](#animationstyle ), [AxisAnimation ](#axisanimation ), [AxisName ](#axisname ), [AxisSplitArea ](#axissplitarea ), [AreaStyle ](#areastyle ), [ArrowStyle ](#arrowstyle ), [BaseLine ](#baseline ), [BorderStyle ](#borderstyle ), [IconStyle ](#iconstyle ), [ImageStyle ](#imagestyle ), [ItemStyle ](#itemstyle ), [Level ](#level ), [LevelStyle ](#levelstyle ), [LineArrow ](#linearrow ), [LineStyle ](#linestyle ), [Location ](#location ), [MLValue ](#mlvalue ), [MarqueeStyle ](#marqueestyle ), [Padding ](#padding ), [StageColor ](#stagecolor ), [SymbolStyle ](#symbolstyle ), [TextLimit ](#textlimit ), [TextStyle ](#textstyle ), [CommentItem ](#commentitem ), [CommentMarkStyle ](#commentmarkstyle ), [LabelLine ](#labelline ), [LabelStyle ](#labelstyle ), [MarkAreaData ](#markareadata ), [MarkLineData ](#marklinedata ), [StateStyle ](#statestyle ), [VisualMapRange ](#visualmaprange ), [ViewControl ](#viewcontrol ), [UIComponentTheme ](#uicomponenttheme ), [SerieData ](#seriedata ), [SerieDataLink ](#seriedatalink ), [ComponentTheme ](#componenttheme ), [SerieTheme ](#serietheme ), [ThemeStyle ](#themestyle )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## Comment
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ), [IPropertyChanged ](#ipropertychanged )
2022-03-24 21:48:53 +08:00
2025-03-26 08:28:27 +08:00
> 从 `v3.15.0` 开始支持
图表注解组件。用于标注图表中的特殊信息。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### Comment.items
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`List<CommentItem>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
注解项。每个注解组件可以设置多个注解项。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Comment.labelStyle
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
所有组件的文本样式。
2023-05-28 22:42:49 +08:00
2025-03-26 08:28:27 +08:00
### Comment.layer
[CommentLayer ](#commentlayer ) `v3.15.0`
注解的显示层级。
可选:
- `Lower` : 注解在系列下方。
- `Upper` : 注解在系列上方。
2024-09-21 13:31:16 +08:00
### Comment.markStyle
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[CommentMarkStyle ](#commentmarkstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
所有组件的文本样式。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### Comment.show
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示注解组件。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## CommentItem
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
注解项。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### CommentItem.content
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
注解的文本内容。支持模板参数, 可以参考Tooltip的itemFormatter。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### CommentItem.labelStyle
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
注解项的文本样式。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### CommentItem.location
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[Location ](#location ) `v3.5.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
Comment显示的位置。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### CommentItem.markRect
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Rect`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
注解区域。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### CommentItem.markStyle
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[CommentMarkStyle ](#commentmarkstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
注解标记区域样式。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### CommentItem.show
2024-09-11 08:12:14 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示当前注解项。
2024-09-11 08:12:14 +08:00
2024-09-21 13:31:16 +08:00
## CommentMarkStyle
2024-09-11 08:12:14 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
注解项区域样式。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### CommentMarkStyle.lineStyle
2022-07-25 07:46:03 +08:00
2024-09-24 18:26:45 +08:00
[LineStyle ](#linestyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
线条样式。
2022-07-25 07:46:03 +08:00
2024-09-21 13:31:16 +08:00
### CommentMarkStyle.show
2022-07-25 07:46:03 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示当前注解项。
2022-07-25 07:46:03 +08:00
2024-09-21 13:31:16 +08:00
## ComponentTheme
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ) / 子类: [BaseAxisTheme ](#baseaxistheme ), [DataZoomTheme ](#datazoomtheme ), [LegendTheme ](#legendtheme ), [SubTitleTheme ](#subtitletheme ), [TitleTheme ](#titletheme ), [TooltipTheme ](#tooltiptheme ), [VisualMapTheme ](#visualmaptheme )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### ComponentTheme.font
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Font`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
字体。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### ComponentTheme.fontSize
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`int` `18`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本字体大小。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### ComponentTheme.textBackgroundColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本颜色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### ComponentTheme.textColor
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
`Color`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本颜色。
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
### ComponentTheme.tMPFont
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
`TMP_FontAsset`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
字体。
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
## CoordSystem
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ) / 子类: [RadarCoord ](#radarcoord ), [CalendarCoord ](#calendarcoord ), [GridCoord ](#gridcoord ), [GridCoord3D ](#gridcoord3d ), [ParallelCoord ](#parallelcoord ), [PolarCoord ](#polarcoord ), [SingleAxisCoord ](#singleaxiscoord )
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
坐标系系统。
2023-12-09 23:22:00 +08:00
2024-09-21 13:31:16 +08:00
## DataZoom
2022-05-05 13:23:33 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ), [IUpdateRuntimeData ](#iupdateruntimedata )
2022-05-05 13:23:33 +08:00
2024-09-21 13:31:16 +08:00
DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。
2022-05-05 13:23:33 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.areaStyle
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[AreaStyle ](#areastyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
阴影填充样式。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.backgroundColor
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件的背景颜色。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.borderColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框颜色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.borderWidth
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框宽。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.bottom
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器下侧的距离。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.enable
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示缩放区域。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.end
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据窗口范围的结束百分比。范围是: 0 ~ 100。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.endLock
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool` `v3.6.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
固定结束值,不让改变。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.fillerColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据区域颜色。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.filterMode
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[DataZoom.FilterMode ](#datazoomfiltermode )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据过滤类型。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
- `Filter` : 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
- `WeakFilter` : 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。
- `Empty` : 当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。
- `None` : 不过滤数据,只改变数轴范围。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.labelStyle
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
文本标签格式。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.left
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器左侧的距离。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.lineStyle
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[LineStyle ](#linestyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
阴影线条样式。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.marqueeStyle
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
[MarqueeStyle ](#marqueestyle ) `v3.5.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
选取框样式。
2022-07-25 07:46:03 +08:00
2026-02-27 21:14:53 +08:00
### DataZoom.minZoomRatio
2022-07-25 07:46:03 +08:00
2026-02-27 21:14:53 +08:00
`float` `0.2f`
2024-09-22 09:54:11 +08:00
2026-02-27 21:14:53 +08:00
缩放区域组件的最小缩放比例, 范围0f-1f。
2022-07-25 07:46:03 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.orient
2022-07-25 07:46:03 +08:00
2024-09-24 18:26:45 +08:00
[Orient ](#orient )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-07-25 07:46:03 +08:00
2024-09-21 13:31:16 +08:00
- `Horizonal` : 水平
- `Vertical` : 垂直
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.rangeMode
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
[DataZoom.RangeMode ](#datazoomrangemode )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
取绝对值还是百分比。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
可选:
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
- `//Value` : The value type of start and end.取值类型
- `Percent` : 百分比。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.right
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器右侧的距离。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.scrollSensitivity
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`float` `1.1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.showDataShadow
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示数据阴影。数据阴影可以简单地反应数据走势。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.showDetail
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示detail, 即拖拽时候显示详细数值信息。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.start
2022-04-26 08:24:45 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据窗口范围的起始百分比。范围是: 0 ~ 100。
2022-04-26 08:24:45 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.startLock
2022-04-26 08:24:45 +08:00
2024-09-21 13:31:16 +08:00
`bool` `v3.6.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
固定起始值,不让改变。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.supportInside
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.supportInsideDrag
2023-05-28 22:42:49 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否支持坐标系内拖拽
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.supportInsideScroll
2022-03-24 21:48:53 +08:00
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否支持坐标系内滚动
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.supportMarquee
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否支持框选。提供一个选框进行数据区域缩放。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.supportSlider
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.top
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器上侧的距离。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.xAxisIndexs
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`List<int>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
控制的 x 轴索引列表。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.yAxisIndexs
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`List<int>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
控制的 y 轴索引列表。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoom.zoomLock
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否锁定选择区域(或叫做数据窗口)的大小。 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
## DataZoomTheme
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ComponentTheme ](#componenttheme )
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoomTheme.backgroundColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
背景颜色。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoomTheme.borderColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框颜色。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoomTheme.borderWidth
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框线宽。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoomTheme.dataAreaColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据阴影的填充颜色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### DataZoomTheme.dataLineColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据阴影的线条颜色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### DataZoomTheme.dataLineWidth
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据阴影线宽。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### DataZoomTheme.fillerColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据区域颜色。
## DebugInfo
class in XCharts.Runtime
### DebugInfo.foldSeries
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否在Inspector上折叠Serie。
### DebugInfo.labelStyle
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-21 13:31:16 +08:00
### DebugInfo.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示Debug组件。
### DebugInfo.showAllChartObject
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否在Hierarchy试图显示所有chart下的节点。
### DebugInfo.showDebugInfo
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-21 13:31:16 +08:00
## EffectScatter
class in XCharts.Runtime / 继承自: [BaseScatter ](#basescatter )
## EmphasisStyle
class in XCharts.Runtime / 继承自: [StateStyle ](#statestyle ), [ISerieComponent ](#iseriecomponent ), [ISerieDataComponent ](#iseriedatacomponent )
> 从 `v3.2.0` 开始支持
高亮状态样式。
### EmphasisStyle.blurScope
2024-09-24 18:26:45 +08:00
[EmphasisStyle.BlurScope ](#emphasisstyleblurscope )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
在开启focus的时候, 可以通过blurScope配置淡出的范围。
可选:
- `GridCoord` : 淡出范围为坐标系,默认使用该配置。
- `Series` : 淡出范围为系列。
- `Global` : 淡出范围为全局。
### EmphasisStyle.focus
2024-09-24 18:26:45 +08:00
[EmphasisStyle.FocusType ](#emphasisstylefocustype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。
可选:
- `None` : 不淡出其它图形,默认使用该配置。
- `Self` : 只聚焦(不淡出)当前高亮的数据的图形。
- `Series` : 聚焦当前高亮的数据所在的系列的所有图形。
### EmphasisStyle.scale
2024-09-24 18:26:45 +08:00
`float` `1.1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
高亮时的缩放倍数。
## EndLabelStyle
class in XCharts.Runtime / 继承自: [LabelStyle ](#labelstyle )
## GridCoord
class in XCharts.Runtime / 继承自: [CoordSystem ](#coordsystem ), [IUpdateRuntimeData ](#iupdateruntimedata ), [ISerieContainer ](#iseriecontainer )
Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
### GridCoord.backgroundColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
网格背景色,默认透明。
### GridCoord.borderColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
网格边框颜色。
### GridCoord.borderWidth
2024-09-24 18:26:45 +08:00
`float` `0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
网格边框宽。
### GridCoord.bottom
2024-09-24 18:26:45 +08:00
`float` `0.14f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器下侧的距离。
### GridCoord.layoutIndex
2024-09-24 18:26:45 +08:00
`int` `-1` `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
网格所属的网格布局组件的索引。默认为-1, 表示不属于任何网格布局组件。当设置了该值时, left、right、top、bottom属性将失效。
### GridCoord.left
2024-09-24 18:26:45 +08:00
`float` `0.11f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器左侧的距离。
### GridCoord.right
2024-09-24 18:26:45 +08:00
`float` `0.08f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器右侧的距离。
### GridCoord.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示直角坐标系网格。
### GridCoord.showBorder
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示网格边框。
### GridCoord.top
2024-09-24 18:26:45 +08:00
`float` `0.22f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器上侧的距离。
## GridCoord3D
class in XCharts.Runtime / 继承自: [CoordSystem ](#coordsystem ), [IUpdateRuntimeData ](#iupdateruntimedata ), [ISerieContainer ](#iseriecontainer )
> 从 `v3.11.0` 开始支持
Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
### GridCoord3D.bottom
2024-09-24 18:26:45 +08:00
`float` `0.15f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器下侧的距离。
### GridCoord3D.boxDepth
2024-09-24 18:26:45 +08:00
`float` `0.2f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标系的深度。
### GridCoord3D.boxHeight
2024-09-24 18:26:45 +08:00
`float` `0.4f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标系的高度。
### GridCoord3D.boxWidth
2024-09-24 18:26:45 +08:00
`float` `0.55f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标系的宽度。
### GridCoord3D.left
2024-09-24 18:26:45 +08:00
`float` `0.15f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器左侧的距离。
### GridCoord3D.right
2024-09-24 18:26:45 +08:00
`float` `0.2f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器右侧的距离。
### GridCoord3D.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示直角坐标系网格。
### GridCoord3D.showBorder
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示网格边框。
### GridCoord3D.top
2024-09-24 18:26:45 +08:00
`float` `0.3f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器上侧的距离。
### GridCoord3D.viewControl
2024-09-24 18:26:45 +08:00
[ViewControl ](#viewcontrol )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
3D视角控制组件。
2024-09-21 13:31:16 +08:00
### GridCoord3D.xYExchanged
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-21 13:31:16 +08:00
## GridLayout
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ), [IUpdateRuntimeData ](#iupdateruntimedata )
> 从 `v3.8.0` 开始支持
网格布局组件。用于管理多个`GridCoord` 的布局,可以通过`row` 和`column` 来控制网格的行列数。
### GridLayout.bottom
2024-09-24 18:26:45 +08:00
`float` `0.12f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器下侧的距离。
### GridLayout.column
2024-09-24 18:26:45 +08:00
`int` `2`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
网格布局的列数。
### GridLayout.inverse
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否反转网格布局。
### GridLayout.left
2024-09-24 18:26:45 +08:00
`float` `0.1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器左侧的距离。
### GridLayout.right
2024-09-24 18:26:45 +08:00
`float` `0.08f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器右侧的距离。
### GridLayout.row
2024-09-24 18:26:45 +08:00
`int` `2`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
网格布局的行数。
### GridLayout.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示直角坐标系网格。
### GridLayout.spacing
2024-09-24 18:26:45 +08:00
`Vector2` `Vector2.zero`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
网格布局的间距。
### GridLayout.top
2024-09-24 18:26:45 +08:00
`float` `0.22f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器上侧的距离。
## Heatmap
class in XCharts.Runtime / 继承自: [Serie ](#serie ), [INeedSerieContainer ](#ineedseriecontainer )
### Heatmap.heatmapType
2024-09-24 18:26:45 +08:00
[HeatmapType ](#heatmaptype ) `v3.3.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
热力图类型。通过颜色映射划分。
可选:
- `Data` : 数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。
- `Count` : 个数映射型。统计数据在划分的格子中出现的次数, 作为颜色映射。要求数据至少有2个维度数据。
## IconStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
### IconStyle.align
2024-09-24 18:26:45 +08:00
[Align ](#align )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
水平方向对齐方式。
可选:
- `Center` : 对齐方式。文本,图标,图形等的对齐方式。
- `Left` : 对齐方式。文本,图标,图形等的对齐方式。
- `Right` : 对齐方式。文本,图标,图形等的对齐方式。
### IconStyle.autoHideWhenLabelEmpty
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
当label内容为空时是否自动隐藏图标
### IconStyle.color
`Color`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图标颜色。
### IconStyle.height
2024-09-24 18:26:45 +08:00
`float` `20`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图标高。
### IconStyle.layer
2024-09-24 18:26:45 +08:00
[IconStyle.Layer ](#iconstylelayer )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
显示在上层还是在下层。
可选:
- `UnderText` : The icon is display under the label text. 图标在标签文字下
- `AboveText` : The icon is display above the label text. 图标在标签文字上
### IconStyle.offset
`Vector3`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图标偏移。
### IconStyle.show
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示图标。
### IconStyle.sprite
`Sprite`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图标的图片。
### IconStyle.type
`Image.Type`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图片的显示类型。
### IconStyle.width
2024-09-24 18:26:45 +08:00
`float` `20`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图标宽。
## ImageStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ), [ISerieComponent ](#iseriecomponent ), [ISerieDataComponent ](#iseriedatacomponent )
### ImageStyle.autoColor
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否自动颜色。
### ImageStyle.color
`Color`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图标颜色。
### ImageStyle.height
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图标高。
### ImageStyle.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示图标。
### ImageStyle.sprite
`Sprite`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图标的图片。
### ImageStyle.type
`Image.Type`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图片的显示类型。
### ImageStyle.width
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图标宽。
## Indicator
class in XCharts.Runtime
雷达图的指示器,用来指定雷达图中的多个变量(维度)。
### Indicator.axisLine
2024-09-24 18:26:45 +08:00
[AxisLine ](#axisline )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
轴线。
2024-09-21 13:31:16 +08:00
### Indicator.axisName
2024-09-24 18:26:45 +08:00
[AxisName ](#axisname )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
雷达图每个指示器名称的配置项。
2024-09-21 13:31:16 +08:00
### Indicator.ceilRate
2024-09-24 18:26:45 +08:00
`double` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
最大最小值向上取整的倍率。默认为0时自动计算。
### Indicator.center
`float[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比, 设置成百分比时第一项是相对于容器宽度, 第二项是相对于容器高度。
### Indicator.connectCenter
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数值是否连线到中心点。
### Indicator.gridIndex
2024-09-24 18:26:45 +08:00
`int` `-1` `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。
### Indicator.indicator
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示指示器。
### Indicator.indicatorGap
2024-09-24 18:26:45 +08:00
`float` `10`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
指示器和雷达的间距。
### Indicator.indicatorList
`List<Indicator>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
指示器列表。
### Indicator.isAxisTooltip
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否Tooltip显示轴线上的所有数据。
### Indicator.lineGradient
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数值线段是否需要渐变。
### Indicator.max
`double`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
指示器的最大值,默认为 0 无限制。
### Indicator.min
`double`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
指示器的最小值,默认为 0 无限制。
### Indicator.name
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
指示器名称。
### Indicator.outRangeColor
2024-09-24 18:26:45 +08:00
`Color32` `Color.red`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数值超出范围时显示的颜色。
### Indicator.positionType
`PositionType`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
显示位置类型。
### Indicator.radius
2024-09-24 18:26:45 +08:00
`float` `100`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
雷达图的半径。
### Indicator.range
`double[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
正常值范围。当数值不在这个范围时,会自动变更显示颜色。
### Indicator.shape
`Shape`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
雷达图绘制类型,支持 'Polygon' 和 'Circle'。
### Indicator.show
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示雷达坐标系组件。
### Indicator.splitArea
2024-09-24 18:26:45 +08:00
[AxisSplitArea ](#axissplitarea )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
分割区域。
2024-09-21 13:31:16 +08:00
### Indicator.splitLine
2024-09-24 18:26:45 +08:00
[AxisSplitLine ](#axissplitline )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
分割线。
2024-09-21 13:31:16 +08:00
### Indicator.splitNumber
2024-09-24 18:26:45 +08:00
`int` `5`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
指示器轴的分割段数。
### Indicator.startAngle
`float` `v3.4.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
起始角度。和时钟一样, 12点钟位置是0度, 顺时针到360度。
## INeedSerieContainer
class in XCharts.Runtime / 子类: [Bar ](#bar ), [SimplifiedBar ](#simplifiedbar ), [Candlestick ](#candlestick ), [SimplifiedCandlestick ](#simplifiedcandlestick ), [Heatmap ](#heatmap ), [Line ](#line ), [SimplifiedLine ](#simplifiedline ), [Parallel ](#parallel ), [Radar ](#radar ), [BaseScatter ](#basescatter )
## IPropertyChanged
class in XCharts.Runtime / 子类: [Location ](#location ), [Comment ](#comment ), [Legend ](#legend ), [Title ](#title )
属性变更接口
## ISerieComponent
class in XCharts.Runtime / 子类: [AreaStyle ](#areastyle ), [ImageStyle ](#imagestyle ), [LineArrow ](#linearrow ), [LabelLine ](#labelline ), [LabelStyle ](#labelstyle ), [BlurStyle ](#blurstyle ), [EmphasisStyle ](#emphasisstyle ), [SelectStyle ](#selectstyle ), [TitleStyle ](#titlestyle )
可用于Serie的组件。
## ISerieContainer
class in XCharts.Runtime / 子类: [RadarCoord ](#radarcoord ), [CalendarCoord ](#calendarcoord ), [GridCoord ](#gridcoord ), [GridCoord3D ](#gridcoord3d ), [ParallelCoord ](#parallelcoord ), [PolarCoord ](#polarcoord )
## ISerieDataComponent
class in XCharts.Runtime / 子类: [AreaStyle ](#areastyle ), [ImageStyle ](#imagestyle ), [ItemStyle ](#itemstyle ), [LineStyle ](#linestyle ), [SerieSymbol ](#seriesymbol ), [LabelLine ](#labelline ), [LabelStyle ](#labelstyle ), [BlurStyle ](#blurstyle ), [EmphasisStyle ](#emphasisstyle ), [SelectStyle ](#selectstyle ), [TitleStyle ](#titlestyle )
可用于SerieData的组件。
## ISimplifiedSerie
class in XCharts.Runtime / 子类: [SimplifiedBar ](#simplifiedbar ), [SimplifiedCandlestick ](#simplifiedcandlestick ), [SimplifiedLine ](#simplifiedline )
## ItemStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ), [ISerieDataComponent ](#iseriedatacomponent )
图形样式。
### ItemStyle.backgroundColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据项背景颜色。
2025-03-26 08:28:27 +08:00
### ItemStyle.backgroundGap
`float` `v3.15.0`
数据项背景间隙。
2024-09-21 13:31:16 +08:00
### ItemStyle.backgroundWidth
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据项背景宽度。
### ItemStyle.borderColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框的颜色。
### ItemStyle.borderColor0
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框的颜色。
### ItemStyle.borderGap
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框间隙。
### ItemStyle.borderToColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框的渐变色。
### ItemStyle.borderWidth
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框宽。
### ItemStyle.centerColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
中心区域颜色。
### ItemStyle.centerGap
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
中心区域间隙。
### ItemStyle.color
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据项颜色。
### ItemStyle.color0
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据项颜色。
### ItemStyle.cornerRadius
`float[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
圆角半径。用数组分别指定4个圆角半径( 顺时针左上, 右上, 右下, 左下) 。
### ItemStyle.itemFormatter
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
提示框单项的字符串模版格式器。具体配置参考`Tooltip` 的`formatter`
### ItemStyle.itemMarker
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
提示框单项的字符标志。用在Tooltip中。
### ItemStyle.markColor
`Color32` `v3.6.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Serie的标识颜色。仅用于Legend和Tooltip的展示, 不影响绘制颜色, 默认为clear。
### ItemStyle.numericFormatter
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。<br/> 数字格式使用Axx的形式: A是格式说明符的单字符, 支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明, 从0-99。如: F1, E2<br/> 日期格式:以`date` 开头, 用来格式化DateTime, 常见格式有: yyyy年, MM月, dd日, HH时, mm分, ss秒, fff毫秒。如: date:yyyy-MM-dd HH:mm:ss<br/> 时间格式:以`time` 开头, 用来格式化TimeSpan, 常见格式有: d日, HH时, mm分, ss秒, fffffff小数部分。 需要Unity2018以上版本才支持格式化, 并且里面的字符要转义。如: time:d\.HH\:mm\:ss<br/> 数值格式化参考: https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings <br/> 日期格式化参考: https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings <br/> 时间格式化参考: https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings <br/> 注意: date和time格式需要`v3.12.0` 以上版本才支持。
### ItemStyle.opacity
2024-09-24 18:26:45 +08:00
`float` `1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
### ItemStyle.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否启用。
### ItemStyle.toColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
渐变色的颜色1。
### ItemStyle.toColor2
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
渐变色的颜色2。只在折线图中有效。
## IUpdateRuntimeData
class in XCharts.Runtime / 子类: [SingleAxis ](#singleaxis ), [DataZoom ](#datazoom ), [CalendarCoord ](#calendarcoord ), [GridCoord ](#gridcoord ), [GridLayout ](#gridlayout ), [GridCoord3D ](#gridcoord3d ), [ParallelCoord ](#parallelcoord )
## LabelLine
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ), [ISerieComponent ](#iseriecomponent ), [ISerieDataComponent ](#iseriedatacomponent )
标签的引导线
### LabelLine.endSymbol
2024-09-24 18:26:45 +08:00
[SymbolStyle ](#symbolstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
结束点的图形标记。
2024-09-21 13:31:16 +08:00
### LabelLine.lineAngle
2024-09-24 18:26:45 +08:00
`float` `60`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
视觉引导线的固定角度。对折线和曲线有效。在Pie中无效。
### LabelLine.lineColor
2024-09-24 18:26:45 +08:00
`Color32` `Color32(0,0,0,0)`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
视觉引导线颜色。默认和serie一致取自调色板。
### LabelLine.lineEndX
2024-09-24 18:26:45 +08:00
`float` `0f` `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
视觉引导线结束点的固定x位置。当不为0时, 会代替lineLength2设定引导线的x位置。
### LabelLine.lineGap
2024-09-24 18:26:45 +08:00
`float` `1.0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
视觉引导线和容器的间距。
### LabelLine.lineLength1
2024-09-24 18:26:45 +08:00
`float` `25f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
视觉引导线第一段的长度。
### LabelLine.lineLength2
2024-09-24 18:26:45 +08:00
`float` `15f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
视觉引导线第二段的长度。
### LabelLine.lineType
2024-09-24 18:26:45 +08:00
[LabelLine.LineType ](#labellinelinetype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
视觉引导线类型。
可选:
- `BrokenLine` : 折线
- `Curves` : 曲线
- `HorizontalLine` : 水平线
### LabelLine.lineWidth
2024-09-24 18:26:45 +08:00
`float` `1.0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
视觉引导线的宽度。
### LabelLine.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示视觉引导线。
### LabelLine.startSymbol
2024-09-24 18:26:45 +08:00
[SymbolStyle ](#symbolstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
起始点的图形标记。
2024-09-21 13:31:16 +08:00
## LabelStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ), [ISerieComponent ](#iseriecomponent ), [ISerieDataComponent ](#iseriedatacomponent ) / 子类: [AxisLabel ](#axislabel ), [EndLabelStyle ](#endlabelstyle ), [TitleStyle ](#titlestyle )
图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
### LabelStyle.autoOffset
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启自动偏移。当开启时, Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。
### LabelStyle.autoRotate
2024-09-24 18:26:45 +08:00
`bool` `false` `v3.6.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否自动旋转。
### LabelStyle.background
2024-09-24 18:26:45 +08:00
[ImageStyle ](#imagestyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
背景图样式。
2024-09-21 13:31:16 +08:00
### LabelStyle.distance
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
距离轴线的距离。
2025-03-26 08:28:27 +08:00
### LabelStyle.fixedX
`float` `0` `v3.15.0`
固定的X值。不为0时, 会固定在指定的X值上。
### LabelStyle.fixedY
`float` `0` `v3.15.0`
固定的Y值。不为0时, 会固定在指定的Y值上。
2024-09-21 13:31:16 +08:00
### LabelStyle.formatter
`string`
2024-09-22 09:54:11 +08:00
2025-03-16 10:45:38 +08:00
标签内容字符串模版格式器。支持用 \n 换行。部分组件的格式器会不生效。<br/> 模板通配符有以下这些,部分只适用于固定的组件:<br/> `\{.\}` :圆点标记。<br/> `\{a\}` :系列名。<br/> `\{b\}` : X轴类目名或数据名。<br/> `\{c\}` :数据值。<br/> `\{d\}` :百分比。<br/> `\{e\}` :数据名。<br/> `\{f\}` :数据和。<br/> `\{g\}` :数据总个数。<br/> `\{h\}` :十六进制颜色值。<br/> `\{y\}` : Y轴的类目名。<br/> `\{value\}` :坐标轴或图例的值。<br/> `\{index\}` :坐标轴编号。<br/> 以下通配符适用UITable组件: <br/> `\{name\}` : 表格的行名。<br/> `\{index\}` :表格的行号。<br/> 以下通配符适用UIStatistc组件: <br/> `\{title\}` :标题文本。<br/> `\{dd\}` :天。<br/> `\{hh\}` :小时。<br/> `\{mm\}` :分钟。<br/> `\{ss\}` :秒。<br/> `\{fff\}` :毫秒。<br/> `\{d\}` :天。<br/> `\{h\}` :小时。<br/> `\{m\}` :分钟。<br/> `\{s\}` :秒。<br/> `\{f\}` :毫秒。<br/> 示例:“\{b\}:\{c\}”
2024-09-21 13:31:16 +08:00
### LabelStyle.height
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标签的高度。一般不用指定,不指定时则自动是文字的高度。
### LabelStyle.icon
2024-09-24 18:26:45 +08:00
[IconStyle ](#iconstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
图标样式。
2024-09-21 13:31:16 +08:00
### LabelStyle.numericFormatter
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。<br/> 数字格式使用Axx的形式: A是格式说明符的单字符, 支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明, 从0-99。如: F1, E2<br/> 日期格式:以`date` 开头, 用来格式化DateTime, 常见格式有: yyyy年, MM月, dd日, HH时, mm分, ss秒, fff毫秒。如: date:yyyy-MM-dd HH:mm:ss<br/> 时间格式:以`time` 开头, 用来格式化TimeSpan, 常见格式有: d日, HH时, mm分, ss秒, fffffff小数部分。 需要Unity2018以上版本才支持格式化, 并且里面的字符要转义。如: time:d\.HH\:mm\:ss<br/> 数值格式化参考: https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings <br/> 日期格式化参考: https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings <br/> 时间格式化参考: https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings <br/> 注意: date和time格式需要`v3.12.0` 以上版本才支持。
### LabelStyle.offset
`Vector3`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
距离图形元素的偏移
### LabelStyle.Position
`[SerializeField]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标签的位置。
### LabelStyle.rotate
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本的旋转。
### LabelStyle.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示文本标签。
### LabelStyle.textPadding
2024-09-24 18:26:45 +08:00
[TextPadding ](#textpadding )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
文本的边距。
2024-09-21 13:31:16 +08:00
### LabelStyle.textStyle
2024-09-24 18:26:45 +08:00
[TextStyle ](#textstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
文本样式。
2024-09-21 13:31:16 +08:00
### LabelStyle.width
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标签的宽度。一般不用指定,不指定时则自动是文字的宽度。
## Lang
class in XCharts.Runtime / 继承自: [ScriptableObject ](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject )
国际化语言表。
## LangCandlestick
class in XCharts.Runtime
## LangTime
class in XCharts.Runtime
## Legend
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ), [IPropertyChanged ](#ipropertychanged )
图例组件。 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。
### Legend.background
2024-09-24 18:26:45 +08:00
[ImageStyle ](#imagestyle ) `v3.1.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
背景图样式。
2024-09-21 13:31:16 +08:00
### Legend.colors
`List<Color>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图例标记的颜色列表。
### Legend.data
`List<string>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name( 如果是饼图, 也可以是饼图单个数据的 name) 。 如果 data 没有被指定, 会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。
### Legend.formatter
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
不再使用, 使用LabelStyle.formatter代替。
### Legend.icons
`List<Sprite>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
自定义的图例标记图形。
### Legend.iconType
2024-09-24 18:26:45 +08:00
[Legend.Type ](#legendtype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图例类型。
可选:
- `Auto` : 自动匹配。
- `Custom` : 自定义图标。
- `EmptyCircle` : 空心圆。
- `Circle` : 圆形。
- `Rect` : 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle` : 三角形。
- `Diamond` : 菱形。
- `Candlestick` : 烛台( 可用于K线图) 。
### Legend.itemAutoColor
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图例标记的图形是否自动匹配颜色。
### Legend.itemGap
2024-09-24 18:26:45 +08:00
`float` `10f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。
### Legend.itemHeight
2024-09-24 18:26:45 +08:00
`float` `12.0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图例标记的图形高度。
2025-03-27 22:35:02 +08:00
### Legend.itemInactiveOpacity
`float` `1` `v3.15.0`
图例标记的图形在非激活状态下的颜色透明度。
2024-09-21 13:31:16 +08:00
### Legend.itemOpacity
2024-09-24 18:26:45 +08:00
`float` `1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图例标记的图形的颜色透明度。
### Legend.itemWidth
2024-09-24 18:26:45 +08:00
`float` `25.0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图例标记的图形宽度。
### Legend.labelStyle
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
文本样式。
2024-09-21 13:31:16 +08:00
### Legend.location
2024-09-24 18:26:45 +08:00
[Location ](#location )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
图例显示的位置。
2024-09-21 13:31:16 +08:00
### Legend.orient
2024-09-24 18:26:45 +08:00
[Orient ](#orient )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
布局方式是横还是竖。
可选:
- `Horizonal` : 水平
- `Vertical` : 垂直
### Legend.padding
2024-09-24 18:26:45 +08:00
[Padding ](#padding ) `v3.1.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
图例标记和背景的间距。
2024-09-21 13:31:16 +08:00
### Legend.positions
`List<Vector3>` `v3.6.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图例标记的自定义位置列表。
### Legend.selectedMode
2024-09-24 18:26:45 +08:00
[Legend.SelectedMode ](#legendselectedmode )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
可选:
- `Multiple` : 多选。
- `Single` : 单选。
- `None` : 无法选择。
### Legend.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示图例组件。
### Legend.textLimit
2024-09-24 18:26:45 +08:00
[TextLimit ](#textlimit ) `v3.10.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
文本限制。
2024-09-21 13:31:16 +08:00
## LegendTheme
class in XCharts.Runtime / 继承自: [ComponentTheme ](#componenttheme )
2025-03-27 22:35:02 +08:00
### LegendTheme.inactiveColor
2024-09-21 13:31:16 +08:00
`Color`
2024-09-22 09:54:11 +08:00
2025-03-27 22:35:02 +08:00
非激活状态时的颜色。
2024-09-21 13:31:16 +08:00
## Level
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
### Level.depth
2024-09-24 18:26:45 +08:00
`int` `0` `v3.10.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
层级深度。
### Level.itemStyle
2024-09-24 18:26:45 +08:00
[ItemStyle ](#itemstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
数据项样式。
2024-09-21 13:31:16 +08:00
### Level.label
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
文本标签样式。
2024-09-21 13:31:16 +08:00
### Level.lineStyle
2024-09-24 18:26:45 +08:00
[LineStyle ](#linestyle ) `v3.10.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
线条样式。
2024-09-21 13:31:16 +08:00
### Level.upperLabel
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
上方的文本标签样式。
2024-09-21 13:31:16 +08:00
## LevelStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
> 从 `v3.10.0` 开始支持
### LevelStyle.levels
`List<Level>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
各层节点对应的配置。当enableLevels为true时生效, levels[0]对应的第一层的配置, levels[1]对应第二层, 依次类推。当levels中没有对应层时用默认的设置。
### LevelStyle.show
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否启用LevelStyle
## Line
class in XCharts.Runtime / 继承自: [Serie ](#serie ), [INeedSerieContainer ](#ineedseriecontainer )
## LineArrow
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ), [ISerieComponent ](#iseriecomponent )
### LineArrow.arrow
2024-09-24 18:26:45 +08:00
[ArrowStyle ](#arrowstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
箭头。
2024-09-21 13:31:16 +08:00
### LineArrow.position
2024-09-24 18:26:45 +08:00
[LineArrow.Position ](#linearrowposition )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
箭头位置。
可选:
- `End` : 末端箭头
- `Start` : 头端箭头
### LineArrow.show
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示箭头。
## LineStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ), [ISerieDataComponent ](#iseriedatacomponent )
线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color, 线条颜色默认也会取该颜色。 toColor, toColor2可设置水平方向的渐变, 如需要设置垂直方向的渐变, 可使用VisualMap。
### LineStyle.color
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
线的颜色。
### LineStyle.dashLength
2024-09-24 18:26:45 +08:00
`float` `4` `v3.8.1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
虚线的长度。默认0时为线条宽度的12倍。在折线图中代表分割段数的倍数。
### LineStyle.dotLength
2024-09-24 18:26:45 +08:00
`float` `2` `v3.8.1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。
### LineStyle.gapLength
2024-09-24 18:26:45 +08:00
`float` `2` `v3.8.1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。
### LineStyle.length
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
线长。
### LineStyle.opacity
2024-09-24 18:26:45 +08:00
`float` `1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
### LineStyle.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。
### LineStyle.toColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
线的渐变颜色(需要水平方向渐变时)。
### LineStyle.toColor2
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
线的渐变颜色2( 需要水平方向三个渐变色的渐变时) 。
### LineStyle.type
2024-09-24 18:26:45 +08:00
[LineStyle.Type ](#linestyletype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
线的类型。
可选:
- `Solid` : 实线
- `Dashed` : 虚线
- `Dotted` : 点线
- `DashDot` : 点划线
- `DashDotDot` : 双点划线
- `None` : 双点划线
### LineStyle.width
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
线宽。
## Location
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ), [IPropertyChanged ](#ipropertychanged )
位置类型。通过Align快速设置大体位置, 再通过left, right, top, bottom微调具体位置。
### Location.align
2024-09-24 18:26:45 +08:00
[Location.Align ](#locationalign )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
对齐方式。
可选:
- `TopLeft` : 对齐方式
- `TopRight` : 对齐方式
- `TopCenter` : 对齐方式
- `BottomLeft` : 对齐方式
- `BottomRight` : 对齐方式
- `BottomCenter` : 对齐方式
- `Center` : 对齐方式
- `CenterLeft` : 对齐方式
- `CenterRight` : 对齐方式
### Location.bottom
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
离容器下侧的距离。
### Location.left
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
离容器左侧的距离。
### Location.right
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
离容器右侧的距离。
### Location.top
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
离容器上侧的距离。
## MainComponent
class in XCharts.Runtime / 继承自: [IComparable ](https://docs.unity3d.com/ScriptReference/30_search.html?q=IComparable ) / 子类: [Axis ](#axis ), [Background ](#background ), [Comment ](#comment ), [DataZoom ](#datazoom ), [Legend ](#legend ), [MarkArea ](#markarea ), [MarkLine ](#markline ), [Settings ](#settings ), [Title ](#title ), [Tooltip ](#tooltip ), [VisualMap ](#visualmap ), [GridLayout ](#gridlayout ), [CoordSystem ](#coordsystem )
## MarkArea
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent )
图表标域,常用于标记图表中某个范围的数据。
### MarkArea.end
2024-09-24 18:26:45 +08:00
[MarkAreaData ](#markareadata )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
标域范围的结束数据。
2024-09-21 13:31:16 +08:00
### MarkArea.itemStyle
2024-09-24 18:26:45 +08:00
[ItemStyle ](#itemstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
标域样式。
2024-09-21 13:31:16 +08:00
### MarkArea.label
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
标域文本样式。
2024-09-21 13:31:16 +08:00
### MarkArea.serieIndex
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Serie index of markArea. 标域影响的Serie索引。
### MarkArea.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示标域。
### MarkArea.start
2024-09-24 18:26:45 +08:00
[MarkAreaData ](#markareadata )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
标域范围的起始数据。
2024-09-21 13:31:16 +08:00
### MarkArea.text
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
The text of markArea. 标域显示的文本。
## MarkAreaData
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
标域的数据。
### MarkAreaData.dimension
2024-09-24 18:26:45 +08:00
`int` `1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
从哪个维度的数据计算最大最小值等。
### MarkAreaData.name
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标注名称。会作为文字显示。
### MarkAreaData.type
2024-09-24 18:26:45 +08:00
[MarkAreaType ](#markareatype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
特殊的标域类型,用于标注最大值最小值等。
可选:
- `None` : 标域类型
- `Min` : 最小值。
- `Max` : 最大值。
- `Average` : 平均值。
- `Median` : 中位数。
### MarkAreaData.xPosition
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
相对原点的 x 坐标, 单位像素。当type为None时有效。
### MarkAreaData.xValue
`double`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引, 否则为具体的值。当type为None时有效。
### MarkAreaData.yPosition
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
相对原点的 y 坐标, 单位像素。当type为None时有效。
### MarkAreaData.yValue
`double`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引, 否则为具体的值。当type为None时有效。
## MarkLine
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent )
图表标线。
### MarkLine.animation
2024-09-24 18:26:45 +08:00
[AnimationStyle ](#animationstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
标线的动画样式。
2024-09-21 13:31:16 +08:00
### MarkLine.data
`List<MarkLineData>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标线的数据列表。当数据项的group为0时, 每个数据项表示一条标线; 当group不为0时, 相同group的两个数据项分别表 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。
### MarkLine.onTop
2024-09-24 18:26:45 +08:00
`bool` `true` `v3.9.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否在最上层。
### MarkLine.serieIndex
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标线影响的Serie索引。
### MarkLine.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示标线。
## MarkLineData
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
> 从 `v3.9.0` 开始支持
图表标线的数据。
### MarkLineData.dimension
2024-09-24 18:26:45 +08:00
`int` `1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
从哪个维度的数据计算最大最小值等。
### MarkLineData.endSymbol
2024-09-24 18:26:45 +08:00
[SymbolStyle ](#symbolstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
结束点的图形标记。
2024-09-21 13:31:16 +08:00
### MarkLineData.group
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
分组。当group不为0时, 表示这个data是标线的起点或终点, group一致的data组成一条标线。
### MarkLineData.label
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
文本样式。可设置position为Start、Middle和End在不同的位置显示文本。
2024-09-21 13:31:16 +08:00
### MarkLineData.lineStyle
2024-09-24 18:26:45 +08:00
[LineStyle ](#linestyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
标线样式。
2024-09-21 13:31:16 +08:00
### MarkLineData.name
`string`
2024-09-22 09:54:11 +08:00
2024-10-21 08:44:16 +08:00
标线名称, 将会作为文字显示。label的formatter可通过\{b\}显示名称,通过\{c\}显示数值。
2024-09-21 13:31:16 +08:00
### MarkLineData.startSymbol
2024-09-24 18:26:45 +08:00
[SymbolStyle ](#symbolstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
起始点的图形标记。
2024-09-21 13:31:16 +08:00
### MarkLineData.type
2024-09-24 18:26:45 +08:00
[MarkLineType ](#marklinetype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
特殊的标线类型,用于标注最大值最小值等。
可选:
2025-03-27 22:35:02 +08:00
- `Custom` : 自定义。可自定义xy坐标或数值。
2024-09-21 13:31:16 +08:00
- `Min` : 最小值。
- `Max` : 最大值。
- `Average` : 平均值。
- `Median` : 中位数。
### MarkLineData.xPosition
`float`
2024-09-22 09:54:11 +08:00
2025-03-27 22:35:02 +08:00
相对原点的 x 坐标, 单位像素。当type为Custom时有效。
2024-09-21 13:31:16 +08:00
### MarkLineData.xValue
`double`
2024-09-22 09:54:11 +08:00
2025-03-27 22:35:02 +08:00
X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引, 否则为具体的值。当type为Custom时有效。
2024-09-21 13:31:16 +08:00
### MarkLineData.yPosition
`float`
2024-09-22 09:54:11 +08:00
2025-03-27 22:35:02 +08:00
相对原点的 y 坐标, 单位像素。当type为Custom时有效。
2024-09-21 13:31:16 +08:00
### MarkLineData.yValue
`double`
2024-09-22 09:54:11 +08:00
2025-03-27 22:35:02 +08:00
Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引, 否则为具体的值。当type为Custom时有效。
2024-09-21 13:31:16 +08:00
### MarkLineData.zeroPosition
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否为坐标系原点。
## MarqueeStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
> 从 `v3.5.0` 开始支持
Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。
### MarqueeStyle.apply
2024-09-24 18:26:45 +08:00
`bool` `false` `v3.5.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
选取框范围是否应用到DataZoom上。当为true时, 框选结束后的范围即为DataZoom的选择范围。
### MarqueeStyle.areaStyle
2024-09-24 18:26:45 +08:00
[AreaStyle ](#areastyle ) `v3.5.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
选取框区域填充样式。
2024-09-21 13:31:16 +08:00
### MarqueeStyle.lineStyle
2024-09-24 18:26:45 +08:00
[LineStyle ](#linestyle ) `v3.5.0`
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
选取框区域边框样式。
2024-09-21 13:31:16 +08:00
### MarqueeStyle.realRect
2024-09-24 18:26:45 +08:00
`bool` `false` `v3.5.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否选取实际框选区域。当为true时, 以鼠标的其实点和结束点间的实际范围作为框选区域。
## MLValue
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
> 从 `v3.8.0` 开始支持
多样式数值。
### MLValue.type
2024-09-24 18:26:45 +08:00
[MLValue.Type ](#mlvaluetype )
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
可选:
- `Percent` : 百分比形式。
- `Absolute` : 绝对值形式。
- `Extra` : 额外形式。
### MLValue.value
`float`
## Padding
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ) / 子类: [TextPadding ](#textpadding )
边距设置。
### Padding.bottom
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
底部间距。
### Padding.left
2024-09-24 18:26:45 +08:00
`float` `2f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
左边间距。
### Padding.right
2024-09-24 18:26:45 +08:00
`float` `2f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
右部间距。
### Padding.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
show padding. 是否显示。
### Padding.top
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
顶部间距。
## Parallel
class in XCharts.Runtime / 继承自: [Serie ](#serie ), [INeedSerieContainer ](#ineedseriecontainer )
## ParallelAxis
class in XCharts.Runtime / 继承自: [Axis ](#axis )
## ParallelCoord
class in XCharts.Runtime / 继承自: [CoordSystem ](#coordsystem ), [IUpdateRuntimeData ](#iupdateruntimedata ), [ISerieContainer ](#iseriecontainer )
Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
### ParallelCoord.backgroundColor
`Color`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
网格背景色,默认透明。
### ParallelCoord.bottom
2024-09-24 18:26:45 +08:00
`float` `0.12f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器下侧的距离。
### ParallelCoord.left
2024-09-24 18:26:45 +08:00
`float` `0.1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器左侧的距离。
### ParallelCoord.orient
2024-09-24 18:26:45 +08:00
[Orient ](#orient )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴朝向。默认为垂直朝向。
可选:
- `Horizonal` : 水平
- `Vertical` : 垂直
### ParallelCoord.right
2024-09-24 18:26:45 +08:00
`float` `0.08f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器右侧的距离。
### ParallelCoord.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示直角坐标系网格。
### ParallelCoord.top
2024-09-24 18:26:45 +08:00
`float` `0.22f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
grid 组件离容器上侧的距离。
## Pie
class in XCharts.Runtime / 继承自: [Serie ](#serie )
2026-02-27 21:14:53 +08:00
### Pie.pieType
[PieType ](#pietype ) `v3.15.0`
饼图类型。
可选:
- `Solid` : 实心饼图 - 默认填充样式
- `Wireframe` : 线框饼图 - 仅显示轮廓线框
2024-09-21 13:31:16 +08:00
### Pie.radiusGradient
2024-09-24 18:26:45 +08:00
`bool` `false` `v3.8.1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启半径方向的渐变效果。
## PolarAxisTheme
class in XCharts.Runtime / 继承自: [BaseAxisTheme ](#baseaxistheme )
## PolarCoord
class in XCharts.Runtime / 继承自: [CoordSystem ](#coordsystem ), [ISerieContainer ](#iseriecontainer )
极坐标系组件。 极坐标系,可以用于散点图和折线图。每个极坐标系拥有一个角度轴和一个半径轴。
### PolarCoord.backgroundColor
`Color`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
极坐标的背景色,默认透明。
### PolarCoord.center
`float[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比, 设置成百分比时第一项是相对于容器宽度, 第二项是相对于容器高度。
### PolarCoord.indicatorLabelOffset
2024-09-24 18:26:45 +08:00
`float` `30f` `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
指示器标签的偏移量。
### PolarCoord.radius
`float[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
半径。radius[0]表示内径, radius[1]表示外径。
### PolarCoord.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示极坐标。
## Radar
class in XCharts.Runtime / 继承自: [Serie ](#serie ), [INeedSerieContainer ](#ineedseriecontainer )
### Radar.smooth
2024-09-24 18:26:45 +08:00
`bool` `false` `v3.2.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否平滑曲线。平滑曲线时不支持区域填充颜色。
## RadarAxisTheme
class in XCharts.Runtime / 继承自: [BaseAxisTheme ](#baseaxistheme )
## RadarCoord
class in XCharts.Runtime / 继承自: [CoordSystem ](#coordsystem ), [ISerieContainer ](#iseriecontainer )
Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。
## RadiusAxis
class in XCharts.Runtime / 继承自: [Axis ](#axis )
极坐标系的径向轴。
## RadiusAxisTheme
class in XCharts.Runtime / 继承自: [BaseAxisTheme ](#baseaxistheme )
## Ring
class in XCharts.Runtime / 继承自: [Serie ](#serie )
### Ring.radiusGradient
2024-09-24 18:26:45 +08:00
`bool` `false` `v3.12.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启半径方向的渐变效果。
## Scatter
class in XCharts.Runtime / 继承自: [BaseScatter ](#basescatter )
## SelectStyle
class in XCharts.Runtime / 继承自: [StateStyle ](#statestyle ), [ISerieComponent ](#iseriecomponent ), [ISerieDataComponent ](#iseriedatacomponent )
> 从 `v3.2.0` 开始支持
选中状态样式。
## Serie
class in XCharts.Runtime / 继承自: [BaseSerie ](#baseserie ), [IComparable ](https://docs.unity3d.com/ScriptReference/30_search.html?q=IComparable ) / 子类: [SerieHandler<T> ](#seriehandlert ), [Bar ](#bar ), [SimplifiedBar ](#simplifiedbar ), [Candlestick ](#candlestick ), [SimplifiedCandlestick ](#simplifiedcandlestick ), [Heatmap ](#heatmap ), [Line ](#line ), [SimplifiedLine ](#simplifiedline ), [Parallel ](#parallel ), [Pie ](#pie ), [Radar ](#radar ), [Ring ](#ring ), [BaseScatter ](#basescatter )
2024-11-30 23:45:28 +08:00
系列。系列一般由数据和配置组成,用来表示具体的图表图形,如折线图的一条折线,柱图的一组柱子等。一个图表中可以包含多个不同类型的系列。
2024-09-21 13:31:16 +08:00
### Serie.align
2024-09-24 18:26:45 +08:00
[Align ](#align )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件水平方向对齐方式。
可选:
- `Center` : 对齐方式。文本,图标,图形等的对齐方式。
- `Left` : 对齐方式。文本,图标,图形等的对齐方式。
- `Right` : 对齐方式。文本,图标,图形等的对齐方式。
### Serie.animation
2024-09-24 18:26:45 +08:00
[AnimationStyle ](#animationstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
起始动画。
2024-09-21 13:31:16 +08:00
### Serie.avoidLabelOverlap
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。
### Serie.barGap
2024-09-24 18:26:45 +08:00
`float` `0.1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%) 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。
### Serie.barMaxWidth
2024-09-24 18:26:45 +08:00
`float` `0` `v3.5.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
柱条的最大宽度, 默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。
### Serie.barPercentStack
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true, 则就显示成百分比堆叠柱状图。
### Serie.barType
2024-09-24 18:26:45 +08:00
[BarType ](#bartype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
柱形图类型。
可选:
- `Normal` : 普通柱形图。
- `Zebra` : 斑马柱形图。
- `Capsule` : 胶囊柱形图。
### Serie.barWidth
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。
### Serie.barZebraGap
2024-09-24 18:26:45 +08:00
`float` `2f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
斑马线的间距。
### Serie.barZebraWidth
2024-09-24 18:26:45 +08:00
`float` `4f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
斑马线的粗细。
### Serie.bottom
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器下侧的距离。
### Serie.center
`float[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
中心点。
### Serie.clickOffset
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
鼠标点击时是否开启偏移, 一般用在PieChart图表中。
### Serie.clip
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否裁剪超出坐标系部分的图形。
### Serie.clockwise
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否顺时针。
### Serie.colorBy
2024-09-24 18:26:45 +08:00
[SerieColorBy ](#seriecolorby ) `v3.2.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
从主题中取色的策略。
可选:
- `Default` : 默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略, Pie默认是Data策略。
- `Serie` : 按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。
- `Data` : 按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。
### Serie.coordSystem
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
使用的坐标系。
### Serie.data
`List<SerieData>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
系列中的数据内容数组。SerieData可以设置1到n维数据。
### Serie.dataSortType
2024-09-24 18:26:45 +08:00
[SerieDataSortType ](#seriedatasorttype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件的数据排序。
可选:
- `None` : 按数据的顺序。
- `Ascending` : 升序。
- `Descending` : 降序。
### Serie.endAngle
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
结束角度。和时钟一样, 12点钟位置是0度, 顺时针到360度。
### Serie.gap
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
间距。
### Serie.gridIndex
2024-09-24 18:26:45 +08:00
`int` `-1` `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。
### Serie.ignore
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。
### Serie.ignoreLineBreak
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
忽略数据时折线是断开还是连接。默认false为连接。
### Serie.ignoreValue
2024-09-24 18:26:45 +08:00
`double` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
忽略数据的默认值。当ignore为true才有效。
2026-02-27 21:14:53 +08:00
### Serie.ignoreZeroOccupy
`bool` `false` `v3.15.0`
柱图是否忽略值为0的柱子占位。开启后, 值为0的柱子将不会占用空间, 柱子之间的间距会根据实际显示的柱子自动调整。一般用在柱状图中。
2024-09-21 13:31:16 +08:00
### Serie.index
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
系列索引。
### Serie.insertDataToHead
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
添加新数据时是在列表的头部还是尾部加入。
### Serie.itemStyle
2024-09-24 18:26:45 +08:00
[ItemStyle ](#itemstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
图形样式。
2024-09-21 13:31:16 +08:00
### Serie.large
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点: 优化后不能自定义设置单个数据项的样式, 不能显示Label。
### Serie.largeThreshold
2024-09-24 18:26:45 +08:00
`int` `200`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。
### Serie.left
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器左侧的距离。
### Serie.lineStyle
2024-09-24 18:26:45 +08:00
[LineStyle ](#linestyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
线条样式。
2024-09-21 13:31:16 +08:00
### Serie.lineType
2024-09-24 18:26:45 +08:00
[LineType ](#linetype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
折线图样式类型。
可选:
- `Normal` : 普通折线图。
- `Smooth` : 平滑曲线。
- `StepStart` : 阶梯线图:当前点。
- `StepMiddle` : 阶梯线图:当前点和下一个点的中间。
- `StepEnd` : 阶梯线图:下一个拐点。
### Serie.links
`List<SerieDataLink>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据节点的边。
### Serie.max
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
最大值。
### Serie.maxCache
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
系列中可缓存的最大数据量。默认为0没有限制, 大于0时超过指定值会移除旧数据再插入新数据。
### Serie.maxShow
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
系列所显示数据的最大索引
### Serie.maxSize
2024-09-24 18:26:45 +08:00
`float` `1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据最大值 max 映射的宽度。
### Serie.min
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
最小值。
### Serie.minAngle
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
最小的扇区角度( 0-360) 。用于防止某个值过小导致扇区太小影响交互。
### Serie.minRadius
2024-09-24 18:26:45 +08:00
`float` `0f` `v3.8.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
最小半径。可用于限制玫瑰图的最小半径。
### Serie.minShow
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
系列所显示数据的最小索引
### Serie.minShowLabel
2024-09-24 18:26:45 +08:00
`bool` `false` `v3.10.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启值小于指定值`minShowLabelValue` 时不显示标签。
### Serie.minShowLabelValue
2024-09-24 18:26:45 +08:00
`double` `0` `v3.10.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
当开启`minShowLabel` 时,值小于该值时不显示标签。
### Serie.minSize
2024-09-24 18:26:45 +08:00
`float` `0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据最小值 min 映射的宽度。
### Serie.orient
2024-09-24 18:26:45 +08:00
[Orient ](#orient )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件的朝向。
可选:
- `Horizonal` : 水平
- `Vertical` : 垂直
### Serie.parallelIndex
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
所使用的 parallel coord 组件的 index。
### Serie.placeHolder
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
占位模式。占位模式时,数据有效但不参与渲染和显示。
### Serie.polarIndex
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
所使用的 polar 组件的 index。
### Serie.radarIndex
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
雷达图所使用的 radar 组件的 index。
### Serie.radarType
2024-09-24 18:26:45 +08:00
[RadarType ](#radartype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
雷达图类型。
可选:
- `Multiple` : 多圈雷达图。此时可一个雷达里绘制多个圈, 一个serieData就可组成一个圈( 多维数据) 。
- `Single` : 单圈雷达图。此时一个雷达只能绘制一个圈, 多个serieData组成一个圈, 数据取自`data[1]` 。
### Serie.radius
`float[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
半径。radius[0]表示内径, radius[1]表示外径。
2025-03-16 10:45:38 +08:00
### Serie.realtimeSort
`bool` `false` `v3.14.0`
是否开启实时排序, 用来实现动态排序图效果。目前仅在Bar中生效。
2024-09-21 13:31:16 +08:00
### Serie.right
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器右侧的距离。
### Serie.roseType
2024-09-24 18:26:45 +08:00
[RoseType ](#rosetype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否展示成南丁格尔图,通过半径区分数据大小。
可选:
- `None` : 不展示成南丁格尔玫瑰图。
- `Radius` : 扇区圆心角展现数据的百分比,半径展现数据的大小。
- `Area` : 所有扇区圆心角相同,仅通过半径展现数据大小。
### Serie.roundCap
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启圆弧效果。
### Serie.sampleAverage
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
设定的采样平均值。当sampleType 为 Peak 时, 用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。
### Serie.sampleDist
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
采样的最小像素距离, 默认为0时不采样。当两个数据点间的水平距离小于改值时, 开启采样, 保证两点间的水平距离不小于改值。
### Serie.sampleType
2024-09-24 18:26:45 +08:00
[SampleType ](#sampletype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
采样类型。当sampleDist大于0时有效。
可选:
- `Peak` : 取峰值。
- `Average` : 取过滤点的平均值。
- `Max` : 取过滤点的最大值。
- `Min` : 取过滤点的最小值。
- `Sum` : 取过滤点的和。
### Serie.serieName
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
系列名称,用于 tooltip 的显示, legend 的图例筛选。
### Serie.serieType
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
系列类型。
### Serie.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
系列是否显示在图表上。
### Serie.showAsPositiveNumber
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
将负数数值显示为正数。一般和`AxisLabel` 的`showAsPositiveNumber` 配合使用。仅在折线图和柱状图中有效。
### Serie.showDataDimension
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据项里的数据维数。
### Serie.showDataName
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
在Editor的inpsector上是否显示name参数
### Serie.singleAxisIndex
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
所使用的 singleAxis 组件的 index。
### Serie.smoothLimit
2024-09-24 18:26:45 +08:00
`bool` `false` `v3.4.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否限制曲线。当为true时, 两个连续相同数值的数据间的曲线会限制为不超出数据点, 和数据点是平直的。
### Serie.splitNumber
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
刻度分割段数。最大可设置36。
### Serie.stack
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据堆叠, 同个类目轴上系列配置相同的stack值后, 后一个系列的值会在前一个系列的值上相加。
### Serie.startAngle
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
起始角度。和时钟一样, 12点钟位置是0度, 顺时针到360度。
### Serie.state
2024-09-24 18:26:45 +08:00
[SerieState ](#seriestate ) `v3.2.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
系列的默认状态。
可选:
- `Normal` : 正常状态。
- `Emphasis` : 高亮状态。
- `Blur` : 淡出状态。
- `Select` : 选中状态。
- `Auto` : 自动保持和父节点一致。一般用在SerieData。
### Serie.symbol
2024-09-24 18:26:45 +08:00
[SerieSymbol ](#seriesymbol )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
标记的图形。
2024-09-21 13:31:16 +08:00
### Serie.top
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器上侧的距离。
### Serie.vesselIndex
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
水位图所使用的 vessel 组件的 index。
### Serie.xAxisIndex
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
使用X轴的index。
### Serie.yAxisIndex
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
使用Y轴的index。
## SerieData
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
系列中的一个数据项。可存储数据名和1-n维个数据。
### SerieData.data
`List<double>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
可指定任意维数的数值列表。
### SerieData.id
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据项的唯一id。唯一id不是必须设置的。
### SerieData.ignore
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否忽略数据。当为 true 时,数据不进行绘制。
### SerieData.index
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据项索引。
### SerieData.name
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据项名称。
### SerieData.parentId
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
父节点id。父节点id不是必须设置的。
### SerieData.radius
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
自定义半径。可用在饼图中自定义某个数据项的半径。
### SerieData.selected
`bool`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
该数据项是否被选中。
### SerieData.state
2024-09-24 18:26:45 +08:00
[SerieState ](#seriestate ) `v3.2.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据项的默认状态。
可选:
- `Normal` : 正常状态。
- `Emphasis` : 高亮状态。
- `Blur` : 淡出状态。
- `Select` : 选中状态。
- `Auto` : 自动保持和父节点一致。一般用在SerieData。
## SerieDataLink
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
> 从 `v3.10.0` 开始支持
数据节点之间的连线。可用于桑基图等,桑基图只支持有向无环图,请保证数据的连线是有向无环图。
### SerieDataLink.source
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边的源节点名称。
### SerieDataLink.target
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边的目标节点名称。
### SerieDataLink.value
`double`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边的值。决定边的宽度。
## SerieSymbol
class in XCharts.Runtime / 继承自: [SymbolStyle ](#symbolstyle ), [ISerieDataComponent ](#iseriedatacomponent )
系列数据项的标记的图形
### SerieSymbol.dataIndex
2024-09-24 18:26:45 +08:00
`int` `1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
当sizeType指定为FromData时, 指定的数据源索引。
### SerieSymbol.dataScale
2024-09-24 18:26:45 +08:00
`float` `1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
当sizeType指定为FromData时, 指定的倍数系数。
### SerieSymbol.forceShowLast
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否强制显示最后一个图形标记。
### SerieSymbol.interval
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
显示图形标记的间隔。0表示显示所有标签, 1表示隔一个隔显示一个标签, 以此类推。
### SerieSymbol.maxSize
2024-09-24 18:26:45 +08:00
`float` `0f` `v3.3.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形最大尺寸。只在sizeType为SymbolSizeType.FromData时有效。
### SerieSymbol.minSize
2024-09-24 18:26:45 +08:00
`float` `0f` `v3.3.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形最小尺寸。只在sizeType为SymbolSizeType.FromData时有效。
### SerieSymbol.repeat
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形是否重复。
### SerieSymbol.sizeFunction
`SymbolSizeFunction`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
当sizeType指定为Function时, 指定的委托函数。
### SerieSymbol.sizeType
2024-09-24 18:26:45 +08:00
[SymbolSizeType ](#symbolsizetype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标记图形的大小获取方式。
可选:
- `Custom` : 自定义大小。
- `FromData` : 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
- `Function` : 通过委托函数获取。
### SerieSymbol.startIndex
`int`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
开始显示图形标记的索引。
## SerieTheme
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
### SerieTheme.candlestickBorderColor
2024-09-24 18:26:45 +08:00
`Color32` `Color32(235, 84, 84, 255)`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
K线图阳线( 跌) 边框色
### SerieTheme.candlestickBorderColor0
2024-09-24 18:26:45 +08:00
`Color32` `Color32(71, 178, 98, 255)`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
K线图阴线( 跌) 边框色
### SerieTheme.candlestickBorderWidth
2024-09-24 18:26:45 +08:00
`float` `1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
K线图边框宽度
### SerieTheme.candlestickColor
2024-09-24 18:26:45 +08:00
`Color32` `Color32(235, 84, 84, 255)`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
K线图阳线( 涨) 填充色
### SerieTheme.candlestickColor0
2024-09-24 18:26:45 +08:00
`Color32` `Color32(71, 178, 98, 255)`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
K线图阴线( 跌) 填充色
### SerieTheme.lineSymbolSize
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
折线图的Symbol大小。
### SerieTheme.lineWidth
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本颜色。
### SerieTheme.scatterSymbolSize
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
散点图的Symbol大小。
## Settings
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent )
全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。
### Settings.axisMaxSplitNumber
2024-09-24 18:26:45 +08:00
`float` `50` `v3.1.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。
### Settings.basePainterMaterial
`Material`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Base Pointer 材质球, 设置后会影响Axis等。
### Settings.cicleSmoothness
2024-09-24 18:26:45 +08:00
`float` `2f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。
### Settings.legendIconCornerRadius
`float[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图例圆角半径。用数组分别指定4个圆角半径( 顺时针左上, 右上, 右下, 左下) 。
### Settings.legendIconLineWidth
2024-09-24 18:26:45 +08:00
`float` `2`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Line类型图例图标的线条宽度。
### Settings.lineSegmentDistance
2024-09-24 18:26:45 +08:00
`float` `3f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。
### Settings.lineSmoothness
2024-09-24 18:26:45 +08:00
`float` `2f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
When the area with gradient is filled, the larger the value, the worse the transition effect.
### Settings.lineSmoothStyle
2024-09-24 18:26:45 +08:00
`float` `2.5f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。
### Settings.maxPainter
2024-09-24 18:26:45 +08:00
`int` `10`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
设定的painter数量。
### Settings.reversePainter
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Painter是否逆序。逆序时index大的serie最先绘制。
### Settings.seriePainterMaterial
`Material`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Serie Pointer 材质球, 设置后会影响所有Serie。
### Settings.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-21 13:31:16 +08:00
### Settings.topPainterMaterial
`Material`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Top Pointer 材质球。
### Settings.upperPainterMaterial
`Material`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Upper Pointer 材质球。
## SimplifiedBar
class in XCharts.Runtime / 继承自: [Serie ](#serie ), [INeedSerieContainer ](#ineedseriecontainer ), [ISimplifiedSerie ](#isimplifiedserie )
## SimplifiedCandlestick
class in XCharts.Runtime / 继承自: [Serie ](#serie ), [INeedSerieContainer ](#ineedseriecontainer ), [ISimplifiedSerie ](#isimplifiedserie )
## SimplifiedLine
class in XCharts.Runtime / 继承自: [Serie ](#serie ), [INeedSerieContainer ](#ineedseriecontainer ), [ISimplifiedSerie ](#isimplifiedserie )
## SingleAxis
class in XCharts.Runtime / 继承自: [Axis ](#axis ), [IUpdateRuntimeData ](#iupdateruntimedata )
单轴。
### SingleAxis.bottom
2024-09-24 18:26:45 +08:00
`float` `0.2f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器下侧的距离。
### SingleAxis.height
2024-09-24 18:26:45 +08:00
`float` `50`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴高。
### SingleAxis.left
2024-09-24 18:26:45 +08:00
`float` `0.1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器左侧的距离。
### SingleAxis.orient
2024-09-24 18:26:45 +08:00
[Orient ](#orient )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴朝向。默认为水平朝向。
可选:
- `Horizonal` : 水平
- `Vertical` : 垂直
### SingleAxis.right
2024-09-24 18:26:45 +08:00
`float` `0.1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器右侧的距离。
### SingleAxis.top
2024-09-24 18:26:45 +08:00
`float` `0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件离容器上侧的距离。
### SingleAxis.width
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴宽。
## SingleAxisCoord
class in XCharts.Runtime / 继承自: [CoordSystem ](#coordsystem )
## StageColor
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
### StageColor.color
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
颜色。
### StageColor.percent
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
结束位置百分比。
## StateStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ) / 子类: [BlurStyle ](#blurstyle ), [EmphasisStyle ](#emphasisstyle ), [SelectStyle ](#selectstyle )
> 从 `v3.2.0` 开始支持
Serie的状态样式。Serie的状态有正常, 高亮, 淡出, 选中四种状态。
### StateStyle.areaStyle
2024-09-24 18:26:45 +08:00
[AreaStyle ](#areastyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
区域样式。
2024-09-21 13:31:16 +08:00
### StateStyle.itemStyle
2024-09-24 18:26:45 +08:00
[ItemStyle ](#itemstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
图形样式。
2024-09-21 13:31:16 +08:00
### StateStyle.label
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
图形文本标签。
2024-09-21 13:31:16 +08:00
### StateStyle.labelLine
2024-09-24 18:26:45 +08:00
[LabelLine ](#labelline )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
图形文本引导线样式。
2024-09-21 13:31:16 +08:00
### StateStyle.lineStyle
2024-09-24 18:26:45 +08:00
[LineStyle ](#linestyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
折线样式。
2024-09-21 13:31:16 +08:00
### StateStyle.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否启用高亮样式。
### StateStyle.symbol
2024-09-24 18:26:45 +08:00
[SerieSymbol ](#seriesymbol )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
标记样式。
2024-09-21 13:31:16 +08:00
## SubTitleTheme
class in XCharts.Runtime / 继承自: [ComponentTheme ](#componenttheme )
## SymbolStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent ) / 子类: [SerieSymbol ](#seriesymbol )
系列数据项的标记的图形
2025-01-01 20:15:29 +08:00
### SymbolStyle.borderWidth
`float` `0f` `v3.13.0`
图形的边框宽度。
2024-09-21 13:31:16 +08:00
### SymbolStyle.color
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形的颜色。
2025-01-01 20:15:29 +08:00
### SymbolStyle.emptyColor
`Color32` `v3.13.0`
空心图形的颜色。
2024-09-21 13:31:16 +08:00
### SymbolStyle.gap
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形标记和线条的间隙距离。
### SymbolStyle.height
2024-09-24 18:26:45 +08:00
`float` `0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形的高。
### SymbolStyle.image
`Sprite`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
自定义的标记图形。
### SymbolStyle.imageType
`Image.Type`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形填充类型。
### SymbolStyle.offset
2024-09-24 18:26:45 +08:00
`Vector2` `Vector2.zero`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形的偏移。
### SymbolStyle.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示标记。
### SymbolStyle.size
2024-09-24 18:26:45 +08:00
`float` `0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标记的大小。
2025-01-01 20:15:29 +08:00
### SymbolStyle.size2
`float` `0f` `v3.13.0`
标记的大小。当为Rect时, size2表示高度。
2024-09-21 13:31:16 +08:00
### SymbolStyle.type
2024-09-24 18:26:45 +08:00
[SymbolType ](#symboltype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标记类型。
可选:
- `None` : 不显示标记。
- `Custom` : 自定义标记。
- `Circle` : 圆形。
- `EmptyCircle` : 空心圆。
- `Rect` : 正方形。可通过设置`itemStyle` 的`cornerRadius` 变成圆角矩形。
- `EmptyRect` : 空心正方形。
- `Triangle` : 三角形。
- `EmptyTriangle` : 空心三角形。
- `Diamond` : 菱形。
- `EmptyDiamond` : 空心菱形。
- `Arrow` : 箭头。
- `EmptyArrow` : 空心箭头。
- `Plus` : 加号。
- `Minus` : 减号。
### SymbolStyle.width
2024-09-24 18:26:45 +08:00
`float` `0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形的宽。
## TextLimit
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。 只在类目轴中有效。
### TextLimit.enable
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否启用文本自适应。 [default:true]
### TextLimit.gap
2024-09-24 18:26:45 +08:00
`float` `1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
两边留白像素距离。 [default:10f]
### TextLimit.maxWidth
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Clipping occurs when the width of the text is greater than this value.
### TextLimit.suffix
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
长度超出时的后缀。 [default: "..."]
## TextPadding
class in XCharts.Runtime / 继承自: [Padding ](#padding )
文本的内边距设置。
## TextStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
文本的相关设置。
### TextStyle.alignment
`TextAnchor`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
对齐方式。
### TextStyle.autoAlign
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本是否让系统自动选对齐方式。为false时才会用alignment。
### TextStyle.autoColor
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否开启自动颜色。当开启时,会自动设置颜色。
### TextStyle.autoWrap
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否自动换行。
### TextStyle.color
`Color`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本的颜色。 [default: `Color.clear` ]
### TextStyle.font
`Font`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本字体。 [default: null]
### TextStyle.fontSize
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本字体大小。 [default: 18]
### TextStyle.fontStyle
`FontStyle`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本字体的风格。 [default: FontStyle.Normal]
### TextStyle.lineSpacing
2024-09-24 18:26:45 +08:00
`float` `1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
行间距。 [default: 1f]
### TextStyle.rotate
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本的旋转。 [default: `0f` ]
### TextStyle.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文本的相关设置。
### TextStyle.tMPFont
`TMP_FontAsset`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
TextMeshPro字体。
### TextStyle.tMPFontStyle
`FontStyles`
### TextStyle.tMPSpriteAsset
`TMP_SpriteAsset` `v3.1.0`
## Theme
class in XCharts.Runtime / 继承自: [ScriptableObject ](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject )
主题相关配置。
### Theme.axis
2024-09-24 18:26:45 +08:00
[AxisTheme ](#axistheme )
2024-09-21 13:31:16 +08:00
### Theme.backgroundColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
背景颜色。
### Theme.colorPalette
`List<Color32>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。
### Theme.common
2024-09-24 18:26:45 +08:00
[ComponentTheme ](#componenttheme )
2024-09-21 13:31:16 +08:00
### Theme.contrastColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
对比色。
### Theme.dataZoom
2024-09-24 18:26:45 +08:00
[DataZoomTheme ](#datazoomtheme )
2024-09-21 13:31:16 +08:00
### Theme.font
`Font`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
主题字体。
### Theme.legend
2024-09-24 18:26:45 +08:00
[LegendTheme ](#legendtheme )
2024-09-21 13:31:16 +08:00
### Theme.serie
2024-09-24 18:26:45 +08:00
[SerieTheme ](#serietheme )
2024-09-21 13:31:16 +08:00
### Theme.subTitle
2024-09-24 18:26:45 +08:00
[SubTitleTheme ](#subtitletheme )
2024-09-21 13:31:16 +08:00
### Theme.themeName
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
主题名称。
### Theme.themeType
2024-09-24 18:26:45 +08:00
[ThemeType ](#themetype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
主题类型。
可选:
- `Default` : 默认主题。
- `Light` : 亮主题。
- `Dark` : 暗主题。
- `Custom` : 自定义主题。
### Theme.title
2024-09-24 18:26:45 +08:00
[TitleTheme ](#titletheme )
2024-09-21 13:31:16 +08:00
### Theme.tMPFont
`TMP_FontAsset`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
主题字体。
### Theme.tooltip
2024-09-24 18:26:45 +08:00
[TooltipTheme ](#tooltiptheme )
2024-09-21 13:31:16 +08:00
### Theme.visualMap
2024-09-24 18:26:45 +08:00
[VisualMapTheme ](#visualmaptheme )
2024-09-21 13:31:16 +08:00
## ThemeStyle
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
主题相关配置。
### ThemeStyle.customBackgroundColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
自定义的背景颜色。
### ThemeStyle.customColorPalette
`List<Color32>`
### ThemeStyle.customFont
`Font`
### ThemeStyle.enableCustomTheme
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否自定义主题颜色。当设置为true时, 可以用‘ sync color to custom’ 同步主题的颜色到自定义颜色。也可以手动设置。
### ThemeStyle.sharedTheme
2024-09-24 18:26:45 +08:00
[Theme ](#theme )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
主题配置。
2024-09-21 13:31:16 +08:00
### ThemeStyle.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-21 13:31:16 +08:00
### ThemeStyle.transparentBackground
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否透明背景颜色。当设置为true时, 不绘制背景颜色。
## Title
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent ), [IPropertyChanged ](#ipropertychanged )
标题组件,包含主标题和副标题。
### Title.itemGap
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
主副标题之间的间距。
### Title.labelStyle
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
主标题文本样式。
2024-09-21 13:31:16 +08:00
### Title.location
2024-09-24 18:26:45 +08:00
[Location ](#location )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
标题显示位置。
2024-09-21 13:31:16 +08:00
### Title.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示标题组件。
### Title.subLabelStyle
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
副标题文本样式。
2024-09-21 13:31:16 +08:00
### Title.subText
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
副标题文本,支持使用 \n 换行。
### Title.text
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
主标题文本,支持使用 \n 换行。
## TitleStyle
class in XCharts.Runtime / 继承自: [LabelStyle ](#labelstyle ), [ISerieDataComponent ](#iseriedatacomponent ), [ISerieComponent ](#iseriecomponent )
标题相关设置。
## TitleTheme
class in XCharts.Runtime / 继承自: [ComponentTheme ](#componenttheme )
## Tooltip
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent )
提示框组件。
### Tooltip.alwayShowContent
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否触发后一直显示提示框浮层。
### Tooltip.backgroundColor
`Color`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
提示框的背景颜色。
### Tooltip.backgroundImage
`Sprite`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
提示框的背景图片。
### Tooltip.backgroundType
`Image.Type`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
提示框的背景图片显示类型。
### Tooltip.borderColor
2024-09-24 18:26:45 +08:00
`Color32` `Color32(230, 230, 230, 255)`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框颜色。
### Tooltip.borderWidth
2024-09-24 18:26:45 +08:00
`float` `2f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框线宽。
2025-03-16 10:45:38 +08:00
### Tooltip.columnGapWidths
`List<float>` `v3.14.0`
内容部分的列间距。当只有一列时,只表示第二列的间距。
2024-09-21 13:31:16 +08:00
### Tooltip.contentLabelStyles
`List<LabelStyle>`
2024-09-22 09:54:11 +08:00
2025-03-16 10:45:38 +08:00
内容部分的列文本样式列表。第一个表示第一列的文本样式,以此类推。
2024-09-21 13:31:16 +08:00
### Tooltip.fixedHeight
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
固定高度。比 minHeight 优先。
### Tooltip.fixedWidth
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
固定宽度。比 minWidth 优先。
### Tooltip.fixedX
2024-09-24 18:26:45 +08:00
`float` `0f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
固定X位置的坐标。
### Tooltip.fixedY
2024-09-24 18:26:45 +08:00
`float` `0.7f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
固定Y位置的坐标。
### Tooltip.ignoreDataDefaultContent
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。
### Tooltip.ignoreDataShow
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示忽略数据在tooltip上。
### Tooltip.itemFormatter
`string`
2024-09-22 09:54:11 +08:00
2024-10-21 08:44:16 +08:00
提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用|来表示多个列的分隔。 模板变量有\{.\}、\{a\}、\{b\}、\{c\}、\{d\}、\{e\}、\{f\}、\{g\}。<br/> \{i\}或-表示忽略当前项。 \{.\}为当前所指示的serie或数据项的对应颜色的圆点。<br/> \{a\}为当前所指示的serie或数据项的系列名name。<br/> \{b\}为当前所指示的serie或数据项的数据项serieData的name, 或者类目值( 如折线图的X轴) 。<br/> \{c\}为当前所指示的serie或数据项的y维( dimesion为1) 的数值。<br/> \{d\}为当前所指示的serie或数据项的y维( dimesion为1) 百分比值, 注意不带%号。<br/> \{e\}为当前所指示的serie或数据项的数据项serieData的name。<br/> \{f\}为当前所指示的serie的默认维度的数据总和。<br/> \{g\}为当前所指示的serie的数据总个数。<br/> \{h\}为当前所指示的serie的十六进制颜色值。<br/> \{y\}为当前所指示的serie的y轴的类目值。<br/> \{c0\}表示当前数据项维度为0的数据。<br/> \{c1\}表示当前数据项维度为1的数据。<br/> \{d3\}表示维度3的数据的百分比。它的分母是默认维度( 一般是1维度) 数据。<br/> |表示多个列的分隔。<br/> 示例:"\{i\}", "\{.\}|\{a\}|\{c\}", "\{.\}|\{b\}|\{c2:f2\}", "\{.\}|\{b\}|\{y\}"
2024-09-21 13:31:16 +08:00
### Tooltip.itemHeight
2024-09-24 18:26:45 +08:00
`float` `25f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
数据项文本的高。
### Tooltip.lineStyle
2024-09-24 18:26:45 +08:00
[LineStyle ](#linestyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
指示线样式。
2024-09-21 13:31:16 +08:00
### Tooltip.marker
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
serie的符号标志。
### Tooltip.minHeight
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。
### Tooltip.minWidth
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。
### Tooltip.numericFormatter
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。<br/> 数字格式使用Axx的形式: A是格式说明符的单字符, 支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明, 从0-99。如: F1, E2<br/> 日期格式:以`date` 开头, 用来格式化DateTime, 常见格式有: yyyy年, MM月, dd日, HH时, mm分, ss秒, fff毫秒。如: date:yyyy-MM-dd HH:mm:ss<br/> 时间格式:以`time` 开头, 用来格式化TimeSpan, 常见格式有: d日, HH时, mm分, ss秒, fffffff小数部分。 需要Unity2018以上版本才支持格式化, 并且里面的字符要转义。如: time:d\.HH\:mm\:ss<br/> 数值格式化参考: https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings <br/> 日期格式化参考: https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings <br/> 时间格式化参考: https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings <br/> 注意: date和time格式需要`v3.12.0` 以上版本才支持。
### Tooltip.offset
2024-09-24 18:26:45 +08:00
`Vector2` `Vector2(18f, -25f)`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
提示框相对于鼠标位置的偏移。
### Tooltip.paddingLeftRight
2024-09-24 18:26:45 +08:00
`int` `10`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
左右边距。
### Tooltip.paddingTopBottom
2024-09-24 18:26:45 +08:00
`int` `10`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
上下边距。
### Tooltip.position
2024-09-24 18:26:45 +08:00
[Tooltip.Position ](#tooltipposition ) `v3.3.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
显示位置类型。
可选:
- `Auto` : 自适应。移动平台靠顶部显示,非移动平台跟随鼠标位置。
- `Custom` : 自定义。完全自定义显示位置(x,y)。
- `FixedX` : 只固定坐标X。Y跟随鼠标位置。
- `FixedY` :
### Tooltip.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示提示框组件。
### Tooltip.showContent
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示提示框浮层, 默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。
### Tooltip.titleFormatter
`string`
2024-09-22 09:54:11 +08:00
2024-10-21 08:44:16 +08:00
提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符\{i\}表示忽略不显示title。 模板变量有\{.\}、\{a\}、\{b\}、\{c\}、\{d\}、\{e\}、\{f\}、\{g\}。<br/> \{.\}为当前所指示或index为0的serie的对应颜色的圆点。<br/> \{a\}为当前所指示或index为0的serie的系列名name。<br/> \{b\}为当前所指示或index为0的serie的数据项serieData的name, 或者类目值( 如折线图的X轴) 。<br/> \{c\}为当前所指示或index为0的serie的y维( dimesion为1) 的数值。<br/> \{d\}为当前所指示或index为0的serie的y维( dimesion为1) 百分比值, 注意不带%号。<br/> \{e\}为当前所指示或index为0的serie的数据项serieData的name。<br/> \{h\}为当前所指示或index为0的serie的数据项serieData的十六进制颜色值。<br/> \{f\}为数据总和。<br/> \{g\}为数据总个数。<br/> \{y\}为value所对应的y轴的类目值。<br/> \{.1\}表示指定index为1的serie对应颜色的圆点。<br/> \{a1\}、\{b1\}、\{c1\}中的1表示指定index为1的serie。<br/> \{c1:2\}表示索引为1的serie的当前指示数据项的第3个数据( 一个数据项有多个数据, index为2表示第3个数据) 。<br/> \{c1:2-2\}表示索引为1的serie的第3个数据项的第3个数据( 也就是要指定第几个数据项时必须要指定第几个数据) 。<br/> \{d1:2:f2\}表示单独指定了数值的格式化字符串为f2( 不指定时用numericFormatter) 。<br/> \{d:0.##\} 表示单独指定了数值的格式化字符串为 0.## ( 用于百分比, 保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。<br/> 示例:"\{a\}:\{c\}"、"\{a1\}:\{c1:f1\}"、"\{a1\}:\{c1:0:f1\}"、"\{a1\}:\{c1:1-1:f1\}"
2024-09-21 13:31:16 +08:00
### Tooltip.titleHeight
2024-09-24 18:26:45 +08:00
`float` `25f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
标题文本的高。
### Tooltip.titleLabelStyle
2024-09-24 18:26:45 +08:00
[LabelStyle ](#labelstyle )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
标题的文本样式。
2024-09-21 13:31:16 +08:00
### Tooltip.trigger
2024-09-24 18:26:45 +08:00
[Tooltip.Trigger ](#tooltiptrigger )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
触发类型。
可选:
- `Item` : 数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
- `Axis` : 坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。
- `None` : 什么都不触发。
- `Auto` : 根据serie的类型自动选择触发类型。
### Tooltip.triggerOn
2024-09-24 18:26:45 +08:00
[Tooltip.TriggerOn ](#tooltiptriggeron ) `v3.11.0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
触发条件。
可选:
- `MouseMove` : 鼠标移动时触发。
- `Click` : 鼠标点击时触发。
### Tooltip.type
2024-09-24 18:26:45 +08:00
[Tooltip.Type ](#tooltiptype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
提示框指示器类型。
可选:
- `Line` : 直线指示器
- `Shadow` : 阴影指示器
- `None` : 无指示器
- `Cross` : 十字准星指示器。坐标轴显示Label和交叉线。
- `Auto` : 根据serie的类型自动选择显示指示器。
## TooltipTheme
class in XCharts.Runtime / 继承自: [ComponentTheme ](#componenttheme )
### TooltipTheme.areaColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
区域指示的颜色。
### TooltipTheme.labelBackgroundColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
十字指示器坐标轴标签的背景颜色。
### TooltipTheme.labelTextColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
十字指示器坐标轴标签的文本颜色。
### TooltipTheme.lineColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
指示线颜色。
### TooltipTheme.lineType
2024-09-24 18:26:45 +08:00
[LineStyle.Type ](#linestyletype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
坐标轴线类型。
可选:
- `Solid` : 实线
- `Dashed` : 虚线
- `Dotted` : 点线
- `DashDot` : 点划线
- `DashDotDot` : 双点划线
- `None` : 双点划线
### TooltipTheme.lineWidth
2024-09-24 18:26:45 +08:00
`float` `1f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
指示线线宽。
2023-05-28 22:42:49 +08:00
2023-03-20 22:00:02 +08:00
## UIComponentTheme
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### UIComponentTheme.sharedTheme
2023-03-20 22:00:02 +08:00
2024-09-24 18:26:45 +08:00
[Theme ](#theme )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
主题配置。
2023-03-20 22:00:02 +08:00
2024-09-21 13:31:16 +08:00
### UIComponentTheme.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-21 13:31:16 +08:00
### UIComponentTheme.transparentBackground
2024-09-24 18:26:45 +08:00
`bool` `false`
2023-05-28 22:42:49 +08:00
2024-04-22 22:25:12 +08:00
## ViewControl
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
2024-04-22 22:25:12 +08:00
> 从 `v3.11.0` 开始支持
3D视角控制组件。
2024-09-21 13:31:16 +08:00
### ViewControl.alpha
2024-09-24 18:26:45 +08:00
`float` `90f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
视角在x-z平面的角度。
2024-04-22 22:25:12 +08:00
2024-09-21 13:31:16 +08:00
### ViewControl.beta
2024-04-22 22:25:12 +08:00
2024-09-24 18:26:45 +08:00
`float` `55f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
视角在y-z平面的角度。
2024-04-22 22:25:12 +08:00
2022-10-11 07:00:35 +08:00
## VisualMap
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [MainComponent ](#maincomponent )
2022-03-24 21:48:53 +08:00
视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。
2024-09-21 13:31:16 +08:00
### VisualMap.autoMinMax
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Automatically set min, Max value 自动设置min, max的值
### VisualMap.borderWidth
2024-09-24 18:26:45 +08:00
`float` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框线宽, 单位px。
### VisualMap.calculable
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。
### VisualMap.dimension
2024-09-24 18:26:45 +08:00
`int` `-1`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Starting at 1, the default is 0 to take the last dimension in data.
### VisualMap.hoverLink
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
Conversely, when the mouse hovers over a graphic element in a diagram, the corresponding value of the visualMap component is triangulated in the corresponding position.
### VisualMap.inRange
`List<VisualMapRange>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
分段式每一段的相关配置。
### VisualMap.itemGap
2024-09-24 18:26:45 +08:00
`float` `10f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
每个图元之间的间隔距离。
### VisualMap.itemHeight
2024-09-24 18:26:45 +08:00
`float` `140f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形的高度,即颜色条的高度。
### VisualMap.itemWidth
2024-09-24 18:26:45 +08:00
`float` `20f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
图形的宽度,即颜色条的宽度。
### VisualMap.location
2024-09-24 18:26:45 +08:00
[Location ](#location )
2024-09-22 09:54:11 +08:00
2024-09-24 18:26:45 +08:00
组件显示的位置。
2024-09-21 13:31:16 +08:00
### VisualMap.max
2024-09-24 18:26:45 +08:00
`double` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
范围最大值
### VisualMap.min
2024-09-24 18:26:45 +08:00
`double` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
范围最小值
### VisualMap.orient
2024-09-24 18:26:45 +08:00
[Orient ](#orient )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
布局方式是横还是竖。
可选:
- `Horizonal` : 水平
- `Vertical` : 垂直
### VisualMap.outOfRange
`List<VisualMapRange>`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
定义 在选中范围外 的视觉颜色。
### VisualMap.range
`double[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
指定手柄对应数值的位置。range 应在[min,max]范围内。
### VisualMap.realtime
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
拖拽时,是否实时更新。
### VisualMap.selectedMode
2024-09-24 18:26:45 +08:00
[VisualMap.SelectedMode ](#visualmapselectedmode )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
选择模式。
可选:
- `Multiple` : 多选。
- `Single` : 单选。
### VisualMap.serieIndex
2024-09-24 18:26:45 +08:00
`int` `0`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
影响的serie索引。
### VisualMap.show
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件是否生效。
### VisualMap.showUI
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
是否显示组件。如果设置为 false, 不会显示, 但是数据映射的功能还存在。
### VisualMap.splitNumber
2024-09-24 18:26:45 +08:00
`int` `5`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
对于连续型数据, 自动平均切分成几段, 默认为0时自动匹配inRange颜色列表大小。
### VisualMap.text
`string[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
两端的文本,如 ['High', 'Low']。
### VisualMap.textGap
`float[]`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
两端文字主体之间的距离, 单位为px。
### VisualMap.type
2024-09-24 18:26:45 +08:00
[VisualMap.Type ](#visualmaptype )
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件类型。
可选:
- `Continuous` : 连续型。
- `Piecewise` : 分段型。
### VisualMap.workOnArea
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件是否对LineChart的AreaStyle有效。
### VisualMap.workOnLine
2024-09-24 18:26:45 +08:00
`bool` `true`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
组件是否对LineChart的LineStyle有效。
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## VisualMapRange
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ChildComponent ](#childcomponent )
### VisualMapRange.color
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
颜色
### VisualMapRange.label
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
`string`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
文字描述
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapRange.max
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`double`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
范围最大值
### VisualMapRange.min
`double`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
范围最小值
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## VisualMapTheme
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ComponentTheme ](#componenttheme )
### VisualMapTheme.backgroundColor
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
背景颜色。
2023-05-28 22:42:49 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapTheme.borderColor
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
`Color32`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框颜色。
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
### VisualMapTheme.borderWidth
`float`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
边框线宽。
### VisualMapTheme.triangeLen
2024-09-24 18:26:45 +08:00
`float` `20f`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
可视化组件的调节三角形边长。
2023-05-28 22:42:49 +08:00
2024-05-09 13:13:51 +08:00
## Wrapper<T>
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2024-05-09 13:13:51 +08:00
2022-10-11 07:00:35 +08:00
## XAxis
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Axis ](#axis )
2022-03-24 21:48:53 +08:00
直角坐标系 grid 中的 x 轴。
2024-04-22 22:25:12 +08:00
## XAxis3D
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Axis ](#axis )
2024-04-22 22:25:12 +08:00
> 从 `v3.11.0` 开始支持
直角坐标系 grid 中的 x 轴。
2022-10-11 07:00:35 +08:00
## XCResourcesImporter
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime
2022-03-24 21:48:53 +08:00
2022-10-11 07:00:35 +08:00
## XCSettings
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [ScriptableObject ](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject )
### XCSettings.axisLineType
2024-09-24 18:26:45 +08:00
[LineStyle.Type ](#linestyletype )
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
可选:
- `Solid` : 实线
- `Dashed` : 虚线
- `Dotted` : 点线
- `DashDot` : 点划线
- `DashDotDot` : 双点划线
- `None` : 双点划线
### XCSettings.axisLineWidth
2024-09-24 18:26:45 +08:00
`float` `0.8f`
2024-09-21 13:31:16 +08:00
### XCSettings.axisSplitLineType
2024-09-24 18:26:45 +08:00
[LineStyle.Type ](#linestyletype )
2024-09-21 13:31:16 +08:00
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
可选:
- `Solid` : 实线
- `Dashed` : 虚线
- `Dotted` : 点线
- `DashDot` : 点划线
- `DashDotDot` : 双点划线
- `None` : 双点划线
### XCSettings.axisSplitLineWidth
2024-09-24 18:26:45 +08:00
`float` `0.8f`
2024-09-21 13:31:16 +08:00
### XCSettings.axisTickLength
2024-09-24 18:26:45 +08:00
`float` `5f`
2024-09-21 13:31:16 +08:00
### XCSettings.axisTickWidth
2024-09-24 18:26:45 +08:00
`float` `0.8f`
2024-09-21 13:31:16 +08:00
### XCSettings.cicleSmoothness
2024-09-24 18:26:45 +08:00
`float` `2f`
2024-09-21 13:31:16 +08:00
### XCSettings.customThemes
`List<Theme>`
### XCSettings.dataZoomBorderWidth
2024-09-24 18:26:45 +08:00
`float` `0.5f`
2024-09-21 13:31:16 +08:00
### XCSettings.dataZoomDataLineWidth
2024-09-24 18:26:45 +08:00
`float` `0.5f`
2024-09-21 13:31:16 +08:00
### XCSettings.editorShowAllListData
2024-09-24 18:26:45 +08:00
`bool` `false`
2024-09-21 13:31:16 +08:00
### XCSettings.font
`Font`
### XCSettings.fontSizeLv1
2024-09-24 18:26:45 +08:00
`int` `28`
2024-09-22 09:54:11 +08:00
2024-09-21 13:31:16 +08:00
一级字体大小。
### XCSettings.fontSizeLv2
2024-09-24 18:26:45 +08:00
`int` `24`
2024-09-21 13:31:16 +08:00
### XCSettings.fontSizeLv3
2024-09-24 18:26:45 +08:00
`int` `20`
2024-09-21 13:31:16 +08:00
### XCSettings.fontSizeLv4
2024-09-24 18:26:45 +08:00
`int` `18`
2024-09-21 13:31:16 +08:00
### XCSettings.gaugeAxisLineWidth
2024-09-24 18:26:45 +08:00
`float` `15f`
2024-09-21 13:31:16 +08:00
### XCSettings.gaugeAxisSplitLineLength
2024-09-24 18:26:45 +08:00
`float` `15f`
2024-09-21 13:31:16 +08:00
### XCSettings.gaugeAxisSplitLineWidth
2024-09-24 18:26:45 +08:00
`float` `0.8f`
2024-09-21 13:31:16 +08:00
### XCSettings.gaugeAxisTickLength
2024-09-24 18:26:45 +08:00
`float` `5f`
2024-09-21 13:31:16 +08:00
### XCSettings.gaugeAxisTickWidth
2024-09-24 18:26:45 +08:00
`float` `0.8f`
2024-09-21 13:31:16 +08:00
### XCSettings.lang
2024-09-24 18:26:45 +08:00
[Lang ](#lang )
2024-09-21 13:31:16 +08:00
### XCSettings.lineSegmentDistance
2024-09-24 18:26:45 +08:00
`float` `3f`
2024-09-21 13:31:16 +08:00
### XCSettings.lineSmoothness
2024-09-24 18:26:45 +08:00
`float` `2f`
2024-09-21 13:31:16 +08:00
### XCSettings.lineSmoothStyle
2024-09-24 18:26:45 +08:00
`float` `3f`
2024-09-21 13:31:16 +08:00
### XCSettings.maxPainter
2024-09-24 18:26:45 +08:00
`int` `10`
2024-09-21 13:31:16 +08:00
### XCSettings.serieCandlestickBorderWidth
2024-09-24 18:26:45 +08:00
`float` `1f`
2024-09-21 13:31:16 +08:00
### XCSettings.serieLineSymbolSize
2024-09-24 18:26:45 +08:00
`float` `5f`
2024-09-21 13:31:16 +08:00
### XCSettings.serieLineWidth
2024-09-24 18:26:45 +08:00
`float` `1.8f`
2024-09-21 13:31:16 +08:00
### XCSettings.serieScatterSymbolSize
2024-09-24 18:26:45 +08:00
`float` `20f`
2024-09-21 13:31:16 +08:00
### XCSettings.serieSelectedRate
2024-09-24 18:26:45 +08:00
`float` `1.3f`
2024-09-21 13:31:16 +08:00
### XCSettings.tMPFont
`TMP_FontAsset`
### XCSettings.tootipLineWidth
2024-09-24 18:26:45 +08:00
`float` `0.8f`
2024-09-21 13:31:16 +08:00
### XCSettings.visualMapBorderWidth
2024-09-24 18:26:45 +08:00
`float` `0f`
2024-09-21 13:31:16 +08:00
### XCSettings.visualMapTriangeLen
2024-09-24 18:26:45 +08:00
`float` `20f`
2023-05-28 22:42:49 +08:00
2022-10-11 07:00:35 +08:00
## YAxis
2022-03-24 21:48:53 +08:00
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Axis ](#axis )
2022-03-24 21:48:53 +08:00
直角坐标系 grid 中的 y 轴。
2024-04-22 22:25:12 +08:00
## YAxis3D
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Axis ](#axis )
2024-04-22 22:25:12 +08:00
> 从 `v3.11.0` 开始支持
直角坐标系 grid 中的 y 轴。
## ZAxis3D
2024-09-21 13:31:16 +08:00
class in XCharts.Runtime / 继承自: [Axis ](#axis )
2024-04-22 22:25:12 +08:00
> 从 `v3.11.0` 开始支持
直角坐标系 grid 中的 y 轴。