sidebar_position | slug |
---|---|
31 |
/configuration |
class in XCharts.Runtime / Inherits from: Axis
Angle axis of Polar Coordinate.
float
0
Starting angle of axis. 0 degrees by default, standing for right position of center.
class in XCharts.Runtime / Inherits from: BaseAxisTheme
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Data addition animation.
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Data change animation.
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Fade in animation.
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Fade out animation.
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Data hiding animation.
class in XCharts.Runtime / Subclasses: AnimationFadeIn, AnimationFadeOut, AnimationChange, AnimationAddition, AnimationHiding, AnimationInteraction
Since
v3.8.0
the animation info.
float
0
v3.8.0
the delay time before animation start.
float
1000
v3.8.0
the duration of animation.
bool
true
v3.8.0
whether enable animation.
bool
false
v3.8.0
whether enable reverse animation.
class in XCharts.Runtime / Inherits from: AnimationInfo
Since
v3.8.0
Interactive animation of charts.
MLValue v3.8.0
the mlvalue of offset. Such as the offset of the pie chart when the sector is selected.
MLValue v3.8.0
the mlvalue of radius.
MLValue v3.8.0
the mlvalue of width.
class in XCharts.Runtime / Inherits from: ChildComponent
the animation of serie. support animation type: fadeIn, fadeOut, change, addition.
AnimationAddition v3.8.0
Add data animation configuration.
AnimationChange v3.8.0
Update data animation configuration.
Options:
Linear
:bool
true
Whether to enable animation.
AnimationFadeIn v3.8.0
Fade in animation configuration.
AnimationFadeOut v3.8.0
Fade out animation configuration.
AnimationHiding v3.8.0
Data hiding animation configuration.
AnimationInteraction v3.8.0
Interaction animation configuration.
int
2000
Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold.
The type of animation.
Options:
Default
: he default. An animation playback mode will be selected according to the actual situation.LeftToRight
: Play the animation from left to right.BottomToTop
: Play the animation from bottom to top.InsideOut
: Play animations from the inside out.AlongPath
: Play the animation along the path.Clockwise
: Play the animation clockwise.bool
v3.4.0
Animation updates independently of Time.timeScale.
class in XCharts.Runtime / Inherits from: ChildComponent, ISerieComponent, ISerieDataComponent
The style of area.
Color32
the color of area,default use serie color.
bool
v3.2.0
Whether to fill only polygonal areas. Currently, only convex polygons are supported.
float
0.6f
Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0.
the origin of area.
Options:
Auto
: to fill between axis line to data.Start
: to fill between min axis value (when not inverse) to data.End
: to fill between max axis value (when not inverse) to data.bool
true
Set this to false to prevent the areafrom showing.
Color32
Gradient color, start color to toColor.
bool
true
v3.6.0
Whether to fill the gradient color to the top. The default is true, which means that the gradient color is filled to the top. If it is false, the gradient color is filled to the actual position.
class in XCharts.Runtime / Inherits from: ChildComponent
Color32
Color.clear
the color of arrow.
float
3
The dent of arrow.
float
15
The height of arrow.
float
0
The offset of arrow.
float
10
The widht of arrow.
class in XCharts.Runtime / Inherits from: MainComponent / Subclasses: AngleAxis, ParallelAxis, RadiusAxis, SingleAxis, XAxis, XAxis3D, YAxis, YAxis3D, ZAxis3D
The axis in rectangular coordinate.
animation of axis.
axis label.
axis Line.
axis name.
axis tick.
bool
true
The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'.
double
0
The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated.
bool
true
Whether the positive position of axis is in clockwise. True for clockwise by default.
List<string>
Category data, available in type: 'Category' axis.
int
The index of the grid on which the axis are located, by default, is in the first grid.
List<Sprite>
类目数据对应的图标。
LabelStyle v3.4.0
Style of axis tooltip indicator label.
bool
Whether to add new data at the head or at the end of the list.
double
0
Compulsively set segmentation interval for axis.This is unavailable for category axis.
bool
false
Whether the axis are reversed or not. Invalid in Category
axis.
float
10
Base of logarithm, which is valid only for numeric axes with type: 'Log'.
bool
false
On the log axis, if base e is the natural number, and is true, logBase fails.
double
The maximum value of axis.Valid when minMaxType
is Custom
int
0
The max number of axis data cache.
double
The minimun value of axis.Valid when minMaxType
is Custom
float
0
v3.11.0
The minimum spacing between categories.
the type of axis minmax.
Options:
Default
: 0 - maximum.MinMax
: minimum - maximum.Custom
: Customize the minimum and maximum.MinMaxAuto
: [since("v3.7.0")]minimum - maximum, automatically calculate the appropriate values.AxisMinorSplitLine v3.2.0
axis minor split line.
AxisMinorTick v3.2.0
axis minor tick.
float
the offset of axis from the default position. Useful when the same position has multiple axes.
int
The index of the parallel on which the axis are located, by default, is in the first parallel.
int
The index of the polar on which the axis are located, by default, is in the first polar.
the position of axis in grid.
Options:
Left
: the position of axis in grid.Right
: the position of axis in grid.Bottom
: the position of axis in grid.Top
: the position of axis in grid.Center
: the position of axis in grid.bool
true
Whether to show axis.
axis split area.
axis split line.
int
0
Number of segments that the axis is split into.
the type of axis.
Options:
Value
: Numerical axis, suitable for continuous data.Category
: Category axis, suitable for discrete category data. Data should only be set via data for this type.Log
: Log axis, suitable for log data.Time
: Time axis, suitable for continuous time series data.class in XCharts.Runtime / Inherits from: ChildComponent
Since
v3.9.0
animation style of axis.
float
the duration of animation (ms). When it is set to 0, the animation duration will be automatically calculated according to the serie.
bool
true
whether to enable animation.
bool
Animation updates independently of Time.timeScale.
class in XCharts.Runtime / Inherits from: LabelStyle
Settings related to axis label.
bool
false
Set this to true so the axis labels face the inside direction.
int
0
The display interval of the axis label.
bool
false
刻度标签显示在0刻度上。
bool
false
Show negative number as positive number.
bool
true
Whether to display the last label.
bool
true
Whether to display the first label.
文本限制。
class in XCharts.Runtime / Inherits from: BaseLine
Settings related to axis line.
the arrow of line.
bool
When mutiple axes exists, this option can be used to specify which axis can be "onZero" to.
bool
Whether to show the arrow symbol of axis.
class in XCharts.Runtime / Inherits from: BaseLine
Since
v3.2.0
Minor split line of axis in grid area.
bool
auto color.
float
The distance between the split line and axis line.
class in XCharts.Runtime / Inherits from: BaseLine
Since
v3.2.0
Settings related to axis minor tick.
bool
int
5
Number of segments that the axis is split into.
class in XCharts.Runtime / Inherits from: ChildComponent
the name of axis.
The text style of axis name.
string
the name of axis.
bool
v3.1.0
Whether the axis name position are the same with 0 position of YAxis.
bool
Whether to show axis name.
class in XCharts.Runtime / Inherits from: ChildComponent
Split area of axis in grid area, not shown by default.
List<Color32>
Color of split area. SplitArea color could also be set in color array, which the split lines would take as their colors in turns. Dark and light colors in turns are used by default.
bool
Set this to true to show the splitArea.
class in XCharts.Runtime / Inherits from: BaseLine
Split line of axis in grid area.
bool
auto color.
float
The distance between the split line and axis line.
int
Interval of Axis splitLine.
bool
true
v3.3.0
Whether to show the last split line.
bool
true
v3.3.0
Whether to show the first split line.
bool
true
v3.11.0
Whether to show the Z axis part of the split line. Generally used for 3D coordinate systems.
class in XCharts.Runtime / Inherits from: BaseAxisTheme
class in XCharts.Runtime / Inherits from: BaseLine
Settings related to axis tick.
bool
Align axis tick with label, which is available only when boundaryGap is set to be true in category axis.
bool
float
The distance between the tick line and axis line.
bool
Set this to true so the axis labels face the inside direction.
bool
Whether to display the last tick.
bool
Whether to display the first tick.
int
0
Number of segments that the axis is split into.
class in XCharts.Runtime / Inherits from: MainComponent
Background component.
bool
true
Whether to use theme background color for component color when the background component is on.
BorderStyle v3.10.0
the border style of background.
Sprite
the image of background.
Color
背景图颜色。
float
0
v3.10.0
the height of background image.
Image.Type
the fill type of background image.
float
0
v3.10.0
the width of background image.
bool
true
Whether to enable the background component.
class in XCharts.Runtime / Inherits from: Serie, INeedSerieContainer
class in XCharts.Runtime / Inherits from: ComponentTheme / Subclasses: AxisTheme, RadiusAxisTheme, AngleAxisTheme, PolarAxisTheme, RadarAxisTheme
Color32
the color of line.
float
0f
the length of line.
the type of line.
Options:
Solid
: 实线Dashed
: 虚线Dotted
: 点线DashDot
: 点划线DashDotDot
: 双点划线None
: 双点划线float
1f
the width of line.
Color32
the color of minor split line.
List<Color32>
the colors of split area.
Color32
the color of split line.
float
0f
the length of split line.
the type of split line.
Options:
Solid
: 实线Dashed
: 虚线Dotted
: 点线DashDot
: 点划线DashDotDot
: 双点划线None
: 双点划线float
1f
the width of split line.
Color32
the color of tick.
float
5f
the length of tick.
float
1f
the width of tick.
class in XCharts.Runtime / Inherits from: ChildComponent / Subclasses: AxisLine, AxisMinorSplitLine, AxisMinorTick, AxisSplitLine, AxisTick
Settings related to base line.
线条样式
bool
Set this to false to prevent the axis line from showing.
class in XCharts.Runtime / Inherits from: Serie, INeedSerieContainer / Subclasses: EffectScatter, Scatter
class in XCharts.Runtime / Subclasses: Serie
class in XCharts.Runtime / Inherits from: StateStyle, ISerieComponent, ISerieDataComponent
Since
v3.2.0
Configurations of blur state.
class in XCharts.Runtime / Inherits from: ChildComponent
Since
v3.10.0
The style of border.
Color32
the color of border.
float
the width of border.
float[]
The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). When is set to (1,1,1,1), all corners are rounded.
bool
true
whether the border is rounded corner.
bool
false
whether the border is visible.
class in XCharts.Runtime / Inherits from: CoordSystem, IUpdateRuntimeData, ISerieContainer
class in XCharts.Runtime / Inherits from: Serie, INeedSerieContainer
class in XCharts.Runtime
class in XCharts.Runtime / Subclasses: AnimationStyle, AxisAnimation, AxisName, AxisSplitArea, AreaStyle, ArrowStyle, BaseLine, BorderStyle, IconStyle, ImageStyle, ItemStyle, Level, LevelStyle, LineArrow, LineStyle, Location, MLValue, MarqueeStyle, Padding, StageColor, SymbolStyle, TextLimit, TextStyle, CommentItem, CommentMarkStyle, LabelLine, LabelStyle, MarkAreaData, MarkLineData, StateStyle, VisualMapRange, ViewControl, UIComponentTheme, SerieData, SerieDataLink, ComponentTheme, SerieTheme, ThemeStyle
class in XCharts.Runtime / Inherits from: MainComponent, IPropertyChanged
comment of chart.
List<CommentItem>
The items of comment.
The text style of all comments.
The text style of all comments.
bool
true
Set this to false to prevent the comment from showing.
class in XCharts.Runtime / Inherits from: ChildComponent
comment of chart.
string
content of comment.
The text style of all comments.
Location v3.5.0
The location of comment.
Rect
the mark rect of comment.
the mark rect style.
bool
true
Set this to false to prevent this comment item from showing.
class in XCharts.Runtime / Inherits from: ChildComponent
the comment mark style.
line style of comment mark area.
bool
true
Set this to false to prevent this comment item from showing.
class in XCharts.Runtime / Inherits from: ChildComponent / Subclasses: BaseAxisTheme, DataZoomTheme, LegendTheme, SubTitleTheme, TitleTheme, TooltipTheme, VisualMapTheme
Font
the font of text.
int
18
the font size of text.
Color
the color of text.
Color
the color of text.
TMP_FontAsset
the font of chart text。
class in XCharts.Runtime / Inherits from: MainComponent / Subclasses: RadarCoord, CalendarCoord, GridCoord, GridCoord3D, ParallelCoord, PolarCoord, SingleAxisCoord
Coordinate system component.
class in XCharts.Runtime / Inherits from: MainComponent, IUpdateRuntimeData
DataZoom component is used for zooming a specific area, which enables user to investigate data in detail, or get an overview of the data, or get rid of outlier points.
阴影填充样式。
Color32
The background color of the component.
Color32
the color of dataZoom border.
float
边框宽。
float
Distance between dataZoom component and the bottom side of the container. bottom value is a instant pixel value like 10 or float value [0-1].
bool
true
Whether to show dataZoom.
float
The end percentage of the window out of the data extent, in the range of 0 ~ 100.
bool
v3.6.0
Lock end value.
Color32
the color of dataZoom data area.
The mode of data filter.
Options:
Filter
: data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered if one of the relevant dimensions is out of the window.WeakFilter
: data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered only if all of the relevant dimensions are out of the same side of the window.Empty
: data that outside the window will be set to NaN, which will not lead to changes of windows of other axes.None
: Do not filter data.label style.
float
Distance between dataZoom component and the left side of the container. left value is a instant pixel value like 10 or float value [0-1].
阴影线条样式。
MarqueeStyle v3.5.0
选取框样式。
int
2
Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum.
Specify whether the layout of dataZoom component is horizontal or vertical. What's more, it indicates whether the horizontal axis or vertical axis is controlled by default in catesian coordinate system.
Options:
Horizonal
: 水平Vertical
: 垂直Use absolute value or percent value in DataZoom.start and DataZoom.end.
Options:
//Value
: The value type of start and end.取值类型Percent
: percent value.float
Distance between dataZoom component and the right side of the container. right value is a instant pixel value like 10 or float value [0-1].
float
1.1f
The sensitivity of dataZoom scroll. The larger the number, the more sensitive it is.
bool
Whether to show data shadow, to indicate the data tendency in brief.
bool
Whether to show detail, that is, show the detailed data information when dragging.
float
The start percentage of the window out of the data extent, in the range of 0 ~ 100.
bool
v3.6.0
Lock start value.
bool
Whether built-in support is supported. Built into the coordinate system to allow the user to zoom in and out of the coordinate system by mouse dragging, mouse wheel, finger swiping (on the touch screen).
bool
true
Whether insde drag is supported.
bool
true
Whether inside scrolling is supported.
bool
Supported Box Selected. Provides a marquee for scaling the data area.
bool
Whether a slider is supported. There are separate sliders on which the user zooms or roams.
float
Distance between dataZoom component and the top side of the container. top value is a instant pixel value like 10 or float value [0-1].
List<int>
Specify which xAxis is controlled by the dataZoom.
List<int>
Specify which yAxis is controlled by the dataZoom.
bool
Specify whether to lock the size of window (selected area).
class in XCharts.Runtime / Inherits from: ComponentTheme
Color32
the background color of datazoom.
Color32
the color of dataZoom border.
float
the width of border line.
Color32
the color of data area line.
Color32
the color of data area line.
float
the width of data line.
Color32
the color of dataZoom data area.
class in XCharts.Runtime
bool
false
Whether to fold series in inspector view.
bool
true
Whether show debug component.
bool
false
Whether show children components of chart in hierarchy view.
bool
false
class in XCharts.Runtime / Inherits from: BaseScatter
class in XCharts.Runtime / Inherits from: StateStyle, ISerieComponent, ISerieDataComponent
Since
v3.2.0
Configurations of emphasis state.
The range of fade out when focus is enabled.
Options:
GridCoord
: coordinate system.Series
: series.Global
: global.When the data is highlighted, whether to fade out of other data to focus the highlighted.
Options:
None
: Do not fade out other data, it's by default.Self
: Only focus (not fade out) the element of the currently highlighted data.Series
: Focus on all elements of the series which the currently highlighted data belongs to.float
1.1f
Whether to scale to highlight the data in emphasis state.
class in XCharts.Runtime / Inherits from: LabelStyle
class in XCharts.Runtime / Inherits from: CoordSystem, IUpdateRuntimeData, ISerieContainer
Grid component.
Color32
Background color of grid, which is transparent by default.
Color32
The color of grid border.
float
0f
Border width of grid.
float
0.14f
Distance between grid component and the bottom side of the container.
int
-1
v3.8.0
The index of the grid layout component to which the grid belongs. The default is -1, which means that it does not belong to any grid layout component. When this value is set, the left, right, top, and bottom properties will be invalid.
float
0.11f
Distance between grid component and the left side of the container.
float
0.08f
Distance between grid component and the right side of the container.
bool
true
Whether to show the grid in rectangular coordinate.
bool
false
Whether to show the grid border.
float
0.22f
Distance between grid component and the top side of the container.
class in XCharts.Runtime / Inherits from: CoordSystem, IUpdateRuntimeData, ISerieContainer
Since
v3.11.0
Grid component.
float
0.15f
Distance between grid component and the bottom side of the container.
float
0.2f
The depth of the box in the coordinate system.
float
0.4f
The height of the box in the coordinate system.
float
0.55f
The width of the box in the coordinate system.
float
0.15f
Distance between grid component and the left side of the container.
float
0.2f
Distance between grid component and the right side of the container.
bool
true
Whether to show the grid in rectangular coordinate.
bool
false
Whether to show the grid border.
float
0.3f
Distance between grid component and the top side of the container.
View control component in 3D coordinate system.
bool
false
class in XCharts.Runtime / Inherits from: MainComponent, IUpdateRuntimeData
Since
v3.8.0
Grid layout component. Used to manage the layout of multiple GridCoord
, and the number of rows and columns of the grid can be controlled by row
and column
.
float
0.12f
Distance between grid component and the bottom side of the container.
int
2
the column count of grid layout.
bool
false
Whether to inverse the grid layout.
float
0.1f
Distance between grid component and the left side of the container.
float
0.08f
Distance between grid component and the right side of the container.
int
2
the row count of grid layout.
bool
true
Whether to show the grid in rectangular coordinate.
Vector2
Vector2.zero
the spacing of grid layout.
float
0.22f
Distance between grid component and the top side of the container.
class in XCharts.Runtime / Inherits from: Serie, INeedSerieContainer
HeatmapType v3.3.0
The mapping type of heatmap.
Options:
Data
: Data mapping type.By default, the second dimension data is used as the color map.Count
: Number mapping type.The number of occurrences of a statistic in a divided grid, as a color map.class in XCharts.Runtime / Inherits from: ChildComponent
水平方向对齐方式。
Options:
Center
: Alignment mode.Left
: Alignment mode.Right
: Alignment mode.bool
false
当label内容为空时是否自动隐藏图标
Color
图标颜色。
float
20
图标高。
显示在上层还是在下层。
Options:
UnderText
: The icon is display under the label text. 图标在标签文字下AboveText
: The icon is display above the label text. 图标在标签文字上Vector3
图标偏移。
bool
false
Whether the data icon is show.
Sprite
The image of icon.
Image.Type
How to display the icon.
float
20
图标宽。
class in XCharts.Runtime / Inherits from: ChildComponent, ISerieComponent, ISerieDataComponent
bool
是否自动颜色。
Color
图标颜色。
float
0
图标高。
bool
true
Whether the data icon is show.
Sprite
The image of icon.
Image.Type
How to display the image.
float
0
图标宽。
class in XCharts.Runtime
Indicator of radar chart, which is used to assign multiple variables(dimensions) in radar chart.
axis line.
Name options for radar indicators.
double
0
The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated.
float[]
the center of radar chart.
bool
false
Whether serie data connect to radar center with line.
int
-1
v3.8.0
Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component.
bool
true
Whether to show indicator.
float
10
The gap of indicator and radar.
List<Indicator>
the indicator list.
bool
是否Tooltip显示轴线上的所有数据。
bool
true
Whether need gradient for data line.
double
The maximum value of indicator, with default value of 0, but we recommend to set it manually.
double
The minimum value of indicator, with default value of 0.
string
The name of indicator.
Color32
Color.red
The color displayed when data out of range.
PositionType
The position type of indicator.
float
100
the radius of radar.
double[]
Normal range. When the value is outside this range, the display color is automatically changed.
Shape
Radar render type, in which 'Polygon' and 'Circle' are supported.
bool
[default:true] Set this to false to prevent the radar from showing.
Split area of axis in grid area.
split line.
int
5
Segments of indicator axis.
float
v3.4.0
起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。
class in XCharts.Runtime / Subclasses: Bar, SimplifiedBar, Candlestick, SimplifiedCandlestick, Heatmap, Line, SimplifiedLine, Parallel, Radar, BaseScatter
class in XCharts.Runtime / Subclasses: Location, Comment, Legend, Title
属性变更接口
class in XCharts.Runtime / Subclasses: AreaStyle, ImageStyle, LineArrow, LabelLine, LabelStyle, BlurStyle, EmphasisStyle, SelectStyle, TitleStyle
The interface for serie component.
class in XCharts.Runtime / Subclasses: RadarCoord, CalendarCoord, GridCoord, GridCoord3D, ParallelCoord, PolarCoord
class in XCharts.Runtime / Subclasses: AreaStyle, ImageStyle, ItemStyle, LineStyle, SerieSymbol, LabelLine, LabelStyle, BlurStyle, EmphasisStyle, SelectStyle, TitleStyle
The interface for serie data component.
class in XCharts.Runtime / Subclasses: SimplifiedBar, SimplifiedCandlestick, SimplifiedLine
class in XCharts.Runtime / Inherits from: ChildComponent, ISerieDataComponent
图形样式。
Color32
数据项背景颜色。
float
数据项背景宽度。
Color32
边框的颜色。
Color32
边框的颜色。
float
0
边框间隙。
Color32
边框的渐变色。
float
0
边框宽。
Color32
中心区域颜色。
float
中心区域间隙。
Color32
数据项颜色。
Color32
数据项颜色。
float[]
The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)).
string
提示框单项的字符串模版格式器。具体配置参考Tooltip
的formatter
string
提示框单项的字符标志。用在Tooltip中。
Color32
v3.6.0
Serie's mark color. It is only used to display Legend and Tooltip, and does not affect the drawing color. The default value is clear.
string
Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either Double.ToString ()
or DateTime.ToString()
.
The number format uses the Axx format: A is a single-character format specifier that supports C currency, D decimal, E exponent, F fixed-point number, G regular, N digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with date
, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with time
, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH:mm:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
float
1
透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
bool
true
是否启用。
Color32
Gradient color1.
Color32
Gradient color2.Only valid in line diagrams.
class in XCharts.Runtime / Subclasses: SingleAxis, DataZoom, CalendarCoord, GridCoord, GridLayout, GridCoord3D, ParallelCoord
class in XCharts.Runtime / Inherits from: ChildComponent, ISerieComponent, ISerieDataComponent
标签的引导线
The symbol of the end point of labelline.
float
60
the angle of visual guild line. Valid for broken line and curve line. Invalid in Pie.
Color32
Color32(0,0,0,0)
the color of visual guild line.
float
0f
v3.8.0
The fixed x position of the end point of visual guide line.
float
1.0f
the gap of container and guild line.
float
25f
The length of the first segment of visual guide line.
float
15f
The length of the second segment of visual guide line.
the type of visual guide line.
Options:
BrokenLine
: 折线Curves
: 曲线HorizontalLine
: 水平线float
1.0f
the width of visual guild line.
bool
true
Whether the label line is showed.
The symbol of the start point of labelline.
class in XCharts.Runtime / Inherits from: ChildComponent, ISerieComponent, ISerieDataComponent / Subclasses: AxisLabel, EndLabelStyle, TitleStyle
Text label of chart, to explain some data information about graphic item like value, name and so on.
bool
false
Whether to automatically offset. When turned on, the Y offset will automatically determine the opening of the curve to determine whether to offset up or down.
bool
false
v3.6.0
auto rotate of label.
the sytle of background.
float
the distance of label to axis line.
string
label content string template formatter. \n line wrapping is supported. Formatters for some components will not take effect.
Template placeholder have the following, some of which apply only to fixed components:
\{.\}
: indicates the dot mark.
\{a\}
: indicates the series name.
\{b\}
: category value of x axis or data name.
\{c\}
: data value.
\{d\}
: percentage.
\{e\}
: indicates the data name.
\{f\}
: data sum.
\{g\}
: indicates the total number of data.
\{h\}
: hexadecimal color value.
\{y\}
: category value of y axis.
\{value\}
: The value of the axis or legend.
The following placeholder apply to UITable
components:
\{name\}
: indicates the row name of the table.
\{index\}
: indicates the row number of the table.
The following placeholder apply to UIStatistc
components:
\{title\}
: title text.
\{dd\}
: day.
\{hh\}
: hours.
\{mm\}
: minutes.
\{ss\}
: second.
\{fff\}
: milliseconds.
\{d\}
: day.
\{h\}
: hours.
\{m\}
: minutes.
\{s\}
: second.
\{f\}
: milliseconds.
Example :{b}:{c}
float
0
the height of label. If set as default value 0, it means than the label height auto set as the text height.
the sytle of icon.
string
Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either Double.ToString ()
or DateTime.ToString()
.
The number format uses the Axx format: A is a single-character format specifier that supports C currency, D decimal, E exponent, F fixed-point number, G regular, N digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with date
, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with time
, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH:mm:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
Vector3
offset to the host graphic element.
[SerializeField]
The position of label.
float
Rotation of label.
bool
true
Whether the label is showed.
the text padding of label.
the sytle of text.
float
0
the width of label. If set as default value 0, it means than the label width auto set as the text width.
class in XCharts.Runtime / Inherits from: ScriptableObject
Language.
class in XCharts.Runtime
class in XCharts.Runtime
class in XCharts.Runtime / Inherits from: MainComponent, IPropertyChanged
Legend component.The legend component shows different sets of tags, colors, and names. You can control which series are not displayed by clicking on the legend.
ImageStyle v3.1.0
the sytle of background.
List<Color>
the colors of legend item.
List<string>
Data array of legend. An array item is usually a name representing string. (If it is a pie chart, it could also be the name of a single data in the pie chart) of a series. If data is not specified, it will be auto collected from series.
string
No longer used, the use of LabelStyle.formatter instead.
List<Sprite>
自定义的图例标记图形。
Type of legend.
Options:
Auto
: 自动匹配。Custom
: 自定义图标。EmptyCircle
: 空心圆。Circle
: 圆形。Rect
: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。Triangle
: 三角形。Diamond
: 菱形。Candlestick
: 烛台(可用于K线图)。bool
true
Whether the legend symbol matches the color automatically.
float
10f
The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout.
float
12.0f
Image height of legend symbol.
float
1
the opacity of item color.
float
25.0f
Image width of legend symbol.
the style of text.
The location of legend.
Specify whether the layout of legend component is horizontal or vertical.
Options:
Horizonal
: 水平Vertical
: 垂直Padding v3.1.0
the paddinng of item and background.
List<Vector3>
v3.6.0
the custom positions of legend item.
Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
Options:
Multiple
: 多选。Single
: 单选。None
: 无法选择。bool
true
Whether to show legend component.
TextLimit v3.10.0
the limit of text.
class in XCharts.Runtime / Inherits from: ComponentTheme
Color
the color of text.
class in XCharts.Runtime / Inherits from: ChildComponent
int
0
v3.10.0
the depth of level.
the item style of level.
the label style of level.
LineStyle v3.10.0
the line style of level.
the upper label style of level.
class in XCharts.Runtime / Inherits from: ChildComponent
Since
v3.10.0
List<Level>
各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。
bool
false
是否启用LevelStyle
class in XCharts.Runtime / Inherits from: Serie, INeedSerieContainer
class in XCharts.Runtime / Inherits from: ChildComponent, ISerieComponent
the arrow of line.
The position of arrow.
Options:
End
: 末端箭头Start
: 头端箭头bool
Whether to show the arrow.
class in XCharts.Runtime / Inherits from: ChildComponent, ISerieDataComponent
The style of line.
Color32
the color of line, default use serie color.
float
4
v3.8.1
the length of dash line. default value is 0, which means the length of dash line is 12 times of line width. Represents a multiple of the number of segments in a line chart.
float
2
v3.8.1
the length of dot line. default value is 0, which means the length of dot line is 2 times of line width. Represents a multiple of the number of segments in a line chart.
float
2
v3.8.1
the length of gap line. default value is 0, which means the length of gap line is 3 times of line width. Represents a multiple of the number of segments in a line chart.
float
0
the length of line.
float
1
Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0.
bool
true
Whether show line.
Color32
the middle color of line, default use serie color.
Color32
the end color of line, default use serie color.
the type of line.
Options:
Solid
: 实线Dashed
: 虚线Dotted
: 点线DashDot
: 点划线DashDotDot
: 双点划线None
: 双点划线float
0
the width of line.
class in XCharts.Runtime / Inherits from: ChildComponent, IPropertyChanged
Location type. Quick to set the general location.
对齐方式。
Options:
TopLeft
: 对齐方式TopRight
: 对齐方式TopCenter
: 对齐方式BottomLeft
: 对齐方式BottomRight
: 对齐方式BottomCenter
: 对齐方式Center
: 对齐方式CenterLeft
: 对齐方式CenterRight
: 对齐方式float
Distance between component and the left side of the container.
float
Distance between component and the left side of the container.
float
Distance between component and the left side of the container.
float
Distance between component and the left side of the container.
class in XCharts.Runtime / Inherits from: IComparable / Subclasses: Axis, Background, Comment, DataZoom, Legend, MarkArea, MarkLine, Settings, Title, Tooltip, VisualMap, GridLayout, CoordSystem
class in XCharts.Runtime / Inherits from: MainComponent
Used to mark an area in chart. For example, mark a time interval.
标域范围的结束数据。
标域样式。
标域文本样式。
int
0
Serie index of markArea. 标域影响的Serie索引。
bool
true
是否显示标域。
标域范围的起始数据。
string
The text of markArea. 标域显示的文本。
class in XCharts.Runtime / Inherits from: ChildComponent
标域的数据。
int
1
From which dimension of data to calculate the maximum and minimum value and so on.
string
Name of the marker, which will display as a label.
Special markArea types, are used to label maximum value, minimum value and so on.
Options:
None
: 标域类型Min
: 最小值。Max
: 最大值。Average
: 平均值。Median
: 中位数。float
The x coordinate relative to the origin, in pixels.
double
The value specified on the X-axis. A value specified when the X-axis is the category axis represents the index of the category axis data, otherwise a specific value.
float
The y coordinate relative to the origin, in pixels.
double
That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value.
class in XCharts.Runtime / Inherits from: MainComponent
Use a line in the chart to illustrate.
The animation of markline.
List<MarkLineData>
A list of marked data. When the group of data item is 0, each data item represents a line; When the group is not 0, two data items of the same group represent the starting point and the ending point of the line respectively to form a line. In this case, the relevant style parameters of the line are the parameters of the starting point.
bool
true
v3.9.0
whether the markline is on top.
int
0
The serie index of markLine.
bool
true
Whether to display the marking line.
class in XCharts.Runtime / Inherits from: ChildComponent
Since
v3.9.0
Data of marking line.
int
1
From which dimension of data to calculate the maximum and minimum value and so on.
The symbol of the end point of markline.
int
0
Grouping. When the group is not 0, it means that this data is the starting point or end point of the marking line. Data consistent with the group form a marking line.
Text styles of label. You can set position to Start, Middle, and End to display text in different locations.
The line style of markline.
string
Name of the marker, which will display as a label.
The symbol of the start point of markline.
Special label types, are used to label maximum value, minimum value and so on.
Options:
None
: 标线类型Min
: 最小值。Max
: 最大值。Average
: 平均值。Median
: 中位数。float
The x coordinate relative to the origin, in pixels.
double
The value specified on the X-axis. A value specified when the X-axis is the category axis represents the index of the category axis data, otherwise a specific value.
float
The y coordinate relative to the origin, in pixels.
double
That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value.
bool
false
Is the origin of the coordinate system.
class in XCharts.Runtime / Inherits from: ChildComponent
Since
v3.5.0
Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。
bool
false
v3.5.0
Check whether the scope is applied to the DataZoom. If this parameter is set to true, the range after the selection is complete is the DataZoom selection range.
AreaStyle v3.5.0
The area style of marquee.
LineStyle v3.5.0
The line style of marquee border.
bool
false
v3.5.0
Whether to select the actual box selection area. When true, the actual range between the mouse's actual point and the end point is used as the box selection area.
class in XCharts.Runtime / Inherits from: ChildComponent
Since
v3.8.0
多样式数值。
Options:
Percent
: Percent value form.Absolute
: Absolute value form.Extra
: Extra value form.float
class in XCharts.Runtime / Inherits from: ChildComponent / Subclasses: TextPadding
padding setting of item or text.
float
0
padding of bottom.
float
2f
padding of left.
float
2f
padding of right.
bool
true
show padding. 是否显示。
float
0
padding of top.
class in XCharts.Runtime / Inherits from: Serie, INeedSerieContainer
class in XCharts.Runtime / Inherits from: Axis
class in XCharts.Runtime / Inherits from: CoordSystem, IUpdateRuntimeData, ISerieContainer
Grid component.
Color
Background color of grid, which is transparent by default.
float
0.12f
Distance between grid component and the bottom side of the container.
float
0.1f
Distance between grid component and the left side of the container.
Orientation of the axis. By default, it's 'Vertical'. You can set it to be 'Horizonal' to make a vertical axis.
Options:
Horizonal
: 水平Vertical
: 垂直float
0.08f
Distance between grid component and the right side of the container.
bool
true
Whether to show the grid in rectangular coordinate.
float
0.22f
Distance between grid component and the top side of the container.
class in XCharts.Runtime / Inherits from: Serie
bool
false
v3.8.1
Whether to use gradient color in pie chart.
class in XCharts.Runtime / Inherits from: BaseAxisTheme
class in XCharts.Runtime / Inherits from: CoordSystem, ISerieContainer
Polar coordinate can be used in scatter and line chart. Every polar coordinate has an angleAxis and a radiusAxis.
Color
Background color of polar, which is transparent by default.
float[]
The center of ploar. The center[0] is the x-coordinate, and the center[1] is the y-coordinate. When value between 0 and 1 represents a percentage relative to the chart.
float
30f
v3.8.0
The offset of indicator label.
float[]
the radius of polar.
bool
true
Whether to show the polor component.
class in XCharts.Runtime / Inherits from: Serie, INeedSerieContainer
bool
false
v3.2.0
Whether use smooth curve.
class in XCharts.Runtime / Inherits from: BaseAxisTheme
class in XCharts.Runtime / Inherits from: CoordSystem, ISerieContainer
Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。
class in XCharts.Runtime / Inherits from: Axis
Radial axis of polar coordinate.
class in XCharts.Runtime / Inherits from: BaseAxisTheme
class in XCharts.Runtime / Inherits from: Serie
bool
false
v3.12.0
Whether to use gradient color in pie chart.
class in XCharts.Runtime / Inherits from: BaseScatter
class in XCharts.Runtime / Inherits from: StateStyle, ISerieComponent, ISerieDataComponent
Since
v3.2.0
Configurations of select state.
class in XCharts.Runtime / Inherits from: BaseSerie, IComparable / Subclasses: SerieHandler<T>, Bar, SimplifiedBar, Candlestick, SimplifiedCandlestick, Heatmap, Line, SimplifiedLine, Parallel, Pie, Radar, Ring, BaseScatter
系列。系列一般由数据和配置组成,用来表示具体的图表图形,如折线图的一条折线,柱图的一组柱子等。一个图表中可以包含多个不同类型的系列。
组件水平方向对齐方式。
Options:
Center
: Alignment mode.Left
: Alignment mode.Right
: Alignment mode.The start animation.
bool
false
If the pie chart and labels are displayed externally, whether to enable the label overlap prevention policy is disabled by default. If labels are crowded and overlapped, the positions of labels are moved to prevent label overlap.
float
0.1f
The gap between bars between different series, is a percent value like '0.3f' , which means 30% of the bar width, can be set as a fixed value. Set barGap as '-1' can overlap bars that belong to different series, which is useful when making a series of bar be background. In a single coodinate system, this attribute is shared by multiple 'bar' series. This attribute should be set on the last 'bar' series in the coodinate system, then it will be adopted by all 'bar' series in the coordinate system.
float
0
v3.5.0
The max width of the bar. Adaptive when default 0.
bool
false
柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。
柱形图类型。
Options:
Normal
: normal bar.Zebra
: zebra bar.Capsule
: capsule bar.float
0
The width of the bar. Adaptive when default 0.
float
2f
斑马线的间距。
float
4f
斑马线的粗细。
float
Distance between component and the bottom side of the container.
float[]
the center of chart.
bool
true
Whether offset when mouse click pie chart item.
bool
false
If clip the overflow on the coordinate system.
bool
true
是否顺时针。
SerieColorBy v3.2.0
The policy to take color from theme.
Options:
Default
: Select state.Serie
: assigns the colors in the palette by serie, so that all data in the same series are in the same color.Data
: assigns colors in the palette according to data items, with each data item using a different color.string
the chart coord system of serie.
List<SerieData>
系列中的数据内容数组。SerieData可以设置1到n维数据。
组件的数据排序。
Options:
None
: In the order of data.Ascending
: Sort data in ascending order.Descending
: Sort data in descending order.float
结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。
float
gap of item.
int
-1
v3.8.0
Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component.
bool
false
是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。
bool
false
忽略数据时折线是断开还是连接。默认false为连接。
double
0
忽略数据的默认值。当ignore为true才有效。
int
The index of serie.
bool
Whether to add new data at the head or at the end of the list.
The style of data item.
bool
true
是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。
int
200
Turn on the threshold for mass optimization. Enter performance mode only when large is enabled and the amount of data is greater than the threshold.
float
Distance between component and the left side of the container.
The style of line.
The type of line chart.
Options:
Normal
: the normal line chart,Smooth
: the smooth line chart,StepStart
: step line.StepMiddle
: step line.StepEnd
: step line.List<SerieDataLink>
数据节点的边。
float
最大值。
int
The max number of serie data cache. The first data will be remove when the size of serie data is larger then maxCache.
int
The max number of data to show in chart.
float
1f
数据最大值 max 映射的宽度。
float
最小值。
float
The minimum angle of sector(0-360). It prevents some sector from being too small when value is small.
float
0f
v3.8.0
the min radius of chart. It can be used to limit the minimum radius of the rose chart.
int
The min number of data to show in chart.
bool
false
v3.10.0
Whether the label is not displayed when the enabled value is less than the specified value.
double
0
v3.10.0
When 'minShowLabel' is enabled, labels are not displayed if the value is less than this value.
float
0f
数据最小值 min 映射的宽度。
组件的朝向。
Options:
Horizonal
: 水平Vertical
: 垂直int
0
Index of parallel coord component that serie uses.
bool
false
占位模式。占位模式时,数据有效但不参与渲染和显示。
int
0
Index of polar component that serie uses.
int
0
Index of radar component that radar chart uses.
雷达图类型。
Options:
Multiple
: multiple radar.Single
: single radar.float[]
the radius of chart.
float
Distance between component and the right side of the container.
Whether to show as Nightingale chart.
Options:
None
: Don't show as Nightingale chart.Radius
: Use central angle to show the percentage of data, radius to show data size.Area
: All the sectors will share the same central angle, the data size is shown only through radiuses.bool
是否开启圆弧效果。
float
0
设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。
float
0
the min pixel dist of sample.
the type of sample.
Options:
Peak
: Take a peak. When the average value of the filter point is greater than or equal to 'sampleAverage', take the maximum value; If you do it the other way around, you get the minimum.Average
: Take the average of the filter points.Max
: Take the maximum value of the filter point.Min
: Take the minimum value of the filter point.Sum
: Take the sum of the filter points.string
Series name used for displaying in tooltip and filtering with legend.
string
the type of serie.
bool
true
Whether to show serie in chart.
bool
false
Show negative number as positive number.
int
数据项里的数据维数。
bool
在Editor的inpsector上是否显示name参数
int
0
Index of single axis component that serie uses.
bool
false
v3.4.0
Whether to restrict the curve. When true, the curve between two continuous data of the same value is restricted to not exceed the data point, and is flat to the data point.
int
刻度分割段数。最大可设置36。
string
If stack the value. On the same category axis, the series with the same stack name would be put on top of each other.
float
起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。
SerieState v3.2.0
The default state of a serie.
Options:
Normal
: Normal state.Emphasis
: Emphasis state.Blur
: Blur state.Select
: Select state.Auto
: Auto state.the symbol of serie data item.
float
Distance between component and the top side of the container.
int
0
Index of vesel component that liquid chart uses.
int
0
the index of XAxis.
int
0
the index of YAxis.
class in XCharts.Runtime / Inherits from: ChildComponent
A data item of serie.
List<double>
An arbitrary dimension data list of data item.
string
the id of data.
bool
是否忽略数据。当为 true 时,数据不进行绘制。
int
the index of SerieData.
string
the name of data item.
string
the id of parent SerieData.
float
自定义半径。可用在饼图中自定义某个数据项的半径。
bool
Whether the data item is selected.
SerieState v3.2.0
the state of serie data.
Options:
Normal
: Normal state.Emphasis
: Emphasis state.Blur
: Blur state.Select
: Select state.Auto
: Auto state.class in XCharts.Runtime / Inherits from: ChildComponent
Since
v3.10.0
the link of serie data. Used for sankey chart. Sankey chart only supports directed acyclic graph. make sure the data link is directed acyclic graph.
string
the source node name.
string
the target node name.
double
the value of link. decide the width of link.
class in XCharts.Runtime / Inherits from: SymbolStyle, ISerieDataComponent
系列数据项的标记的图形
int
1
whitch data index is when the sizeType assined as FromData.
float
1
the scale of data when sizeType assined as FromData.
bool
false
whether to show the last symbol.
int
the interval of show symbol.
float
0f
v3.3.0
Maximum symbol size.
float
0f
v3.3.0
Minimum symbol size.
bool
false
图形是否重复。
SymbolSizeFunction
the function of size when sizeType assined as Function.
the type of symbol size.
Options:
Custom
: Specify constant for symbol size.FromData
: Specify the dataIndex and dataScale to calculate symbol size.Function
: Specify function for symbol size.int
the index start to show symbol.
class in XCharts.Runtime / Inherits from: ChildComponent
Color32
Color32(235, 84, 84, 255)
K线图阳线(跌)边框色
Color32
Color32(71, 178, 98, 255)
K线图阴线(跌)边框色
float
1
K线图边框宽度
Color32
Color32(235, 84, 84, 255)
K线图阳线(涨)填充色
Color32
Color32(71, 178, 98, 255)
K线图阴线(跌)填充色
float
the symbol size of line serie.
float
the color of text.
float
the symbol size of scatter serie.
class in XCharts.Runtime / Inherits from: MainComponent
Global parameter setting component. The default value can be used in general, and can be adjusted when necessary.
float
50
v3.1.0
the max splitnumber of axis.
Material
Base Pointer 材质球,设置后会影响Axis等。
float
2f
the smoothess of cricle.
float[]
The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)).
float
2
the width of line serie legend.
float
3f
The partition distance of a line segment. A line in a normal line chart is made up of many segments, the number of which is determined by the change in value. The smaller the number of segments, the higher the number of vertices. When the area with gradient is filled, the larger the value, the worse the transition effect.
float
2f
Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase.
float
2.5f
Curve smoothing factor. By adjusting the smoothing coefficient, the curvature of the curve can be changed, and different curves with slightly different appearance can be obtained.
int
10
max painter.
bool
false
Painter是否逆序。逆序时index大的serie最先绘制。
Material
Serie Pointer 材质球,设置后会影响所有Serie。
bool
true
Material
Top Pointer 材质球。
Material
Upper Pointer 材质球。
class in XCharts.Runtime / Inherits from: Serie, INeedSerieContainer, ISimplifiedSerie
class in XCharts.Runtime / Inherits from: Serie, INeedSerieContainer, ISimplifiedSerie
class in XCharts.Runtime / Inherits from: Serie, INeedSerieContainer, ISimplifiedSerie
class in XCharts.Runtime / Inherits from: Axis, IUpdateRuntimeData
Single axis.
float
0.2f
Distance between component and the bottom side of the container.
float
50
height of axis.
float
0.1f
Distance between component and the left side of the container.
Orientation of the axis. By default, it's 'Horizontal'. You can set it to be 'Vertical' to make a vertical axis.
Options:
Horizonal
: 水平Vertical
: 垂直float
0.1f
Distance between component and the right side of the container.
float
0f
Distance between component and the top side of the container.
float
0
width of axis.
class in XCharts.Runtime / Inherits from: CoordSystem
class in XCharts.Runtime / Inherits from: ChildComponent
Color32
颜色。
float
结束位置百分比。
class in XCharts.Runtime / Inherits from: ChildComponent / Subclasses: BlurStyle, EmphasisStyle, SelectStyle
Since
v3.2.0
the state style of serie.
区域样式。
图形样式。
图形文本标签。
图形文本引导线样式。
折线样式。
bool
true
是否启用高亮样式。
标记样式。
class in XCharts.Runtime / Inherits from: ComponentTheme
class in XCharts.Runtime / Inherits from: ChildComponent / Subclasses: SerieSymbol
系列数据项的标记的图形
float
0f
v3.13.0
the border width of symbol.
Color32
图形的颜色。
Color32
v3.13.0
the color of empty symbol.
float
0
the gap of symbol and line segment.
float
0f
图形的高。
Sprite
自定义的标记图形。
Image.Type
the fill type of image.
Vector2
Vector2.zero
图形的偏移。
bool
true
Whether the symbol is showed.
float
0f
the size of symbol.
float
0f
v3.13.0
the size of symbol.
the type of symbol.
Options:
None
: 不显示标记。Custom
: 自定义标记。Circle
: 圆形。EmptyCircle
: 空心圆。Rect
: 正方形。可通过设置itemStyle
的cornerRadius
变成圆角矩形。EmptyRect
: 空心正方形。Triangle
: 三角形。EmptyTriangle
: 空心三角形。Diamond
: 菱形。EmptyDiamond
: 空心菱形。Arrow
: 箭头。EmptyArrow
: 空心箭头。Plus
: 加号。Minus
: 减号。float
0f
图形的宽。
class in XCharts.Runtime / Inherits from: ChildComponent
Text character limitation and adaptation component. When the length of the text exceeds the set length, it is cropped and suffixes are appended to the end.Only valid in the category axis.
bool
false
Whether to enable text limit.
float
1
White pixel distance at both ends.
float
0
Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom.
string
Suffixes when the length exceeds.
class in XCharts.Runtime / Inherits from: Padding
Settings related to text.
class in XCharts.Runtime / Inherits from: ChildComponent
Settings related to text.
TextAnchor
对齐方式。
bool
true
文本是否让系统自动选对齐方式。为false时才会用alignment。
bool
false
是否开启自动颜色。当开启时,会自动设置颜色。
bool
false
是否自动换行。
Color
the color of text.
Font
the font of text. When null
, the theme's font is used by default.
int
0
font size.
FontStyle
font style.
float
1f
text line spacing.
float
0
Rotation of text.
bool
true
Settings related to text.
TMP_FontAsset
the font of textmeshpro.
FontStyles
TMP_SpriteAsset
v3.1.0
class in XCharts.Runtime / Inherits from: ScriptableObject
Theme.
Color32
the background color of chart.
List<Color32>
The color list of palette. If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series.
Color32
the contrast color of chart.
Font
the font of chart text。
string
the name of theme.
the theme of chart.
Options:
Default
: 默认主题。Light
: 亮主题。Dark
: 暗主题。Custom
: 自定义主题。TMP_FontAsset
the font of chart text。
class in XCharts.Runtime / Inherits from: ChildComponent
Theme.
Color32
the custom background color of chart.
List<Color32>
Font
bool
false
Whether to customize theme colors. When set to true, you can use 'sync color to custom' to synchronize the theme color to the custom color. It can also be set manually.
the asset of theme.
bool
true
bool
false
Whether the background color is transparent. When true, the background color is not drawn.
class in XCharts.Runtime / Inherits from: MainComponent, IPropertyChanged
Title component, including main title and subtitle.
float
0
[default:8] The gap between the main title and subtitle.
The text style of main title.
The location of title component.
bool
true
[default:true] Set this to false to prevent the title from showing.
The text style of sub title.
string
Subtitle text, supporting for \n for newlines.
string
The main title text, supporting \n for newlines.
class in XCharts.Runtime / Inherits from: LabelStyle, ISerieDataComponent, ISerieComponent
the title of serie.
class in XCharts.Runtime / Inherits from: ComponentTheme
class in XCharts.Runtime / Inherits from: MainComponent
Tooltip component.
bool
false
Whether to trigger after always display.
Color
The background color of tooltip.
Sprite
The background image of tooltip.
Image.Type
The background type of tooltip.
Color32
Color32(230, 230, 230, 255)
the color of tooltip border.
float
2f
the width of tooltip border.
List<LabelStyle>
the textstyle list of content.
float
0
Fixed height. Higher priority than minHeight.
float
0
Fixed width. Higher priority than minWidth.
float
0f
the x positionn of fixedX.
float
0.7f
the y position of fixedY.
string
The default display character information for ignored data.
bool
false
Whether to show ignored data on tooltip.
string
a string template formatter for a single Serie or data item content. Support for wrapping lines with \n. Template variables are {.}, {a}, {b}, {c}, {d}.
{.} is the dot of the corresponding color of a Serie that is currently indicated or whose index is 0.
{a} is the series name of the serie that is currently indicated or whose index is 0.
{b} is the name of the data item serieData that is currently indicated or whose index is 0, or a category value (such as the X-axis of a line chart).
{c} is the value of a Y-dimension (dimesion is 1) from a Serie that is currently indicated or whose index is 0.
{d} is the percentage value of Y-dimensions (dimesion is 1) from serie that is currently indicated or whose index is 0, with no % sign.
{e} is the name of the data item serieData that is currently indicated or whose index is 0.
{f} is sum of data.
{y} is category value of y axis.
{.1} represents a dot from serie corresponding color that specifies index as 1.
1 in {a1}, {b1}, {c1} represents a serie that specifies an index of 1.
{c1:2} represents the third data from serie's current indication data item indexed to 1 (a data item has multiple data, index 2 represents the third data).
{c1:2-2} represents the third data item from serie's third data item indexed to 1 (i.e., which data item must be specified to specify).
{d1:2: F2} indicates that a formatted string with a value specified separately is F2 (numericFormatter is used when numericFormatter is not specified).
{d:0.##} indicates that a formatted string with a value specified separately is 0.## (used for percentage, reserved 2 valid digits while avoiding the situation similar to "100.00%" when using f2 ).
Example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1} : {c1:1-1: f1}"
float
25f
height of content text.
the line style of indicator line.
string
the marker of serie.
float
0
Minimum height. If fixedHeight has a value, take priority over fixedHeight.
float
0
Minimum width. If fixedWidth has a value, get fixedWidth first.
string
Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either Double.ToString ()
or DateTime.ToString()
.
The number format uses the Axx format: A is a single-character format specifier that supports C currency, D decimal, E exponent, F fixed-point number, G regular, N digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with date
, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with time
, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH:mm:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
Vector2
Vector2(18f, -25f)
The position offset of tooltip relative to the mouse position.
int
10
the text padding of left and right. defaut:5.
int
10
the text padding of top and bottom. defaut:5.
Tooltip.Position v3.3.0
Type of position.
Options:
Auto
: Auto. The mobile platform is displayed at the top, and the non-mobile platform follows the mouse position.Custom
: Custom. Fully customize display position (x,y).FixedX
: Just fix the coordinate X. Y follows the mouse position.FixedY
:bool
true
Whether to show the tooltip component.
bool
true
Whether to show the tooltip floating layer, whose default value is true. It should be configurated to be false, if you only need tooltip to trigger the event or show the axisPointer without content.
string
String template formatter for tooltip title content. \n line wrapping is supported. The placeholder {i} can be set separately to indicate that title is ignored and not displayed. Template variables are {.}, {a}, {b}, {c}, {d}, {e}, {f}, and {g}.
{.} is the dot of the corresponding color of serie currently indicated or index 0.
{a} is the series name name of serie currently indicated or index 0.
{b} is the name of the serie data item serieData currently indicated or index 0, or the category value (such as the X-axis of a line chart).
{c} is the value of the serie y-dimension (dimesion is 1) currently indicated or index is 0.
{d} is the serie y-dimensional (dimesion 1) percentage value of the currently indicated or index 0, note without the % sign.
{e} is the name of the serie data item serieData currently indicated or whose index is 0.
{h} is the hexadecimal color value of serieData for the serie data item currently indicated or index 0.
{f} is the sum of data.
{g} indicates the total number of data.
{y} is category value of y axis.
{.1} represents a dot of the corresponding color with serie specified as index 1.
The 1 in {a1}, {b1}, {c1} represents serie where index is specified as 1.
{c1:2} represents the third data of the current indicator data item in serie with index 1 (one data item has multiple data, index 2 represents the third data).
{c1:2-2} represents the third data of serie third data item with index 1 (that is, the number of data items must be specified when specifying the number of data items).
{d1:2:f2} indicates that a format string with a single value is f2 (numericFormatter is used if no value is specified).
{d:0.##} indicates that the format string with a value specified alone is 0.## # (for percentages, preserving a 2-digit significant number while avoiding the "100.00%" situation with f2).
example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1}, {c1:1-1: f1}"
float
25f
height of title text.
the textstyle of title.
Type of triggering.
Options:
Item
: Triggered by data item, which is mainly used for charts that don't have a category axis like scatter charts or pie charts.Axis
: Triggered by axes, which is mainly used for charts that have category axes, like bar charts or line charts.None
: Trigger nothing.Auto
: Auto select trigger according to serie type.Tooltip.TriggerOn v3.11.0
Condition of trigger tooltip.
Options:
MouseMove
: Trigger when mouse move.Click
: Trigger when mouse click.Indicator type.
Options:
Line
: line indicator.Shadow
: shadow crosshair indicator.None
: no indicator displayed.Cross
: crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes.Auto
: Auto select indicator according to serie type.class in XCharts.Runtime / Inherits from: ComponentTheme
Color32
the color of line.
Color32
the background color of tooltip cross indicator's axis label.
Color32
the text color of tooltip cross indicator's axis label.
Color32
the color of line.
the type of line.
Options:
Solid
: 实线Dashed
: 虚线Dotted
: 点线DashDot
: 点划线DashDotDot
: 双点划线None
: 双点划线float
1f
the width of line.
class in XCharts.Runtime / Inherits from: ChildComponent
the asset of theme.
bool
true
bool
false
class in XCharts.Runtime / Inherits from: ChildComponent
Since
v3.11.0
View control component in 3D coordinate system.
float
90f
The angle of the view in the x-z plane.
float
55f
The angle of the view in the y-z plane.
class in XCharts.Runtime / Inherits from: MainComponent
VisualMap component. Mapping data to visual elements such as colors.
bool
true
Automatically set min, Max value 自动设置min,max的值
float
0
Border line width.
bool
false
Whether the handle used for dragging is displayed (the handle can be dragged to adjust the selected range).
int
-1
Specifies "which dimension" of the data to map to the visual element. "Data" is series.data.
bool
true
When the hoverLink function is turned on, when the mouse hovers over the visualMap component, the corresponding value of the mouse position is highlighted in the corresponding graphic element in the diagram.
List<VisualMapRange>
分段式每一段的相关配置。
float
10f
每个图元之间的间隔距离。
float
140f
The height of the figure, that is, the height of the color bar.
float
20f
The width of the figure, that is, the width of the color bar.
The location of component.
double
0
范围最大值
double
0
范围最小值
Specify whether the layout of component is horizontal or vertical.
Options:
Horizonal
: 水平Vertical
: 垂直List<VisualMapRange>
Defines a visual color outside of the selected range.
double[]
Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max].
bool
true
Whether to update in real time while dragging.
the selected mode for Piecewise visualMap.
Options:
Multiple
: 多选。Single
: 单选。int
0
the serie index of visualMap.
bool
true
Whether to enable components.
bool
false
Whether to display components. If set to false, it will not show up, but the data mapping function still exists.
int
5
For continuous data, it is automatically evenly divided into several segments and automatically matches the size of inRange color list when the default is 0.
string[]
Text on both ends.
float[]
The distance between the two text bodies.
the type of visualmap component.
Options:
Continuous
: 连续型。Piecewise
: 分段型。bool
false
Whether the visualmap is work on areaStyle of linechart.
bool
true
Whether the visualmap is work on linestyle of linechart.
class in XCharts.Runtime / Inherits from: ChildComponent
Color32
颜色
string
文字描述
double
范围最大值
double
范围最小值
class in XCharts.Runtime / Inherits from: ComponentTheme
Color32
the background color of visualmap.
Color32
the color of dataZoom border.
float
the width of border.
float
20f
可视化组件的调节三角形边长。
class in XCharts.Runtime
class in XCharts.Runtime / Inherits from: Axis
The x axis in cartesian(rectangular) coordinate.
class in XCharts.Runtime / Inherits from: Axis
Since
v3.11.0
The x axis in cartesian(rectangular) coordinate.
class in XCharts.Runtime
class in XCharts.Runtime / Inherits from: ScriptableObject
Options:
Solid
: 实线Dashed
: 虚线Dotted
: 点线DashDot
: 点划线DashDotDot
: 双点划线None
: 双点划线float
0.8f
Options:
Solid
: 实线Dashed
: 虚线Dotted
: 点线DashDot
: 点划线DashDotDot
: 双点划线None
: 双点划线float
0.8f
float
5f
float
0.8f
float
2f
List<Theme>
float
0.5f
float
0.5f
bool
false
Font
int
28
一级字体大小。
int
24
int
20
int
18
float
15f
float
15f
float
0.8f
float
5f
float
0.8f
float
3f
float
2f
float
3f
int
10
float
1f
float
5f
float
1.8f
float
20f
float
1.3f
TMP_FontAsset
float
0.8f
float
0f
float
20f
class in XCharts.Runtime / Inherits from: Axis
The x axis in cartesian(rectangular) coordinate.
class in XCharts.Runtime / Inherits from: Axis
Since
v3.11.0
The x axis in cartesian(rectangular) coordinate.
class in XCharts.Runtime / Inherits from: Axis
Since
v3.11.0
The x axis in cartesian(rectangular) coordinate.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )