更新文档

This commit is contained in:
monitor1394
2022-11-30 20:42:12 +08:00
parent 59c9d758e1
commit 8078e1c54f
5 changed files with 9 additions and 6 deletions

View File

@@ -995,7 +995,7 @@ Inherits or Implemented: [MaskableGraphic](#maskablegraphic)
|public method|description|
|--|--|
| GetItemNumericFormatter() |public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)|
| GetLineColor() |public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme)|
| GetLineColor() |public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor)|
| IsIgnoreFormatter() |public static bool IsIgnoreFormatter(string itemFormatter)|
| LimitInRect() |public static void LimitInRect(Tooltip tooltip, Rect chartRect)|

View File

@@ -379,7 +379,7 @@ Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontai
## Comment
Inherits or Implemented: [MainComponent](#maincomponent)
Inherits or Implemented: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged)
comment of chart.
@@ -400,10 +400,10 @@ comment of chart.
|--|--|--|--|
|show|true||Set this to false to prevent this comment item from showing.
|content|||content of comment.
|position|||position of comment.
|markRect|||the mark rect of comment.
|markStyle|||the mark rect style. [CommentMarkStyle](#commentmarkstyle)|
|labelStyle|||The text style of all comments. [LabelStyle](#labelstyle)|
|location||v3.5.0|The location of comment. [Location](#location)|
## CommentMarkStyle
@@ -1028,6 +1028,7 @@ Inherits or Implemented: [BaseSerie](#baseserie),[IComparable](#icomparable)
|barType|||柱形图类型。<br/>`BarType`:<br/>- `Normal`: normal bar.<br/>- `Zebra`: zebra bar.<br/>- `Capsule`: capsule bar.<br/>|
|barPercentStack|false||柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true则就显示成百分比堆叠柱状图。
|barWidth|0||The width of the bar. Adaptive when default 0.
|barMaxWidth|0|v3.5.0|The max width of the bar. Adaptive when default 0.
|barGap|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.
|barZebraWidth|4f||斑马线的粗细。
|barZebraGap|2f||斑马线的间距。

View File

@@ -995,7 +995,7 @@ Inherits or Implemented: [MaskableGraphic](#maskablegraphic)
|public method|description|
|--|--|
| GetItemNumericFormatter() |public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)|
| GetLineColor() |public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme)|
| GetLineColor() |public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor)|
| IsIgnoreFormatter() |public static bool IsIgnoreFormatter(string itemFormatter)|
| LimitInRect() |public static void LimitInRect(Tooltip tooltip, Rect chartRect)|

View File

@@ -64,6 +64,7 @@ slug: /changelog
## master
* (2022.11.30) 增加`Serie``barMaxWidth`可设置`Bar`的最大宽度
* (2022.11.30) 优化`Tooltip``Shadow`绘制不超出图表范围
* (2022.11.29) 修复`Tooltip`指示的`Serie`数据项索引异常的问题
* (2022.11.27) 优化`Axis``AxisName`的偏移设置

View File

@@ -379,7 +379,7 @@ Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontai
## Comment
Inherits or Implemented: [MainComponent](#maincomponent)
Inherits or Implemented: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged)
图表注解组件。
@@ -400,10 +400,10 @@ Inherits or Implemented: [ChildComponent](#childcomponent)
|--|--|--|--|
|show|true||是否显示当前注解项。
|content|||注解的文本内容。支持模板参数可以参考Tooltip的itemFormatter。
|position|||注解项的位置坐标。
|markRect|||注解区域。
|markStyle|||注解标记区域样式。 [CommentMarkStyle](#commentmarkstyle)|
|labelStyle|||注解项的文本样式。 [LabelStyle](#labelstyle)|
|location||v3.5.0|Comment显示的位置。 [Location](#location)|
## CommentMarkStyle
@@ -1028,6 +1028,7 @@ Inherits or Implemented: [BaseSerie](#baseserie),[IComparable](#icomparable)
|barType|||柱形图类型。<br/>`BarType`:<br/>- `Normal`: 普通柱形图。<br/>- `Zebra`: 斑马柱形图。<br/>- `Capsule`: 胶囊柱形图。<br/>|
|barPercentStack|false||柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true则就显示成百分比堆叠柱状图。
|barWidth|0||柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。
|barMaxWidth|0|v3.5.0|柱条的最大宽度默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。
|barGap|0.1f||不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30% 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。
|barZebraWidth|4f||斑马线的粗细。
|barZebraGap|2f||斑马线的间距。