Theme components. Topics are used to configure other parameters such as the global color scheme for the chart.
Parameters:
*`theme`: Built-in theme types. There are `Default`, `Light`, `Dark` three optional built-in theme.
*`font`: A common font for all text.
*`backgroundColor`: Chart background color.
*`titleTextColor`: The text color of the main title.
*`titleSubTextColor`: The text color of the sub title.
*`legendTextColor`: Legend text color when actived.
*`legendUnableColor`: Legend text color when unactived.
*`axisTextColor`: The text color of axis label.
*`axisLineColor`: The color of axis line.
*`axisSplitLineColor`: The color of the dividing line of the coordinate axis is the same as the default color of the axis.
*`tooltipBackgroundColor`: The background color of the tooltip.
*`tooltipFlagAreaColor`: The color of the shadow indicator for the tooltip.
*`tooltipTextColor`: The text color of Tooltip.
*`tooltipLabelColor`: The cross indicator in the tooltip coordinates the background color of the label.
*`tooltipLineColor`: The color of the indicator line in the tooltip.
*`dataZoomTextColor`: The text color of dataZoom.
*`dataZoomLineColor`: The line color of dataZoom.
*`dataZoomSelectedColor`: The selected area color of dataZoom.
*`colorPalette`: Palette color list. 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.
API:
*`GetColor(int index)`: Gets the color of the specified index from the palette.
*`GetColorStr(int index)`: Gets the hexadecimal color string of the specified index from the palette.
*`GetColor(string hexColorStr)`: Convert the html string to color.
## `Title`
Title component, including main title and subtitle.
Parameters:
*`show`: Whether to show title component.Set this to false to prevent the title component from showing.
*`text`: The content of main title, supporting `\n` for newlines.
*`textStyle`: The text style of main title [TextStyle](#TextStyle).
*`subText`: The content of sub title, supporting `\n` for newlines.
*`subTextStyle`: The text style of sub title [TextStyle](#TextStyle).
*`itemGap`: The gap between the main title and sub title.
*`location`: The location of title component [Location](#Location).
## `TitleStyle`
Sub component for serie title.
*`show`: Whether to show serie title.
*`textStyle`: The text style of title.
## `Legend`
Legend component.The legend component shows different sets of symbol, colors, and names. You can control which series are not displayed by clicking on the legend.
Parameters:
*`show`: Whether show legend component.
*`selectedMode`: Selected mode of legend, which controls whether series can be toggled displaying by clicking legends:
*`Multiple`: multi-select.
*`Single`: single select.
*`None`: can’t select.
*`orient`: horizontal or vertical layout:
*`Horizonal`: horizontal layout.
*`Vertical`: vertical layout.
*`location`: the localtion of legend in chart [Location](#Location).
*`itemWidth`: the width of legend icon.
*`itemHeight`: the height of legend icon.
*`itemGap`: The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout.
*`itemAutoColor`: Whether the legend symbol matches the color automatically.
*`formatter`: Legend content string template formatter. Support for wrapping lines with `\n`. Template:`{name}`.
*`data`: 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.
*`icons`: The list of cunstomize icons.
*`textStyle`: The text style of legend content [TextStyle](#TextStyle).
API:
*`ClearData()`: Clear legend data.
*`ContainsData(string name)`: Whether include in legend data by the specified name.
*`RemoveData(string name)`: Remove legend from data.
*`AddData(string name)`: Add legend.
*`GetData(int index)`: Get legend.
*`GetIndex(string legendName)`: Get the index of legend.
## `Polar`
Polar coordinate can be used in scatter and line chart. Every polar coordinate has an angleAxis and a radiusAxis.
Parameters:
*`show`: Whether to show the polor component.
*`center`: 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.
*`radius`: the radius of polar.
*`backgroundColor`: Background color of polar, which is transparent by default.
## `Radar`
Radar coordinate conponnet for radar charts.
*`shape`: Radar render type, in which `Polygon` and `Circle` are supported.
*`Polygon`: Polygon.
*`Circle`: Circle.
*`positionType`: The position type of radar indicator label display.
*`Vertice`: Display at the vertex.
*`Between`: Display at the middle of line.
*`radius`: The radius of radar.[default:0.3f].
*`center`: the center of radar chart. 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.[default:[0.5f,0.4f]].
*`ceilRate`: The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated.[default:0].
*`splitNumber`: Segments of indicator axis.[default:5].
*`splitLine`: The split line style of radar [AxisSplitLine](#AxisSplitLine).
*`splitArea`: The split area style of radar [AxisSplitArea](#AxisSplitArea).
*`indicator`: Whether to show indicator.
*`indicatorGap`: The gap of indicator and radar.
*`indicatorList`: The indicator list [Radar.Indicator](#Radar.Indicator).
## `Radar.Indicator`
Indicator of radar chart, which is used to assign multiple variables(dimensions) in radar chart.
*`name`: The name of indicator.
*`max`: The maximum value of indicator, with default value of 0, but we recommend to set it manually.
*`min`: The minimum value of indicator, with default value of 0.
*`textStyle`: The text style of indicator [TextStyle](#TextStyle).
## `TextLimit`
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.
*`enable`: Whether to enable text limit. [default: `true`].
*`maxWidth`: Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom. Clipping occurs when the width of the text is greater than this value. [default: `0f`].
*`gap`: White pixel distance at both ends. [default: `10f`].
*`suffix`: Suffixes when the length exceeds. [default: `"..."`].
## `TextStyle`
The component of settings related to text.
*`rotate`: rotate of text. [default: `0f`].
*`offset`: offset of text position. [default: `Vector2.zero`].
*`color`: color of text. [default: `Color.clear`].
*`backgroundColor`: color of text background. [default: `Color.clear`].
*`font`: the font of text. When `null`, the theme's font is used by default. [default: `null`].
*`fontSize`: the size of text. [default: `18`].
*`fontStyle`: the font style of text. [default: `FontStyle.Normal`].
*`lineSpacing`: the space of text line. [default: `1f`].
*`Corss`: crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes.
*`formatter`: A string template formatter for the total content of the prompt box. Support for wrapping lines with `\n`. When formatter is not null, use formatter first, otherwise use itemFormatter.
* Template variables are `{.}`, `{a}`, `{b}`, `{c}`, `{d}`.
*`{.}` is the dot of the corresponding color of `serie` that is currently indicated or whose `index` is `0`.`
*`{a}` is the `name` of the `serie` that is currently indicated or whose `index` is `0`.
*`{b}` is the `name` of the `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 the `serie` that is currently indicated or whose `index` is `0`.
*`{d}` is the percentage value of Y-dimensions (`dimesion` is 1) from the `serie` that is currently indicated or whose `index` is `0`, with no `%` sign.
*`{.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 not specified).
*`titleFormatter`: The string template formatter for the tooltip title content. Support for wrapping lines with `\n`. This is only valid if the `itemFormatter` is in effect. The placeholder `{I}` can be set separately to indicate that the title is ignored and not displayed.
*`itemFormatter`: a string template formatter for a single Serie or data item content. Support for wrapping lines with `\n`. When `formatter` is not null, use `formatter` first, otherwise use `itemFormatter`.
*`numericFormatter`: Standard numeric format string. Used to format numeric values to display as strings. Using 'Axx' form: 'A' is the single character of the format specifier, supporting 'C' currency, 'D' decimal, 'E' exponent, 'F' number of vertices, 'G' regular, 'N' digits, 'P' percentage, 'R' round tripping, 'X' hex etc. 'XX' is the precision specification, from '0' - '99'. see: <https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings>