跳到主要内容
Version: v3.6.0

配置项手册

Serie 系列

Theme 主题

MainComponent 主组件

ChildComponent 子组件

ISerieComponent 可添加到Serie的组件

ISerieDataComponent 可添加到SerieData的组件

Other 其他组件

AngleAxis

Inherits or Implemented: Axis

极坐标系的角度轴。

fielddefaultsincecomment
startAngle0起始刻度的角度,默认为 0 度,即圆心的正右方。

AngleAxisTheme

Inherits or Implemented: BaseAxisTheme

AnimationStyle

Inherits or Implemented: ChildComponent

动画表现。

fielddefaultsincecomment
enabletrue是否开启动画效果。
type动画类型。
AnimationType:
- Default: 默认。内部会根据实际情况选择一种动画播放方式。
- LeftToRight: 从左往右播放动画。
- BottomToTop: 从下往上播放动画。
- InsideOut: 由内到外播放动画。
- AlongPath: 沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。
- Clockwise: 顺时针播放动画。
easting动画的缓动效果。
AnimationEasing:
- Linear:
threshold2000是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。
fadeInDuration1000设定的渐入动画时长(毫秒)。如果要设置单个数据项的渐入时长,可以用代码定制:customFadeInDuration。
fadeInDelay0渐入动画延时(毫秒)。如果要设置单个数据项的延时,可以用代码定制:customFadeInDelay。
fadeOutDuration1000f设定的渐出动画时长(毫秒)。如果要设置单个数据项的渐出时长,可以用代码定制:customFadeOutDuration。
fadeOutDelay0渐出动画延时(毫秒)。如果要设置单个数据项的延时,可以用代码定制:customFadeOutDelay。
dataChangeEnabletrue是否开启数据变更动画。
dataChangeDuration500数据变更的动画时长(毫秒)。
actualDuration实际的动画时长(毫秒)。
unscaledTimev3.4.0动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。

AreaStyle

Inherits or Implemented: ChildComponent,ISerieComponent,ISerieDataComponent

区域填充样式。

fielddefaultsincecomment
showtrue是否显示区域填充。
origin区域填充的起始位置。
AreaStyle.AreaOrigin:
- Auto: 填充坐标轴轴线到数据间的区域。
- Start: 填充坐标轴底部到数据间的区域。
- End: 填充坐标轴顶部到数据间的区域。
color区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。
toColor渐变色的终点颜色。
opacity0.6f图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
innerFillv3.2.0是否只填充多边形区域。目前只支持凸多边形。
toToptruev3.6.0渐变色是到顶部还是到实际位置。默认为true到顶部。

ArrowStyle

Inherits or Implemented: ChildComponent

fielddefaultsincecomment
width10箭头宽。
height15箭头高。
offset0箭头偏移。
dent3箭头的凹度。
colorColor.clear箭头颜色。

Axis

Inherits or Implemented: MainComponent

直角坐标系的坐标轴组件。

fielddefaultsincecomment
showtrue是否显示坐标轴。
type坐标轴类型。
Axis.AxisType:
- Value: 数值轴。适用于连续数据。
- Category: 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。
- Log: 对数轴。适用于对数数据。
- Time: 时间轴。适用于连续的时序数据。
minMaxType坐标轴刻度最大最小值显示类型。
Axis.AxisMinMaxType:
- Default: 0-最大值。
- MinMax: 最小值-最大值。
- Custom: 自定义最小值最大值。
gridIndex坐标轴所在的 grid 的索引,默认位于第一个 grid。
polarIndex坐标轴所在的 ploar 的索引,默认位于第一个 polar。
parallelIndex坐标轴所在的 parallel 的索引,默认位于第一个 parallel。
position坐标轴在Grid中的位置。
Axis.AxisPosition:
- Left: 坐标轴在Grid中的位置
- Right: 坐标轴在Grid中的位置
- Bottom: 坐标轴在Grid中的位置
- Top: 坐标轴在Grid中的位置
offset坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。
min设定的坐标轴刻度最小值,当minMaxType为Custom时有效。
max设定的坐标轴刻度最大值,当minMaxType为Custom时有效。
splitNumber0坐标轴的期望的分割段数。默认为0表示自动分割。
interval0强制设置坐标轴分割间隔。无法在类目轴中使用。
boundaryGaptrue坐标轴两边是否留白。只对类目轴有效。
maxCache0The first data will be remove when the size of axis data is larger then maxCache.
logBase10对数轴的底数,只在对数轴(type:'Log')中有效。
logBaseEfalse对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。
ceilRate0最大最小值向上取整的倍率。默认为0时自动计算。
inversefalse是否反向坐标轴。在类目轴中无效。
clockwisetrue刻度增长是否按顺时针,默认顺时针。
insertDataToHead添加新数据时是在列表的头部还是尾部加入。
icons类目数据对应的图标。
data类目数据,在类目轴(type: 'category')中有效。
axisLine坐标轴轴线。 AxisLine
axisName坐标轴名称。 AxisName
axisTick坐标轴刻度。 AxisTick
axisLabel坐标轴刻度标签。 AxisLabel
splitLine坐标轴分割线。 AxisSplitLine
splitArea坐标轴分割区域。 AxisSplitArea
minorTickv3.2.0坐标轴次刻度。 AxisMinorTick
minorSplitLinev3.2.0坐标轴次分割线。 AxisMinorSplitLine
indicatorLabelv3.4.0指示器文本的样式。Tooltip为Cross时使用。 LabelStyle

AxisLabel

Inherits or Implemented: LabelStyle

坐标轴刻度标签的相关设置。

fielddefaultsincecomment
interval0坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
insidefalse刻度标签是否朝内,默认朝外。
showAsPositiveNumberfalse将负数数值显示为正数。一般和SerieshowAsPositiveNumber配合使用。
onZerofalse刻度标签显示在0刻度上。
showStartLabeltrue是否显示第一个文本。
showEndLabeltrue是否显示最后一个文本。
textLimit文本限制。 TextLimit

AxisLine

Inherits or Implemented: BaseLine

坐标轴轴线。

fielddefaultsincecomment
onZeroX 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。
showArrow是否显示箭头。
arrow轴线箭头。 ArrowStyle

AxisMinorSplitLine

Inherits or Implemented: BaseLine

v3.2.0 开始支持

坐标轴在 grid 区域中的次分隔线。次分割线会对齐次刻度线 minorTick。

fielddefaultsincecomment
distance刻度线与轴线的距离。
autoColor自动设置颜色。

AxisMinorTick

Inherits or Implemented: BaseLine

v3.2.0 开始支持

坐标轴次刻度相关设置。注意:次刻度无法在类目轴中使用。

fielddefaultsincecomment
splitNumber5分隔线之间分割的刻度数。
autoColor

AxisName

Inherits or Implemented: ChildComponent

坐标轴名称。

fielddefaultsincecomment
show是否显示坐标轴名称。
name坐标轴名称。
onZerov3.1.0坐标轴名称的位置是否保持和Y轴0刻度一致。
labelStyle文本样式。 LabelStyle

AxisSplitArea

Inherits or Implemented: ChildComponent

坐标轴在 grid 区域中的分隔区域,默认不显示。

fielddefaultsincecomment
show是否显示分隔区域。
color分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。

AxisSplitLine

Inherits or Implemented: BaseLine

坐标轴在 grid 区域中的分隔线。

fielddefaultsincecomment
interval坐标轴分隔线的显示间隔。
distance刻度线与轴线的距离。
autoColor自动设置颜色。
showStartLinetruev3.3.0是否显示第一条分割线。
showEndLinetruev3.3.0是否显示最后一条分割线。

AxisTheme

Inherits or Implemented: BaseAxisTheme

AxisTick

Inherits or Implemented: BaseLine

坐标轴刻度相关设置。

fielddefaultsincecomment
alignWithLabel类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。
inside坐标轴刻度是否朝内,默认朝外。
showStartTick是否显示第一个刻度。
showEndTick是否显示最后一个刻度。
distance刻度线与轴线的距离。
splitNumber0分隔线之间分割的刻度数。
autoColor

Background

Inherits or Implemented: MainComponent

背景组件。

fielddefaultsincecomment
showtrue是否启用背景组件。
image背景图。
imageType背景图填充类型。
imageColor背景图颜色。
autoColortrue当background组件开启时,是否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时,用imageColor作为颜色。

Bar

Inherits or Implemented: Serie,INeedSerieContainer

BaseAxisTheme

Inherits or Implemented: ComponentTheme

fielddefaultsincecomment
lineType坐标轴线类型。
LineStyle.Type:
- Solid: 实线
- Dashed: 虚线
- Dotted: 点线
- DashDot: 点划线
- DashDotDot: 双点划线
- None: 双点划线
lineWidth1f坐标轴线宽。
lineLength0f坐标轴线长。
lineColor坐标轴线颜色。
splitLineType分割线线类型。
LineStyle.Type:
- Solid: 实线
- Dashed: 虚线
- Dotted: 点线
- DashDot: 点划线
- DashDotDot: 双点划线
- None: 双点划线
splitLineWidth1f分割线线宽。
splitLineLength0f分割线线长。
splitLineColor分割线线颜色。
minorSplitLineColor次分割线线颜色。
tickWidth1f刻度线线宽。
tickLength5f刻度线线长。
tickColor坐标轴线颜色。
splitAreaColors坐标轴分隔区域的颜色。

BaseLine

Inherits or Implemented: ChildComponent

线条基础配置。

fielddefaultsincecomment
show是否显示坐标轴轴线。
lineStyle线条样式 LineStyle

BaseScatter

Inherits or Implemented: Serie,INeedSerieContainer

BaseSerie

BlurStyle

Inherits or Implemented: StateStyle,ISerieComponent,ISerieDataComponent

v3.2.0 开始支持

淡出状态样式。

CalendarCoord

Inherits or Implemented: CoordSystem,IUpdateRuntimeData,ISerieContainer

Candlestick

Inherits or Implemented: Serie,INeedSerieContainer

ChartText

ChildComponent

Comment

Inherits or Implemented: MainComponent,IPropertyChanged

图表注解组件。

fielddefaultsincecomment
showtrue是否显示注解组件。
labelStyle所有组件的文本样式。 LabelStyle
markStyle所有组件的文本样式。 CommentMarkStyle
items注解项。每个注解组件可以设置多个注解项。

CommentItem

Inherits or Implemented: ChildComponent

注解项。

fielddefaultsincecomment
showtrue是否显示当前注解项。
content注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。
markRect注解区域。
markStyle注解标记区域样式。 CommentMarkStyle
labelStyle注解项的文本样式。 LabelStyle
locationv3.5.0Comment显示的位置。 Location

CommentMarkStyle

Inherits or Implemented: ChildComponent

注解项区域样式。

fielddefaultsincecomment
showtrue是否显示当前注解项。
lineStyle线条样式。 LineStyle

ComponentTheme

Inherits or Implemented: ChildComponent

fielddefaultsincecomment
font字体。
textColor文本颜色。
textBackgroundColor文本颜色。
fontSize18文本字体大小。
tMPFont字体。

CoordSystem

Inherits or Implemented: MainComponent

坐标系系统。

DataZoom

Inherits or Implemented: MainComponent,IUpdateRuntimeData

DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。

fielddefaultsincecomment
enabletrue是否显示缩放区域。
filterMode数据过滤类型。
DataZoom.FilterMode:
- Filter: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
- WeakFilter: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。
- Empty: 当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。
- None: 不过滤数据,只改变数轴范围。
xAxisIndexs控制的 x 轴索引列表。
yAxisIndexs控制的 y 轴索引列表。
supportInside是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。
supportInsideScrolltrue是否支持坐标系内滚动
supportInsideDragtrue是否支持坐标系内拖拽
supportSlider是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。
supportMarquee是否支持框选。提供一个选框进行数据区域缩放。
showDataShadow是否显示数据阴影。数据阴影可以简单地反应数据走势。
showDetail是否显示detail,即拖拽时候显示详细数值信息。
zoomLock是否锁定选择区域(或叫做数据窗口)的大小。 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。
fillerColor数据区域颜色。
borderColor边框颜色。
borderWidth边框宽。
backgroundColor组件的背景颜色。
left组件离容器左侧的距离。
right组件离容器右侧的距离。
top组件离容器上侧的距离。
bottom组件离容器下侧的距离。
rangeMode取绝对值还是百分比。
DataZoom.RangeMode:
- //Value: The value type of start and end.取值类型
- Percent: 百分比。
start数据窗口范围的起始百分比。范围是:0 ~ 100。
end数据窗口范围的结束百分比。范围是:0 ~ 100。
minShowNum1最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。
scrollSensitivity1.1f缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。
orient布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
Orient:
- Horizonal: 水平
- Vertical: 垂直
labelStyle文本标签格式。 LabelStyle
lineStyle阴影线条样式。 LineStyle
areaStyle阴影填充样式。 AreaStyle
marqueeStylev3.5.0选取框样式。 MarqueeStyle
startLockv3.6.0固定起始值,不让改变。
endLockv3.6.0固定结束值,不让改变。

DataZoomTheme

Inherits or Implemented: ComponentTheme

fielddefaultsincecomment
borderWidth边框线宽。
dataLineWidth数据阴影线宽。
fillerColor数据区域颜色。
borderColor边框颜色。
dataLineColor数据阴影的线条颜色。
dataAreaColor数据阴影的填充颜色。
backgroundColor背景颜色。

DebugInfo

fielddefaultsincecomment
showtrue是否显示Debug组件。
showDebugInfofalse
showAllChartObjectfalse是否在Hierarchy试图显示所有chart下的节点。
foldSeriesfalse是否在Inspector上折叠Serie。
labelStyleLabelStyle

EffectScatter

Inherits or Implemented: BaseScatter

EmphasisStyle

Inherits or Implemented: StateStyle,ISerieComponent,ISerieDataComponent

v3.2.0 开始支持

高亮状态样式。

fielddefaultsincecomment
scale1.1f高亮时的缩放倍数。
focus在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。
EmphasisStyle.FocusType:
- None: 不淡出其它图形,默认使用该配置。
- Self: 只聚焦(不淡出)当前高亮的数据的图形。
- Series: 聚焦当前高亮的数据所在的系列的所有图形。
blurScope在开启focus的时候,可以通过blurScope配置淡出的范围。
EmphasisStyle.BlurScope:
- GridCoord: 淡出范围为坐标系,默认使用该配置。
- Series: 淡出范围为系列。
- Global: 淡出范围为全局。

EndLabelStyle

Inherits or Implemented: LabelStyle

GridCoord

Inherits or Implemented: CoordSystem,IUpdateRuntimeData,ISerieContainer

Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.

fielddefaultsincecomment
showtrue是否显示直角坐标系网格。
left0.1fgrid 组件离容器左侧的距离。
right0.08fgrid 组件离容器右侧的距离。
top0.22fgrid 组件离容器上侧的距离。
bottom0.12fgrid 组件离容器下侧的距离。
backgroundColor网格背景色,默认透明。
showBorderfalse是否显示网格边框。
borderWidth0f网格边框宽。
borderColor网格边框颜色。

Heatmap

Inherits or Implemented: Serie,INeedSerieContainer

fielddefaultsincecomment
heatmapTypev3.3.0热力图类型。通过颜色映射划分。
HeatmapType:
- Data: 数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。
- Count: 个数映射型。统计数据在划分的格子中出现的次数,作为颜色映射。要求数据至少有2个维度数据。

IconStyle

Inherits or Implemented: ChildComponent

fielddefaultsincecomment
showfalse是否显示图标。
layer显示在上层还是在下层。
IconStyle.Layer:
- UnderText: The icon is display under the label text. 图标在标签文字下
- AboveText: The icon is display above the label text. 图标在标签文字上
align水平方向对齐方式。
Align:
- Center: 对齐方式
- Left: 对齐方式
- Right: 对齐方式
sprite图标的图片。
type图片的显示类型。
color图标颜色。
width20图标宽。
height20图标高。
offset图标偏移。
autoHideWhenLabelEmptyfalse当label内容为空时是否自动隐藏图标

ImageStyle

Inherits or Implemented: ChildComponent,ISerieComponent,ISerieDataComponent

fielddefaultsincecomment
showtrue是否显示图标。
sprite图标的图片。
type图片的显示类型。
autoColor是否自动颜色。
color图标颜色。
width0图标宽。
height0图标高。

Indicator

雷达图的指示器,用来指定雷达图中的多个变量(维度)。

fielddefaultsincecomment
name指示器名称。
max指示器的最大值,默认为 0 无限制。
min指示器的最小值,默认为 0 无限制。
range正常值范围。当数值不在这个范围时,会自动变更显示颜色。
show是否显示雷达坐标系组件。
shape雷达图绘制类型,支持 'Polygon' 和 'Circle'。
radius100雷达图的半径。
splitNumber5指示器轴的分割段数。
center雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。
axisLine轴线。 AxisLine
axisName雷达图每个指示器名称的配置项。 AxisName
splitLine分割线。 AxisSplitLine
splitArea分割区域。 AxisSplitArea
indicatortrue是否显示指示器。
positionType显示位置类型。
indicatorGap10指示器和雷达的间距。
ceilRate0最大最小值向上取整的倍率。默认为0时自动计算。
isAxisTooltip是否Tooltip显示轴线上的所有数据。
outRangeColorColor.red数值超出范围时显示的颜色。
connectCenterfalse数值是否连线到中心点。
lineGradienttrue数值线段是否需要渐变。
startAnglev3.4.0起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。
indicatorList指示器列表。

ItemStyle

Inherits or Implemented: ChildComponent,ISerieDataComponent

图形样式。

fielddefaultsincecomment
showtrue是否启用。
color数据项颜色。
color0数据项颜色。
toColor渐变色的颜色1。
toColor2渐变色的颜色2。只在折线图中有效。
markColorv3.6.0Serie的标识颜色。仅用于Legend和Tooltip的展示,不影响绘制颜色,默认为clear。
backgroundColor数据项背景颜色。
backgroundWidth数据项背景宽度。
centerColor中心区域颜色。
centerGap中心区域间隙。
borderWidth0边框宽。
borderGap0边框间隙。
borderColor边框的颜色。
borderColor0边框的颜色。
borderToColor边框的渐变色。
opacity1透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
itemMarker提示框单项的字符标志。用在Tooltip中。
itemFormatter提示框单项的字符串模版格式器。具体配置参考Tooltipformatter
numericFormatter标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
cornerRadius圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。

LabelLine

Inherits or Implemented: ChildComponent,ISerieComponent,ISerieDataComponent

标签的引导线

fielddefaultsincecomment
showtrue是否显示视觉引导线。
lineType视觉引导线类型。
LabelLine.LineType:
- BrokenLine: 折线
- Curves: 曲线
- HorizontalLine: 水平线
lineColorChartConst.clearColor32视觉引导线颜色。默认和serie一致取自调色板。
lineAngle0视觉引导线的固定角度。对折线和曲线有效。
lineWidth1.0f视觉引导线的宽度。
lineGap1.0f视觉引导线和容器的间距。
lineLength125f视觉引导线第一段的长度。
lineLength215f视觉引导线第二段的长度。
startSymbol起始点的图形标记。 SymbolStyle
endSymbol结束点的图形标记。 SymbolStyle

LabelStyle

Inherits or Implemented: ChildComponent,ISerieComponent,ISerieDataComponent

图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。

fielddefaultsincecomment
showtrue是否显示文本标签。
Position标签的位置。
autoOffsetfalse是否开启自动偏移。当开启时,Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。
offset距离图形元素的偏移
rotate文本的旋转。
autoRotatefalsev3.6.0是否自动旋转。
distance距离轴线的距离。
formatter标签内容字符串模版格式器。支持用 \n 换行。 模板变量有: {.}:圆点标记。 {a}:系列名。 {a}:系列名。 {b}:类目值或数据名。 {c}:数据值。 {d}:百分比。 {e}:数据名。 {f}:数据和。 示例:“{b}:{c}”
numericFormatter标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
width0标签的宽度。一般不用指定,不指定时则自动是文字的宽度。
height0标签的高度。一般不用指定,不指定时则自动是文字的高度。
icon图标样式。 IconStyle
background背景图样式。 ImageStyle
textPadding文本的边距。 TextPadding
textStyle文本样式。 TextStyle

Lang

Inherits or Implemented: ScriptableObject

国际化语言表。

LangCandlestick

LangTime

Legend

Inherits or Implemented: MainComponent,IPropertyChanged

图例组件。 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。

fielddefaultsincecomment
showtrue是否显示图例组件。
iconType图例类型。
Legend.Type:
- Auto: 自动匹配。
- Custom: 自定义图标。
- EmptyCircle: 空心圆。
- Circle: 圆形。
- Rect: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- Triangle: 三角形。
- Diamond: 菱形。
- Candlestick: 烛台(可用于K线图)。
selectedMode选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
Legend.SelectedMode:
- Multiple: 多选。
- Single: 单选。
- None: 无法选择。
orient布局方式是横还是竖。
Orient:
- Horizonal: 水平
- Vertical: 垂直
location图例显示的位置。 Location
itemWidth25.0f图例标记的图形宽度。
itemHeight12.0f图例标记的图形高度。
itemGap10f图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。
itemAutoColortrue图例标记的图形是否自动匹配颜色。
itemOpacity1图例标记的图形的颜色透明度。
formatter图例内容字符串模版格式器。支持用 \n 换行。 模板变量为图例名称 {value}。其他模板变量参考Toolip的itemFormatter。
numericFormatter标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
labelStyle文本样式。 LabelStyle
data图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。
icons自定义的图例标记图形。
colors图例标记的颜色列表。
backgroundv3.1.0背景图样式。 ImageStyle
paddingv3.1.0图例标记和背景的间距。 Padding
positionsv3.6.0图例标记的自定义位置列表。

LegendTheme

Inherits or Implemented: ComponentTheme

fielddefaultsincecomment
unableColor文本颜色。

Level

Inherits or Implemented: ChildComponent

fielddefaultsincecomment
label文本标签样式。 LabelStyle
upperLabel上方的文本标签样式。 LabelStyle
itemStyle数据项样式。 ItemStyle

LevelStyle

Inherits or Implemented: ChildComponent

fielddefaultsincecomment
showfalse是否启用LevelStyle
levels各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。

Line

Inherits or Implemented: Serie,INeedSerieContainer

LineArrow

Inherits or Implemented: ChildComponent,ISerieComponent

fielddefaultsincecomment
show是否显示箭头。
position箭头位置。
LineArrow.Position:
- End: 末端箭头
- Start: 头端箭头
arrow箭头。 ArrowStyle

LineStyle

Inherits or Implemented: ChildComponent,ISerieDataComponent

线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。 toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。

fielddefaultsincecomment
showtrue是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。
type线的类型。
LineStyle.Type:
- Solid: 实线
- Dashed: 虚线
- Dotted: 点线
- DashDot: 点划线
- DashDotDot: 双点划线
- None: 双点划线
color线的颜色。
toColor线的渐变颜色(需要水平方向渐变时)。
toColor2线的渐变颜色2(需要水平方向三个渐变色的渐变时)。
width0线宽。
length0线长。
opacity1线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。

Location

Inherits or Implemented: ChildComponent,IPropertyChanged

位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。

fielddefaultsincecomment
align对齐方式。
Location.Align:
- TopLeft: 对齐方式
- TopRight: 对齐方式
- TopCenter: 对齐方式
- BottomLeft: 对齐方式
- BottomRight: 对齐方式
- BottomCenter: 对齐方式
- Center: 对齐方式
- CenterLeft: 对齐方式
- CenterRight: 对齐方式
left离容器左侧的距离。
right离容器右侧的距离。
top离容器上侧的距离。
bottom离容器下侧的距离。

MainComponent

Inherits or Implemented: IComparable

MarkArea

Inherits or Implemented: MainComponent

图表标域,常用于标记图表中某个范围的数据。

fielddefaultsincecomment
showtrue是否显示标域。
textThe text of markArea. 标域显示的文本。
serieIndex0Serie index of markArea. 标域影响的Serie索引。
start标域范围的起始数据。 MarkAreaData
end标域范围的结束数据。 MarkAreaData
itemStyle标域样式。 ItemStyle
label标域文本样式。 LabelStyle

MarkAreaData

Inherits or Implemented: ChildComponent

标域的数据。

fielddefaultsincecomment
type特殊的标域类型,用于标注最大值最小值等。
MarkAreaType:
- None: 标域类型
- Min: 最小值。
- Max: 最大值。
- Average: 平均值。
- Median: 中位数。
name标注名称。会作为文字显示。
dimension1从哪个维度的数据计算最大最小值等。
xPosition相对原点的 x 坐标,单位像素。当type为None时有效。
yPosition相对原点的 y 坐标,单位像素。当type为None时有效。
xValueX轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
yValueY轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。

MarkLine

Inherits or Implemented: MainComponent

图表标线。

fielddefaultsincecomment
showtrue是否显示标线。
serieIndex0标线影响的Serie索引。
animation标线的动画样式。 AnimationStyle
data标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。

MarkLineData

Inherits or Implemented: ChildComponent

图表标线的数据。

fielddefaultsincecomment
type特殊的标线类型,用于标注最大值最小值等。
MarkLineType:
- None: 标线类型
- Min: 最小值。
- Max: 最大值。
- Average: 平均值。
- Median: 中位数。
name标线名称,将会作为文字显示。label的formatter可通过{b}显示名称,通过{c}显示数值。
dimension1从哪个维度的数据计算最大最小值等。
xPosition相对原点的 x 坐标,单位像素。当type为None时有效。
yPosition相对原点的 y 坐标,单位像素。当type为None时有效。
xValueX轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
yValueY轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
group0分组。当group不为0时,表示这个data是标线的起点或终点,group一致的data组成一条标线。
zeroPositionfalse是否为坐标系原点。
startSymbol起始点的图形标记。 SymbolStyle
endSymbol结束点的图形标记。 SymbolStyle
lineStyle标线样式。 LineStyle
label文本样式。可设置position为Start、Middle和End在不同的位置显示文本。 LabelStyle

MarqueeStyle

Inherits or Implemented: ChildComponent

v3.5.0 开始支持

Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。

fielddefaultsincecomment
applyfalsev3.5.0选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。
realRectfalsev3.5.0是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。
areaStylev3.5.0选取框区域填充样式。 AreaStyle
lineStylev3.5.0选取框区域边框样式。 LineStyle

Padding

Inherits or Implemented: ChildComponent

边距设置。

fielddefaultsincecomment
showtrueshow padding. 是否显示。
top0顶部间距。
right2f右部间距。
left2f左边间距。
bottom0底部间距。

Parallel

Inherits or Implemented: Serie,INeedSerieContainer

ParallelAxis

Inherits or Implemented: Axis

ParallelCoord

Inherits or Implemented: CoordSystem,IUpdateRuntimeData,ISerieContainer

Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.

fielddefaultsincecomment
showtrue是否显示直角坐标系网格。
orient坐标轴朝向。默认为垂直朝向。
Orient:
- Horizonal: 水平
- Vertical: 垂直
left0.1fgrid 组件离容器左侧的距离。
right0.08fgrid 组件离容器右侧的距离。
top0.22fgrid 组件离容器上侧的距离。
bottom0.12fgrid 组件离容器下侧的距离。
backgroundColor网格背景色,默认透明。

Pie

Inherits or Implemented: Serie

PolarAxisTheme

Inherits or Implemented: BaseAxisTheme

PolarCoord

Inherits or Implemented: CoordSystem,ISerieContainer

极坐标系组件。 极坐标系,可以用于散点图和折线图。每个极坐标系拥有一个角度轴和一个半径轴。

fielddefaultsincecomment
showtrue是否显示极坐标。
center极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。
radius半径。radius[0]表示内径,radius[1]表示外径。
backgroundColor极坐标的背景色,默认透明。

Radar

Inherits or Implemented: Serie,INeedSerieContainer

fielddefaultsincecomment
smoothfalsev3.2.0是否平滑曲线。平滑曲线时不支持区域填充颜色。

RadarAxisTheme

Inherits or Implemented: BaseAxisTheme

RadarCoord

Inherits or Implemented: CoordSystem,ISerieContainer

Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。

RadiusAxis

Inherits or Implemented: Axis

极坐标系的径向轴。

RadiusAxisTheme

Inherits or Implemented: BaseAxisTheme

Ring

Inherits or Implemented: Serie

Scatter

Inherits or Implemented: BaseScatter

SelectStyle

Inherits or Implemented: StateStyle,ISerieComponent,ISerieDataComponent

v3.2.0 开始支持

选中状态样式。

Serie

Inherits or Implemented: BaseSerie,IComparable

系列。

fielddefaultsincecomment
index系列索引。
showtrue系列是否显示在图表上。
coordSystem使用的坐标系。
serieType系列类型。
serieName系列名称,用于 tooltip 的显示,legend 的图例筛选。
statev3.2.0系列的默认状态。
SerieState:
- Normal: 正常状态。
- Emphasis: 高亮状态。
- Blur: 淡出状态。
- Select: 选中状态。
- Auto: 自动保持和父节点一致。一般用在SerieData。
colorByv3.2.0从主题中取色的策略。
SerieColorBy:
- Default: 默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略,Pie默认是Data策略
- Serie: 按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。
- Data: 按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。
stack数据堆叠,同个类目轴上系列配置相同的stack值后,后一个系列的值会在前一个系列的值上相加。
xAxisIndex0使用X轴的index。
yAxisIndex0使用Y轴的index。
radarIndex0雷达图所使用的 radar 组件的 index。
vesselIndex0水位图所使用的 vessel 组件的 index。
polarIndex0所使用的 polar 组件的 index。
singleAxisIndex0所使用的 singleAxis 组件的 index。
parallelIndex0所使用的 parallel coord 组件的 index。
minShow系列所显示数据的最小索引
maxShow系列所显示数据的最大索引
maxCache系列中可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。
sampleDist0采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。
sampleType采样类型。当sampleDist大于0时有效。
SampleType:
- Peak: 取峰值。
- Average: 取过滤点的平均值。
- Max: 取过滤点的最大值。
- Min: 取过滤点的最小值。
- Sum: 取过滤点的和。
sampleAverage0设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。
lineType折线图样式类型。
LineType:
- Normal: 普通折线图。
- Smooth: 平滑曲线。
- StepStart: 阶梯线图:当前点。
- StepMiddle: 阶梯线图:当前点和下一个点的中间。
- StepEnd: 阶梯线图:下一个拐点。
smoothLimitfalsev3.4.0是否限制曲线。当为true时,两个连续相同数值的数据间的曲线会限制为不超出数据点,和数据点是平直的。
barType柱形图类型。
BarType:
- Normal: 普通柱形图。
- Zebra: 斑马柱形图。
- Capsule: 胶囊柱形图。
barPercentStackfalse柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。
barWidth0柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。
barMaxWidth0v3.5.0柱条的最大宽度,默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。
barGap0.1f不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%) 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。
barZebraWidth4f斑马线的粗细。
barZebraGap2f斑马线的间距。
min最小值。
max最大值。
minSize0f数据最小值 min 映射的宽度。
maxSize1f数据最大值 max 映射的宽度。
startAngle起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。
endAngle结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。
minAngle最小的扇区角度(0-360)。用于防止某个值过小导致扇区太小影响交互。
clockwisetrue是否顺时针。
roundCap是否开启圆弧效果。
splitNumber刻度分割段数。最大可设置36。
clickOffsettrue鼠标点击时是否开启偏移,一般用在PieChart图表中。
roseType是否展示成南丁格尔图,通过半径区分数据大小。
RoseType:
- None: 不展示成南丁格尔玫瑰图。
- Radius: 扇区圆心角展现数据的百分比,半径展现数据的大小。
- Area: 所有扇区圆心角相同,仅通过半径展现数据大小。
gap间距。
center中心点。
radius半径。radius[0]表示内径,radius[1]表示外径。
showDataDimension数据项里的数据维数。
showDataName在Editor的inpsector上是否显示name参数
clipfalse是否裁剪超出坐标系部分的图形。
ignorefalse是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。
ignoreValue0忽略数据的默认值。当ignore为true才有效。
ignoreLineBreakfalse忽略数据时折线是断开还是连接。默认false为连接。
showAsPositiveNumberfalse将负数数值显示为正数。一般和AxisLabelshowAsPositiveNumber配合使用。仅在折线图和柱状图中有效。
largetrue是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。
largeThreshold200开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。
avoidLabelOverlapfalse在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。
radarType雷达图类型。
RadarType:
- Multiple: 多圈雷达图。此时可一个雷达里绘制多个圈,一个serieData就可组成一个圈(多维数据)。
- Single: 单圈雷达图。此时一个雷达只能绘制一个圈,多个serieData组成一个圈,数据取自data[1]
placeHolderfalse占位模式。占位模式时,数据有效但不参与渲染和显示。
dataSortType组件的数据排序。
SerieDataSortType:
- None: 按 data 的顺序
- Ascending: 升序
- Descending: 降序
orient组件的朝向。
Orient:
- Horizonal: 水平
- Vertical: 垂直
align组件水平方向对齐方式。
Align:
- Center: 对齐方式
- Left: 对齐方式
- Right: 对齐方式
left组件离容器左侧的距离。
right组件离容器右侧的距离。
top组件离容器上侧的距离。
bottom组件离容器下侧的距离。
insertDataToHead添加新数据时是在列表的头部还是尾部加入。
lineStyle线条样式。 LineStyle
symbol标记的图形。 SerieSymbol
animation起始动画。 AnimationStyle
itemStyle图形样式。 ItemStyle
data系列中的数据内容数组。SerieData可以设置1到n维数据。

SerieData

Inherits or Implemented: ChildComponent

系列中的一个数据项。可存储数据名和1-n维个数据。

fielddefaultsincecomment
index数据项索引。
name数据项名称。
id数据项的唯一id。唯一id不是必须设置的。
parentId父节点id。父节点id不是必须设置的。
ignore是否忽略数据。当为 true 时,数据不进行绘制。
selected该数据项是否被选中。
radius自定义半径。可用在饼图中自定义某个数据项的半径。
statev3.2.0数据项的默认状态。
SerieState:
- Normal: 正常状态。
- Emphasis: 高亮状态。
- Blur: 淡出状态。
- Select: 选中状态。
- Auto: 自动保持和父节点一致。一般用在SerieData。
data可指定任意维数的数值列表。

SerieSymbol

Inherits or Implemented: SymbolStyle,ISerieDataComponent

系列数据项的标记的图形

fielddefaultsincecomment
sizeType标记图形的大小获取方式。
SymbolSizeType:
- Custom: 自定义大小。
- FromData: 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
- Function: 通过委托函数获取。
dataIndex1当sizeType指定为FromData时,指定的数据源索引。
dataScale1当sizeType指定为FromData时,指定的倍数系数。
sizeFunction当sizeType指定为Function时,指定的委托函数。
startIndex开始显示图形标记的索引。
interval显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
forceShowLastfalse是否强制显示最后一个图形标记。
repeatfalse图形是否重复。
minSize0fv3.3.0图形最小尺寸。只在sizeType为SymbolSizeType.FromData时有效。
maxSize0fv3.3.0图形最大尺寸。只在sizeType为SymbolSizeType.FromData时有效。

SerieTheme

Inherits or Implemented: ChildComponent

fielddefaultsincecomment
lineWidth文本颜色。
lineSymbolSize折线图的Symbol大小。
scatterSymbolSize散点图的Symbol大小。
pieTooltipExtraRadius饼图鼠标移到高亮时的额外半径
selectedRate1.3f折线图或散点图在被选中时的放大倍数。
pieSelectedOffset饼图选中时的中心点偏移。
candlestickColorColor32(235, 84, 84, 255)K线图阳线(涨)填充色
candlestickColor0Color32(71, 178, 98, 255)K线图阴线(跌)填充色
candlestickBorderWidth1K线图边框宽度
candlestickBorderColorColor32(235, 84, 84, 255)K线图阳线(跌)边框色
candlestickBorderColor0Color32(71, 178, 98, 255)K线图阴线(跌)边框色

Settings

Inherits or Implemented: MainComponent

全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。

fielddefaultsincecomment
showtrue
maxPainter10设定的painter数量。
reversePainterfalsePainter是否逆序。逆序时index大的serie最先绘制。
basePainterMaterialBase Pointer 材质球,设置后会影响Axis等。
seriePainterMaterialSerie Pointer 材质球,设置后会影响所有Serie。
upperPainterMaterialUpper Pointer 材质球。
topPainterMaterialTop Pointer 材质球。
lineSmoothStyle2.5f曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。
lineSmoothness2fWhen the area with gradient is filled, the larger the value, the worse the transition effect.
lineSegmentDistance3f线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。
cicleSmoothness2f圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。
legendIconLineWidth2Line类型图例图标的线条宽度。
legendIconCornerRadius图例圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。
axisMaxSplitNumber50v3.1.0坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。

SimplifiedBar

Inherits or Implemented: Serie,INeedSerieContainer,ISimplifiedSerie

SimplifiedCandlestick

Inherits or Implemented: Serie,INeedSerieContainer,ISimplifiedSerie

SimplifiedLine

Inherits or Implemented: Serie,INeedSerieContainer,ISimplifiedSerie

SingleAxis

Inherits or Implemented: Axis,IUpdateRuntimeData

单轴。

fielddefaultsincecomment
orient坐标轴朝向。默认为水平朝向。
Orient:
- Horizonal: 水平
- Vertical: 垂直
left0.1f组件离容器左侧的距离。
right0.1f组件离容器右侧的距离。
top0f组件离容器上侧的距离。
bottom0.2f组件离容器下侧的距离。
width0坐标轴宽。
height50坐标轴高。

SingleAxisCoord

Inherits or Implemented: CoordSystem

StageColor

Inherits or Implemented: ChildComponent

fielddefaultsincecomment
percent结束位置百分比。
color颜色。

StateStyle

Inherits or Implemented: ChildComponent

v3.2.0 开始支持

Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种状态。

fielddefaultsincecomment
showtrue是否启用高亮样式。
label图形文本标签。 LabelStyle
labelLine图形文本引导线样式。 LabelLine
itemStyle图形样式。 ItemStyle
lineStyle折线样式。 LineStyle
areaStyle区域样式。 AreaStyle
symbol标记样式。 SerieSymbol

SubTitleTheme

Inherits or Implemented: ComponentTheme

SymbolStyle

Inherits or Implemented: ChildComponent

系列数据项的标记的图形

fielddefaultsincecomment
showtrue是否显示标记。
type标记类型。
SymbolType:
- None: 不显示标记。
- Custom: 自定义标记。
- Circle: 圆形。
- EmptyCircle: 空心圆。
- Rect: 正方形。可通过设置itemStylecornerRadius变成圆角矩形。
- EmptyRect: 空心正方形。
- Triangle: 三角形。
- EmptyTriangle: 空心三角形。
- Diamond: 菱形。
- EmptyDiamond: 空心菱形。
- Arrow: 箭头。
- EmptyArrow: 空心箭头。
size0f标记的大小。
gap0图形标记和线条的间隙距离。
width0f图形的宽。
height0f图形的高。
offsetVector2.zero图形的偏移。
image自定义的标记图形。
imageType图形填充类型。
color图形的颜色。

TextLimit

Inherits or Implemented: ChildComponent

文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。 只在类目轴中有效。

fielddefaultsincecomment
enablefalse是否启用文本自适应。 [default:true]
maxWidth0Clipping occurs when the width of the text is greater than this value.
gap1两边留白像素距离。 [default:10f]
suffix长度超出时的后缀。 [default: "..."]

TextPadding

Inherits or Implemented: Padding

文本的内边距设置。

TextStyle

Inherits or Implemented: ChildComponent

文本的相关设置。

fielddefaultsincecomment
showtrue文本的相关设置。
font文本字体。 [default: null]
autoWrapfalse是否自动换行。
autoAligntrue文本是否让系统自动选对齐方式。为false时才会用alignment。
rotate0文本的旋转。 [default: 0f]
autoColorfalse是否开启自动颜色。当开启时,会自动设置颜色。
color文本的颜色。 [default: Color.clear]
fontSize0文本字体大小。 [default: 18]
fontStyle文本字体的风格。 [default: FontStyle.Normal]
lineSpacing1f行间距。 [default: 1f]
alignment对齐方式。
tMPFontTextMeshPro字体。
tMPFontStyle
tMPAlignment
tMPSpriteAssetv3.1.0

Theme

Inherits or Implemented: ScriptableObject

主题相关配置。

fielddefaultsincecomment
themeType主题类型。
ThemeType:
- Default: 默认主题。
- Light: 亮主题。
- Dark: 暗主题。
- Custom: 自定义主题。
themeName主题名称。
font主题字体。
tMPFont主题字体。
contrastColor对比色。
backgroundColor背景颜色。
colorPalette调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。
commonComponentTheme
titleTitleTheme
subTitleSubTitleTheme
legendLegendTheme
axisAxisTheme
tooltipTooltipTheme
dataZoomDataZoomTheme
visualMapVisualMapTheme
serieSerieTheme

ThemeStyle

Inherits or Implemented: ChildComponent

主题相关配置。

fielddefaultsincecomment
showtrue
sharedTheme主题配置。 Theme
transparentBackgroundfalse是否透明背景颜色。当设置为true时,不绘制背景颜色。
enableCustomThemefalse是否自定义主题颜色。当设置为true时,可以用‘sync color to custom’同步主题的颜色到自定义颜色。也可以手动设置。
customFont
customBackgroundColor自定义的背景颜色。
customColorPalette

Title

Inherits or Implemented: MainComponent,IPropertyChanged

标题组件,包含主标题和副标题。

fielddefaultsincecomment
showtrue是否显示标题组件。
text主标题文本,支持使用 \n 换行。
subText副标题文本,支持使用 \n 换行。
labelStyle主标题文本样式。 LabelStyle
subLabelStyle副标题文本样式。 LabelStyle
itemGap0主副标题之间的间距。
location标题显示位置。 Location

TitleStyle

Inherits or Implemented: LabelStyle,ISerieDataComponent,ISerieComponent

标题相关设置。

TitleTheme

Inherits or Implemented: ComponentTheme

Tooltip

Inherits or Implemented: MainComponent

提示框组件。

