[feature] 增加AxisindicatorLabel,移除TooltipindicatorLabelStyle (#226)

This commit is contained in:
monitor1394
2022-10-30 10:28:17 +08:00
parent e0974fffbe
commit c9d554d184
15 changed files with 152 additions and 103 deletions

View File

@@ -204,6 +204,7 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver
| GetItemColor() |public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)|
| GetLegendRealShowNameColor() |public Color32 GetLegendRealShowNameColor(string name)|
| GetLegendRealShowNameIndex() |public int GetLegendRealShowNameIndex(string name)|
| GetMarkColor() |public Color32 GetMarkColor(Serie serie, SerieData serieData)<br/>获得Serie的标识颜色。 |
| GetOrAddChartComponent&lt;T&gt;() |public T GetOrAddChartComponent&lt;T&gt;() where T : MainComponent|
| GetPainter() |public Painter GetPainter(int index)|
| GetSerie() |public Serie GetSerie(int serieIndex)|

View File

@@ -204,6 +204,7 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver
| GetItemColor() |public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)|
| GetLegendRealShowNameColor() |public Color32 GetLegendRealShowNameColor(string name)|
| GetLegendRealShowNameIndex() |public int GetLegendRealShowNameIndex(string name)|
| GetMarkColor() |public Color32 GetMarkColor(Serie serie, SerieData serieData)<br/>获得Serie的标识颜色。 |
| GetOrAddChartComponent&lt;T&gt;() |public T GetOrAddChartComponent&lt;T&gt;() where T : MainComponent|
| GetPainter() |public Painter GetPainter(int index)|
| GetSerie() |public Serie GetSerie(int serieIndex)|

View File

@@ -268,6 +268,7 @@ The axis in rectangular coordinate.
|splitArea|||axis split area. [AxisSplitArea](#AxisSplitArea)|
|minorTick||v3.2.0|axis minor tick. [AxisMinorTick](#AxisMinorTick)|
|minorSplitLine||v3.2.0|axis minor split line. [AxisMinorSplitLine](#AxisMinorSplitLine)|
|indicatorLabel||v3.4.0|Style of axis tooltip indicator label. [LabelStyle](#LabelStyle)|
## AxisLabel
@@ -1080,6 +1081,7 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable)
|serieName|||Series name used for displaying in tooltip and filtering with legend.
|state||v3.2.0|The default state of a serie.<br/>`SerieState`:<br/>- `Normal`: Normal state.<br/>- `Emphasis`: Emphasis state.<br/>- `Blur`: Blur state.<br/>- `Select`: Select state.<br/>- `Auto`: Auto state.<br/>|
|colorBy||v3.2.0|The policy to take color from theme.<br/>`SerieColorBy`:<br/>- `Default`: Select state.<br/>- `Serie`: assigns the colors in the palette by serie, so that all data in the same series are in the same color;.<br/>- `Data`: assigns colors in the palette according to data items, with each data item using a different color..<br/>|
|markColor||v3.4.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.
|stack|||If stack the value. On the same category axis, the series with the same stack name would be put on top of each other.
|xAxisIndex|0||the index of XAxis.
|yAxisIndex|0||the index of YAxis.
@@ -1458,7 +1460,6 @@ Tooltip component.
|itemHeight|25f||height of content text.
|borderColor|Color32(230, 230, 230, 255)||the color of tooltip border.
|lineStyle|||the line style of indicator line. [LineStyle](#LineStyle)|
|indicatorLabelStyle|||the label style of tooltip axis indicator label. [LabelStyle](#LabelStyle)|
|titleLabelStyle|||the textstyle of title. [LabelStyle](#LabelStyle)|
|contentLabelStyles|||the textstyle list of content.

View File

@@ -268,6 +268,7 @@ Inherits or Implemented: [MainComponent](#MainComponent)
|splitArea|||坐标轴分割区域。 [AxisSplitArea](#AxisSplitArea)|
|minorTick||v3.2.0|坐标轴次刻度。 [AxisMinorTick](#AxisMinorTick)|
|minorSplitLine||v3.2.0|坐标轴次分割线。 [AxisMinorSplitLine](#AxisMinorSplitLine)|
|indicatorLabel||v3.4.0|指示器文本的样式。Tooltip为Cross时使用。 [LabelStyle](#LabelStyle)|
## AxisLabel
@@ -1080,6 +1081,7 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable)
|serieName|||系列名称,用于 tooltip 的显示legend 的图例筛选。
|state||v3.2.0|系列的默认状态。<br/>`SerieState`:<br/>- `Normal`: 正常状态。<br/>- `Emphasis`: 高亮状态。<br/>- `Blur`: 淡出状态。<br/>- `Select`: 选中状态。<br/>- `Auto`: 自动保持和父节点一致。一般用在SerieData。<br/>|
|colorBy||v3.2.0|从主题中取色的策略。<br/>`SerieColorBy`:<br/>- `Default`: 默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略Pie默认是Data策略<br/>- `Serie`: 按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。<br/>- `Data`: 按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。<br/>|
|markColor||v3.4.0|Serie的标识颜色。仅用于Legend和Tooltip的展示不影响绘制颜色默认为clear。
|stack|||数据堆叠同个类目轴上系列配置相同的stack值后后一个系列的值会在前一个系列的值上相加。
|xAxisIndex|0||使用X轴的index。
|yAxisIndex|0||使用Y轴的index。
@@ -1458,7 +1460,6 @@ Inherits or Implemented: [MainComponent](#MainComponent)
|itemHeight|25f||数据项文本的高。
|borderColor|Color32(230, 230, 230, 255)||边框颜色。
|lineStyle|||指示线样式。 [LineStyle](#LineStyle)|
|indicatorLabelStyle|||提示框的坐标轴指示器文本的样式。 [LabelStyle](#LabelStyle)|
|titleLabelStyle|||标题的文本样式。 [LabelStyle](#LabelStyle)|
|contentLabelStyles|||内容部分的文本样式列表。和列一一对应。