mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-18 22:40:10 +00:00
scheduled release date for v3.2.0
This commit is contained in:
@@ -355,7 +355,7 @@ Inherits or Implemented: [BaseChart](#BaseChart)
|
||||
| `GetPointList()` |public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f)</br> |
|
||||
| `GetPos()` |public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)</br> |
|
||||
| `GetPosition()` |public static Vector3 GetPosition(Vector3 center, float angle, float radius)</br> |
|
||||
| `GetSelectColor()` |public static Color32 GetSelectColor(Color32 color, float rate = 0.7f)</br> |
|
||||
| `GetSelectColor()` |public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)</br> |
|
||||
| `GetVertialDire()` |public static Vector3 GetVertialDire(Vector3 dire)</br> |
|
||||
| `HideAllObject()` |public static void HideAllObject(GameObject obj, string match = null)</br> |
|
||||
| `HideAllObject()` |public static void HideAllObject(Transform parent, string match = null)</br> |
|
||||
@@ -852,12 +852,11 @@ Inherits or Implemented: [Attribute](#Attribute)
|
||||
| `GetSerieLabel()` |public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetSerieLabelLine()` |public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetSerieState()` |public static SerieState GetSerieState(Serie serie)</br> |
|
||||
| `GetSerieState()` |public static SerieState GetSerieState(Serie serie, SerieData serieData)</br> |
|
||||
| `GetSerieSymbol()` |public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData)</br> |
|
||||
| `GetSerieState()` |public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false)</br> |
|
||||
| `GetSerieState()` |public static SerieState GetSerieState(SerieData serieData)</br> |
|
||||
| `GetSerieSymbol()` |public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetStateStyle()` |public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state)</br> |
|
||||
| `GetSymbolBorder()` |public static float GetSymbolBorder(Serie serie, SerieData serieData, ThemeStyle theme, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetSymbolBorderColor()` |public static Color32 GetSymbolBorderColor(Serie serie, SerieData serieData, ThemeStyle theme, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetSymbolCornerRadius()` |public static float[] GetSymbolCornerRadius(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetSysmbolSize()` |public static float GetSysmbolSize(Serie serie, SerieData serieData, ThemeStyle theme, float defaultSize, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetTitleStyle()` |public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)</br> |
|
||||
| `IsAllZeroValue()` |public static bool IsAllZeroValue(Serie serie, int dimension = 1)</br>Whether the data for the specified dimension of serie are all 0. |
|
||||
| `IsDownPoint()` |public static bool IsDownPoint(Serie serie, int index)</br> |
|
||||
@@ -986,6 +985,7 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic)
|
||||
| `DrawLine()` |public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false)</br> |
|
||||
| `DrawLine()` |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color)</br>Draw a line. 画直线 |
|
||||
| `DrawLine()` |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor)</br>Draw a line. 画直线 |
|
||||
| `DrawPolygon()` |public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color)</br>填充任意多边形(目前只支持凸多边形) |
|
||||
| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color)</br> |
|
||||
| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor)</br> |
|
||||
| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color)</br> |
|
||||
|
||||
@@ -355,7 +355,7 @@ Inherits or Implemented: [BaseChart](#BaseChart)
|
||||
| `GetPointList()` |public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f)</br> |
|
||||
| `GetPos()` |public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)</br> |
|
||||
| `GetPosition()` |public static Vector3 GetPosition(Vector3 center, float angle, float radius)</br> |
|
||||
| `GetSelectColor()` |public static Color32 GetSelectColor(Color32 color, float rate = 0.7f)</br> |
|
||||
| `GetSelectColor()` |public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)</br> |
|
||||
| `GetVertialDire()` |public static Vector3 GetVertialDire(Vector3 dire)</br> |
|
||||
| `HideAllObject()` |public static void HideAllObject(GameObject obj, string match = null)</br> |
|
||||
| `HideAllObject()` |public static void HideAllObject(Transform parent, string match = null)</br> |
|
||||
@@ -852,12 +852,11 @@ Inherits or Implemented: [Attribute](#Attribute)
|
||||
| `GetSerieLabel()` |public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetSerieLabelLine()` |public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetSerieState()` |public static SerieState GetSerieState(Serie serie)</br> |
|
||||
| `GetSerieState()` |public static SerieState GetSerieState(Serie serie, SerieData serieData)</br> |
|
||||
| `GetSerieSymbol()` |public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData)</br> |
|
||||
| `GetSerieState()` |public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false)</br> |
|
||||
| `GetSerieState()` |public static SerieState GetSerieState(SerieData serieData)</br> |
|
||||
| `GetSerieSymbol()` |public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetStateStyle()` |public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state)</br> |
|
||||
| `GetSymbolBorder()` |public static float GetSymbolBorder(Serie serie, SerieData serieData, ThemeStyle theme, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetSymbolBorderColor()` |public static Color32 GetSymbolBorderColor(Serie serie, SerieData serieData, ThemeStyle theme, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetSymbolCornerRadius()` |public static float[] GetSymbolCornerRadius(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetSysmbolSize()` |public static float GetSysmbolSize(Serie serie, SerieData serieData, ThemeStyle theme, float defaultSize, SerieState state = SerieState.Auto)</br> |
|
||||
| `GetTitleStyle()` |public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)</br> |
|
||||
| `IsAllZeroValue()` |public static bool IsAllZeroValue(Serie serie, int dimension = 1)</br>系列指定维数的数据是否全部为0。 |
|
||||
| `IsDownPoint()` |public static bool IsDownPoint(Serie serie, int index)</br> |
|
||||
@@ -986,6 +985,7 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic)
|
||||
| `DrawLine()` |public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false)</br> |
|
||||
| `DrawLine()` |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color)</br>Draw a line. 画直线 |
|
||||
| `DrawLine()` |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor)</br>Draw a line. 画直线 |
|
||||
| `DrawPolygon()` |public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color)</br>填充任意多边形(目前只支持凸多边形) |
|
||||
| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color)</br> |
|
||||
| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor)</br> |
|
||||
| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color)</br> |
|
||||
|
||||
@@ -596,7 +596,7 @@ Configurations of emphasis state.
|
||||
|
||||
|field|default|since|comment|
|
||||
|--|--|--|--|
|
||||
|`scale`|1.1f||Whether to scale to highlight the data in emphasis state. 高亮时的缩放倍数。
|
||||
|`scale`|1.1f||Whether to scale to highlight the data in emphasis state.
|
||||
|`focus`|||When the data is highlighted, whether to fade out of other data to focus the highlighted.</br>`EmphasisStyle.FocusType`:</br>- `None`: Do not fade out other data, it's by default.</br>- `Self`: Only focus (not fade out) the element of the currently highlighted data.</br>- `Series`: Focus on all elements of the series which the currently highlighted data belongs to.</br>|
|
||||
|`blurScope`|||The range of fade out when focus is enabled.</br>`EmphasisStyle.BlurScope`:</br>- `GridCoord`: coordinate system.</br>- `Series`: series.</br>- `Global`: global.</br>|
|
||||
|
||||
@@ -1071,6 +1071,7 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable)
|
||||
|`serieType`|||the type of serie.
|
||||
|`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>|
|
||||
|`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.
|
||||
@@ -1160,12 +1161,9 @@ Inherits or Implemented: [SymbolStyle](#SymbolStyle),[ISerieDataComponent](#ISer
|
||||
|field|default|since|comment|
|
||||
|--|--|--|--|
|
||||
|`sizeType`|||the type of symbol size.</br>`SymbolSizeType`:</br>- `Custom`: Specify constant for symbol size.</br>- `FromData`: Specify the dataIndex and dataScale to calculate symbol size.</br>- `Function`: Specify function for symbol size.</br>|
|
||||
|`selectedSize`|0f||the size of selected symbol.
|
||||
|`dataIndex`|1||whitch data index is when the sizeType assined as FromData.
|
||||
|`dataScale`|1||the scale of data when sizeType assined as FromData.
|
||||
|`selectedDataScale`|1.5f||the scale of selected data when sizeType assined as FromData.
|
||||
|`sizeFunction`|||the function of size when sizeType assined as Function.
|
||||
|`selectedSizeFunction`|||the function of size when sizeType assined as Function.
|
||||
|`startIndex`|||the index start to show symbol.
|
||||
|`interval`|||the interval of show symbol.
|
||||
|`forceShowLast`|false||whether to show the last symbol.
|
||||
@@ -1273,6 +1271,7 @@ the state style of serie.
|
||||
|`itemStyle`|||图形样式。 [ItemStyle](#ItemStyle)|
|
||||
|`lineStyle`|||折线样式。 [LineStyle](#LineStyle)|
|
||||
|`areaStyle`|||区域样式。 [AreaStyle](#AreaStyle)|
|
||||
|`symbol`|||标记样式。 [SerieSymbol](#SerieSymbol)|
|
||||
|
||||
## `SubTitleTheme`
|
||||
|
||||
|
||||
@@ -596,7 +596,7 @@ Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISeri
|
||||
|
||||
|field|default|since|comment|
|
||||
|--|--|--|--|
|
||||
|`scale`|1.1f||Whether to scale to highlight the data in emphasis state. 高亮时的缩放倍数。
|
||||
|`scale`|1.1f||高亮时的缩放倍数。
|
||||
|`focus`|||在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。</br>`EmphasisStyle.FocusType`:</br>- `None`: 不淡出其它图形,默认使用该配置。</br>- `Self`: 只聚焦(不淡出)当前高亮的数据的图形。</br>- `Series`: 聚焦当前高亮的数据所在的系列的所有图形。</br>|
|
||||
|`blurScope`|||在开启focus的时候,可以通过blurScope配置淡出的范围。</br>`EmphasisStyle.BlurScope`:</br>- `GridCoord`: 淡出范围为坐标系,默认使用该配置。</br>- `Series`: 淡出范围为系列。</br>- `Global`: 淡出范围为全局。</br>|
|
||||
|
||||
@@ -1071,6 +1071,7 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable)
|
||||
|`serieType`|||系列类型。
|
||||
|`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>|
|
||||
|`stack`|||数据堆叠,同个类目轴上系列配置相同的stack值后,后一个系列的值会在前一个系列的值上相加。
|
||||
|`xAxisIndex`|0||使用X轴的index。
|
||||
|`yAxisIndex`|0||使用Y轴的index。
|
||||
@@ -1160,12 +1161,9 @@ Inherits or Implemented: [SymbolStyle](#SymbolStyle),[ISerieDataComponent](#ISer
|
||||
|field|default|since|comment|
|
||||
|--|--|--|--|
|
||||
|`sizeType`|||标记图形的大小获取方式。</br>`SymbolSizeType`:</br>- `Custom`: 自定义大小。</br>- `FromData`: 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。</br>- `Function`: 通过委托函数获取。</br>|
|
||||
|`selectedSize`|0f||被选中的标记的大小。
|
||||
|`dataIndex`|1||当sizeType指定为FromData时,指定的数据源索引。
|
||||
|`dataScale`|1||当sizeType指定为FromData时,指定的倍数系数。
|
||||
|`selectedDataScale`|1.5f||当sizeType指定为FromData时,指定的高亮倍数系数。
|
||||
|`sizeFunction`|||当sizeType指定为Function时,指定的委托函数。
|
||||
|`selectedSizeFunction`|||当sizeType指定为Function时,指定的高亮委托函数。
|
||||
|`startIndex`|||开始显示图形标记的索引。
|
||||
|`interval`|||显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
|
||||
|`forceShowLast`|false||是否强制显示最后一个图形标记。
|
||||
@@ -1273,6 +1271,7 @@ Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种
|
||||
|`itemStyle`|||图形样式。 [ItemStyle](#ItemStyle)|
|
||||
|`lineStyle`|||折线样式。 [LineStyle](#LineStyle)|
|
||||
|`areaStyle`|||区域样式。 [AreaStyle](#AreaStyle)|
|
||||
|`symbol`|||标记样式。 [SerieSymbol](#SerieSymbol)|
|
||||
|
||||
## `SubTitleTheme`
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace XCharts.Runtime
|
||||
public static class XChartsMgr
|
||||
{
|
||||
public static readonly string version = "3.2.0";
|
||||
public static readonly int versionDate = 20220712;
|
||||
public static readonly int versionDate = 20220815;
|
||||
public static string fullVersion { get { return version + "-" + versionDate; } }
|
||||
|
||||
internal static List<BaseChart> chartList = new List<BaseChart>();
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"name": "com.monitor1394.xcharts",
|
||||
"displayName": "XCharts",
|
||||
"version": "3.2.0",
|
||||
"date": "20220712",
|
||||
"checkdate": "20220712",
|
||||
"date": "20220815",
|
||||
"checkdate": "20220815",
|
||||
"desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!",
|
||||
"unity": "2018.3",
|
||||
"description": "A charting and data visualization library for Unity.",
|
||||
|
||||
Reference in New Issue
Block a user