fielddefaultsincecomment
showtrue是否显示提示框组件。
type提示框指示器类型。
Tooltip.Type:
- Line: 直线指示器
- Shadow: 阴影指示器
- None: 无指示器
- Corss: 十字准星指示器。坐标轴显示Label和交叉线。
trigger触发类型。
Tooltip.Trigger:
- Item: 数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
- Axis: 坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。
- None: 什么都不触发。
positionv3.3.0显示位置类型。
Tooltip.Position:
- Auto: 自适应。移动平台靠顶部显示,非移动平台跟随鼠标位置。
- Custom: 自定义。完全自定义显示位置(x,y)。
- FixedX: 只固定坐标X。Y跟随鼠标位置。
- FixedY:
itemFormatter提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用
titleFormatter提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{.}为当前所指示或index为0的serie的对应颜色的圆点。
{a}为当前所指示或index为0的serie的系列名name。
{b}为当前所指示或index为0的serie的数据项serieData的name,或者类目值(如折线图的X轴)。
{c}为当前所指示或index为0的serie的y维(dimesion为1)的数值。
{d}为当前所指示或index为0的serie的y维(dimesion为1)百分比值,注意不带%号。
{e}为当前所指示或index为0的serie的数据项serieData的name。
{h}为当前所指示或index为0的serie的数据项serieData的十六进制颜色值。
{f}为数据总和。
{g}为数据总个数。
{.1}表示指定index为1的serie对应颜色的圆点。
{a1}、{b1}、{c1}中的1表示指定index为1的serie。
{c1:2}表示索引为1的serie的当前指示数据项的第3个数据(一个数据项有多个数据,index为2表示第3个数据)。
{c1:2-2}表示索引为1的serie的第3个数据项的第3个数据(也就是要指定第几个数据项时必须要指定第几个数据)。
{d1:2:f2}表示单独指定了数值的格式化字符串为f2(不指定时用numericFormatter)。
{d:0.##} 表示单独指定了数值的格式化字符串为 0.## (用于百分比,保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。
示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}"
markerserie的符号标志。
fixedWidth0固定宽度。比 minWidth 优先。
fixedHeight0固定高度。比 minHeight 优先。
minWidth0最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。
minHeight0最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。
numericFormatter标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
paddingLeftRight10左右边距。
paddingTopBottom10上下边距。
ignoreDataShowfalse是否显示忽略数据在tooltip上。
ignoreDataDefaultContent被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。
showContenttrue是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。
alwayShowContentfalse是否触发后一直显示提示框浮层。
offsetVector2(18f, -25f)提示框相对于鼠标位置的偏移。
backgroundImage提示框的背景图片。
backgroundType提示框的背景图片显示类型。
backgroundColor提示框的背景颜色。
borderWidth2f边框线宽。
fixedX0f固定X位置的坐标。
fixedY0.7f固定Y位置的坐标。
titleHeight25f标题文本的高。
itemHeight25f数据项文本的高。
borderColorColor32(230, 230, 230, 255)边框颜色。
lineStyle指示线样式。 LineStyle
titleLabelStyle标题的文本样式。 LabelStyle
contentLabelStyles内容部分的文本样式列表。和列一一对应。

TooltipTheme

Inherits or Implemented: ComponentTheme

fielddefaultsincecomment
lineType坐标轴线类型。
LineStyle.Type:
- Solid: 实线
- Dashed: 虚线
- Dotted: 点线
- DashDot: 点划线
- DashDotDot: 双点划线
- None: 双点划线
lineWidth1f指示线线宽。
lineColor指示线颜色。
areaColor区域指示的颜色。
labelTextColor十字指示器坐标轴标签的文本颜色。
labelBackgroundColor十字指示器坐标轴标签的背景颜色。

UIComponentTheme

Inherits or Implemented: ChildComponent

fielddefaultsincecomment
showtrue
sharedTheme主题配置。 Theme
transparentBackgroundfalse

VisualMap

Inherits or Implemented: MainComponent

视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。

fielddefaultsincecomment
showtrue组件是否生效。
showUIfalse是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。
type组件类型。
VisualMap.Type:
- Continuous: 连续型。
- Piecewise: 分段型。
selectedMode选择模式。
VisualMap.SelectedMode:
- Multiple: 多选。
- Single: 单选。
serieIndex0影响的serie索引。
min0范围最小值
max0范围最大值
range指定手柄对应数值的位置。range 应在[min,max]范围内。
text两端的文本,如 ['High', 'Low']
textGap两端文字主体之间的距离,单位为px。
splitNumber5对于连续型数据,自动平均切分成几段,默认为0时自动匹配inRange颜色列表大小。
calculablefalse是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。
realtimetrue拖拽时,是否实时更新。
itemWidth20f图形的宽度,即颜色条的宽度。
itemHeight140f图形的高度,即颜色条的高度。
itemGap10f每个图元之间的间隔距离。
borderWidth0边框线宽,单位px。
dimension-1Starting at 1, the default is 0 to take the last dimension in data.
hoverLinktrueConversely, when the mouse hovers over a graphic element in a diagram, the corresponding value of the visualMap component is triangulated in the corresponding position.
autoMinMaxtrueAutomatically set min, Max value 自动设置min,max的值
orient布局方式是横还是竖。
Orient:
- Horizonal: 水平
- Vertical: 垂直
location组件显示的位置。 Location
workOnLinetrue组件是否对LineChart的LineStyle有效。
workOnAreafalse组件是否对LineChart的AreaStyle有效。
outOfRange定义 在选中范围外 的视觉颜色。
inRange分段式每一段的相关配置。

VisualMapRange

Inherits or Implemented: ChildComponent

fielddefaultsincecomment
min范围最小值
max范围最大值
label文字描述
color颜色

VisualMapTheme

Inherits or Implemented: ComponentTheme

fielddefaultsincecomment
borderWidth边框线宽。
borderColor边框颜色。
backgroundColor背景颜色。
triangeLen20f可视化组件的调节三角形边长。

XAxis

Inherits or Implemented: Axis

直角坐标系 grid 中的 x 轴。

XCResourcesImporter

XCSettings

Inherits or Implemented: ScriptableObject

fielddefaultsincecomment
langLang
font
tMPFont
fontSizeLv128一级字体大小。
fontSizeLv224
fontSizeLv320
fontSizeLv418
axisLineType
LineStyle.Type:
- Solid: 实线
- Dashed: 虚线
- Dotted: 点线
- DashDot: 点划线
- DashDotDot: 双点划线
- None: 双点划线
axisLineWidth0.8f
axisSplitLineType
LineStyle.Type:
- Solid: 实线
- Dashed: 虚线
- Dotted: 点线
- DashDot: 点划线
- DashDotDot: 双点划线
- None: 双点划线
axisSplitLineWidth0.8f
axisTickWidth0.8f
axisTickLength5f
gaugeAxisLineWidth15f
gaugeAxisSplitLineWidth0.8f
gaugeAxisSplitLineLength15f
gaugeAxisTickWidth0.8f
gaugeAxisTickLength5f
tootipLineWidth0.8f
dataZoomBorderWidth0.5f
dataZoomDataLineWidth0.5f
visualMapBorderWidth0f
serieLineWidth1.8f
serieLineSymbolSize5f
serieScatterSymbolSize20f
serieSelectedRate1.3f
serieCandlestickBorderWidth1f
editorShowAllListDatafalse
maxPainter10
lineSmoothStyle3f
lineSmoothness2f
lineSegmentDistance3f
cicleSmoothness2f
visualMapTriangeLen20f
pieTooltipExtraRadius8f
pieSelectedOffset8f
customThemes

YAxis

Inherits or Implemented: Axis

直角坐标系 grid 中的 y 轴。