From ab8ced4aed4c821560705b40078d373bbbde4f8a Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 11 Oct 2022 07:00:35 +0800 Subject: [PATCH] update doc --- CHANGELOG.md | 6 +- Documentation/SUPPORT.md | 2 +- Documentation/XChartsAPI-EN.md | 1455 +++++++++++---------- Documentation/XChartsAPI-ZH.md | 1455 +++++++++++---------- Documentation/XChartsConfiguration-EN.md | 1506 +++++++++++----------- Documentation/XChartsConfiguration-ZH.md | 1506 +++++++++++----------- Documentation/XChartsFAQ-EN.md | 8 +- Documentation/XChartsFAQ-ZH.md | 2 +- Documentation/XChartsTutorial01-EN.md | 12 +- Documentation/XChartsTutorial01-ZH.md | 12 +- Runtime/Component/Tooltip/Tooltip.cs | 84 +- Runtime/Serie/Heatmap/Heatmap.cs | 2 +- Runtime/Serie/Radar/Radar.cs | 2 +- 13 files changed, 3026 insertions(+), 3026 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09933393..db4ac594 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,8 +59,9 @@ ## master -* (2022.09.10) 增加`Line`的`SmoothLimit`可控制平滑曲线不同效果 -* (2022.09.05) 修复`Serie`隐藏时`Tooltip`还显示信息的问题 +* (2022.10.10) 调整文档格式 +* (2022.10.10) 增加`Line`的`SmoothLimit`可控制平滑曲线不同效果 +* (2022.10.05) 修复`Serie`隐藏时`Tooltip`还显示信息的问题 * (2022.09.30) 修复`Chart`在很小尺寸时出现`DivideByZeroException`异常 ## v3.3.0 @@ -76,6 +77,7 @@ ### 日志详情 +* (2022.09.28) 发布`v3.3.0`版本 * (2022.09.26) 优化`Axis`在类目轴时的默认分割段数 * (2022.09.25) 修复`API`文档中部分接口没有导出的问题 * (2022.09.24) 优化`FunnelChart` diff --git a/Documentation/SUPPORT.md b/Documentation/SUPPORT.md index 4ae7ab49..27a357ad 100644 --- a/Documentation/SUPPORT.md +++ b/Documentation/SUPPORT.md @@ -19,7 +19,7 @@ | |免费用户|付费咨询|个人`VIP` | 个人`SVIP` | 企业`VIP` | | ----- |--|--|--|--|--| -| 订阅费用 | -- | `98`¥ | `298`¥ | 首年`1298`¥
后续`298¥`* | `联系我们` | +| 订阅费用 | -- | `98`¥ | `298`¥ | 首年`1298`¥
后续`298¥`* | `联系我们` | | 订阅时长 | -- | `7`天* | `1`年 | `1`年* | `1`年 | 订阅席位 | -- | `1`个席位 | `1`个席位 |`1`个席位|`5`个以上席位| | __`服务方式:`__| diff --git a/Documentation/XChartsAPI-EN.md b/Documentation/XChartsAPI-EN.md index dc8d9f4f..784b050e 100644 --- a/Documentation/XChartsAPI-EN.md +++ b/Documentation/XChartsAPI-EN.md @@ -1,14 +1,14 @@ # Chart API -[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
-[XCharts Configuration](XChartsConfiguration-EN.md)
+[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
+[XCharts Configuration](XChartsConfiguration-EN.md)
[XCharts FAQ](XChartsFAQ-EN.md) -## Class +## All Class - [AnimationStyleHelper](#AnimationStyleHelper) - [AxisContext](#AxisContext) -- [AxisHandler](#AxisHandler) +- [AxisHandler<T>](#AxisHandler<T>) - [AxisHelper](#AxisHelper) - [BarChart](#BarChart) - [BaseChart](#BaseChart) @@ -45,9 +45,8 @@ - [ListForSerie](#ListForSerie) - [MainComponentContext](#MainComponentContext) - [MainComponentHandler](#MainComponentHandler) -- [MainComponentHandler](#MainComponentHandler) +- [MainComponentHandler<T>](#MainComponentHandler<T>) - [MathUtil](#MathUtil) -- [ObjectPool where T](#ObjectPool where T) - [Painter](#Painter) - [ParallelChart](#ParallelChart) - [ParallelCoordContext](#ParallelCoordContext) @@ -70,7 +69,7 @@ - [SerieDataExtraFieldAttribute](#SerieDataExtraFieldAttribute) - [SerieExtraComponentAttribute](#SerieExtraComponentAttribute) - [SerieHandler](#SerieHandler) -- [SerieHandler](#SerieHandler) +- [SerieHandler<T>](#SerieHandler<T>) - [SerieHandlerAttribute](#SerieHandlerAttribute) - [SerieHelper](#SerieHelper) - [SerieLabelHelper](#SerieLabelHelper) @@ -99,1085 +98,1085 @@ - [XCResourceImporterWindow](#XCResourceImporterWindow) - [XCThemeMgr](#XCThemeMgr) -## `AnimationStyleHelper` +## AnimationStyleHelper |public method|description| |--|--| -| `CheckDataAnimation()` |public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0)
| -| `GetAnimationPosition()` |public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip)
| -| `UpdateAnimationType()` |public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType)
| -| `UpdateSerieAnimation()` |public static void UpdateSerieAnimation(Serie serie)
| +| CheckDataAnimation() |public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0)| +| GetAnimationPosition() |public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip)| +| UpdateAnimationType() |public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType)| +| UpdateSerieAnimation() |public static void UpdateSerieAnimation(Serie serie)| -## `AxisContext` +## AxisContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `AxisHandler` +## AxisHandler<T> Inherits or Implemented: [MainComponentHandler](#MainComponentHandler) -## `AxisHelper` +## AxisHelper |public method|description| |--|--| -| `AdjustCircleLabelPos()` |public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
| -| `AdjustMinMaxValue()` |public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0)
调整最大最小值 | -| `AdjustRadiusAxisLabelPos()` |public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
| -| `GetAxisLineArrowOffset()` |public static float GetAxisLineArrowOffset(Axis axis)
包含箭头偏移的轴线长度 | -| `GetAxisPosition()` |public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null)
| -| `GetAxisPositionValue()` |public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset)
| -| `GetAxisPositionValue()` |public static double GetAxisPositionValue(GridCoord grid, Axis axis, Vector3 pos)
| -| `GetAxisValueDistance()` |public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上相对起点的距离 | -| `GetAxisValueLength()` |public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上对应的长度 | -| `GetAxisValuePosition()` |public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上的坐标位置 | -| `GetAxisValueSplitIndex()` |public static int GetAxisValueSplitIndex(Axis axis, double value, int totalSplitNumber = -1)
获得数值value在坐标轴上对应的split索引 | -| `GetAxisXOrY()` |public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis)
| -| `GetDataWidth()` |public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom)
获得一个类目数据在坐标系中代表的宽度 | -| `GetEachWidth()` |public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
| -| `GetScaleNumber()` |public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
获得分割线条数 | -| `GetScaleWidth()` |public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null)
获得分割段宽度 | -| `GetSplitNumber()` |public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom)
获得分割段数 | -| `GetTotalSplitGridNum()` |public static int GetTotalSplitGridNum(Axis axis)
获得分割网格个数,包含次刻度 | -| `GetXAxisXOrY()` |public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis)
| -| `GetYAxisXOrY()` |public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis)
| -| `NeedShowSplit()` |public static bool NeedShowSplit(Axis axis)
| +| AdjustCircleLabelPos() |public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)| +| AdjustMinMaxValue() |public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0)
调整最大最小值 | +| AdjustRadiusAxisLabelPos() |public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)| +| GetAxisLineArrowOffset() |public static float GetAxisLineArrowOffset(Axis axis)
包含箭头偏移的轴线长度 | +| GetAxisPosition() |public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null)| +| GetAxisPositionValue() |public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset)| +| GetAxisPositionValue() |public static double GetAxisPositionValue(GridCoord grid, Axis axis, Vector3 pos)| +| GetAxisValueDistance() |public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上相对起点的距离 | +| GetAxisValueLength() |public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上对应的长度 | +| GetAxisValuePosition() |public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上的坐标位置 | +| GetAxisValueSplitIndex() |public static int GetAxisValueSplitIndex(Axis axis, double value, int totalSplitNumber = -1)
获得数值value在坐标轴上对应的split索引 | +| GetAxisXOrY() |public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis)| +| GetDataWidth() |public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom)
获得一个类目数据在坐标系中代表的宽度 | +| GetEachWidth() |public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null)| +| GetScaleNumber() |public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
获得分割线条数 | +| GetScaleWidth() |public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null)
获得分割段宽度 | +| GetSplitNumber() |public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom)
获得分割段数 | +| GetTotalSplitGridNum() |public static int GetTotalSplitGridNum(Axis axis)
获得分割网格个数,包含次刻度 | +| GetXAxisXOrY() |public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis)| +| GetYAxisXOrY() |public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis)| +| NeedShowSplit() |public static bool NeedShowSplit(Axis axis)| -## `BarChart` +## BarChart Inherits or Implemented: [BaseChart](#BaseChart) -## `BaseChart` +## BaseChart Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver](#ISerializationCallbackReceiver) |public method|description| |--|--| -| `AddChartComponent()` |public MainComponent AddChartComponent(Type type)
| -| `AddChartComponent()` |public T AddChartComponent() where T : MainComponent
| -| `AddChartComponentWhenNoExist()` |public T AddChartComponentWhenNoExist() where T : MainComponent
| -| `AddData()` |public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null)
Add a (time,y) data to serie. | -| `AddData()` |public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null)
Add a data to serie. | -| `AddData()` |public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)
| -| `AddData()` |public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null)
Add a (x,y) data to serie. | -| `AddData()` |public SerieData AddData(int serieIndex, List multidimensionalData, string dataName = null, string dataId = null)
Add an arbitray dimension data to serie,such as (x,y,z,...). | -| `AddData()` |public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null)
Add a (time,y) data to serie. | -| `AddData()` |public SerieData AddData(string serieName, double data, string dataName = null, string dataId = null)
Add a data to serie. | -| `AddData()` |public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)
| -| `AddData()` |public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null)
Add a (x,y) data to serie. | -| `AddData()` |public SerieData AddData(string serieName, List multidimensionalData, string dataName = null, string dataId = null)
Add an arbitray dimension data to serie,such as (x,y,z,...). | -| `AddSerie()` |public T AddSerie(string serieName = null, bool show = true, bool addToHead = false) where T : Serie
| -| `AddXAxisData()` |public void AddXAxisData(string category, int xAxisIndex = 0)
Add a category data to xAxis. | -| `AddXAxisIcon()` |public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0)
Add an icon to xAxis. | -| `AddYAxisData()` |public void AddYAxisData(string category, int yAxisIndex = 0)
Add a category data to yAxis. | -| `AddYAxisIcon()` |public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)
Add an icon to yAxis. | -| `AnimationEnable()` |public void AnimationEnable(bool flag)
Whether series animation enabel. | -| `AnimationFadeIn()` |public void AnimationFadeIn()
fadeIn animation. | -| `AnimationFadeOut()` |public void AnimationFadeOut()
fadeIn animation. | -| `AnimationPause()` |public void AnimationPause()
Pause animation. | -| `AnimationReset()` |public void AnimationReset()
Reset animation. | -| `AnimationResume()` |public void AnimationResume()
Stop play animation. | -| `CanAddChartComponent()` |public bool CanAddChartComponent(Type type)
| -| `CanAddSerie()` |public bool CanAddSerie(Type type)
| -| `CanAddSerie()` |public bool CanAddSerie() where T : Serie
| -| `CanMultipleComponent()` |public bool CanMultipleComponent(Type type)
| -| `ClampInChart()` |public void ClampInChart(ref Vector3 pos)
| -| `ClampInGrid()` |public Vector3 ClampInGrid(GridCoord grid, Vector3 pos)
| -| `ClearData()` |public virtual void ClearData()
Clear all components and series data. Note: serie only empties the data and does not remove serie. | -| `ClickLegendButton()` |public void ClickLegendButton(int legendIndex, string legendName, bool show)
点击图例按钮 | -| `CovertSerie()` |public bool CovertSerie(Serie serie, Type type)
| -| `CovertSerie()` |public bool CovertSerie(Serie serie) where T : Serie
| -| `CovertXYAxis()` |public void CovertXYAxis(int index)
转换X轴和Y轴的配置 | -| `GenerateDefaultSerieName()` |public string GenerateDefaultSerieName()
| -| `GetAllSerieDataCount()` |public int GetAllSerieDataCount()
| -| `GetChartBackgroundColor()` |public Color32 GetChartBackgroundColor()
| -| `GetChartComponent()` |public T GetChartComponent(int index = 0) where T : MainComponent
| -| `GetChartComponentNum()` |public int GetChartComponentNum(Type type)
| -| `GetChartComponentNum()` |public int GetChartComponentNum() where T : MainComponent
| -| `GetChartComponents()` |public List GetChartComponents() where T : MainComponent
| -| `GetData()` |public double GetData(int serieIndex, int dataIndex, int dimension = 1)
| -| `GetData()` |public double GetData(string serieName, int dataIndex, int dimension = 1)
| -| `GetDataZoomOfAxis()` |public DataZoom GetDataZoomOfAxis(Axis axis)
| -| `GetDataZoomOfSerie()` |public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom)
| -| `GetGrid()` |public GridCoord GetGrid(Vector2 local)
| -| `GetGridOfDataZoom()` |public GridCoord GetGridOfDataZoom(DataZoom dataZoom)
| -| `GetItemColor()` |public Color32 GetItemColor(Serie serie)
| -| `GetItemColor()` |public Color32 GetItemColor(Serie serie, SerieData serieData)
| -| `GetItemColor()` |public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)
| -| `GetLegendRealShowNameColor()` |public Color32 GetLegendRealShowNameColor(string name)
| -| `GetLegendRealShowNameIndex()` |public int GetLegendRealShowNameIndex(string name)
| -| `GetOrAddChartComponent()` |public T GetOrAddChartComponent() where T : MainComponent
| -| `GetPainter()` |public Painter GetPainter(int index)
| -| `GetSerie()` |public Serie GetSerie(int serieIndex)
| -| `GetSerie()` |public Serie GetSerie(string serieName)
| -| `GetSerie()` |public T GetSerie() where T : Serie
| -| `GetSerie()` |public T GetSerie(int serieIndex) where T : Serie
| -| `GetSerieBarGap()` |public float GetSerieBarGap() where T : Serie
| -| `GetSerieBarRealCount()` |public int GetSerieBarRealCount() where T : Serie
| -| `GetSerieIndexIfStack()` |public int GetSerieIndexIfStack(Serie currSerie) where T : Serie
| -| `GetSerieSameStackTotalValue()` |public double GetSerieSameStackTotalValue(string stack, int dataIndex) where T : Serie
| -| `GetSeriesMinMaxValue()` |public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)
| -| `GetSerieTotalGap()` |public float GetSerieTotalGap(float categoryWidth, float gap, int index) where T : Serie
| -| `GetSerieTotalWidth()` |public float GetSerieTotalWidth(float categoryWidth, float gap, int realBarCount) where T : Serie
| -| `GetTitlePosition()` |public Vector3 GetTitlePosition(Title title)
| -| `GetVisualMapOfSerie()` |public VisualMap GetVisualMapOfSerie(Serie serie)
| -| `GetXDataZoomOfSerie()` |public DataZoom GetXDataZoomOfSerie(Serie serie)
| -| `GetXLerpColor()` |public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)
| -| `GetYLerpColor()` |public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)
| -| `HasChartComponent()` |public bool HasChartComponent(Type type)
| -| `HasChartComponent()` |public bool HasChartComponent()
| -| `HasSerie()` |public bool HasSerie(Type type)
| -| `HasSerie()` |public bool HasSerie() where T : Serie
| -| `Init()` |public void Init(bool defaultChart = true)
| -| `InitAxisRuntimeData()` |public virtual void InitAxisRuntimeData(Axis axis) { }
| -| `InsertSerie()` |public void InsertSerie(Serie serie, int index = -1, bool addToHead = false)
| -| `InsertSerie()` |public T InsertSerie(int index, string serieName = null, bool show = true) where T : Serie
| -| `Internal_CheckAnimation()` |public void Internal_CheckAnimation()
| -| `IsActiveByLegend()` |public virtual bool IsActiveByLegend(string legendName)
Whether serie is activated. | -| `IsAllAxisCategory()` |public bool IsAllAxisCategory()
纯类目轴。 | -| `IsAllAxisValue()` |public bool IsAllAxisValue()
reutrn true when all the show axis is `Value` type. | -| `IsInAnyGrid()` |public bool IsInAnyGrid(Vector2 local)
| -| `IsInChart()` |public bool IsInChart(float x, float y)
| -| `IsInChart()` |public bool IsInChart(Vector2 local)
坐标是否在图表范围内 | -| `IsSerieName()` |public bool IsSerieName(string name)
| -| `MoveDownSerie()` |public bool MoveDownSerie(int serieIndex)
| -| `MoveUpSerie()` |public bool MoveUpSerie(int serieIndex)
| -| `OnAfterDeserialize()` |public void OnAfterDeserialize()
| -| `OnBeforeSerialize()` |public void OnBeforeSerialize()
| -| `OnBeginDrag()` |public override void OnBeginDrag(PointerEventData eventData)
| -| `OnDataZoomRangeChanged()` |public virtual void OnDataZoomRangeChanged(DataZoom dataZoom)
| -| `OnDrag()` |public override void OnDrag(PointerEventData eventData)
| -| `OnEndDrag()` |public override void OnEndDrag(PointerEventData eventData)
| -| `OnLegendButtonClick()` |public virtual void OnLegendButtonClick(int index, string legendName, bool show)
| -| `OnLegendButtonEnter()` |public virtual void OnLegendButtonEnter(int index, string legendName)
| -| `OnLegendButtonExit()` |public virtual void OnLegendButtonExit(int index, string legendName)
| -| `OnPointerClick()` |public override void OnPointerClick(PointerEventData eventData)
| -| `OnPointerDown()` |public override void OnPointerDown(PointerEventData eventData)
| -| `OnPointerEnter()` |public override void OnPointerEnter(PointerEventData eventData)
| -| `OnPointerExit()` |public override void OnPointerExit(PointerEventData eventData)
| -| `OnPointerUp()` |public override void OnPointerUp(PointerEventData eventData)
| -| `OnScroll()` |public override void OnScroll(PointerEventData eventData)
| -| `RefreshBasePainter()` |public void RefreshBasePainter()
| -| `RefreshChart()` |public void RefreshChart()
Redraw chart in next frame. | -| `RefreshChart()` |public void RefreshChart(int serieIndex)
Redraw chart serie in next frame. | -| `RefreshChart()` |public void RefreshChart(Serie serie)
Redraw chart serie in next frame. | -| `RefreshDataZoom()` |public void RefreshDataZoom()
在下一帧刷新DataZoom | -| `RefreshGraph()` |public override void RefreshGraph()
| -| `RefreshPainter()` |public void RefreshPainter(int index)
| -| `RefreshPainter()` |public void RefreshPainter(Serie serie)
| -| `RefreshTopPainter()` |public void RefreshTopPainter()
| -| `RefreshUpperPainter()` |public void RefreshUpperPainter()
| -| `RemoveAllChartComponent()` |public void RemoveAllChartComponent()
| -| `RemoveAllSerie()` |public virtual void RemoveAllSerie()
Remove all of them Serie. This interface is used when Serie needs to be removed only, and RemoveData() is generally used in other cases. | -| `RemoveChartComponent()` |public bool RemoveChartComponent(MainComponent component)
| -| `RemoveChartComponent()` |public bool RemoveChartComponent(Type type, int index = 0)
| -| `RemoveChartComponent()` |public bool RemoveChartComponent(int index = 0)
| -| `RemoveChartComponents()` |public int RemoveChartComponents(Type type)
| -| `RemoveChartComponents()` |public int RemoveChartComponents()
| -| `RemoveData()` |public virtual void RemoveData()
Empty all component data and remove all series. Use the chart again and again to tell the truth. Note: The component only clears the data part, and the parameters are retained and not reset. | -| `RemoveData()` |public virtual void RemoveData(string serieName)
Remove legend and serie by name. | -| `RemoveSerie()` |public void RemoveSerie(int serieIndex)
| -| `RemoveSerie()` |public void RemoveSerie(Serie serie)
| -| `RemoveSerie()` |public void RemoveSerie(string serieName)
| -| `RemoveSerie()` |public void RemoveSerie() where T : Serie
| -| `ReplaceSerie()` |public bool ReplaceSerie(Serie oldSerie, Serie newSerie)
| -| `ResetDataIndex()` |public bool ResetDataIndex(int serieIndex)
重置serie的数据项索引。避免数据项索引异常。 | -| `SaveAsImage()` |public void SaveAsImage(string imageType = "png", string savePath = "")
保存图表为图片。 | -| `SetBasePainterMaterial()` |public void SetBasePainterMaterial(Material material)
设置Base Painter的材质球 | -| `SetMaxCache()` |public void SetMaxCache(int maxCache)
设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 | -| `SetPainterActive()` |public void SetPainterActive(int index, bool flag)
| -| `SetSerieActive()` |public void SetSerieActive(int serieIndex, bool active)
Whether to show serie. | -| `SetSerieActive()` |public void SetSerieActive(Serie serie, bool active)
| -| `SetSerieActive()` |public void SetSerieActive(string serieName, bool active)
Whether to show serie. | -| `SetSeriePainterMaterial()` |public void SetSeriePainterMaterial(Material material)
设置Serie Painter的材质球 | -| `SetTopPainterMaterial()` |public void SetTopPainterMaterial(Material material)
设置Top Painter的材质球 | -| `SetUpperPainterMaterial()` |public void SetUpperPainterMaterial(Material material)
设置Upper Painter的材质球 | -| `TryAddChartComponent()` |public bool TryAddChartComponent(Type type)
| -| `TryAddChartComponent()` |public bool TryAddChartComponent() where T : MainComponent
| -| `TryAddChartComponent()` |public bool TryAddChartComponent(out T component) where T : MainComponent
| -| `TryGetChartComponent()` |public bool TryGetChartComponent(out T component, int index = 0)
| -| `UdpateXAxisIcon()` |public void UdpateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
Update xAxis icon. | -| `UpdateData()` |public bool UpdateData(int serieIndex, int dataIndex, double value)
Update serie data by serie index. | -| `UpdateData()` |public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | -| `UpdateData()` |public bool UpdateData(int serieIndex, int dataIndex, List multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | -| `UpdateData()` |public bool UpdateData(string serieName, int dataIndex, double value)
Update serie data by serie name. | -| `UpdateData()` |public bool UpdateData(string serieName, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | -| `UpdateData()` |public bool UpdateData(string serieName, int dataIndex, List multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | -| `UpdateDataName()` |public bool UpdateDataName(int serieIndex, int dataIndex, string dataName)
Update serie data name. | -| `UpdateDataName()` |public bool UpdateDataName(string serieName, int dataIndex, string dataName)
Update serie data name. | -| `UpdateLegendColor()` |public virtual void UpdateLegendColor(string legendName, bool active)
| -| `UpdateTheme()` |public bool UpdateTheme(ThemeType theme)
Update chart theme. | -| `UpdateTheme()` |public void UpdateTheme(Theme theme)
Update chart theme info. | -| `UpdateXAxisData()` |public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)
Update category data. | -| `UpdateYAxisData()` |public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)
Update category data. | -| `UpdateYAxisIcon()` |public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)
更新Y轴图标。 | +| AddChartComponent() |public MainComponent AddChartComponent(Type type)| +| AddChartComponent<T>() |public T AddChartComponent<T>() where T : MainComponent| +| AddChartComponentWhenNoExist<T>() |public T AddChartComponentWhenNoExist<T>() where T : MainComponent| +| AddData() |public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null)
Add a (time,y) data to serie. | +| AddData() |public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null)
Add a data to serie. | +| AddData() |public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)| +| AddData() |public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null)
Add a (x,y) data to serie. | +| AddData() |public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null)
Add an arbitray dimension data to serie,such as (x,y,z,...). | +| AddData() |public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null)
Add a (time,y) data to serie. | +| AddData() |public SerieData AddData(string serieName, double data, string dataName = null, string dataId = null)
Add a data to serie. | +| AddData() |public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)| +| AddData() |public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null)
Add a (x,y) data to serie. | +| AddData() |public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null)
Add an arbitray dimension data to serie,such as (x,y,z,...). | +| AddSerie<T>() |public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie| +| AddXAxisData() |public void AddXAxisData(string category, int xAxisIndex = 0)
Add a category data to xAxis. | +| AddXAxisIcon() |public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0)
Add an icon to xAxis. | +| AddYAxisData() |public void AddYAxisData(string category, int yAxisIndex = 0)
Add a category data to yAxis. | +| AddYAxisIcon() |public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)
Add an icon to yAxis. | +| AnimationEnable() |public void AnimationEnable(bool flag)
Whether series animation enabel. | +| AnimationFadeIn() |public void AnimationFadeIn()
fadeIn animation. | +| AnimationFadeOut() |public void AnimationFadeOut()
fadeIn animation. | +| AnimationPause() |public void AnimationPause()
Pause animation. | +| AnimationReset() |public void AnimationReset()
Reset animation. | +| AnimationResume() |public void AnimationResume()
Stop play animation. | +| CanAddChartComponent() |public bool CanAddChartComponent(Type type)| +| CanAddSerie() |public bool CanAddSerie(Type type)| +| CanAddSerie<T>() |public bool CanAddSerie<T>() where T : Serie| +| CanMultipleComponent() |public bool CanMultipleComponent(Type type)| +| ClampInChart() |public void ClampInChart(ref Vector3 pos)| +| ClampInGrid() |public Vector3 ClampInGrid(GridCoord grid, Vector3 pos)| +| ClearData() |public virtual void ClearData()
Clear all components and series data. Note: serie only empties the data and does not remove serie. | +| ClickLegendButton() |public void ClickLegendButton(int legendIndex, string legendName, bool show)
点击图例按钮 | +| CovertSerie() |public bool CovertSerie(Serie serie, Type type)| +| CovertSerie<T>() |public bool CovertSerie<T>(Serie serie) where T : Serie| +| CovertXYAxis() |public void CovertXYAxis(int index)
转换X轴和Y轴的配置 | +| GenerateDefaultSerieName() |public string GenerateDefaultSerieName()| +| GetAllSerieDataCount() |public int GetAllSerieDataCount()| +| GetChartBackgroundColor() |public Color32 GetChartBackgroundColor()| +| GetChartComponent<T>() |public T GetChartComponent<T>(int index = 0) where T : MainComponent| +| GetChartComponentNum() |public int GetChartComponentNum(Type type)| +| GetChartComponentNum<T>() |public int GetChartComponentNum<T>() where T : MainComponent| +| GetChartComponents<T>() |public List<MainComponent> GetChartComponents<T>() where T : MainComponent| +| GetData() |public double GetData(int serieIndex, int dataIndex, int dimension = 1)| +| GetData() |public double GetData(string serieName, int dataIndex, int dimension = 1)| +| GetDataZoomOfAxis() |public DataZoom GetDataZoomOfAxis(Axis axis)| +| GetDataZoomOfSerie() |public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom)| +| GetGrid() |public GridCoord GetGrid(Vector2 local)| +| GetGridOfDataZoom() |public GridCoord GetGridOfDataZoom(DataZoom dataZoom)| +| GetItemColor() |public Color32 GetItemColor(Serie serie)| +| GetItemColor() |public Color32 GetItemColor(Serie serie, SerieData serieData)| +| GetItemColor() |public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)| +| GetLegendRealShowNameColor() |public Color32 GetLegendRealShowNameColor(string name)| +| GetLegendRealShowNameIndex() |public int GetLegendRealShowNameIndex(string name)| +| GetOrAddChartComponent<T>() |public T GetOrAddChartComponent<T>() where T : MainComponent| +| GetPainter() |public Painter GetPainter(int index)| +| GetSerie() |public Serie GetSerie(int serieIndex)| +| GetSerie() |public Serie GetSerie(string serieName)| +| GetSerie<T>() |public T GetSerie<T>() where T : Serie| +| GetSerie<T>() |public T GetSerie<T>(int serieIndex) where T : Serie| +| GetSerieBarGap<T>() |public float GetSerieBarGap<T>() where T : Serie| +| GetSerieBarRealCount<T>() |public int GetSerieBarRealCount<T>() where T : Serie| +| GetSerieIndexIfStack<T>() |public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie| +| GetSerieSameStackTotalValue<T>() |public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie| +| GetSeriesMinMaxValue() |public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)| +| GetSerieTotalGap<T>() |public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie| +| GetSerieTotalWidth<T>() |public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie| +| GetTitlePosition() |public Vector3 GetTitlePosition(Title title)| +| GetVisualMapOfSerie() |public VisualMap GetVisualMapOfSerie(Serie serie)| +| GetXDataZoomOfSerie() |public DataZoom GetXDataZoomOfSerie(Serie serie)| +| GetXLerpColor() |public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)| +| GetYLerpColor() |public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)| +| HasChartComponent() |public bool HasChartComponent(Type type)| +| HasChartComponent<T>() |public bool HasChartComponent<T>()| +| HasSerie() |public bool HasSerie(Type type)| +| HasSerie<T>() |public bool HasSerie<T>() where T : Serie| +| Init() |public void Init(bool defaultChart = true)| +| InitAxisRuntimeData() |public virtual void InitAxisRuntimeData(Axis axis) { }| +| InsertSerie() |public void InsertSerie(Serie serie, int index = -1, bool addToHead = false)| +| InsertSerie<T>() |public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie| +| Internal_CheckAnimation() |public void Internal_CheckAnimation()| +| IsActiveByLegend() |public virtual bool IsActiveByLegend(string legendName)
Whether serie is activated. | +| IsAllAxisCategory() |public bool IsAllAxisCategory()
纯类目轴。 | +| IsAllAxisValue() |public bool IsAllAxisValue()
reutrn true when all the show axis is `Value` type. | +| IsInAnyGrid() |public bool IsInAnyGrid(Vector2 local)| +| IsInChart() |public bool IsInChart(float x, float y)| +| IsInChart() |public bool IsInChart(Vector2 local)
坐标是否在图表范围内 | +| IsSerieName() |public bool IsSerieName(string name)| +| MoveDownSerie() |public bool MoveDownSerie(int serieIndex)| +| MoveUpSerie() |public bool MoveUpSerie(int serieIndex)| +| OnAfterDeserialize() |public void OnAfterDeserialize()| +| OnBeforeSerialize() |public void OnBeforeSerialize()| +| OnBeginDrag() |public override void OnBeginDrag(PointerEventData eventData)| +| OnDataZoomRangeChanged() |public virtual void OnDataZoomRangeChanged(DataZoom dataZoom)| +| OnDrag() |public override void OnDrag(PointerEventData eventData)| +| OnEndDrag() |public override void OnEndDrag(PointerEventData eventData)| +| OnLegendButtonClick() |public virtual void OnLegendButtonClick(int index, string legendName, bool show)| +| OnLegendButtonEnter() |public virtual void OnLegendButtonEnter(int index, string legendName)| +| OnLegendButtonExit() |public virtual void OnLegendButtonExit(int index, string legendName)| +| OnPointerClick() |public override void OnPointerClick(PointerEventData eventData)| +| OnPointerDown() |public override void OnPointerDown(PointerEventData eventData)| +| OnPointerEnter() |public override void OnPointerEnter(PointerEventData eventData)| +| OnPointerExit() |public override void OnPointerExit(PointerEventData eventData)| +| OnPointerUp() |public override void OnPointerUp(PointerEventData eventData)| +| OnScroll() |public override void OnScroll(PointerEventData eventData)| +| RefreshBasePainter() |public void RefreshBasePainter()| +| RefreshChart() |public void RefreshChart()
Redraw chart in next frame. | +| RefreshChart() |public void RefreshChart(int serieIndex)
Redraw chart serie in next frame. | +| RefreshChart() |public void RefreshChart(Serie serie)
Redraw chart serie in next frame. | +| RefreshDataZoom() |public void RefreshDataZoom()
在下一帧刷新DataZoom | +| RefreshGraph() |public override void RefreshGraph()| +| RefreshPainter() |public void RefreshPainter(int index)| +| RefreshPainter() |public void RefreshPainter(Serie serie)| +| RefreshTopPainter() |public void RefreshTopPainter()| +| RefreshUpperPainter() |public void RefreshUpperPainter()| +| RemoveAllChartComponent() |public void RemoveAllChartComponent()| +| RemoveAllSerie() |public virtual void RemoveAllSerie()
Remove all of them Serie. This interface is used when Serie needs to be removed only, and RemoveData() is generally used in other cases. | +| RemoveChartComponent() |public bool RemoveChartComponent(MainComponent component)| +| RemoveChartComponent() |public bool RemoveChartComponent(Type type, int index = 0)| +| RemoveChartComponent<T>() |public bool RemoveChartComponent<T>(int index = 0)| +| RemoveChartComponents() |public int RemoveChartComponents(Type type)| +| RemoveChartComponents<T>() |public int RemoveChartComponents<T>()| +| RemoveData() |public virtual void RemoveData()
Empty all component data and remove all series. Use the chart again and again to tell the truth. Note: The component only clears the data part, and the parameters are retained and not reset. | +| RemoveData() |public virtual void RemoveData(string serieName)
Remove legend and serie by name. | +| RemoveSerie() |public void RemoveSerie(int serieIndex)| +| RemoveSerie() |public void RemoveSerie(Serie serie)| +| RemoveSerie() |public void RemoveSerie(string serieName)| +| RemoveSerie<T>() |public void RemoveSerie<T>() where T : Serie| +| ReplaceSerie() |public bool ReplaceSerie(Serie oldSerie, Serie newSerie)| +| ResetDataIndex() |public bool ResetDataIndex(int serieIndex)
重置serie的数据项索引。避免数据项索引异常。 | +| SaveAsImage() |public void SaveAsImage(string imageType = "png", string savePath = "")
保存图表为图片。 | +| SetBasePainterMaterial() |public void SetBasePainterMaterial(Material material)
设置Base Painter的材质球 | +| SetMaxCache() |public void SetMaxCache(int maxCache)
设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 | +| SetPainterActive() |public void SetPainterActive(int index, bool flag)| +| SetSerieActive() |public void SetSerieActive(int serieIndex, bool active)
Whether to show serie. | +| SetSerieActive() |public void SetSerieActive(Serie serie, bool active)| +| SetSerieActive() |public void SetSerieActive(string serieName, bool active)
Whether to show serie. | +| SetSeriePainterMaterial() |public void SetSeriePainterMaterial(Material material)
设置Serie Painter的材质球 | +| SetTopPainterMaterial() |public void SetTopPainterMaterial(Material material)
设置Top Painter的材质球 | +| SetUpperPainterMaterial() |public void SetUpperPainterMaterial(Material material)
设置Upper Painter的材质球 | +| TryAddChartComponent() |public bool TryAddChartComponent(Type type)| +| TryAddChartComponent<T>() |public bool TryAddChartComponent<T>() where T : MainComponent| +| TryAddChartComponent<T>() |public bool TryAddChartComponent<T>(out T component) where T : MainComponent| +| TryGetChartComponent<T>() |public bool TryGetChartComponent<T>(out T component, int index = 0)| +| UdpateXAxisIcon() |public void UdpateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
Update xAxis icon. | +| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, double value)
Update serie data by serie index. | +| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | +| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | +| UpdateData() |public bool UpdateData(string serieName, int dataIndex, double value)
Update serie data by serie name. | +| UpdateData() |public bool UpdateData(string serieName, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | +| UpdateData() |public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | +| UpdateDataName() |public bool UpdateDataName(int serieIndex, int dataIndex, string dataName)
Update serie data name. | +| UpdateDataName() |public bool UpdateDataName(string serieName, int dataIndex, string dataName)
Update serie data name. | +| UpdateLegendColor() |public virtual void UpdateLegendColor(string legendName, bool active)| +| UpdateTheme() |public bool UpdateTheme(ThemeType theme)
Update chart theme. | +| UpdateTheme() |public void UpdateTheme(Theme theme)
Update chart theme info. | +| UpdateXAxisData() |public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)
Update category data. | +| UpdateYAxisData() |public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)
Update category data. | +| UpdateYAxisIcon() |public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)
更新Y轴图标。 | -## `BaseGraph` +## BaseGraph Inherits or Implemented: [MaskableGraphic](#MaskableGraphic),[IPointerDownHandler](#IPointerDownHandler),[IPointerUpHandler](#IPointerUpHandler),[](#) |public method|description| |--|--| -| `CheckWarning()` |public string CheckWarning()
检测警告信息。 | -| `OnBeginDrag()` |public virtual void OnBeginDrag(PointerEventData eventData)
| -| `OnDrag()` |public virtual void OnDrag(PointerEventData eventData)
| -| `OnEndDrag()` |public virtual void OnEndDrag(PointerEventData eventData)
| -| `OnPointerClick()` |public virtual void OnPointerClick(PointerEventData eventData)
| -| `OnPointerDown()` |public virtual void OnPointerDown(PointerEventData eventData)
| -| `OnPointerEnter()` |public virtual void OnPointerEnter(PointerEventData eventData)
| -| `OnPointerExit()` |public virtual void OnPointerExit(PointerEventData eventData)
| -| `OnPointerUp()` |public virtual void OnPointerUp(PointerEventData eventData)
| -| `OnScroll()` |public virtual void OnScroll(PointerEventData eventData)
| -| `RebuildChartObject()` |public void RebuildChartObject()
移除并重新创建所有图表的Object。 | -| `RefreshAllComponent()` |public void RefreshAllComponent()
| -| `RefreshGraph()` |public virtual void RefreshGraph()
Redraw graph in next frame. | -| `ScreenPointToChartPoint()` |public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)
| -| `SetPainterDirty()` |public void SetPainterDirty()
重新初始化Painter | -| `SetSize()` |public virtual void SetSize(float width, float height)
设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform) | +| CheckWarning() |public string CheckWarning()
检测警告信息。 | +| OnBeginDrag() |public virtual void OnBeginDrag(PointerEventData eventData)| +| OnDrag() |public virtual void OnDrag(PointerEventData eventData)| +| OnEndDrag() |public virtual void OnEndDrag(PointerEventData eventData)| +| OnPointerClick() |public virtual void OnPointerClick(PointerEventData eventData)| +| OnPointerDown() |public virtual void OnPointerDown(PointerEventData eventData)| +| OnPointerEnter() |public virtual void OnPointerEnter(PointerEventData eventData)| +| OnPointerExit() |public virtual void OnPointerExit(PointerEventData eventData)| +| OnPointerUp() |public virtual void OnPointerUp(PointerEventData eventData)| +| OnScroll() |public virtual void OnScroll(PointerEventData eventData)| +| RebuildChartObject() |public void RebuildChartObject()
移除并重新创建所有图表的Object。 | +| RefreshAllComponent() |public void RefreshAllComponent()| +| RefreshGraph() |public virtual void RefreshGraph()
Redraw graph in next frame. | +| ScreenPointToChartPoint() |public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)| +| SetPainterDirty() |public void SetPainterDirty()
重新初始化Painter | +| SetSize() |public virtual void SetSize(float width, float height)
设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform) | -## `CandlestickChart` +## CandlestickChart Inherits or Implemented: [BaseChart](#BaseChart) -## `ChartCached` +## ChartCached |public method|description| |--|--| -| `ColorToDotStr()` |public static string ColorToDotStr(Color color)
| -| `ColorToStr()` |public static string ColorToStr(Color color)
| -| `FloatToStr()` |public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0)
| -| `GetSerieLabelName()` |public static string GetSerieLabelName(string prefix, int i, int j)
| -| `IntToStr()` |public static string IntToStr(int value, string numericFormatter = "")
| -| `NumberToStr()` |public static string NumberToStr(double value, string formatter)
| +| ColorToDotStr() |public static string ColorToDotStr(Color color)| +| ColorToStr() |public static string ColorToStr(Color color)| +| FloatToStr() |public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0)| +| GetSerieLabelName() |public static string GetSerieLabelName(string prefix, int i, int j)| +| IntToStr() |public static string IntToStr(int value, string numericFormatter = "")| +| NumberToStr() |public static string NumberToStr(double value, string formatter)| -## `ChartConst` +## ChartConst -## `ChartDrawer` +## ChartDrawer -## `ChartHelper` +## ChartHelper |public method|description| |--|--| -| `ActiveAllObject()` |public static void ActiveAllObject(Transform parent, bool active, string match = null)
| -| `AddIcon()` |public static Image AddIcon(string name, Transform parent, IconStyle iconStyle)
| -| `Cancat()` |public static string Cancat(string str1, int i)
| -| `Cancat()` |public static string Cancat(string str1, string str2)
| -| `ClearEventListener()` |public static void ClearEventListener(GameObject obj)
| -| `CopyArray()` |public static bool CopyArray(T[] toList, T[] fromList)
| -| `CopyList()` |public static bool CopyList(List toList, List fromList)
| -| `DestoryGameObject()` |public static void DestoryGameObject(GameObject go)
| -| `DestoryGameObject()` |public static void DestoryGameObject(Transform parent, string childName)
| -| `DestoryGameObjectByMatch()` |public static void DestoryGameObjectByMatch(Transform parent, string match)
| -| `DestroyAllChildren()` |public static void DestroyAllChildren(Transform parent)
| -| `GetActualValue()` |public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f)
| -| `GetAngle360()` |public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | -| `GetBlurColor()` |public static Color32 GetBlurColor(Color32 color, float a = 0.3f)
| -| `GetColor()` |public static Color32 GetColor(string hexColorStr)
| -| `GetDire()` |public static Vector3 GetDire(float angle, bool isDegree = false)
| -| `GetFloatAccuracy()` |public static int GetFloatAccuracy(double value)
| -| `GetFullName()` |public static string GetFullName(Transform transform)
| -| `GetHighlightColor()` |public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f)
| -| `GetLastValue()` |public static Vector3 GetLastValue(List list)
| -| `GetMaxDivisibleValue()` |public static double GetMaxDivisibleValue(double max, double ceilRate)
| -| `GetMaxLogValue()` |public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
| -| `GetMinDivisibleValue()` |public static double GetMinDivisibleValue(double min, double ceilRate)
| -| `GetMinLogValue()` |public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
| -| `GetOrAddComponent()` |public static T GetOrAddComponent(GameObject gameObject) where T : Component
| -| `GetOrAddComponent()` |public static T GetOrAddComponent(Transform transform) where T : Component
| -| `GetPointList()` |public static void GetPointList(ref List posList, Vector3 sp, Vector3 ep, float k = 30f)
| -| `GetPos()` |public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)
| -| `GetPosition()` |public static Vector3 GetPosition(Vector3 center, float angle, float radius)
| -| `GetSelectColor()` |public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)
| -| `GetVertialDire()` |public static Vector3 GetVertialDire(Vector3 dire)
| -| `HideAllObject()` |public static void HideAllObject(GameObject obj, string match = null)
| -| `HideAllObject()` |public static void HideAllObject(Transform parent, string match = null)
| -| `IsClearColor()` |public static bool IsClearColor(Color color)
| -| `IsClearColor()` |public static bool IsClearColor(Color32 color)
| -| `IsColorAlphaZero()` |public static bool IsColorAlphaZero(Color color)
| -| `IsEquals()` |public static bool IsEquals(double d1, double d2)
| -| `IsEquals()` |public static bool IsEquals(float d1, float d2)
| -| `IsIngore()` |public static bool IsIngore(Vector3 pos)
| -| `IsInRect()` |public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax)
| -| `IsPointInQuadrilateral()` |public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D)
| -| `IsValueEqualsColor()` |public static bool IsValueEqualsColor(Color color1, Color color2)
| -| `IsValueEqualsColor()` |public static bool IsValueEqualsColor(Color32 color1, Color32 color2)
| -| `IsValueEqualsList()` |public static bool IsValueEqualsList(List list1, List list2)
| -| `IsValueEqualsString()` |public static bool IsValueEqualsString(string str1, string str2)
| -| `IsValueEqualsVector2()` |public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)
| -| `IsValueEqualsVector3()` |public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)
| -| `IsZeroVector()` |public static bool IsZeroVector(Vector3 pos)
| -| `ParseFloatFromString()` |public static List ParseFloatFromString(string jsonData)
| -| `ParseStringFromString()` |public static List ParseStringFromString(string jsonData)
| -| `RemoveComponent()` |public static void RemoveComponent(GameObject gameObject)
| -| `RotateRound()` |public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)
| -| `SaveAsImage()` |public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")
| -| `SetActive()` |public static void SetActive(GameObject gameObject, bool active)
| -| `SetActive()` |public static void SetActive(Image image, bool active)
| -| `SetActive()` |public static void SetActive(Text text, bool active)
| -| `SetActive()` |public static void SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC | -| `SetBackground()` |public static void SetBackground(Image background, ImageStyle imageStyle)
| -| `SetColorOpacity()` |public static void SetColorOpacity(ref Color32 color, float opacity)
| +| ActiveAllObject() |public static void ActiveAllObject(Transform parent, bool active, string match = null)| +| AddIcon() |public static Image AddIcon(string name, Transform parent, IconStyle iconStyle)| +| Cancat() |public static string Cancat(string str1, int i)| +| Cancat() |public static string Cancat(string str1, string str2)| +| ClearEventListener() |public static void ClearEventListener(GameObject obj)| +| CopyArray<T>() |public static bool CopyArray<T>(T[] toList, T[] fromList)| +| CopyList<T>() |public static bool CopyList<T>(List<T> toList, List<T> fromList)| +| DestoryGameObject() |public static void DestoryGameObject(GameObject go)| +| DestoryGameObject() |public static void DestoryGameObject(Transform parent, string childName)| +| DestoryGameObjectByMatch() |public static void DestoryGameObjectByMatch(Transform parent, string match)| +| DestroyAllChildren() |public static void DestroyAllChildren(Transform parent)| +| GetActualValue() |public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f)| +| GetAngle360() |public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | +| GetBlurColor() |public static Color32 GetBlurColor(Color32 color, float a = 0.3f)| +| GetColor() |public static Color32 GetColor(string hexColorStr)| +| GetDire() |public static Vector3 GetDire(float angle, bool isDegree = false)| +| GetFloatAccuracy() |public static int GetFloatAccuracy(double value)| +| GetFullName() |public static string GetFullName(Transform transform)| +| GetHighlightColor() |public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f)| +| GetLastValue() |public static Vector3 GetLastValue(List<Vector3> list)| +| GetMaxDivisibleValue() |public static double GetMaxDivisibleValue(double max, double ceilRate)| +| GetMaxLogValue() |public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)| +| GetMinDivisibleValue() |public static double GetMinDivisibleValue(double min, double ceilRate)| +| GetMinLogValue() |public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)| +| GetOrAddComponent<T>() |public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component| +| GetOrAddComponent<T>() |public static T GetOrAddComponent<T>(Transform transform) where T : Component| +| GetPointList() |public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f)| +| GetPos() |public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)| +| GetPosition() |public static Vector3 GetPosition(Vector3 center, float angle, float radius)| +| GetSelectColor() |public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)| +| GetVertialDire() |public static Vector3 GetVertialDire(Vector3 dire)| +| HideAllObject() |public static void HideAllObject(GameObject obj, string match = null)| +| HideAllObject() |public static void HideAllObject(Transform parent, string match = null)| +| IsClearColor() |public static bool IsClearColor(Color color)| +| IsClearColor() |public static bool IsClearColor(Color32 color)| +| IsColorAlphaZero() |public static bool IsColorAlphaZero(Color color)| +| IsEquals() |public static bool IsEquals(double d1, double d2)| +| IsEquals() |public static bool IsEquals(float d1, float d2)| +| IsIngore() |public static bool IsIngore(Vector3 pos)| +| IsInRect() |public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax)| +| IsPointInQuadrilateral() |public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D)| +| IsValueEqualsColor() |public static bool IsValueEqualsColor(Color color1, Color color2)| +| IsValueEqualsColor() |public static bool IsValueEqualsColor(Color32 color1, Color32 color2)| +| IsValueEqualsList<T>() |public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)| +| IsValueEqualsString() |public static bool IsValueEqualsString(string str1, string str2)| +| IsValueEqualsVector2() |public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)| +| IsValueEqualsVector3() |public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)| +| IsZeroVector() |public static bool IsZeroVector(Vector3 pos)| +| ParseFloatFromString() |public static List<float> ParseFloatFromString(string jsonData)| +| ParseStringFromString() |public static List<string> ParseStringFromString(string jsonData)| +| RemoveComponent<T>() |public static void RemoveComponent<T>(GameObject gameObject)| +| RotateRound() |public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)| +| SaveAsImage() |public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")| +| SetActive() |public static void SetActive(GameObject gameObject, bool active)| +| SetActive() |public static void SetActive(Image image, bool active)| +| SetActive() |public static void SetActive(Text text, bool active)| +| SetActive() |public static void SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC | +| SetBackground() |public static void SetBackground(Image background, ImageStyle imageStyle)| +| SetColorOpacity() |public static void SetColorOpacity(ref Color32 color, float opacity)| -## `ChartLabel` +## ChartLabel Inherits or Implemented: [Image](#Image) |public method|description| |--|--| -| `GetHeight()` |public float GetHeight()
| -| `GetPosition()` |public Vector3 GetPosition()
| -| `GetTextHeight()` |public float GetTextHeight()
| -| `GetTextWidth()` |public float GetTextWidth()
| -| `GetWidth()` |public float GetWidth()
| -| `SetActive()` |public void SetActive(bool flag)
| -| `SetIcon()` |public void SetIcon(Image image)
| -| `SetIconActive()` |public void SetIconActive(bool flag)
| -| `SetIconSize()` |public void SetIconSize(float width, float height)
| -| `SetIconSprite()` |public void SetIconSprite(Sprite sprite)
| -| `SetPadding()` |public void SetPadding(float[] padding)
| -| `SetPosition()` |public void SetPosition(Vector3 position)
| -| `SetRectPosition()` |public void SetRectPosition(Vector3 position)
| -| `SetSize()` |public void SetSize(float width, float height)
| -| `SetText()` |public bool SetText(string text)
| -| `SetTextActive()` |public void SetTextActive(bool flag)
| -| `SetTextColor()` |public void SetTextColor(Color color)
| -| `SetTextPadding()` |public void SetTextPadding(TextPadding padding)
| -| `SetTextRotate()` |public void SetTextRotate(float rotate)
| -| `UpdateIcon()` |public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null)
| +| GetHeight() |public float GetHeight()| +| GetPosition() |public Vector3 GetPosition()| +| GetTextHeight() |public float GetTextHeight()| +| GetTextWidth() |public float GetTextWidth()| +| GetWidth() |public float GetWidth()| +| SetActive() |public void SetActive(bool flag)| +| SetIcon() |public void SetIcon(Image image)| +| SetIconActive() |public void SetIconActive(bool flag)| +| SetIconSize() |public void SetIconSize(float width, float height)| +| SetIconSprite() |public void SetIconSprite(Sprite sprite)| +| SetPadding() |public void SetPadding(float[] padding)| +| SetPosition() |public void SetPosition(Vector3 position)| +| SetRectPosition() |public void SetRectPosition(Vector3 position)| +| SetSize() |public void SetSize(float width, float height)| +| SetText() |public bool SetText(string text)| +| SetTextActive() |public void SetTextActive(bool flag)| +| SetTextColor() |public void SetTextColor(Color color)| +| SetTextPadding() |public void SetTextPadding(TextPadding padding)| +| SetTextRotate() |public void SetTextRotate(float rotate)| +| UpdateIcon() |public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null)| -## `ChartObject` +## ChartObject |public method|description| |--|--| -| `Destroy()` |public virtual void Destroy()
| +| Destroy() |public virtual void Destroy()| -## `CheckHelper` +## CheckHelper |public method|description| |--|--| -| `CheckChart()` |public static string CheckChart(BaseChart chart)
| -| `CheckChart()` |public static string CheckChart(BaseGraph chart)
| +| CheckChart() |public static string CheckChart(BaseChart chart)| +| CheckChart() |public static string CheckChart(BaseGraph chart)| -## `ColorUtil` +## ColorUtil |public method|description| |--|--| -| `GetColor()` |public static Color32 GetColor(string hexColorStr)
Convert the html string to color. | +| GetColor() |public static Color32 GetColor(string hexColorStr)
Convert the html string to color. | -## `ComponentHandlerAttribute` +## ComponentHandlerAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `ComponentHandlerAttribute()` |public ComponentHandlerAttribute(Type handler)
| -| `ComponentHandlerAttribute()` |public ComponentHandlerAttribute(Type handler, bool allowMultiple)
| +| ComponentHandlerAttribute() |public ComponentHandlerAttribute(Type handler)| +| ComponentHandlerAttribute() |public ComponentHandlerAttribute(Type handler, bool allowMultiple)| -## `ComponentHelper` +## ComponentHelper |public method|description| |--|--| -| `GetAngleAxis()` |public static AngleAxis GetAngleAxis(List components, int polarIndex)
| -| `GetRadiusAxis()` |public static RadiusAxis GetRadiusAxis(List components, int polarIndex)
| -| `GetXAxisOnZeroOffset()` |public static float GetXAxisOnZeroOffset(List components, XAxis axis)
| -| `GetYAxisOnZeroOffset()` |public static float GetYAxisOnZeroOffset(List components, YAxis axis)
| -| `IsAnyCategoryOfYAxis()` |public static bool IsAnyCategoryOfYAxis(List components)
| +| GetAngleAxis() |public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex)| +| GetRadiusAxis() |public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex)| +| GetXAxisOnZeroOffset() |public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis)| +| GetYAxisOnZeroOffset() |public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis)| +| IsAnyCategoryOfYAxis() |public static bool IsAnyCategoryOfYAxis(List<MainComponent> components)| -## `CoordOptionsAttribute` +## CoordOptionsAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Contains()` |public bool Contains() where T : CoordSystem
| -| `CoordOptionsAttribute()` |public CoordOptionsAttribute(Type coord)
| -| `CoordOptionsAttribute()` |public CoordOptionsAttribute(Type coord, Type coord2)
| -| `CoordOptionsAttribute()` |public CoordOptionsAttribute(Type coord, Type coord2, Type coord3)
| -| `CoordOptionsAttribute()` |public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4)
| +| Contains<T>() |public bool Contains<T>() where T : CoordSystem| +| CoordOptionsAttribute() |public CoordOptionsAttribute(Type coord)| +| CoordOptionsAttribute() |public CoordOptionsAttribute(Type coord, Type coord2)| +| CoordOptionsAttribute() |public CoordOptionsAttribute(Type coord, Type coord2, Type coord3)| +| CoordOptionsAttribute() |public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4)| -## `DataZoomContext` +## DataZoomContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `DataZoomHelper` +## DataZoomHelper |public method|description| |--|--| -| `UpdateDataZoomRuntimeStartEndValue()` |public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie)
| -| `UpdateDataZoomRuntimeStartEndValue()` |public static void UpdateDataZoomRuntimeStartEndValue(BaseChart chart) where T : Serie
| +| UpdateDataZoomRuntimeStartEndValue() |public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie)| +| UpdateDataZoomRuntimeStartEndValue<T>() |public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie| -## `DateTimeUtil` +## DateTimeUtil |public method|description| |--|--| -| `GetDateTime()` |public static DateTime GetDateTime(int timestamp)
| -| `GetTimestamp()` |public static int GetTimestamp()
| -| `GetTimestamp()` |public static int GetTimestamp(DateTime time)
| +| GetDateTime() |public static DateTime GetDateTime(int timestamp)| +| GetTimestamp() |public static int GetTimestamp()| +| GetTimestamp() |public static int GetTimestamp(DateTime time)| -## `DefaultAnimationAttribute` +## DefaultAnimationAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `DefaultAnimationAttribute()` |public DefaultAnimationAttribute(AnimationType handler)
| +| DefaultAnimationAttribute() |public DefaultAnimationAttribute(AnimationType handler)| -## `DefineSymbolsUtil` +## DefineSymbolsUtil |public method|description| |--|--| -| `AddGlobalDefine()` |public static void AddGlobalDefine(string symbol)
| -| `RemoveGlobalDefine()` |public static void RemoveGlobalDefine(string symbol)
| +| AddGlobalDefine() |public static void AddGlobalDefine(string symbol)| +| RemoveGlobalDefine() |public static void RemoveGlobalDefine(string symbol)| -## `FormatterHelper` +## FormatterHelper |public method|description| |--|--| -| `NeedFormat()` |public static bool NeedFormat(string content)
| -| `ReplaceAxisLabelContent()` |public static void ReplaceAxisLabelContent(ref string content, string numericFormatter, double value)
| -| `ReplaceAxisLabelContent()` |public static void ReplaceAxisLabelContent(ref string content, string value)
| -| `TrimAndReplaceLine()` |public static string TrimAndReplaceLine(string content)
| -| `TrimAndReplaceLine()` |public static string TrimAndReplaceLine(StringBuilder sb)
| +| NeedFormat() |public static bool NeedFormat(string content)| +| ReplaceAxisLabelContent() |public static void ReplaceAxisLabelContent(ref string content, string numericFormatter, double value)| +| ReplaceAxisLabelContent() |public static void ReplaceAxisLabelContent(ref string content, string value)| +| TrimAndReplaceLine() |public static string TrimAndReplaceLine(string content)| +| TrimAndReplaceLine() |public static string TrimAndReplaceLine(StringBuilder sb)| -## `GridCoordContext` +## GridCoordContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `HeatmapChart` +## HeatmapChart Inherits or Implemented: [BaseChart](#BaseChart) -## `IgnoreDoc` +## IgnoreDoc Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `IgnoreDoc()` |public IgnoreDoc()
| +| IgnoreDoc() |public IgnoreDoc()| -## `InteractData` +## InteractData |public method|description| |--|--| -| `Reset()` |public void Reset()
| -| `SetColor()` |public void SetColor(ref bool needInteract, Color32 color)
| -| `SetColor()` |public void SetColor(ref bool needInteract, Color32 color, Color32 toColor)
| -| `SetValue()` |public void SetValue(ref bool needInteract, float size)
| -| `SetValue()` |public void SetValue(ref bool needInteract, float size, bool highlight, float rate = 1.3f)
| -| `SetValueAndColor()` |public void SetValueAndColor(ref bool needInteract, float value, Color32 color)
| -| `SetValueAndColor()` |public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor)
| -| `TryGetColor()` |public bool TryGetColor(ref Color32 color, ref bool interacting, float animationDuration = 250)
| -| `TryGetColor()` |public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)
| -| `TryGetValue()` |public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250)
| -| `TryGetValueAndColor()` |public bool TryGetValueAndColor(ref float value, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)
| +| Reset() |public void Reset()| +| SetColor() |public void SetColor(ref bool needInteract, Color32 color)| +| SetColor() |public void SetColor(ref bool needInteract, Color32 color, Color32 toColor)| +| SetValue() |public void SetValue(ref bool needInteract, float size)| +| SetValue() |public void SetValue(ref bool needInteract, float size, bool highlight, float rate = 1.3f)| +| SetValueAndColor() |public void SetValueAndColor(ref bool needInteract, float value, Color32 color)| +| SetValueAndColor() |public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor)| +| TryGetColor() |public bool TryGetColor(ref Color32 color, ref bool interacting, float animationDuration = 250)| +| TryGetColor() |public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)| +| TryGetValue() |public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250)| +| TryGetValueAndColor() |public bool TryGetValueAndColor(ref float value, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)| -## `LayerHelper` +## LayerHelper |public method|description| |--|--| -| `IsFixedWidthHeight()` |public static bool IsFixedWidthHeight(RectTransform rt)
| -| `IsStretchPivot()` |public static bool IsStretchPivot(RectTransform rt)
| +| IsFixedWidthHeight() |public static bool IsFixedWidthHeight(RectTransform rt)| +| IsStretchPivot() |public static bool IsStretchPivot(RectTransform rt)| -## `LegendContext` +## LegendContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `LegendHelper` +## LegendHelper |public method|description| |--|--| -| `CheckDataHighlighted()` |public static bool CheckDataHighlighted(Serie serie, string legendName, bool heighlight)
| -| `CheckDataShow()` |public static bool CheckDataShow(Serie serie, string legendName, bool show)
| -| `GetContentColor()` |public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active)
| -| `GetIconColor()` |public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active)
| -| `ResetItemPosition()` |public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight)
| -| `SetLegendBackground()` |public static void SetLegendBackground(Legend legend, ImageStyle style)
| +| CheckDataHighlighted() |public static bool CheckDataHighlighted(Serie serie, string legendName, bool heighlight)| +| CheckDataShow() |public static bool CheckDataShow(Serie serie, string legendName, bool show)| +| GetContentColor() |public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active)| +| GetIconColor() |public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active)| +| ResetItemPosition() |public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight)| +| SetLegendBackground() |public static void SetLegendBackground(Legend legend, ImageStyle style)| -## `LegendItem` +## LegendItem |public method|description| |--|--| -| `GetIconColor()` |public Color GetIconColor()
| -| `GetIconRect()` |public Rect GetIconRect()
| -| `SetActive()` |public void SetActive(bool active)
| -| `SetBackground()` |public void SetBackground(ImageStyle imageStyle)
| -| `SetButton()` |public void SetButton(Button button)
| -| `SetContent()` |public bool SetContent(string content)
| -| `SetContentBackgroundColor()` |public void SetContentBackgroundColor(Color color)
| -| `SetContentColor()` |public void SetContentColor(Color color)
| -| `SetContentPosition()` |public void SetContentPosition(Vector3 offset)
| -| `SetIcon()` |public void SetIcon(Image icon)
| -| `SetIconActive()` |public void SetIconActive(bool active)
| -| `SetIconColor()` |public void SetIconColor(Color color)
| -| `SetIconImage()` |public void SetIconImage(Sprite image)
| -| `SetIconSize()` |public void SetIconSize(float width, float height)
| -| `SetObject()` |public void SetObject(GameObject obj)
| -| `SetPosition()` |public void SetPosition(Vector3 position)
| -| `SetText()` |public void SetText(ChartText text)
| -| `SetTextBackground()` |public void SetTextBackground(Image image)
| +| GetIconColor() |public Color GetIconColor()| +| GetIconRect() |public Rect GetIconRect()| +| SetActive() |public void SetActive(bool active)| +| SetBackground() |public void SetBackground(ImageStyle imageStyle)| +| SetButton() |public void SetButton(Button button)| +| SetContent() |public bool SetContent(string content)| +| SetContentBackgroundColor() |public void SetContentBackgroundColor(Color color)| +| SetContentColor() |public void SetContentColor(Color color)| +| SetContentPosition() |public void SetContentPosition(Vector3 offset)| +| SetIcon() |public void SetIcon(Image icon)| +| SetIconActive() |public void SetIconActive(bool active)| +| SetIconColor() |public void SetIconColor(Color color)| +| SetIconImage() |public void SetIconImage(Sprite image)| +| SetIconSize() |public void SetIconSize(float width, float height)| +| SetObject() |public void SetObject(GameObject obj)| +| SetPosition() |public void SetPosition(Vector3 position)| +| SetText() |public void SetText(ChartText text)| +| SetTextBackground() |public void SetTextBackground(Image image)| -## `LineChart` +## LineChart Inherits or Implemented: [BaseChart](#BaseChart) -## `ListFor` +## ListFor Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `ListFor()` |public ListFor(Type type)
| +| ListFor() |public ListFor(Type type)| -## `ListForComponent` +## ListForComponent Inherits or Implemented: [ListFor](#ListFor) |public method|description| |--|--| -| `ListForComponent()` |public ListForComponent(Type type) : base(type)
| +| ListForComponent() |public ListForComponent(Type type) : base(type)| -## `ListForSerie` +## ListForSerie Inherits or Implemented: [ListFor](#ListFor) |public method|description| |--|--| -| `ListForSerie()` |public ListForSerie(Type type) : base(type)
| +| ListForSerie() |public ListForSerie(Type type) : base(type)| -## `MainComponentContext` +## MainComponentContext -## `MainComponentHandler` +## MainComponentHandler |public method|description| |--|--| -| `CheckComponent()` |public virtual void CheckComponent(StringBuilder sb) { }
| -| `DrawBase()` |public virtual void DrawBase(VertexHelper vh) { }
| -| `DrawTop()` |public virtual void DrawTop(VertexHelper vh) { }
| -| `DrawUpper()` |public virtual void DrawUpper(VertexHelper vh) { }
| -| `InitComponent()` |public virtual void InitComponent() { }
| -| `OnBeginDrag()` |public virtual void OnBeginDrag(PointerEventData eventData) { }
| -| `OnDrag()` |public virtual void OnDrag(PointerEventData eventData) { }
| -| `OnEndDrag()` |public virtual void OnEndDrag(PointerEventData eventData) { }
| -| `OnPointerClick()` |public virtual void OnPointerClick(PointerEventData eventData) { }
| -| `OnPointerDown()` |public virtual void OnPointerDown(PointerEventData eventData) { }
| -| `OnPointerEnter()` |public virtual void OnPointerEnter(PointerEventData eventData) { }
| -| `OnPointerExit()` |public virtual void OnPointerExit(PointerEventData eventData) { }
| -| `OnPointerUp()` |public virtual void OnPointerUp(PointerEventData eventData) { }
| -| `OnScroll()` |public virtual void OnScroll(PointerEventData eventData) { }
| -| `OnSerieDataUpdate()` |public virtual void OnSerieDataUpdate(int serieIndex) { }
| -| `RemoveComponent()` |public virtual void RemoveComponent() { }
| -| `Update()` |public virtual void Update() { }
| +| CheckComponent() |public virtual void CheckComponent(StringBuilder sb) { }| +| DrawBase() |public virtual void DrawBase(VertexHelper vh) { }| +| DrawTop() |public virtual void DrawTop(VertexHelper vh) { }| +| DrawUpper() |public virtual void DrawUpper(VertexHelper vh) { }| +| InitComponent() |public virtual void InitComponent() { }| +| OnBeginDrag() |public virtual void OnBeginDrag(PointerEventData eventData) { }| +| OnDrag() |public virtual void OnDrag(PointerEventData eventData) { }| +| OnEndDrag() |public virtual void OnEndDrag(PointerEventData eventData) { }| +| OnPointerClick() |public virtual void OnPointerClick(PointerEventData eventData) { }| +| OnPointerDown() |public virtual void OnPointerDown(PointerEventData eventData) { }| +| OnPointerEnter() |public virtual void OnPointerEnter(PointerEventData eventData) { }| +| OnPointerExit() |public virtual void OnPointerExit(PointerEventData eventData) { }| +| OnPointerUp() |public virtual void OnPointerUp(PointerEventData eventData) { }| +| OnScroll() |public virtual void OnScroll(PointerEventData eventData) { }| +| OnSerieDataUpdate() |public virtual void OnSerieDataUpdate(int serieIndex) { }| +| RemoveComponent() |public virtual void RemoveComponent() { }| +| Update() |public virtual void Update() { }| -## `MainComponentHandler` +## MainComponentHandler<T> Inherits or Implemented: [MainComponentHandler](#MainComponentHandler) -## `MathUtil` +## MathUtil |public method|description| |--|--| -| `Abs()` |public static double Abs(double d)
| -| `Approximately()` |public static bool Approximately(double a, double b)
| -| `Clamp()` |public static double Clamp(double d, double min, double max)
| -| `Clamp01()` |public static double Clamp01(double value)
| -| `Lerp()` |public static double Lerp(double a, double b, double t)
| +| Abs() |public static double Abs(double d)| +| Approximately() |public static bool Approximately(double a, double b)| +| Clamp() |public static double Clamp(double d, double min, double max)| +| Clamp01() |public static double Clamp01(double value)| +| Lerp() |public static double Lerp(double a, double b, double t)| -## `ObjectPool where T` +## ObjectPool<T> where T Inherits or Implemented: [new()](#new()) |public method|description| |--|--| -| `ClearAll()` |public void ClearAll()
| -| `Get()` |public T Get()
| -| `new()` |public class ObjectPool where T : new()
| -| `ObjectPool()` |public ObjectPool(UnityAction actionOnGet, UnityAction actionOnRelease, bool newIfEmpty = true)
| -| `Release()` |public void Release(T element)
| +| ClearAll() |public void ClearAll()| +| Get() |public T Get()| +| new() |public class ObjectPool<T> where T : new()| +| ObjectPool() |public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true)| +| Release() |public void Release(T element)| -## `Painter` +## Painter Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) |public method|description| |--|--| -| `Init()` |public void Init()
| -| `Refresh()` |public void Refresh()
| -| `SetActive()` |public void SetActive(bool flag, bool isDebugMode = false)
| +| Init() |public void Init()| +| Refresh() |public void Refresh()| +| SetActive() |public void SetActive(bool flag, bool isDebugMode = false)| -## `ParallelChart` +## ParallelChart Inherits or Implemented: [BaseChart](#BaseChart) -## `ParallelCoordContext` +## ParallelCoordContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `PieChart` +## PieChart Inherits or Implemented: [BaseChart](#BaseChart) -## `PolarChart` +## PolarChart Inherits or Implemented: [BaseChart](#BaseChart) -## `PolarCoordContext` +## PolarCoordContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `ProgressBar` +## ProgressBar Inherits or Implemented: [BaseChart](#BaseChart) -## `PropertyUtil` +## PropertyUtil |public method|description| |--|--| -| `SetClass()` |public static bool SetClass(ref T currentValue, T newValue, bool notNull = false) where T : class
| -| `SetColor()` |public static bool SetColor(ref Color currentValue, Color newValue)
| -| `SetColor()` |public static bool SetColor(ref Color32 currentValue, Color32 newValue)
| -| `SetStruct()` |public static bool SetStruct(ref T currentValue, T newValue) where T : struct
| +| SetClass<T>() |public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class| +| SetColor() |public static bool SetColor(ref Color currentValue, Color newValue)| +| SetColor() |public static bool SetColor(ref Color32 currentValue, Color32 newValue)| +| SetStruct<T>() |public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct| -## `RadarChart` +## RadarChart Inherits or Implemented: [BaseChart](#BaseChart) -## `RadarCoordContext` +## RadarCoordContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `ReflectionUtil` +## ReflectionUtil |public method|description| |--|--| -| `DeepCloneSerializeField()` |public static object DeepCloneSerializeField(object obj)
| -| `InvokeListAdd()` |public static void InvokeListAdd(object obj, FieldInfo field, object item)
| -| `InvokeListAddTo()` |public static void InvokeListAddTo(object obj, FieldInfo field, Action callback)
| -| `InvokeListClear()` |public static void InvokeListClear(object obj, FieldInfo field)
| -| `InvokeListCount()` |public static int InvokeListCount(object obj, FieldInfo field)
| -| `InvokeListGet()` |public static T InvokeListGet(object obj, FieldInfo field, int i)
| +| DeepCloneSerializeField() |public static object DeepCloneSerializeField(object obj)| +| InvokeListAdd() |public static void InvokeListAdd(object obj, FieldInfo field, object item)| +| InvokeListAddTo<T>() |public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback)| +| InvokeListClear() |public static void InvokeListClear(object obj, FieldInfo field)| +| InvokeListCount() |public static int InvokeListCount(object obj, FieldInfo field)| +| InvokeListGet<T>() |public static T InvokeListGet<T>(object obj, FieldInfo field, int i)| -## `RequireChartComponentAttribute` +## RequireChartComponentAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `RequireChartComponentAttribute()` |public RequireChartComponentAttribute(Type requiredComponent)
| -| `RequireChartComponentAttribute()` |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)
| -| `RequireChartComponentAttribute()` |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)
| +| RequireChartComponentAttribute() |public RequireChartComponentAttribute(Type requiredComponent)| +| RequireChartComponentAttribute() |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)| +| RequireChartComponentAttribute() |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)| -## `RingChart` +## RingChart Inherits or Implemented: [BaseChart](#BaseChart) -## `RuntimeUtil` +## RuntimeUtil |public method|description| |--|--| -| `GetAllAssemblyTypes()` |public static IEnumerable GetAllAssemblyTypes()
| -| `GetAllTypesDerivedFrom()` |public static IEnumerable GetAllTypesDerivedFrom(Type type)
| -| `GetAllTypesDerivedFrom()` |public static IEnumerable GetAllTypesDerivedFrom()
| -| `GetAttribute()` |public static T GetAttribute(this MemberInfo type, bool check = true) where T : Attribute
| -| `GetAttribute()` |public static T GetAttribute(this Type type, bool check = true) where T : Attribute
| -| `HasSubclass()` |public static bool HasSubclass(Type type)
| +| GetAllAssemblyTypes() |public static IEnumerable<Type> GetAllAssemblyTypes()| +| GetAllTypesDerivedFrom() |public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type)| +| GetAllTypesDerivedFrom<T>() |public static IEnumerable<Type> GetAllTypesDerivedFrom<T>()| +| GetAttribute<T>() |public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute| +| GetAttribute<T>() |public static T GetAttribute<T>(this Type type, bool check = true) where T : Attribute| +| HasSubclass() |public static bool HasSubclass(Type type)| -## `ScatterChart` +## ScatterChart Inherits or Implemented: [BaseChart](#BaseChart) -## `SerieContext` +## SerieContext -## `SerieConvertAttribute` +## SerieConvertAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Contains()` |public bool Contains(Type type)
| -| `Contains()` |public bool Contains() where T : Serie
| -| `SerieConvertAttribute()` |public SerieConvertAttribute(Type serie)
| -| `SerieConvertAttribute()` |public SerieConvertAttribute(Type serie, Type serie2)
| -| `SerieConvertAttribute()` |public SerieConvertAttribute(Type serie, Type serie2, Type serie3)
| -| `SerieConvertAttribute()` |public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4)
| +| Contains() |public bool Contains(Type type)| +| Contains<T>() |public bool Contains<T>() where T : Serie| +| SerieConvertAttribute() |public SerieConvertAttribute(Type serie)| +| SerieConvertAttribute() |public SerieConvertAttribute(Type serie, Type serie2)| +| SerieConvertAttribute() |public SerieConvertAttribute(Type serie, Type serie2, Type serie3)| +| SerieConvertAttribute() |public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4)| -## `SerieDataContext` +## SerieDataContext |public method|description| |--|--| -| `Reset()` |public void Reset()
| +| Reset() |public void Reset()| -## `SerieDataExtraComponentAttribute` +## SerieDataExtraComponentAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Contains()` |public bool Contains(Type type)
| -| `Contains()` |public bool Contains() where T : ISerieExtraComponent
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute()
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)
| +| Contains() |public bool Contains(Type type)| +| Contains<T>() |public bool Contains<T>() where T : ISerieExtraComponent| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute()| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)| -## `SerieDataExtraFieldAttribute` +## SerieDataExtraFieldAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Contains()` |public bool Contains(string field)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute()
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2, string field3)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7)
| +| Contains() |public bool Contains(string field)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute()| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7)| -## `SerieExtraComponentAttribute` +## SerieExtraComponentAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Contains()` |public bool Contains(Type type)
| -| `Contains()` |public bool Contains() where T : ISerieExtraComponent
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute()
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)
| +| Contains() |public bool Contains(Type type)| +| Contains<T>() |public bool Contains<T>() where T : ISerieExtraComponent| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute()| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)| -## `SerieHandler` +## SerieHandler |public method|description| |--|--| -| `CheckComponent()` |public virtual void CheckComponent(StringBuilder sb) { }
| -| `DrawBase()` |public virtual void DrawBase(VertexHelper vh) { }
| -| `DrawSerie()` |public virtual void DrawSerie(VertexHelper vh) { }
| -| `DrawTop()` |public virtual void DrawTop(VertexHelper vh) { }
| -| `DrawUpper()` |public virtual void DrawUpper(VertexHelper vh) { }
| -| `InitComponent()` |public virtual void InitComponent() { }
| -| `OnBeginDrag()` |public virtual void OnBeginDrag(PointerEventData eventData) { }
| -| `OnDrag()` |public virtual void OnDrag(PointerEventData eventData) { }
| -| `OnEndDrag()` |public virtual void OnEndDrag(PointerEventData eventData) { }
| -| `OnLegendButtonClick()` |public virtual void OnLegendButtonClick(int index, string legendName, bool show) { }
| -| `OnLegendButtonEnter()` |public virtual void OnLegendButtonEnter(int index, string legendName) { }
| -| `OnLegendButtonExit()` |public virtual void OnLegendButtonExit(int index, string legendName) { }
| -| `OnPointerClick()` |public virtual void OnPointerClick(PointerEventData eventData) { }
| -| `OnPointerDown()` |public virtual void OnPointerDown(PointerEventData eventData) { }
| -| `OnPointerEnter()` |public virtual void OnPointerEnter(PointerEventData eventData) { }
| -| `OnPointerExit()` |public virtual void OnPointerExit(PointerEventData eventData) { }
| -| `OnPointerUp()` |public virtual void OnPointerUp(PointerEventData eventData) { }
| -| `OnScroll()` |public virtual void OnScroll(PointerEventData eventData) { }
| -| `RefreshLabelInternal()` |public virtual void RefreshLabelInternal() { }
| -| `RefreshLabelNextFrame()` |public virtual void RefreshLabelNextFrame() { }
| -| `RemoveComponent()` |public virtual void RemoveComponent() { }
| -| `Update()` |public virtual void Update() { }
| +| CheckComponent() |public virtual void CheckComponent(StringBuilder sb) { }| +| DrawBase() |public virtual void DrawBase(VertexHelper vh) { }| +| DrawSerie() |public virtual void DrawSerie(VertexHelper vh) { }| +| DrawTop() |public virtual void DrawTop(VertexHelper vh) { }| +| DrawUpper() |public virtual void DrawUpper(VertexHelper vh) { }| +| InitComponent() |public virtual void InitComponent() { }| +| OnBeginDrag() |public virtual void OnBeginDrag(PointerEventData eventData) { }| +| OnDrag() |public virtual void OnDrag(PointerEventData eventData) { }| +| OnEndDrag() |public virtual void OnEndDrag(PointerEventData eventData) { }| +| OnLegendButtonClick() |public virtual void OnLegendButtonClick(int index, string legendName, bool show) { }| +| OnLegendButtonEnter() |public virtual void OnLegendButtonEnter(int index, string legendName) { }| +| OnLegendButtonExit() |public virtual void OnLegendButtonExit(int index, string legendName) { }| +| OnPointerClick() |public virtual void OnPointerClick(PointerEventData eventData) { }| +| OnPointerDown() |public virtual void OnPointerDown(PointerEventData eventData) { }| +| OnPointerEnter() |public virtual void OnPointerEnter(PointerEventData eventData) { }| +| OnPointerExit() |public virtual void OnPointerExit(PointerEventData eventData) { }| +| OnPointerUp() |public virtual void OnPointerUp(PointerEventData eventData) { }| +| OnScroll() |public virtual void OnScroll(PointerEventData eventData) { }| +| RefreshLabelInternal() |public virtual void RefreshLabelInternal() { }| +| RefreshLabelNextFrame() |public virtual void RefreshLabelNextFrame() { }| +| RemoveComponent() |public virtual void RemoveComponent() { }| +| Update() |public virtual void Update() { }| -## `SerieHandler` +## SerieHandler<T> Inherits or Implemented: [SerieHandler where T](#SerieHandler where T),[Serie](#Serie) |public method|description| |--|--| -| `GetSerieDataAutoColor()` |public virtual Color GetSerieDataAutoColor(SerieData serieData)
| -| `GetSerieDataLabelOffset()` |public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)
| -| `GetSerieDataLabelPosition()` |public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)
| -| `GetSerieDataTitlePosition()` |public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle)
| -| `InitComponent()` |public override void InitComponent()
| -| `OnLegendButtonClick()` |public override void OnLegendButtonClick(int index, string legendName, bool show)
| -| `OnLegendButtonEnter()` |public override void OnLegendButtonEnter(int index, string legendName)
| -| `OnLegendButtonExit()` |public override void OnLegendButtonExit(int index, string legendName)
| -| `RefreshEndLabelInternal()` |public virtual void RefreshEndLabelInternal()
| -| `RefreshLabelInternal()` |public override void RefreshLabelInternal()
| -| `RefreshLabelNextFrame()` |public override void RefreshLabelNextFrame()
| -| `RemoveComponent()` |public override void RemoveComponent()
| -| `Update()` |public override void Update()
| +| GetSerieDataAutoColor() |public virtual Color GetSerieDataAutoColor(SerieData serieData)| +| GetSerieDataLabelOffset() |public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)| +| GetSerieDataLabelPosition() |public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)| +| GetSerieDataTitlePosition() |public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle)| +| InitComponent() |public override void InitComponent()| +| OnLegendButtonClick() |public override void OnLegendButtonClick(int index, string legendName, bool show)| +| OnLegendButtonEnter() |public override void OnLegendButtonEnter(int index, string legendName)| +| OnLegendButtonExit() |public override void OnLegendButtonExit(int index, string legendName)| +| RefreshEndLabelInternal() |public virtual void RefreshEndLabelInternal()| +| RefreshLabelInternal() |public override void RefreshLabelInternal()| +| RefreshLabelNextFrame() |public override void RefreshLabelNextFrame()| +| RemoveComponent() |public override void RemoveComponent()| +| Update() |public override void Update()| -## `SerieHandlerAttribute` +## SerieHandlerAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `SerieHandlerAttribute()` |public SerieHandlerAttribute(Type handler)
| -| `SerieHandlerAttribute()` |public SerieHandlerAttribute(Type handler, bool allowMultiple)
| +| SerieHandlerAttribute() |public SerieHandlerAttribute(Type handler)| +| SerieHandlerAttribute() |public SerieHandlerAttribute(Type handler, bool allowMultiple)| -## `SerieHelper` +## SerieHelper |public method|description| |--|--| -| `CloneSerie()` |public static T CloneSerie(Serie serie) where T : Serie
| -| `CopySerie()` |public static void CopySerie(Serie oldSerie, Serie newSerie)
| -| `GetAllMinMaxData()` |public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null)
| -| `GetAreaStyle()` |public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData)
| -| `GetAverageData()` |public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetBlurStyle()` |public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData)
| -| `GetEmphasisStyle()` |public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData)
| -| `GetItemColor()` |public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true)
| -| `GetItemFormatter()` |public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)
| -| `GetItemMarker()` |public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null)
| -| `GetItemStyle()` |public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
| -| `GetLineColor()` |public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto)
| -| `GetLineStyle()` |public static LineStyle GetLineStyle(Serie serie, SerieData serieData)
| -| `GetMaxData()` |public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetMaxSerieData()` |public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetMedianData()` |public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetMinData()` |public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetMinMaxData()` |public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0)
Gets the maximum and minimum values of all data in the serie. | -| `GetMinSerieData()` |public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetNumericFormatter()` |public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)
| -| `GetSelectStyle()` |public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData)
| -| `GetSerieLabel()` |public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
| -| `GetSerieLabelLine()` |public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
| -| `GetSerieState()` |public static SerieState GetSerieState(Serie serie)
| -| `GetSerieState()` |public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false)
| -| `GetSerieState()` |public static SerieState GetSerieState(SerieData serieData)
| -| `GetSerieSymbol()` |public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
| -| `GetStateStyle()` |public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state)
| -| `GetSysmbolSize()` |public static float GetSysmbolSize(Serie serie, SerieData serieData, ThemeStyle theme, float defaultSize, SerieState state = SerieState.Auto)
| -| `GetTitleStyle()` |public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)
| -| `IsAllZeroValue()` |public static bool IsAllZeroValue(Serie serie, int dimension = 1)
Whether the data for the specified dimension of serie are all 0. | -| `IsDownPoint()` |public static bool IsDownPoint(Serie serie, int index)
| -| `UpdateCenter()` |public static void UpdateCenter(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)
更新运行时中心点和半径 | -| `UpdateFilterData()` |public static void UpdateFilterData(Serie serie, DataZoom dataZoom)
根据dataZoom更新数据列表缓存 | -| `UpdateMinMaxData()` |public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null)
获得指定维数的最大最小值 | -| `UpdateRect()` |public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)
| -| `UpdateSerieRuntimeFilterData()` |public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true)
| +| CloneSerie<T>() |public static T CloneSerie<T>(Serie serie) where T : Serie| +| CopySerie() |public static void CopySerie(Serie oldSerie, Serie newSerie)| +| GetAllMinMaxData() |public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null)| +| GetAreaStyle() |public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData)| +| GetAverageData() |public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetBlurStyle() |public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData)| +| GetEmphasisStyle() |public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData)| +| GetItemColor() |public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true)| +| GetItemFormatter() |public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)| +| GetItemMarker() |public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null)| +| GetItemStyle() |public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| +| GetLineColor() |public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto)| +| GetLineStyle() |public static LineStyle GetLineStyle(Serie serie, SerieData serieData)| +| GetMaxData() |public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetMaxSerieData() |public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetMedianData() |public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetMinData() |public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetMinMaxData() |public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0)
Gets the maximum and minimum values of all data in the serie. | +| GetMinSerieData() |public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetNumericFormatter() |public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)| +| GetSelectStyle() |public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData)| +| GetSerieLabel() |public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| +| GetSerieLabelLine() |public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| +| GetSerieState() |public static SerieState GetSerieState(Serie serie)| +| GetSerieState() |public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false)| +| GetSerieState() |public static SerieState GetSerieState(SerieData serieData)| +| GetSerieSymbol() |public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| +| GetStateStyle() |public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state)| +| GetSysmbolSize() |public static float GetSysmbolSize(Serie serie, SerieData serieData, ThemeStyle theme, float defaultSize, SerieState state = SerieState.Auto)| +| GetTitleStyle() |public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)| +| IsAllZeroValue() |public static bool IsAllZeroValue(Serie serie, int dimension = 1)
Whether the data for the specified dimension of serie are all 0. | +| IsDownPoint() |public static bool IsDownPoint(Serie serie, int index)| +| UpdateCenter() |public static void UpdateCenter(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)
更新运行时中心点和半径 | +| UpdateFilterData() |public static void UpdateFilterData(Serie serie, DataZoom dataZoom)
根据dataZoom更新数据列表缓存 | +| UpdateMinMaxData() |public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null)
获得指定维数的最大最小值 | +| UpdateRect() |public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)| +| UpdateSerieRuntimeFilterData() |public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true)| -## `SerieLabelHelper` +## SerieLabelHelper |public method|description| |--|--| -| `AvoidLabelOverlap()` |public static void AvoidLabelOverlap(Serie serie, ComponentTheme theme)
| -| `CanShowLabel()` |public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion)
| -| `GetLabelColor()` |public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index)
| -| `GetRealLabelPosition()` |public static Vector3 GetRealLabelPosition(Serie serie, SerieData serieData, LabelStyle label, LabelLine labelLine)
| -| `SetGaugeLabelText()` |public static void SetGaugeLabelText(Serie serie)
| -| `UpdatePieLabelPosition()` |public static void UpdatePieLabelPosition(Serie serie, SerieData serieData)
| +| AvoidLabelOverlap() |public static void AvoidLabelOverlap(Serie serie, ComponentTheme theme)| +| CanShowLabel() |public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion)| +| GetLabelColor() |public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index)| +| GetRealLabelPosition() |public static Vector3 GetRealLabelPosition(Serie serie, SerieData serieData, LabelStyle label, LabelLine labelLine)| +| SetGaugeLabelText() |public static void SetGaugeLabelText(Serie serie)| +| UpdatePieLabelPosition() |public static void UpdatePieLabelPosition(Serie serie, SerieData serieData)| -## `SerieLabelPool` +## SerieLabelPool |public method|description| |--|--| -| `ClearAll()` |public static void ClearAll()
| -| `Release()` |public static void Release(GameObject element)
| -| `ReleaseAll()` |public static void ReleaseAll(Transform parent)
| +| ClearAll() |public static void ClearAll()| +| Release() |public static void Release(GameObject element)| +| ReleaseAll() |public static void ReleaseAll(Transform parent)| -## `SerieParams` +## SerieParams -## `SeriesHelper` +## SeriesHelper |public method|description| |--|--| -| `GetLastStackSerie()` |public static Serie GetLastStackSerie(List series, Serie serie)
获得上一个同堆叠且显示的serie。 | -| `GetLegalSerieNameList()` |public static List GetLegalSerieNameList(List series)
| -| `GetMaxSerieDataCount()` |public static int GetMaxSerieDataCount(List series)
| -| `GetNameColor()` |public static Color GetNameColor(BaseChart chart, int index, string name)
| -| `GetStackSeries()` |public static void GetStackSeries(List series, ref Dictionary> stackSeries)
获得堆叠系列列表 | -| `IsAnyClipSerie()` |public static bool IsAnyClipSerie(List series)
是否有需裁剪的serie。 | -| `IsLegalLegendName()` |public static bool IsLegalLegendName(string name)
| -| `IsPercentStack()` |public static bool IsPercentStack(List series) where T : Serie
是否时百分比堆叠 | -| `IsPercentStack()` |public static bool IsPercentStack(List series, string stackName) where T : Serie
是否时百分比堆叠 | -| `IsStack()` |public static bool IsStack(List series)
是否由数据堆叠 | -| `IsStack()` |public static bool IsStack(List series, string stackName) where T : Serie
是否堆叠 | -| `UpdateSerieNameList()` |public static void UpdateSerieNameList(BaseChart chart, ref List serieNameList)
获得所有系列名,不包含空名字。 | -| `UpdateStackDataList()` |public static void UpdateStackDataList(List series, Serie currSerie, DataZoom dataZoom, List> dataList)
| +| GetLastStackSerie() |public static Serie GetLastStackSerie(List<Serie> series, Serie serie)
获得上一个同堆叠且显示的serie。 | +| GetLegalSerieNameList() |public static List<string> GetLegalSerieNameList(List<Serie> series)| +| GetMaxSerieDataCount() |public static int GetMaxSerieDataCount(List<Serie> series)| +| GetNameColor() |public static Color GetNameColor(BaseChart chart, int index, string name)| +| GetStackSeries() |public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries)
获得堆叠系列列表 | +| IsAnyClipSerie() |public static bool IsAnyClipSerie(List<Serie> series)
是否有需裁剪的serie。 | +| IsLegalLegendName() |public static bool IsLegalLegendName(string name)| +| IsPercentStack<T>() |public static bool IsPercentStack<T>(List<Serie> series) where T : Serie
是否时百分比堆叠 | +| IsPercentStack<T>() |public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie
是否时百分比堆叠 | +| IsStack() |public static bool IsStack(List<Serie> series)
是否由数据堆叠 | +| IsStack<T>() |public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie
是否堆叠 | +| UpdateSerieNameList() |public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList)
获得所有系列名,不包含空名字。 | +| UpdateStackDataList() |public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList)| -## `SimplifiedBarChart` +## SimplifiedBarChart Inherits or Implemented: [BaseChart](#BaseChart) -## `SimplifiedCandlestickChart` +## SimplifiedCandlestickChart Inherits or Implemented: [BaseChart](#BaseChart) -## `SimplifiedLineChart` +## SimplifiedLineChart Inherits or Implemented: [BaseChart](#BaseChart) -## `Since` +## Since Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Since()` |public Since(string version)
| +| Since() |public Since(string version)| -## `SVG` +## SVG |public method|description| |--|--| -| `DrawPath()` |public static void DrawPath(VertexHelper vh, string path)
| -| `DrawPath()` |public static void DrawPath(VertexHelper vh, SVGPath path)
| -| `Test()` |public static void Test(VertexHelper vh)
| +| DrawPath() |public static void DrawPath(VertexHelper vh, string path)| +| DrawPath() |public static void DrawPath(VertexHelper vh, SVGPath path)| +| Test() |public static void Test(VertexHelper vh)| -## `SVGImage` +## SVGImage Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) -## `SVGPath` +## SVGPath |public method|description| |--|--| -| `AddSegment()` |public void AddSegment(SVGPathSeg seg)
| -| `Draw()` |public void Draw(VertexHelper vh)
| -| `Parse()` |public static SVGPath Parse(string path)
| +| AddSegment() |public void AddSegment(SVGPathSeg seg)| +| Draw() |public void Draw(VertexHelper vh)| +| Parse() |public static SVGPath Parse(string path)| -## `SVGPathSeg` +## SVGPathSeg |public method|description| |--|--| -| `SVGPathSeg()` |public SVGPathSeg(SVGPathSegType type)
| +| SVGPathSeg() |public SVGPathSeg(SVGPathSegType type)| -## `TooltipContext` +## TooltipContext -## `TooltipData` +## TooltipData -## `TooltipHelper` +## TooltipHelper |public method|description| |--|--| -| `GetItemNumericFormatter()` |public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)
| -| `GetLineColor()` |public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme)
| -| `IsIgnoreFormatter()` |public static bool IsIgnoreFormatter(string itemFormatter)
| -| `LimitInRect()` |public static void LimitInRect(Tooltip tooltip, Rect chartRect)
| +| GetItemNumericFormatter() |public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)| +| GetLineColor() |public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme)| +| IsIgnoreFormatter() |public static bool IsIgnoreFormatter(string itemFormatter)| +| LimitInRect() |public static void LimitInRect(Tooltip tooltip, Rect chartRect)| -## `TooltipView` +## TooltipView |public method|description| |--|--| -| `CreateView()` |public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent)
| -| `GetCurrentPos()` |public Vector3 GetCurrentPos()
| -| `GetTargetPos()` |public Vector3 GetTargetPos()
| -| `Refresh()` |public void Refresh()
| -| `SetActive()` |public void SetActive(bool flag)
| -| `Update()` |public void Update()
| -| `UpdatePosition()` |public void UpdatePosition(Vector3 pos)
| +| CreateView() |public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent)| +| GetCurrentPos() |public Vector3 GetCurrentPos()| +| GetTargetPos() |public Vector3 GetTargetPos()| +| Refresh() |public void Refresh()| +| SetActive() |public void SetActive(bool flag)| +| Update() |public void Update()| +| UpdatePosition() |public void UpdatePosition(Vector3 pos)| -## `TooltipViewItem` +## TooltipViewItem -## `UGL` +## UGL |public method|description| |--|--| -| `DrawDiamond()` |public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color)
Draw a diamond. 画菱形(钻石形状) | -| `DrawDiamond()` |public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor)
Draw a diamond. 画菱形(钻石形状) | -| `DrawEllipse()` |public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1)
| -| `DrawLine()` |public static void DrawLine(VertexHelper vh, List points, float width, Color32 color, bool smooth, bool closepath = false)
| -| `DrawLine()` |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color)
Draw a line. 画直线 | -| `DrawLine()` |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor)
Draw a line. 画直线 | -| `DrawPolygon()` |public static void DrawPolygon(VertexHelper vh, List points, Color32 color)
填充任意多边形(目前只支持凸多边形) | -| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color)
| -| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor)
| -| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color)
| -| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor)
| -| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Vector3 p1, Vector3 p2, float radius, Color32 color)
Draw a rectangle. 画带长方形 | -| `DrawSquare()` |public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color)
Draw a square. 画正方形 | -| `DrawSvgPath()` |public static void DrawSvgPath(VertexHelper vh, string path)
| -| `DrawTriangle()` |public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color)
| -| `DrawTriangle()` |public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor)
| +| DrawDiamond() |public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color)
Draw a diamond. 画菱形(钻石形状) | +| DrawDiamond() |public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor)
Draw a diamond. 画菱形(钻石形状) | +| DrawEllipse() |public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1)| +| DrawLine() |public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false)| +| DrawLine() |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color)
Draw a line. 画直线 | +| DrawLine() |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor)
Draw a line. 画直线 | +| DrawPolygon() |public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color)
填充任意多边形(目前只支持凸多边形) | +| DrawRectangle() |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color)| +| DrawRectangle() |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor)| +| DrawRectangle() |public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color)| +| DrawRectangle() |public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor)| +| DrawRectangle() |public static void DrawRectangle(VertexHelper vh, Vector3 p1, Vector3 p2, float radius, Color32 color)
Draw a rectangle. 画带长方形 | +| DrawSquare() |public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color)
Draw a square. 画正方形 | +| DrawSvgPath() |public static void DrawSvgPath(VertexHelper vh, string path)| +| DrawTriangle() |public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color)| +| DrawTriangle() |public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor)| -## `UGLExample` +## UGLExample Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) -## `UGLHelper` +## UGLHelper |public method|description| |--|--| -| `GetAngle360()` |public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | -| `GetBezier()` |public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep)
| -| `GetBezier2()` |public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep)
| -| `GetBezierList()` |public static List GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp)
| -| `GetDire()` |public static Vector3 GetDire(float angle, bool isDegree = false)
| -| `GetIntersection()` |public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref Vector3 intersection)
获得两直线的交点 | -| `GetPos()` |public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)
| -| `GetVertialDire()` |public static Vector3 GetVertialDire(Vector3 dire)
| -| `IsClearColor()` |public static bool IsClearColor(Color color)
| -| `IsClearColor()` |public static bool IsClearColor(Color32 color)
| -| `IsPointInPolygon()` |public static bool IsPointInPolygon(Vector3 p, List polyons)
| -| `IsPointInPolygon()` |public static bool IsPointInPolygon(Vector3 p, List polyons)
| -| `IsPointInTriangle()` |public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check)
| -| `IsValueEqualsColor()` |public static bool IsValueEqualsColor(Color color1, Color color2)
| -| `IsValueEqualsColor()` |public static bool IsValueEqualsColor(Color32 color1, Color32 color2)
| -| `IsValueEqualsList()` |public static bool IsValueEqualsList(List list1, List list2)
| -| `IsValueEqualsString()` |public static bool IsValueEqualsString(string str1, string str2)
| -| `IsValueEqualsVector2()` |public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)
| -| `IsValueEqualsVector3()` |public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2)
| -| `IsValueEqualsVector3()` |public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)
| -| `IsZeroVector()` |public static bool IsZeroVector(Vector3 pos)
| -| `RotateRound()` |public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)
| +| GetAngle360() |public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | +| GetBezier() |public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep)| +| GetBezier2() |public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep)| +| GetBezierList() |public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp)| +| GetDire() |public static Vector3 GetDire(float angle, bool isDegree = false)| +| GetIntersection() |public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref Vector3 intersection)
获得两直线的交点 | +| GetPos() |public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)| +| GetVertialDire() |public static Vector3 GetVertialDire(Vector3 dire)| +| IsClearColor() |public static bool IsClearColor(Color color)| +| IsClearColor() |public static bool IsClearColor(Color32 color)| +| IsPointInPolygon() |public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons)| +| IsPointInPolygon() |public static bool IsPointInPolygon(Vector3 p, List<Vector3> polyons)| +| IsPointInTriangle() |public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check)| +| IsValueEqualsColor() |public static bool IsValueEqualsColor(Color color1, Color color2)| +| IsValueEqualsColor() |public static bool IsValueEqualsColor(Color32 color1, Color32 color2)| +| IsValueEqualsList<T>() |public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)| +| IsValueEqualsString() |public static bool IsValueEqualsString(string str1, string str2)| +| IsValueEqualsVector2() |public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)| +| IsValueEqualsVector3() |public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2)| +| IsValueEqualsVector3() |public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)| +| IsZeroVector() |public static bool IsZeroVector(Vector3 pos)| +| RotateRound() |public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)| -## `VisualMapContext` +## VisualMapContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `VisualMapHelper` +## VisualMapHelper |public method|description| |--|--| -| `AutoSetLineMinMax()` |public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis)
| -| `GetDimension()` |public static int GetDimension(VisualMap visualMap, int defaultDimension)
| -| `IsNeedAreaGradient()` |public static bool IsNeedAreaGradient(VisualMap visualMap)
| -| `IsNeedGradient()` |public static bool IsNeedGradient(VisualMap visualMap)
| -| `IsNeedLineGradient()` |public static bool IsNeedLineGradient(VisualMap visualMap)
| -| `SetMinMax()` |public static void SetMinMax(VisualMap visualMap, double min, double max)
| +| AutoSetLineMinMax() |public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis)| +| GetDimension() |public static int GetDimension(VisualMap visualMap, int defaultDimension)| +| IsNeedAreaGradient() |public static bool IsNeedAreaGradient(VisualMap visualMap)| +| IsNeedGradient() |public static bool IsNeedGradient(VisualMap visualMap)| +| IsNeedLineGradient() |public static bool IsNeedLineGradient(VisualMap visualMap)| +| SetMinMax() |public static void SetMinMax(VisualMap visualMap, double min, double max)| -## `XChartsMgr` +## XChartsMgr |public method|description| |--|--| -| `AddChart()` |public static void AddChart(BaseChart chart)
| -| `ContainsChart()` |public static bool ContainsChart(BaseChart chart)
| -| `ContainsChart()` |public static bool ContainsChart(string chartName)
| -| `DisableTextMeshPro()` |public static void DisableTextMeshPro()
| -| `EnableTextMeshPro()` |public static void EnableTextMeshPro()
| -| `GetChart()` |public static BaseChart GetChart(string chartName)
| -| `GetCharts()` |public static List GetCharts(string chartName)
| -| `GetPackageFullPath()` |public static string GetPackageFullPath()
| -| `GetRepeatChartNameInfo()` |public static string GetRepeatChartNameInfo(BaseChart chart, string chartName)
| -| `IsExistTMPAssembly()` |public static bool IsExistTMPAssembly()
| -| `IsRepeatChartName()` |public static bool IsRepeatChartName(BaseChart chart, string chartName = null)
| -| `ModifyTMPRefence()` |public static bool ModifyTMPRefence(bool removeTMP = false)
| -| `RemoveAllChartObject()` |public static void RemoveAllChartObject()
| -| `RemoveChart()` |public static void RemoveChart(string chartName)
| +| AddChart() |public static void AddChart(BaseChart chart)| +| ContainsChart() |public static bool ContainsChart(BaseChart chart)| +| ContainsChart() |public static bool ContainsChart(string chartName)| +| DisableTextMeshPro() |public static void DisableTextMeshPro()| +| EnableTextMeshPro() |public static void EnableTextMeshPro()| +| GetChart() |public static BaseChart GetChart(string chartName)| +| GetCharts() |public static List<BaseChart> GetCharts(string chartName)| +| GetPackageFullPath() |public static string GetPackageFullPath()| +| GetRepeatChartNameInfo() |public static string GetRepeatChartNameInfo(BaseChart chart, string chartName)| +| IsExistTMPAssembly() |public static bool IsExistTMPAssembly()| +| IsRepeatChartName() |public static bool IsRepeatChartName(BaseChart chart, string chartName = null)| +| ModifyTMPRefence() |public static bool ModifyTMPRefence(bool removeTMP = false)| +| RemoveAllChartObject() |public static void RemoveAllChartObject()| +| RemoveChart() |public static void RemoveChart(string chartName)| -## `XCResourceImporterWindow` +## XCResourceImporterWindow Inherits or Implemented: [UnityEditor.EditorWindow](#UnityEditor.EditorWindow) |public method|description| |--|--| -| `ShowPackageImporterWindow()` |public static void ShowPackageImporterWindow()
| +| ShowPackageImporterWindow() |public static void ShowPackageImporterWindow()| -## `XCThemeMgr` +## XCThemeMgr |public method|description| |--|--| -| `AddTheme()` |public static void AddTheme(Theme theme)
| -| `CheckReloadTheme()` |public static void CheckReloadTheme()
| -| `ContainsTheme()` |public static bool ContainsTheme(string themeName)
| -| `ExportTheme()` |public static bool ExportTheme(Theme theme)
| -| `ExportTheme()` |public static bool ExportTheme(Theme theme, string themeNewName)
| -| `GetAllThemeNames()` |public static List GetAllThemeNames()
| -| `GetTheme()` |public static Theme GetTheme(string themeName)
| -| `GetTheme()` |public static Theme GetTheme(ThemeType type)
| -| `GetThemeAssetPath()` |public static string GetThemeAssetPath(string themeName)
| -| `GetThemeList()` |public static List GetThemeList()
| -| `LoadTheme()` |public static Theme LoadTheme(string themeName)
| -| `LoadTheme()` |public static Theme LoadTheme(ThemeType type)
| -| `ReloadThemeList()` |public static void ReloadThemeList()
重新加载主题列表 | -| `SwitchTheme()` |public static void SwitchTheme(BaseChart chart, string themeName)
| +| AddTheme() |public static void AddTheme(Theme theme)| +| CheckReloadTheme() |public static void CheckReloadTheme()| +| ContainsTheme() |public static bool ContainsTheme(string themeName)| +| ExportTheme() |public static bool ExportTheme(Theme theme)| +| ExportTheme() |public static bool ExportTheme(Theme theme, string themeNewName)| +| GetAllThemeNames() |public static List<string> GetAllThemeNames()| +| GetTheme() |public static Theme GetTheme(string themeName)| +| GetTheme() |public static Theme GetTheme(ThemeType type)| +| GetThemeAssetPath() |public static string GetThemeAssetPath(string themeName)| +| GetThemeList() |public static List<Theme> GetThemeList()| +| LoadTheme() |public static Theme LoadTheme(string themeName)| +| LoadTheme() |public static Theme LoadTheme(ThemeType type)| +| ReloadThemeList() |public static void ReloadThemeList()
重新加载主题列表 | +| SwitchTheme() |public static void SwitchTheme(BaseChart chart, string themeName)| -[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
-[XCharts Configuration](XChartsConfiguration-EN.md)
+[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
+[XCharts Configuration](XChartsConfiguration-EN.md)
[XCharts FAQ](XChartsFAQ-EN.md) diff --git a/Documentation/XChartsAPI-ZH.md b/Documentation/XChartsAPI-ZH.md index d4b73194..b8f9350e 100644 --- a/Documentation/XChartsAPI-ZH.md +++ b/Documentation/XChartsAPI-ZH.md @@ -1,14 +1,14 @@ # API -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts配置项手册](XChartsConfiguration-ZH.md)
+[XCharts主页](https://github.com/XCharts-Team/XCharts)
+[XCharts配置项手册](XChartsConfiguration-ZH.md)
[XCharts问答](XChartsFAQ-ZH.md) -## Class +## All Class - [AnimationStyleHelper](#AnimationStyleHelper) - [AxisContext](#AxisContext) -- [AxisHandler](#AxisHandler) +- [AxisHandler<T>](#AxisHandler<T>) - [AxisHelper](#AxisHelper) - [BarChart](#BarChart) - [BaseChart](#BaseChart) @@ -45,9 +45,8 @@ - [ListForSerie](#ListForSerie) - [MainComponentContext](#MainComponentContext) - [MainComponentHandler](#MainComponentHandler) -- [MainComponentHandler](#MainComponentHandler) +- [MainComponentHandler<T>](#MainComponentHandler<T>) - [MathUtil](#MathUtil) -- [ObjectPool where T](#ObjectPool where T) - [Painter](#Painter) - [ParallelChart](#ParallelChart) - [ParallelCoordContext](#ParallelCoordContext) @@ -70,7 +69,7 @@ - [SerieDataExtraFieldAttribute](#SerieDataExtraFieldAttribute) - [SerieExtraComponentAttribute](#SerieExtraComponentAttribute) - [SerieHandler](#SerieHandler) -- [SerieHandler](#SerieHandler) +- [SerieHandler<T>](#SerieHandler<T>) - [SerieHandlerAttribute](#SerieHandlerAttribute) - [SerieHelper](#SerieHelper) - [SerieLabelHelper](#SerieLabelHelper) @@ -99,1085 +98,1085 @@ - [XCResourceImporterWindow](#XCResourceImporterWindow) - [XCThemeMgr](#XCThemeMgr) -## `AnimationStyleHelper` +## AnimationStyleHelper |public method|description| |--|--| -| `CheckDataAnimation()` |public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0)
| -| `GetAnimationPosition()` |public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip)
| -| `UpdateAnimationType()` |public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType)
| -| `UpdateSerieAnimation()` |public static void UpdateSerieAnimation(Serie serie)
| +| CheckDataAnimation() |public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0)| +| GetAnimationPosition() |public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip)| +| UpdateAnimationType() |public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType)| +| UpdateSerieAnimation() |public static void UpdateSerieAnimation(Serie serie)| -## `AxisContext` +## AxisContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `AxisHandler` +## AxisHandler<T> Inherits or Implemented: [MainComponentHandler](#MainComponentHandler) -## `AxisHelper` +## AxisHelper |public method|description| |--|--| -| `AdjustCircleLabelPos()` |public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
| -| `AdjustMinMaxValue()` |public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0)
调整最大最小值 | -| `AdjustRadiusAxisLabelPos()` |public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
| -| `GetAxisLineArrowOffset()` |public static float GetAxisLineArrowOffset(Axis axis)
包含箭头偏移的轴线长度 | -| `GetAxisPosition()` |public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null)
| -| `GetAxisPositionValue()` |public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset)
| -| `GetAxisPositionValue()` |public static double GetAxisPositionValue(GridCoord grid, Axis axis, Vector3 pos)
| -| `GetAxisValueDistance()` |public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上相对起点的距离 | -| `GetAxisValueLength()` |public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上对应的长度 | -| `GetAxisValuePosition()` |public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上的坐标位置 | -| `GetAxisValueSplitIndex()` |public static int GetAxisValueSplitIndex(Axis axis, double value, int totalSplitNumber = -1)
获得数值value在坐标轴上对应的split索引 | -| `GetAxisXOrY()` |public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis)
| -| `GetDataWidth()` |public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom)
获得一个类目数据在坐标系中代表的宽度 | -| `GetEachWidth()` |public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
| -| `GetScaleNumber()` |public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
获得分割线条数 | -| `GetScaleWidth()` |public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null)
获得分割段宽度 | -| `GetSplitNumber()` |public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom)
获得分割段数 | -| `GetTotalSplitGridNum()` |public static int GetTotalSplitGridNum(Axis axis)
获得分割网格个数,包含次刻度 | -| `GetXAxisXOrY()` |public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis)
| -| `GetYAxisXOrY()` |public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis)
| -| `NeedShowSplit()` |public static bool NeedShowSplit(Axis axis)
| +| AdjustCircleLabelPos() |public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)| +| AdjustMinMaxValue() |public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0)
调整最大最小值 | +| AdjustRadiusAxisLabelPos() |public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)| +| GetAxisLineArrowOffset() |public static float GetAxisLineArrowOffset(Axis axis)
包含箭头偏移的轴线长度 | +| GetAxisPosition() |public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null)| +| GetAxisPositionValue() |public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset)| +| GetAxisPositionValue() |public static double GetAxisPositionValue(GridCoord grid, Axis axis, Vector3 pos)| +| GetAxisValueDistance() |public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上相对起点的距离 | +| GetAxisValueLength() |public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上对应的长度 | +| GetAxisValuePosition() |public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上的坐标位置 | +| GetAxisValueSplitIndex() |public static int GetAxisValueSplitIndex(Axis axis, double value, int totalSplitNumber = -1)
获得数值value在坐标轴上对应的split索引 | +| GetAxisXOrY() |public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis)| +| GetDataWidth() |public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom)
获得一个类目数据在坐标系中代表的宽度 | +| GetEachWidth() |public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null)| +| GetScaleNumber() |public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
获得分割线条数 | +| GetScaleWidth() |public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null)
获得分割段宽度 | +| GetSplitNumber() |public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom)
获得分割段数 | +| GetTotalSplitGridNum() |public static int GetTotalSplitGridNum(Axis axis)
获得分割网格个数,包含次刻度 | +| GetXAxisXOrY() |public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis)| +| GetYAxisXOrY() |public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis)| +| NeedShowSplit() |public static bool NeedShowSplit(Axis axis)| -## `BarChart` +## BarChart Inherits or Implemented: [BaseChart](#BaseChart) -## `BaseChart` +## BaseChart Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver](#ISerializationCallbackReceiver) |public method|description| |--|--| -| `AddChartComponent()` |public MainComponent AddChartComponent(Type type)
| -| `AddChartComponent()` |public T AddChartComponent() where T : MainComponent
| -| `AddChartComponentWhenNoExist()` |public T AddChartComponentWhenNoExist() where T : MainComponent
| -| `AddData()` |public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null)
添加(time,y)数据到指定的系列中。 | -| `AddData()` |public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null)
添加一个数据到指定的系列中。 | -| `AddData()` |public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)
| -| `AddData()` |public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null)
添加(x,y)数据到指定系列中。 | -| `AddData()` |public SerieData AddData(int serieIndex, List multidimensionalData, string dataName = null, string dataId = null)
添加多维数据(x,y,z...)到指定的系列中。 | -| `AddData()` |public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null)
添加(time,y)数据到指定的系列中。 | -| `AddData()` |public SerieData AddData(string serieName, double data, string dataName = null, string dataId = null)
If serieName doesn't exist in legend,will be add to legend. | -| `AddData()` |public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)
| -| `AddData()` |public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null)
添加(x,y)数据到指定系列中。 | -| `AddData()` |public SerieData AddData(string serieName, List multidimensionalData, string dataName = null, string dataId = null)
添加多维数据(x,y,z...)到指定的系列中。 | -| `AddSerie()` |public T AddSerie(string serieName = null, bool show = true, bool addToHead = false) where T : Serie
| -| `AddXAxisData()` |public void AddXAxisData(string category, int xAxisIndex = 0)
添加一个类目数据到指定的x轴。 | -| `AddXAxisIcon()` |public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0)
添加一个图标到指定的x轴。 | -| `AddYAxisData()` |public void AddYAxisData(string category, int yAxisIndex = 0)
添加一个类目数据到指定的y轴。 | -| `AddYAxisIcon()` |public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)
添加一个图标到指定的y轴。 | -| `AnimationEnable()` |public void AnimationEnable(bool flag)
启用或关闭起始动画。 | -| `AnimationFadeIn()` |public void AnimationFadeIn()
开始渐入动画。 | -| `AnimationFadeOut()` |public void AnimationFadeOut()
开始渐出动画。 | -| `AnimationPause()` |public void AnimationPause()
暂停动画。 | -| `AnimationReset()` |public void AnimationReset()
重置动画。 | -| `AnimationResume()` |public void AnimationResume()
继续动画。 | -| `CanAddChartComponent()` |public bool CanAddChartComponent(Type type)
| -| `CanAddSerie()` |public bool CanAddSerie(Type type)
| -| `CanAddSerie()` |public bool CanAddSerie() where T : Serie
| -| `CanMultipleComponent()` |public bool CanMultipleComponent(Type type)
| -| `ClampInChart()` |public void ClampInChart(ref Vector3 pos)
| -| `ClampInGrid()` |public Vector3 ClampInGrid(GridCoord grid, Vector3 pos)
| -| `ClearData()` |public virtual void ClearData()
清空所有组件和Serie的数据。注意:Serie只是清空数据,不会移除Serie。 | -| `ClickLegendButton()` |public void ClickLegendButton(int legendIndex, string legendName, bool show)
点击图例按钮 | -| `CovertSerie()` |public bool CovertSerie(Serie serie, Type type)
| -| `CovertSerie()` |public bool CovertSerie(Serie serie) where T : Serie
| -| `CovertXYAxis()` |public void CovertXYAxis(int index)
转换X轴和Y轴的配置 | -| `GenerateDefaultSerieName()` |public string GenerateDefaultSerieName()
| -| `GetAllSerieDataCount()` |public int GetAllSerieDataCount()
| -| `GetChartBackgroundColor()` |public Color32 GetChartBackgroundColor()
| -| `GetChartComponent()` |public T GetChartComponent(int index = 0) where T : MainComponent
| -| `GetChartComponentNum()` |public int GetChartComponentNum(Type type)
| -| `GetChartComponentNum()` |public int GetChartComponentNum() where T : MainComponent
| -| `GetChartComponents()` |public List GetChartComponents() where T : MainComponent
| -| `GetData()` |public double GetData(int serieIndex, int dataIndex, int dimension = 1)
| -| `GetData()` |public double GetData(string serieName, int dataIndex, int dimension = 1)
| -| `GetDataZoomOfAxis()` |public DataZoom GetDataZoomOfAxis(Axis axis)
| -| `GetDataZoomOfSerie()` |public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom)
| -| `GetGrid()` |public GridCoord GetGrid(Vector2 local)
| -| `GetGridOfDataZoom()` |public GridCoord GetGridOfDataZoom(DataZoom dataZoom)
| -| `GetItemColor()` |public Color32 GetItemColor(Serie serie)
| -| `GetItemColor()` |public Color32 GetItemColor(Serie serie, SerieData serieData)
| -| `GetItemColor()` |public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)
| -| `GetLegendRealShowNameColor()` |public Color32 GetLegendRealShowNameColor(string name)
| -| `GetLegendRealShowNameIndex()` |public int GetLegendRealShowNameIndex(string name)
| -| `GetOrAddChartComponent()` |public T GetOrAddChartComponent() where T : MainComponent
| -| `GetPainter()` |public Painter GetPainter(int index)
| -| `GetSerie()` |public Serie GetSerie(int serieIndex)
| -| `GetSerie()` |public Serie GetSerie(string serieName)
| -| `GetSerie()` |public T GetSerie() where T : Serie
| -| `GetSerie()` |public T GetSerie(int serieIndex) where T : Serie
| -| `GetSerieBarGap()` |public float GetSerieBarGap() where T : Serie
| -| `GetSerieBarRealCount()` |public int GetSerieBarRealCount() where T : Serie
| -| `GetSerieIndexIfStack()` |public int GetSerieIndexIfStack(Serie currSerie) where T : Serie
| -| `GetSerieSameStackTotalValue()` |public double GetSerieSameStackTotalValue(string stack, int dataIndex) where T : Serie
| -| `GetSeriesMinMaxValue()` |public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)
| -| `GetSerieTotalGap()` |public float GetSerieTotalGap(float categoryWidth, float gap, int index) where T : Serie
| -| `GetSerieTotalWidth()` |public float GetSerieTotalWidth(float categoryWidth, float gap, int realBarCount) where T : Serie
| -| `GetTitlePosition()` |public Vector3 GetTitlePosition(Title title)
| -| `GetVisualMapOfSerie()` |public VisualMap GetVisualMapOfSerie(Serie serie)
| -| `GetXDataZoomOfSerie()` |public DataZoom GetXDataZoomOfSerie(Serie serie)
| -| `GetXLerpColor()` |public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)
| -| `GetYLerpColor()` |public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)
| -| `HasChartComponent()` |public bool HasChartComponent(Type type)
| -| `HasChartComponent()` |public bool HasChartComponent()
| -| `HasSerie()` |public bool HasSerie(Type type)
| -| `HasSerie()` |public bool HasSerie() where T : Serie
| -| `Init()` |public void Init(bool defaultChart = true)
| -| `InitAxisRuntimeData()` |public virtual void InitAxisRuntimeData(Axis axis) { }
| -| `InsertSerie()` |public void InsertSerie(Serie serie, int index = -1, bool addToHead = false)
| -| `InsertSerie()` |public T InsertSerie(int index, string serieName = null, bool show = true) where T : Serie
| -| `Internal_CheckAnimation()` |public void Internal_CheckAnimation()
| -| `IsActiveByLegend()` |public virtual bool IsActiveByLegend(string legendName)
获得指定图例名字的系列是否显示。 | -| `IsAllAxisCategory()` |public bool IsAllAxisCategory()
纯类目轴。 | -| `IsAllAxisValue()` |public bool IsAllAxisValue()
纯数值坐标轴(数值轴或对数轴)。 | -| `IsInAnyGrid()` |public bool IsInAnyGrid(Vector2 local)
| -| `IsInChart()` |public bool IsInChart(float x, float y)
| -| `IsInChart()` |public bool IsInChart(Vector2 local)
坐标是否在图表范围内 | -| `IsSerieName()` |public bool IsSerieName(string name)
| -| `MoveDownSerie()` |public bool MoveDownSerie(int serieIndex)
| -| `MoveUpSerie()` |public bool MoveUpSerie(int serieIndex)
| -| `OnAfterDeserialize()` |public void OnAfterDeserialize()
| -| `OnBeforeSerialize()` |public void OnBeforeSerialize()
| -| `OnBeginDrag()` |public override void OnBeginDrag(PointerEventData eventData)
| -| `OnDataZoomRangeChanged()` |public virtual void OnDataZoomRangeChanged(DataZoom dataZoom)
| -| `OnDrag()` |public override void OnDrag(PointerEventData eventData)
| -| `OnEndDrag()` |public override void OnEndDrag(PointerEventData eventData)
| -| `OnLegendButtonClick()` |public virtual void OnLegendButtonClick(int index, string legendName, bool show)
| -| `OnLegendButtonEnter()` |public virtual void OnLegendButtonEnter(int index, string legendName)
| -| `OnLegendButtonExit()` |public virtual void OnLegendButtonExit(int index, string legendName)
| -| `OnPointerClick()` |public override void OnPointerClick(PointerEventData eventData)
| -| `OnPointerDown()` |public override void OnPointerDown(PointerEventData eventData)
| -| `OnPointerEnter()` |public override void OnPointerEnter(PointerEventData eventData)
| -| `OnPointerExit()` |public override void OnPointerExit(PointerEventData eventData)
| -| `OnPointerUp()` |public override void OnPointerUp(PointerEventData eventData)
| -| `OnScroll()` |public override void OnScroll(PointerEventData eventData)
| -| `RefreshBasePainter()` |public void RefreshBasePainter()
| -| `RefreshChart()` |public void RefreshChart()
在下一帧刷新整个图表。 | -| `RefreshChart()` |public void RefreshChart(int serieIndex)
在下一帧刷新图表的指定serie。 | -| `RefreshChart()` |public void RefreshChart(Serie serie)
在下一帧刷新图表的指定serie。 | -| `RefreshDataZoom()` |public void RefreshDataZoom()
在下一帧刷新DataZoom | -| `RefreshGraph()` |public override void RefreshGraph()
| -| `RefreshPainter()` |public void RefreshPainter(int index)
| -| `RefreshPainter()` |public void RefreshPainter(Serie serie)
| -| `RefreshTopPainter()` |public void RefreshTopPainter()
| -| `RefreshUpperPainter()` |public void RefreshUpperPainter()
| -| `RemoveAllChartComponent()` |public void RemoveAllChartComponent()
| -| `RemoveAllSerie()` |public virtual void RemoveAllSerie()
移除所有的Serie。当确认只需要移除Serie时使用该接口,其他情况下一般用RemoveData()。 | -| `RemoveChartComponent()` |public bool RemoveChartComponent(MainComponent component)
| -| `RemoveChartComponent()` |public bool RemoveChartComponent(Type type, int index = 0)
| -| `RemoveChartComponent()` |public bool RemoveChartComponent(int index = 0)
| -| `RemoveChartComponents()` |public int RemoveChartComponents(Type type)
| -| `RemoveChartComponents()` |public int RemoveChartComponents()
| -| `RemoveData()` |public virtual void RemoveData()
清空所有组件数据,并移除所有Serie。一般在图表重新初始化时使用。 注意:组件只清空数据部分,参数会保留不会被重置。 | -| `RemoveData()` |public virtual void RemoveData(string serieName)
清除指定系列名称的数据。 | -| `RemoveSerie()` |public void RemoveSerie(int serieIndex)
| -| `RemoveSerie()` |public void RemoveSerie(Serie serie)
| -| `RemoveSerie()` |public void RemoveSerie(string serieName)
| -| `RemoveSerie()` |public void RemoveSerie() where T : Serie
| -| `ReplaceSerie()` |public bool ReplaceSerie(Serie oldSerie, Serie newSerie)
| -| `ResetDataIndex()` |public bool ResetDataIndex(int serieIndex)
重置serie的数据项索引。避免数据项索引异常。 | -| `SaveAsImage()` |public void SaveAsImage(string imageType = "png", string savePath = "")
保存图表为图片。 | -| `SetBasePainterMaterial()` |public void SetBasePainterMaterial(Material material)
设置Base Painter的材质球 | -| `SetMaxCache()` |public void SetMaxCache(int maxCache)
设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 | -| `SetPainterActive()` |public void SetPainterActive(int index, bool flag)
| -| `SetSerieActive()` |public void SetSerieActive(int serieIndex, bool active)
设置指定系列是否显示。 | -| `SetSerieActive()` |public void SetSerieActive(Serie serie, bool active)
| -| `SetSerieActive()` |public void SetSerieActive(string serieName, bool active)
设置指定系列是否显示。 | -| `SetSeriePainterMaterial()` |public void SetSeriePainterMaterial(Material material)
设置Serie Painter的材质球 | -| `SetTopPainterMaterial()` |public void SetTopPainterMaterial(Material material)
设置Top Painter的材质球 | -| `SetUpperPainterMaterial()` |public void SetUpperPainterMaterial(Material material)
设置Upper Painter的材质球 | -| `TryAddChartComponent()` |public bool TryAddChartComponent(Type type)
| -| `TryAddChartComponent()` |public bool TryAddChartComponent() where T : MainComponent
| -| `TryAddChartComponent()` |public bool TryAddChartComponent(out T component) where T : MainComponent
| -| `TryGetChartComponent()` |public bool TryGetChartComponent(out T component, int index = 0)
| -| `UdpateXAxisIcon()` |public void UdpateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
更新X轴图标。 | -| `UpdateData()` |public bool UpdateData(int serieIndex, int dataIndex, double value)
更新指定系列中的指定索引数据。 | -| `UpdateData()` |public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | -| `UpdateData()` |public bool UpdateData(int serieIndex, int dataIndex, List multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | -| `UpdateData()` |public bool UpdateData(string serieName, int dataIndex, double value)
更新指定系列中的指定索引数据。 | -| `UpdateData()` |public bool UpdateData(string serieName, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | -| `UpdateData()` |public bool UpdateData(string serieName, int dataIndex, List multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | -| `UpdateDataName()` |public bool UpdateDataName(int serieIndex, int dataIndex, string dataName)
更新指定系列中的指定索引数据名称。 | -| `UpdateDataName()` |public bool UpdateDataName(string serieName, int dataIndex, string dataName)
更新指定系列中的指定索引数据名称。 | -| `UpdateLegendColor()` |public virtual void UpdateLegendColor(string legendName, bool active)
| -| `UpdateTheme()` |public bool UpdateTheme(ThemeType theme)
切换内置主题。 | -| `UpdateTheme()` |public void UpdateTheme(Theme theme)
切换图表主题。 | -| `UpdateXAxisData()` |public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)
更新X轴类目数据。 | -| `UpdateYAxisData()` |public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)
更新Y轴类目数据。 | -| `UpdateYAxisIcon()` |public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)
更新Y轴图标。 | +| AddChartComponent() |public MainComponent AddChartComponent(Type type)| +| AddChartComponent<T>() |public T AddChartComponent<T>() where T : MainComponent| +| AddChartComponentWhenNoExist<T>() |public T AddChartComponentWhenNoExist<T>() where T : MainComponent| +| AddData() |public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null)
添加(time,y)数据到指定的系列中。 | +| AddData() |public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null)
添加一个数据到指定的系列中。 | +| AddData() |public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)| +| AddData() |public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null)
添加(x,y)数据到指定系列中。 | +| AddData() |public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null)
添加多维数据(x,y,z...)到指定的系列中。 | +| AddData() |public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null)
添加(time,y)数据到指定的系列中。 | +| AddData() |public SerieData AddData(string serieName, double data, string dataName = null, string dataId = null)
If serieName doesn't exist in legend,will be add to legend. | +| AddData() |public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)| +| AddData() |public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null)
添加(x,y)数据到指定系列中。 | +| AddData() |public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null)
添加多维数据(x,y,z...)到指定的系列中。 | +| AddSerie<T>() |public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie| +| AddXAxisData() |public void AddXAxisData(string category, int xAxisIndex = 0)
添加一个类目数据到指定的x轴。 | +| AddXAxisIcon() |public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0)
添加一个图标到指定的x轴。 | +| AddYAxisData() |public void AddYAxisData(string category, int yAxisIndex = 0)
添加一个类目数据到指定的y轴。 | +| AddYAxisIcon() |public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)
添加一个图标到指定的y轴。 | +| AnimationEnable() |public void AnimationEnable(bool flag)
启用或关闭起始动画。 | +| AnimationFadeIn() |public void AnimationFadeIn()
开始渐入动画。 | +| AnimationFadeOut() |public void AnimationFadeOut()
开始渐出动画。 | +| AnimationPause() |public void AnimationPause()
暂停动画。 | +| AnimationReset() |public void AnimationReset()
重置动画。 | +| AnimationResume() |public void AnimationResume()
继续动画。 | +| CanAddChartComponent() |public bool CanAddChartComponent(Type type)| +| CanAddSerie() |public bool CanAddSerie(Type type)| +| CanAddSerie<T>() |public bool CanAddSerie<T>() where T : Serie| +| CanMultipleComponent() |public bool CanMultipleComponent(Type type)| +| ClampInChart() |public void ClampInChart(ref Vector3 pos)| +| ClampInGrid() |public Vector3 ClampInGrid(GridCoord grid, Vector3 pos)| +| ClearData() |public virtual void ClearData()
清空所有组件和Serie的数据。注意:Serie只是清空数据,不会移除Serie。 | +| ClickLegendButton() |public void ClickLegendButton(int legendIndex, string legendName, bool show)
点击图例按钮 | +| CovertSerie() |public bool CovertSerie(Serie serie, Type type)| +| CovertSerie<T>() |public bool CovertSerie<T>(Serie serie) where T : Serie| +| CovertXYAxis() |public void CovertXYAxis(int index)
转换X轴和Y轴的配置 | +| GenerateDefaultSerieName() |public string GenerateDefaultSerieName()| +| GetAllSerieDataCount() |public int GetAllSerieDataCount()| +| GetChartBackgroundColor() |public Color32 GetChartBackgroundColor()| +| GetChartComponent<T>() |public T GetChartComponent<T>(int index = 0) where T : MainComponent| +| GetChartComponentNum() |public int GetChartComponentNum(Type type)| +| GetChartComponentNum<T>() |public int GetChartComponentNum<T>() where T : MainComponent| +| GetChartComponents<T>() |public List<MainComponent> GetChartComponents<T>() where T : MainComponent| +| GetData() |public double GetData(int serieIndex, int dataIndex, int dimension = 1)| +| GetData() |public double GetData(string serieName, int dataIndex, int dimension = 1)| +| GetDataZoomOfAxis() |public DataZoom GetDataZoomOfAxis(Axis axis)| +| GetDataZoomOfSerie() |public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom)| +| GetGrid() |public GridCoord GetGrid(Vector2 local)| +| GetGridOfDataZoom() |public GridCoord GetGridOfDataZoom(DataZoom dataZoom)| +| GetItemColor() |public Color32 GetItemColor(Serie serie)| +| GetItemColor() |public Color32 GetItemColor(Serie serie, SerieData serieData)| +| GetItemColor() |public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)| +| GetLegendRealShowNameColor() |public Color32 GetLegendRealShowNameColor(string name)| +| GetLegendRealShowNameIndex() |public int GetLegendRealShowNameIndex(string name)| +| GetOrAddChartComponent<T>() |public T GetOrAddChartComponent<T>() where T : MainComponent| +| GetPainter() |public Painter GetPainter(int index)| +| GetSerie() |public Serie GetSerie(int serieIndex)| +| GetSerie() |public Serie GetSerie(string serieName)| +| GetSerie<T>() |public T GetSerie<T>() where T : Serie| +| GetSerie<T>() |public T GetSerie<T>(int serieIndex) where T : Serie| +| GetSerieBarGap<T>() |public float GetSerieBarGap<T>() where T : Serie| +| GetSerieBarRealCount<T>() |public int GetSerieBarRealCount<T>() where T : Serie| +| GetSerieIndexIfStack<T>() |public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie| +| GetSerieSameStackTotalValue<T>() |public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie| +| GetSeriesMinMaxValue() |public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)| +| GetSerieTotalGap<T>() |public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie| +| GetSerieTotalWidth<T>() |public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie| +| GetTitlePosition() |public Vector3 GetTitlePosition(Title title)| +| GetVisualMapOfSerie() |public VisualMap GetVisualMapOfSerie(Serie serie)| +| GetXDataZoomOfSerie() |public DataZoom GetXDataZoomOfSerie(Serie serie)| +| GetXLerpColor() |public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)| +| GetYLerpColor() |public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)| +| HasChartComponent() |public bool HasChartComponent(Type type)| +| HasChartComponent<T>() |public bool HasChartComponent<T>()| +| HasSerie() |public bool HasSerie(Type type)| +| HasSerie<T>() |public bool HasSerie<T>() where T : Serie| +| Init() |public void Init(bool defaultChart = true)| +| InitAxisRuntimeData() |public virtual void InitAxisRuntimeData(Axis axis) { }| +| InsertSerie() |public void InsertSerie(Serie serie, int index = -1, bool addToHead = false)| +| InsertSerie<T>() |public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie| +| Internal_CheckAnimation() |public void Internal_CheckAnimation()| +| IsActiveByLegend() |public virtual bool IsActiveByLegend(string legendName)
获得指定图例名字的系列是否显示。 | +| IsAllAxisCategory() |public bool IsAllAxisCategory()
纯类目轴。 | +| IsAllAxisValue() |public bool IsAllAxisValue()
纯数值坐标轴(数值轴或对数轴)。 | +| IsInAnyGrid() |public bool IsInAnyGrid(Vector2 local)| +| IsInChart() |public bool IsInChart(float x, float y)| +| IsInChart() |public bool IsInChart(Vector2 local)
坐标是否在图表范围内 | +| IsSerieName() |public bool IsSerieName(string name)| +| MoveDownSerie() |public bool MoveDownSerie(int serieIndex)| +| MoveUpSerie() |public bool MoveUpSerie(int serieIndex)| +| OnAfterDeserialize() |public void OnAfterDeserialize()| +| OnBeforeSerialize() |public void OnBeforeSerialize()| +| OnBeginDrag() |public override void OnBeginDrag(PointerEventData eventData)| +| OnDataZoomRangeChanged() |public virtual void OnDataZoomRangeChanged(DataZoom dataZoom)| +| OnDrag() |public override void OnDrag(PointerEventData eventData)| +| OnEndDrag() |public override void OnEndDrag(PointerEventData eventData)| +| OnLegendButtonClick() |public virtual void OnLegendButtonClick(int index, string legendName, bool show)| +| OnLegendButtonEnter() |public virtual void OnLegendButtonEnter(int index, string legendName)| +| OnLegendButtonExit() |public virtual void OnLegendButtonExit(int index, string legendName)| +| OnPointerClick() |public override void OnPointerClick(PointerEventData eventData)| +| OnPointerDown() |public override void OnPointerDown(PointerEventData eventData)| +| OnPointerEnter() |public override void OnPointerEnter(PointerEventData eventData)| +| OnPointerExit() |public override void OnPointerExit(PointerEventData eventData)| +| OnPointerUp() |public override void OnPointerUp(PointerEventData eventData)| +| OnScroll() |public override void OnScroll(PointerEventData eventData)| +| RefreshBasePainter() |public void RefreshBasePainter()| +| RefreshChart() |public void RefreshChart()
在下一帧刷新整个图表。 | +| RefreshChart() |public void RefreshChart(int serieIndex)
在下一帧刷新图表的指定serie。 | +| RefreshChart() |public void RefreshChart(Serie serie)
在下一帧刷新图表的指定serie。 | +| RefreshDataZoom() |public void RefreshDataZoom()
在下一帧刷新DataZoom | +| RefreshGraph() |public override void RefreshGraph()| +| RefreshPainter() |public void RefreshPainter(int index)| +| RefreshPainter() |public void RefreshPainter(Serie serie)| +| RefreshTopPainter() |public void RefreshTopPainter()| +| RefreshUpperPainter() |public void RefreshUpperPainter()| +| RemoveAllChartComponent() |public void RemoveAllChartComponent()| +| RemoveAllSerie() |public virtual void RemoveAllSerie()
移除所有的Serie。当确认只需要移除Serie时使用该接口,其他情况下一般用RemoveData()。 | +| RemoveChartComponent() |public bool RemoveChartComponent(MainComponent component)| +| RemoveChartComponent() |public bool RemoveChartComponent(Type type, int index = 0)| +| RemoveChartComponent<T>() |public bool RemoveChartComponent<T>(int index = 0)| +| RemoveChartComponents() |public int RemoveChartComponents(Type type)| +| RemoveChartComponents<T>() |public int RemoveChartComponents<T>()| +| RemoveData() |public virtual void RemoveData()
清空所有组件数据,并移除所有Serie。一般在图表重新初始化时使用。 注意:组件只清空数据部分,参数会保留不会被重置。 | +| RemoveData() |public virtual void RemoveData(string serieName)
清除指定系列名称的数据。 | +| RemoveSerie() |public void RemoveSerie(int serieIndex)| +| RemoveSerie() |public void RemoveSerie(Serie serie)| +| RemoveSerie() |public void RemoveSerie(string serieName)| +| RemoveSerie<T>() |public void RemoveSerie<T>() where T : Serie| +| ReplaceSerie() |public bool ReplaceSerie(Serie oldSerie, Serie newSerie)| +| ResetDataIndex() |public bool ResetDataIndex(int serieIndex)
重置serie的数据项索引。避免数据项索引异常。 | +| SaveAsImage() |public void SaveAsImage(string imageType = "png", string savePath = "")
保存图表为图片。 | +| SetBasePainterMaterial() |public void SetBasePainterMaterial(Material material)
设置Base Painter的材质球 | +| SetMaxCache() |public void SetMaxCache(int maxCache)
设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 | +| SetPainterActive() |public void SetPainterActive(int index, bool flag)| +| SetSerieActive() |public void SetSerieActive(int serieIndex, bool active)
设置指定系列是否显示。 | +| SetSerieActive() |public void SetSerieActive(Serie serie, bool active)| +| SetSerieActive() |public void SetSerieActive(string serieName, bool active)
设置指定系列是否显示。 | +| SetSeriePainterMaterial() |public void SetSeriePainterMaterial(Material material)
设置Serie Painter的材质球 | +| SetTopPainterMaterial() |public void SetTopPainterMaterial(Material material)
设置Top Painter的材质球 | +| SetUpperPainterMaterial() |public void SetUpperPainterMaterial(Material material)
设置Upper Painter的材质球 | +| TryAddChartComponent() |public bool TryAddChartComponent(Type type)| +| TryAddChartComponent<T>() |public bool TryAddChartComponent<T>() where T : MainComponent| +| TryAddChartComponent<T>() |public bool TryAddChartComponent<T>(out T component) where T : MainComponent| +| TryGetChartComponent<T>() |public bool TryGetChartComponent<T>(out T component, int index = 0)| +| UdpateXAxisIcon() |public void UdpateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
更新X轴图标。 | +| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, double value)
更新指定系列中的指定索引数据。 | +| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | +| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | +| UpdateData() |public bool UpdateData(string serieName, int dataIndex, double value)
更新指定系列中的指定索引数据。 | +| UpdateData() |public bool UpdateData(string serieName, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | +| UpdateData() |public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | +| UpdateDataName() |public bool UpdateDataName(int serieIndex, int dataIndex, string dataName)
更新指定系列中的指定索引数据名称。 | +| UpdateDataName() |public bool UpdateDataName(string serieName, int dataIndex, string dataName)
更新指定系列中的指定索引数据名称。 | +| UpdateLegendColor() |public virtual void UpdateLegendColor(string legendName, bool active)| +| UpdateTheme() |public bool UpdateTheme(ThemeType theme)
切换内置主题。 | +| UpdateTheme() |public void UpdateTheme(Theme theme)
切换图表主题。 | +| UpdateXAxisData() |public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)
更新X轴类目数据。 | +| UpdateYAxisData() |public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)
更新Y轴类目数据。 | +| UpdateYAxisIcon() |public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)
更新Y轴图标。 | -## `BaseGraph` +## BaseGraph Inherits or Implemented: [MaskableGraphic](#MaskableGraphic),[IPointerDownHandler](#IPointerDownHandler),[IPointerUpHandler](#IPointerUpHandler),[](#) |public method|description| |--|--| -| `CheckWarning()` |public string CheckWarning()
检测警告信息。 | -| `OnBeginDrag()` |public virtual void OnBeginDrag(PointerEventData eventData)
| -| `OnDrag()` |public virtual void OnDrag(PointerEventData eventData)
| -| `OnEndDrag()` |public virtual void OnEndDrag(PointerEventData eventData)
| -| `OnPointerClick()` |public virtual void OnPointerClick(PointerEventData eventData)
| -| `OnPointerDown()` |public virtual void OnPointerDown(PointerEventData eventData)
| -| `OnPointerEnter()` |public virtual void OnPointerEnter(PointerEventData eventData)
| -| `OnPointerExit()` |public virtual void OnPointerExit(PointerEventData eventData)
| -| `OnPointerUp()` |public virtual void OnPointerUp(PointerEventData eventData)
| -| `OnScroll()` |public virtual void OnScroll(PointerEventData eventData)
| -| `RebuildChartObject()` |public void RebuildChartObject()
移除并重新创建所有图表的Object。 | -| `RefreshAllComponent()` |public void RefreshAllComponent()
| -| `RefreshGraph()` |public virtual void RefreshGraph()
在下一帧刷新图形。 | -| `ScreenPointToChartPoint()` |public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)
| -| `SetPainterDirty()` |public void SetPainterDirty()
重新初始化Painter | -| `SetSize()` |public virtual void SetSize(float width, float height)
设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform) | +| CheckWarning() |public string CheckWarning()
检测警告信息。 | +| OnBeginDrag() |public virtual void OnBeginDrag(PointerEventData eventData)| +| OnDrag() |public virtual void OnDrag(PointerEventData eventData)| +| OnEndDrag() |public virtual void OnEndDrag(PointerEventData eventData)| +| OnPointerClick() |public virtual void OnPointerClick(PointerEventData eventData)| +| OnPointerDown() |public virtual void OnPointerDown(PointerEventData eventData)| +| OnPointerEnter() |public virtual void OnPointerEnter(PointerEventData eventData)| +| OnPointerExit() |public virtual void OnPointerExit(PointerEventData eventData)| +| OnPointerUp() |public virtual void OnPointerUp(PointerEventData eventData)| +| OnScroll() |public virtual void OnScroll(PointerEventData eventData)| +| RebuildChartObject() |public void RebuildChartObject()
移除并重新创建所有图表的Object。 | +| RefreshAllComponent() |public void RefreshAllComponent()| +| RefreshGraph() |public virtual void RefreshGraph()
在下一帧刷新图形。 | +| ScreenPointToChartPoint() |public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)| +| SetPainterDirty() |public void SetPainterDirty()
重新初始化Painter | +| SetSize() |public virtual void SetSize(float width, float height)
设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform) | -## `CandlestickChart` +## CandlestickChart Inherits or Implemented: [BaseChart](#BaseChart) -## `ChartCached` +## ChartCached |public method|description| |--|--| -| `ColorToDotStr()` |public static string ColorToDotStr(Color color)
| -| `ColorToStr()` |public static string ColorToStr(Color color)
| -| `FloatToStr()` |public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0)
| -| `GetSerieLabelName()` |public static string GetSerieLabelName(string prefix, int i, int j)
| -| `IntToStr()` |public static string IntToStr(int value, string numericFormatter = "")
| -| `NumberToStr()` |public static string NumberToStr(double value, string formatter)
| +| ColorToDotStr() |public static string ColorToDotStr(Color color)| +| ColorToStr() |public static string ColorToStr(Color color)| +| FloatToStr() |public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0)| +| GetSerieLabelName() |public static string GetSerieLabelName(string prefix, int i, int j)| +| IntToStr() |public static string IntToStr(int value, string numericFormatter = "")| +| NumberToStr() |public static string NumberToStr(double value, string formatter)| -## `ChartConst` +## ChartConst -## `ChartDrawer` +## ChartDrawer -## `ChartHelper` +## ChartHelper |public method|description| |--|--| -| `ActiveAllObject()` |public static void ActiveAllObject(Transform parent, bool active, string match = null)
| -| `AddIcon()` |public static Image AddIcon(string name, Transform parent, IconStyle iconStyle)
| -| `Cancat()` |public static string Cancat(string str1, int i)
| -| `Cancat()` |public static string Cancat(string str1, string str2)
| -| `ClearEventListener()` |public static void ClearEventListener(GameObject obj)
| -| `CopyArray()` |public static bool CopyArray(T[] toList, T[] fromList)
| -| `CopyList()` |public static bool CopyList(List toList, List fromList)
| -| `DestoryGameObject()` |public static void DestoryGameObject(GameObject go)
| -| `DestoryGameObject()` |public static void DestoryGameObject(Transform parent, string childName)
| -| `DestoryGameObjectByMatch()` |public static void DestoryGameObjectByMatch(Transform parent, string match)
| -| `DestroyAllChildren()` |public static void DestroyAllChildren(Transform parent)
| -| `GetActualValue()` |public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f)
| -| `GetAngle360()` |public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | -| `GetBlurColor()` |public static Color32 GetBlurColor(Color32 color, float a = 0.3f)
| -| `GetColor()` |public static Color32 GetColor(string hexColorStr)
| -| `GetDire()` |public static Vector3 GetDire(float angle, bool isDegree = false)
| -| `GetFloatAccuracy()` |public static int GetFloatAccuracy(double value)
| -| `GetFullName()` |public static string GetFullName(Transform transform)
| -| `GetHighlightColor()` |public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f)
| -| `GetLastValue()` |public static Vector3 GetLastValue(List list)
| -| `GetMaxDivisibleValue()` |public static double GetMaxDivisibleValue(double max, double ceilRate)
| -| `GetMaxLogValue()` |public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
| -| `GetMinDivisibleValue()` |public static double GetMinDivisibleValue(double min, double ceilRate)
| -| `GetMinLogValue()` |public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
| -| `GetOrAddComponent()` |public static T GetOrAddComponent(GameObject gameObject) where T : Component
| -| `GetOrAddComponent()` |public static T GetOrAddComponent(Transform transform) where T : Component
| -| `GetPointList()` |public static void GetPointList(ref List posList, Vector3 sp, Vector3 ep, float k = 30f)
| -| `GetPos()` |public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)
| -| `GetPosition()` |public static Vector3 GetPosition(Vector3 center, float angle, float radius)
| -| `GetSelectColor()` |public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)
| -| `GetVertialDire()` |public static Vector3 GetVertialDire(Vector3 dire)
| -| `HideAllObject()` |public static void HideAllObject(GameObject obj, string match = null)
| -| `HideAllObject()` |public static void HideAllObject(Transform parent, string match = null)
| -| `IsClearColor()` |public static bool IsClearColor(Color color)
| -| `IsClearColor()` |public static bool IsClearColor(Color32 color)
| -| `IsColorAlphaZero()` |public static bool IsColorAlphaZero(Color color)
| -| `IsEquals()` |public static bool IsEquals(double d1, double d2)
| -| `IsEquals()` |public static bool IsEquals(float d1, float d2)
| -| `IsIngore()` |public static bool IsIngore(Vector3 pos)
| -| `IsInRect()` |public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax)
| -| `IsPointInQuadrilateral()` |public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D)
| -| `IsValueEqualsColor()` |public static bool IsValueEqualsColor(Color color1, Color color2)
| -| `IsValueEqualsColor()` |public static bool IsValueEqualsColor(Color32 color1, Color32 color2)
| -| `IsValueEqualsList()` |public static bool IsValueEqualsList(List list1, List list2)
| -| `IsValueEqualsString()` |public static bool IsValueEqualsString(string str1, string str2)
| -| `IsValueEqualsVector2()` |public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)
| -| `IsValueEqualsVector3()` |public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)
| -| `IsZeroVector()` |public static bool IsZeroVector(Vector3 pos)
| -| `ParseFloatFromString()` |public static List ParseFloatFromString(string jsonData)
| -| `ParseStringFromString()` |public static List ParseStringFromString(string jsonData)
| -| `RemoveComponent()` |public static void RemoveComponent(GameObject gameObject)
| -| `RotateRound()` |public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)
| -| `SaveAsImage()` |public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")
| -| `SetActive()` |public static void SetActive(GameObject gameObject, bool active)
| -| `SetActive()` |public static void SetActive(Image image, bool active)
| -| `SetActive()` |public static void SetActive(Text text, bool active)
| -| `SetActive()` |public static void SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC | -| `SetBackground()` |public static void SetBackground(Image background, ImageStyle imageStyle)
| -| `SetColorOpacity()` |public static void SetColorOpacity(ref Color32 color, float opacity)
| +| ActiveAllObject() |public static void ActiveAllObject(Transform parent, bool active, string match = null)| +| AddIcon() |public static Image AddIcon(string name, Transform parent, IconStyle iconStyle)| +| Cancat() |public static string Cancat(string str1, int i)| +| Cancat() |public static string Cancat(string str1, string str2)| +| ClearEventListener() |public static void ClearEventListener(GameObject obj)| +| CopyArray<T>() |public static bool CopyArray<T>(T[] toList, T[] fromList)| +| CopyList<T>() |public static bool CopyList<T>(List<T> toList, List<T> fromList)| +| DestoryGameObject() |public static void DestoryGameObject(GameObject go)| +| DestoryGameObject() |public static void DestoryGameObject(Transform parent, string childName)| +| DestoryGameObjectByMatch() |public static void DestoryGameObjectByMatch(Transform parent, string match)| +| DestroyAllChildren() |public static void DestroyAllChildren(Transform parent)| +| GetActualValue() |public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f)| +| GetAngle360() |public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | +| GetBlurColor() |public static Color32 GetBlurColor(Color32 color, float a = 0.3f)| +| GetColor() |public static Color32 GetColor(string hexColorStr)| +| GetDire() |public static Vector3 GetDire(float angle, bool isDegree = false)| +| GetFloatAccuracy() |public static int GetFloatAccuracy(double value)| +| GetFullName() |public static string GetFullName(Transform transform)| +| GetHighlightColor() |public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f)| +| GetLastValue() |public static Vector3 GetLastValue(List<Vector3> list)| +| GetMaxDivisibleValue() |public static double GetMaxDivisibleValue(double max, double ceilRate)| +| GetMaxLogValue() |public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)| +| GetMinDivisibleValue() |public static double GetMinDivisibleValue(double min, double ceilRate)| +| GetMinLogValue() |public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)| +| GetOrAddComponent<T>() |public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component| +| GetOrAddComponent<T>() |public static T GetOrAddComponent<T>(Transform transform) where T : Component| +| GetPointList() |public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f)| +| GetPos() |public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)| +| GetPosition() |public static Vector3 GetPosition(Vector3 center, float angle, float radius)| +| GetSelectColor() |public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)| +| GetVertialDire() |public static Vector3 GetVertialDire(Vector3 dire)| +| HideAllObject() |public static void HideAllObject(GameObject obj, string match = null)| +| HideAllObject() |public static void HideAllObject(Transform parent, string match = null)| +| IsClearColor() |public static bool IsClearColor(Color color)| +| IsClearColor() |public static bool IsClearColor(Color32 color)| +| IsColorAlphaZero() |public static bool IsColorAlphaZero(Color color)| +| IsEquals() |public static bool IsEquals(double d1, double d2)| +| IsEquals() |public static bool IsEquals(float d1, float d2)| +| IsIngore() |public static bool IsIngore(Vector3 pos)| +| IsInRect() |public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax)| +| IsPointInQuadrilateral() |public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D)| +| IsValueEqualsColor() |public static bool IsValueEqualsColor(Color color1, Color color2)| +| IsValueEqualsColor() |public static bool IsValueEqualsColor(Color32 color1, Color32 color2)| +| IsValueEqualsList<T>() |public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)| +| IsValueEqualsString() |public static bool IsValueEqualsString(string str1, string str2)| +| IsValueEqualsVector2() |public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)| +| IsValueEqualsVector3() |public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)| +| IsZeroVector() |public static bool IsZeroVector(Vector3 pos)| +| ParseFloatFromString() |public static List<float> ParseFloatFromString(string jsonData)| +| ParseStringFromString() |public static List<string> ParseStringFromString(string jsonData)| +| RemoveComponent<T>() |public static void RemoveComponent<T>(GameObject gameObject)| +| RotateRound() |public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)| +| SaveAsImage() |public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")| +| SetActive() |public static void SetActive(GameObject gameObject, bool active)| +| SetActive() |public static void SetActive(Image image, bool active)| +| SetActive() |public static void SetActive(Text text, bool active)| +| SetActive() |public static void SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC | +| SetBackground() |public static void SetBackground(Image background, ImageStyle imageStyle)| +| SetColorOpacity() |public static void SetColorOpacity(ref Color32 color, float opacity)| -## `ChartLabel` +## ChartLabel Inherits or Implemented: [Image](#Image) |public method|description| |--|--| -| `GetHeight()` |public float GetHeight()
| -| `GetPosition()` |public Vector3 GetPosition()
| -| `GetTextHeight()` |public float GetTextHeight()
| -| `GetTextWidth()` |public float GetTextWidth()
| -| `GetWidth()` |public float GetWidth()
| -| `SetActive()` |public void SetActive(bool flag)
| -| `SetIcon()` |public void SetIcon(Image image)
| -| `SetIconActive()` |public void SetIconActive(bool flag)
| -| `SetIconSize()` |public void SetIconSize(float width, float height)
| -| `SetIconSprite()` |public void SetIconSprite(Sprite sprite)
| -| `SetPadding()` |public void SetPadding(float[] padding)
| -| `SetPosition()` |public void SetPosition(Vector3 position)
| -| `SetRectPosition()` |public void SetRectPosition(Vector3 position)
| -| `SetSize()` |public void SetSize(float width, float height)
| -| `SetText()` |public bool SetText(string text)
| -| `SetTextActive()` |public void SetTextActive(bool flag)
| -| `SetTextColor()` |public void SetTextColor(Color color)
| -| `SetTextPadding()` |public void SetTextPadding(TextPadding padding)
| -| `SetTextRotate()` |public void SetTextRotate(float rotate)
| -| `UpdateIcon()` |public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null)
| +| GetHeight() |public float GetHeight()| +| GetPosition() |public Vector3 GetPosition()| +| GetTextHeight() |public float GetTextHeight()| +| GetTextWidth() |public float GetTextWidth()| +| GetWidth() |public float GetWidth()| +| SetActive() |public void SetActive(bool flag)| +| SetIcon() |public void SetIcon(Image image)| +| SetIconActive() |public void SetIconActive(bool flag)| +| SetIconSize() |public void SetIconSize(float width, float height)| +| SetIconSprite() |public void SetIconSprite(Sprite sprite)| +| SetPadding() |public void SetPadding(float[] padding)| +| SetPosition() |public void SetPosition(Vector3 position)| +| SetRectPosition() |public void SetRectPosition(Vector3 position)| +| SetSize() |public void SetSize(float width, float height)| +| SetText() |public bool SetText(string text)| +| SetTextActive() |public void SetTextActive(bool flag)| +| SetTextColor() |public void SetTextColor(Color color)| +| SetTextPadding() |public void SetTextPadding(TextPadding padding)| +| SetTextRotate() |public void SetTextRotate(float rotate)| +| UpdateIcon() |public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null)| -## `ChartObject` +## ChartObject |public method|description| |--|--| -| `Destroy()` |public virtual void Destroy()
| +| Destroy() |public virtual void Destroy()| -## `CheckHelper` +## CheckHelper |public method|description| |--|--| -| `CheckChart()` |public static string CheckChart(BaseChart chart)
| -| `CheckChart()` |public static string CheckChart(BaseGraph chart)
| +| CheckChart() |public static string CheckChart(BaseChart chart)| +| CheckChart() |public static string CheckChart(BaseGraph chart)| -## `ColorUtil` +## ColorUtil |public method|description| |--|--| -| `GetColor()` |public static Color32 GetColor(string hexColorStr)
将字符串颜色值转成Color。 | +| GetColor() |public static Color32 GetColor(string hexColorStr)
将字符串颜色值转成Color。 | -## `ComponentHandlerAttribute` +## ComponentHandlerAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `ComponentHandlerAttribute()` |public ComponentHandlerAttribute(Type handler)
| -| `ComponentHandlerAttribute()` |public ComponentHandlerAttribute(Type handler, bool allowMultiple)
| +| ComponentHandlerAttribute() |public ComponentHandlerAttribute(Type handler)| +| ComponentHandlerAttribute() |public ComponentHandlerAttribute(Type handler, bool allowMultiple)| -## `ComponentHelper` +## ComponentHelper |public method|description| |--|--| -| `GetAngleAxis()` |public static AngleAxis GetAngleAxis(List components, int polarIndex)
| -| `GetRadiusAxis()` |public static RadiusAxis GetRadiusAxis(List components, int polarIndex)
| -| `GetXAxisOnZeroOffset()` |public static float GetXAxisOnZeroOffset(List components, XAxis axis)
| -| `GetYAxisOnZeroOffset()` |public static float GetYAxisOnZeroOffset(List components, YAxis axis)
| -| `IsAnyCategoryOfYAxis()` |public static bool IsAnyCategoryOfYAxis(List components)
| +| GetAngleAxis() |public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex)| +| GetRadiusAxis() |public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex)| +| GetXAxisOnZeroOffset() |public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis)| +| GetYAxisOnZeroOffset() |public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis)| +| IsAnyCategoryOfYAxis() |public static bool IsAnyCategoryOfYAxis(List<MainComponent> components)| -## `CoordOptionsAttribute` +## CoordOptionsAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Contains()` |public bool Contains() where T : CoordSystem
| -| `CoordOptionsAttribute()` |public CoordOptionsAttribute(Type coord)
| -| `CoordOptionsAttribute()` |public CoordOptionsAttribute(Type coord, Type coord2)
| -| `CoordOptionsAttribute()` |public CoordOptionsAttribute(Type coord, Type coord2, Type coord3)
| -| `CoordOptionsAttribute()` |public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4)
| +| Contains<T>() |public bool Contains<T>() where T : CoordSystem| +| CoordOptionsAttribute() |public CoordOptionsAttribute(Type coord)| +| CoordOptionsAttribute() |public CoordOptionsAttribute(Type coord, Type coord2)| +| CoordOptionsAttribute() |public CoordOptionsAttribute(Type coord, Type coord2, Type coord3)| +| CoordOptionsAttribute() |public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4)| -## `DataZoomContext` +## DataZoomContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `DataZoomHelper` +## DataZoomHelper |public method|description| |--|--| -| `UpdateDataZoomRuntimeStartEndValue()` |public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie)
| -| `UpdateDataZoomRuntimeStartEndValue()` |public static void UpdateDataZoomRuntimeStartEndValue(BaseChart chart) where T : Serie
| +| UpdateDataZoomRuntimeStartEndValue() |public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie)| +| UpdateDataZoomRuntimeStartEndValue<T>() |public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie| -## `DateTimeUtil` +## DateTimeUtil |public method|description| |--|--| -| `GetDateTime()` |public static DateTime GetDateTime(int timestamp)
| -| `GetTimestamp()` |public static int GetTimestamp()
| -| `GetTimestamp()` |public static int GetTimestamp(DateTime time)
| +| GetDateTime() |public static DateTime GetDateTime(int timestamp)| +| GetTimestamp() |public static int GetTimestamp()| +| GetTimestamp() |public static int GetTimestamp(DateTime time)| -## `DefaultAnimationAttribute` +## DefaultAnimationAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `DefaultAnimationAttribute()` |public DefaultAnimationAttribute(AnimationType handler)
| +| DefaultAnimationAttribute() |public DefaultAnimationAttribute(AnimationType handler)| -## `DefineSymbolsUtil` +## DefineSymbolsUtil |public method|description| |--|--| -| `AddGlobalDefine()` |public static void AddGlobalDefine(string symbol)
| -| `RemoveGlobalDefine()` |public static void RemoveGlobalDefine(string symbol)
| +| AddGlobalDefine() |public static void AddGlobalDefine(string symbol)| +| RemoveGlobalDefine() |public static void RemoveGlobalDefine(string symbol)| -## `FormatterHelper` +## FormatterHelper |public method|description| |--|--| -| `NeedFormat()` |public static bool NeedFormat(string content)
| -| `ReplaceAxisLabelContent()` |public static void ReplaceAxisLabelContent(ref string content, string numericFormatter, double value)
| -| `ReplaceAxisLabelContent()` |public static void ReplaceAxisLabelContent(ref string content, string value)
| -| `TrimAndReplaceLine()` |public static string TrimAndReplaceLine(string content)
| -| `TrimAndReplaceLine()` |public static string TrimAndReplaceLine(StringBuilder sb)
| +| NeedFormat() |public static bool NeedFormat(string content)| +| ReplaceAxisLabelContent() |public static void ReplaceAxisLabelContent(ref string content, string numericFormatter, double value)| +| ReplaceAxisLabelContent() |public static void ReplaceAxisLabelContent(ref string content, string value)| +| TrimAndReplaceLine() |public static string TrimAndReplaceLine(string content)| +| TrimAndReplaceLine() |public static string TrimAndReplaceLine(StringBuilder sb)| -## `GridCoordContext` +## GridCoordContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `HeatmapChart` +## HeatmapChart Inherits or Implemented: [BaseChart](#BaseChart) -## `IgnoreDoc` +## IgnoreDoc Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `IgnoreDoc()` |public IgnoreDoc()
| +| IgnoreDoc() |public IgnoreDoc()| -## `InteractData` +## InteractData |public method|description| |--|--| -| `Reset()` |public void Reset()
| -| `SetColor()` |public void SetColor(ref bool needInteract, Color32 color)
| -| `SetColor()` |public void SetColor(ref bool needInteract, Color32 color, Color32 toColor)
| -| `SetValue()` |public void SetValue(ref bool needInteract, float size)
| -| `SetValue()` |public void SetValue(ref bool needInteract, float size, bool highlight, float rate = 1.3f)
| -| `SetValueAndColor()` |public void SetValueAndColor(ref bool needInteract, float value, Color32 color)
| -| `SetValueAndColor()` |public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor)
| -| `TryGetColor()` |public bool TryGetColor(ref Color32 color, ref bool interacting, float animationDuration = 250)
| -| `TryGetColor()` |public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)
| -| `TryGetValue()` |public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250)
| -| `TryGetValueAndColor()` |public bool TryGetValueAndColor(ref float value, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)
| +| Reset() |public void Reset()| +| SetColor() |public void SetColor(ref bool needInteract, Color32 color)| +| SetColor() |public void SetColor(ref bool needInteract, Color32 color, Color32 toColor)| +| SetValue() |public void SetValue(ref bool needInteract, float size)| +| SetValue() |public void SetValue(ref bool needInteract, float size, bool highlight, float rate = 1.3f)| +| SetValueAndColor() |public void SetValueAndColor(ref bool needInteract, float value, Color32 color)| +| SetValueAndColor() |public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor)| +| TryGetColor() |public bool TryGetColor(ref Color32 color, ref bool interacting, float animationDuration = 250)| +| TryGetColor() |public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)| +| TryGetValue() |public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250)| +| TryGetValueAndColor() |public bool TryGetValueAndColor(ref float value, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)| -## `LayerHelper` +## LayerHelper |public method|description| |--|--| -| `IsFixedWidthHeight()` |public static bool IsFixedWidthHeight(RectTransform rt)
| -| `IsStretchPivot()` |public static bool IsStretchPivot(RectTransform rt)
| +| IsFixedWidthHeight() |public static bool IsFixedWidthHeight(RectTransform rt)| +| IsStretchPivot() |public static bool IsStretchPivot(RectTransform rt)| -## `LegendContext` +## LegendContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `LegendHelper` +## LegendHelper |public method|description| |--|--| -| `CheckDataHighlighted()` |public static bool CheckDataHighlighted(Serie serie, string legendName, bool heighlight)
| -| `CheckDataShow()` |public static bool CheckDataShow(Serie serie, string legendName, bool show)
| -| `GetContentColor()` |public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active)
| -| `GetIconColor()` |public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active)
| -| `ResetItemPosition()` |public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight)
| -| `SetLegendBackground()` |public static void SetLegendBackground(Legend legend, ImageStyle style)
| +| CheckDataHighlighted() |public static bool CheckDataHighlighted(Serie serie, string legendName, bool heighlight)| +| CheckDataShow() |public static bool CheckDataShow(Serie serie, string legendName, bool show)| +| GetContentColor() |public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active)| +| GetIconColor() |public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active)| +| ResetItemPosition() |public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight)| +| SetLegendBackground() |public static void SetLegendBackground(Legend legend, ImageStyle style)| -## `LegendItem` +## LegendItem |public method|description| |--|--| -| `GetIconColor()` |public Color GetIconColor()
| -| `GetIconRect()` |public Rect GetIconRect()
| -| `SetActive()` |public void SetActive(bool active)
| -| `SetBackground()` |public void SetBackground(ImageStyle imageStyle)
| -| `SetButton()` |public void SetButton(Button button)
| -| `SetContent()` |public bool SetContent(string content)
| -| `SetContentBackgroundColor()` |public void SetContentBackgroundColor(Color color)
| -| `SetContentColor()` |public void SetContentColor(Color color)
| -| `SetContentPosition()` |public void SetContentPosition(Vector3 offset)
| -| `SetIcon()` |public void SetIcon(Image icon)
| -| `SetIconActive()` |public void SetIconActive(bool active)
| -| `SetIconColor()` |public void SetIconColor(Color color)
| -| `SetIconImage()` |public void SetIconImage(Sprite image)
| -| `SetIconSize()` |public void SetIconSize(float width, float height)
| -| `SetObject()` |public void SetObject(GameObject obj)
| -| `SetPosition()` |public void SetPosition(Vector3 position)
| -| `SetText()` |public void SetText(ChartText text)
| -| `SetTextBackground()` |public void SetTextBackground(Image image)
| +| GetIconColor() |public Color GetIconColor()| +| GetIconRect() |public Rect GetIconRect()| +| SetActive() |public void SetActive(bool active)| +| SetBackground() |public void SetBackground(ImageStyle imageStyle)| +| SetButton() |public void SetButton(Button button)| +| SetContent() |public bool SetContent(string content)| +| SetContentBackgroundColor() |public void SetContentBackgroundColor(Color color)| +| SetContentColor() |public void SetContentColor(Color color)| +| SetContentPosition() |public void SetContentPosition(Vector3 offset)| +| SetIcon() |public void SetIcon(Image icon)| +| SetIconActive() |public void SetIconActive(bool active)| +| SetIconColor() |public void SetIconColor(Color color)| +| SetIconImage() |public void SetIconImage(Sprite image)| +| SetIconSize() |public void SetIconSize(float width, float height)| +| SetObject() |public void SetObject(GameObject obj)| +| SetPosition() |public void SetPosition(Vector3 position)| +| SetText() |public void SetText(ChartText text)| +| SetTextBackground() |public void SetTextBackground(Image image)| -## `LineChart` +## LineChart Inherits or Implemented: [BaseChart](#BaseChart) -## `ListFor` +## ListFor Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `ListFor()` |public ListFor(Type type)
| +| ListFor() |public ListFor(Type type)| -## `ListForComponent` +## ListForComponent Inherits or Implemented: [ListFor](#ListFor) |public method|description| |--|--| -| `ListForComponent()` |public ListForComponent(Type type) : base(type)
| +| ListForComponent() |public ListForComponent(Type type) : base(type)| -## `ListForSerie` +## ListForSerie Inherits or Implemented: [ListFor](#ListFor) |public method|description| |--|--| -| `ListForSerie()` |public ListForSerie(Type type) : base(type)
| +| ListForSerie() |public ListForSerie(Type type) : base(type)| -## `MainComponentContext` +## MainComponentContext -## `MainComponentHandler` +## MainComponentHandler |public method|description| |--|--| -| `CheckComponent()` |public virtual void CheckComponent(StringBuilder sb) { }
| -| `DrawBase()` |public virtual void DrawBase(VertexHelper vh) { }
| -| `DrawTop()` |public virtual void DrawTop(VertexHelper vh) { }
| -| `DrawUpper()` |public virtual void DrawUpper(VertexHelper vh) { }
| -| `InitComponent()` |public virtual void InitComponent() { }
| -| `OnBeginDrag()` |public virtual void OnBeginDrag(PointerEventData eventData) { }
| -| `OnDrag()` |public virtual void OnDrag(PointerEventData eventData) { }
| -| `OnEndDrag()` |public virtual void OnEndDrag(PointerEventData eventData) { }
| -| `OnPointerClick()` |public virtual void OnPointerClick(PointerEventData eventData) { }
| -| `OnPointerDown()` |public virtual void OnPointerDown(PointerEventData eventData) { }
| -| `OnPointerEnter()` |public virtual void OnPointerEnter(PointerEventData eventData) { }
| -| `OnPointerExit()` |public virtual void OnPointerExit(PointerEventData eventData) { }
| -| `OnPointerUp()` |public virtual void OnPointerUp(PointerEventData eventData) { }
| -| `OnScroll()` |public virtual void OnScroll(PointerEventData eventData) { }
| -| `OnSerieDataUpdate()` |public virtual void OnSerieDataUpdate(int serieIndex) { }
| -| `RemoveComponent()` |public virtual void RemoveComponent() { }
| -| `Update()` |public virtual void Update() { }
| +| CheckComponent() |public virtual void CheckComponent(StringBuilder sb) { }| +| DrawBase() |public virtual void DrawBase(VertexHelper vh) { }| +| DrawTop() |public virtual void DrawTop(VertexHelper vh) { }| +| DrawUpper() |public virtual void DrawUpper(VertexHelper vh) { }| +| InitComponent() |public virtual void InitComponent() { }| +| OnBeginDrag() |public virtual void OnBeginDrag(PointerEventData eventData) { }| +| OnDrag() |public virtual void OnDrag(PointerEventData eventData) { }| +| OnEndDrag() |public virtual void OnEndDrag(PointerEventData eventData) { }| +| OnPointerClick() |public virtual void OnPointerClick(PointerEventData eventData) { }| +| OnPointerDown() |public virtual void OnPointerDown(PointerEventData eventData) { }| +| OnPointerEnter() |public virtual void OnPointerEnter(PointerEventData eventData) { }| +| OnPointerExit() |public virtual void OnPointerExit(PointerEventData eventData) { }| +| OnPointerUp() |public virtual void OnPointerUp(PointerEventData eventData) { }| +| OnScroll() |public virtual void OnScroll(PointerEventData eventData) { }| +| OnSerieDataUpdate() |public virtual void OnSerieDataUpdate(int serieIndex) { }| +| RemoveComponent() |public virtual void RemoveComponent() { }| +| Update() |public virtual void Update() { }| -## `MainComponentHandler` +## MainComponentHandler<T> Inherits or Implemented: [MainComponentHandler](#MainComponentHandler) -## `MathUtil` +## MathUtil |public method|description| |--|--| -| `Abs()` |public static double Abs(double d)
| -| `Approximately()` |public static bool Approximately(double a, double b)
| -| `Clamp()` |public static double Clamp(double d, double min, double max)
| -| `Clamp01()` |public static double Clamp01(double value)
| -| `Lerp()` |public static double Lerp(double a, double b, double t)
| +| Abs() |public static double Abs(double d)| +| Approximately() |public static bool Approximately(double a, double b)| +| Clamp() |public static double Clamp(double d, double min, double max)| +| Clamp01() |public static double Clamp01(double value)| +| Lerp() |public static double Lerp(double a, double b, double t)| -## `ObjectPool where T` +## ObjectPool<T> where T Inherits or Implemented: [new()](#new()) |public method|description| |--|--| -| `ClearAll()` |public void ClearAll()
| -| `Get()` |public T Get()
| -| `new()` |public class ObjectPool where T : new()
| -| `ObjectPool()` |public ObjectPool(UnityAction actionOnGet, UnityAction actionOnRelease, bool newIfEmpty = true)
| -| `Release()` |public void Release(T element)
| +| ClearAll() |public void ClearAll()| +| Get() |public T Get()| +| new() |public class ObjectPool<T> where T : new()| +| ObjectPool() |public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true)| +| Release() |public void Release(T element)| -## `Painter` +## Painter Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) |public method|description| |--|--| -| `Init()` |public void Init()
| -| `Refresh()` |public void Refresh()
| -| `SetActive()` |public void SetActive(bool flag, bool isDebugMode = false)
| +| Init() |public void Init()| +| Refresh() |public void Refresh()| +| SetActive() |public void SetActive(bool flag, bool isDebugMode = false)| -## `ParallelChart` +## ParallelChart Inherits or Implemented: [BaseChart](#BaseChart) -## `ParallelCoordContext` +## ParallelCoordContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `PieChart` +## PieChart Inherits or Implemented: [BaseChart](#BaseChart) -## `PolarChart` +## PolarChart Inherits or Implemented: [BaseChart](#BaseChart) -## `PolarCoordContext` +## PolarCoordContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `ProgressBar` +## ProgressBar Inherits or Implemented: [BaseChart](#BaseChart) -## `PropertyUtil` +## PropertyUtil |public method|description| |--|--| -| `SetClass()` |public static bool SetClass(ref T currentValue, T newValue, bool notNull = false) where T : class
| -| `SetColor()` |public static bool SetColor(ref Color currentValue, Color newValue)
| -| `SetColor()` |public static bool SetColor(ref Color32 currentValue, Color32 newValue)
| -| `SetStruct()` |public static bool SetStruct(ref T currentValue, T newValue) where T : struct
| +| SetClass<T>() |public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class| +| SetColor() |public static bool SetColor(ref Color currentValue, Color newValue)| +| SetColor() |public static bool SetColor(ref Color32 currentValue, Color32 newValue)| +| SetStruct<T>() |public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct| -## `RadarChart` +## RadarChart Inherits or Implemented: [BaseChart](#BaseChart) -## `RadarCoordContext` +## RadarCoordContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `ReflectionUtil` +## ReflectionUtil |public method|description| |--|--| -| `DeepCloneSerializeField()` |public static object DeepCloneSerializeField(object obj)
| -| `InvokeListAdd()` |public static void InvokeListAdd(object obj, FieldInfo field, object item)
| -| `InvokeListAddTo()` |public static void InvokeListAddTo(object obj, FieldInfo field, Action callback)
| -| `InvokeListClear()` |public static void InvokeListClear(object obj, FieldInfo field)
| -| `InvokeListCount()` |public static int InvokeListCount(object obj, FieldInfo field)
| -| `InvokeListGet()` |public static T InvokeListGet(object obj, FieldInfo field, int i)
| +| DeepCloneSerializeField() |public static object DeepCloneSerializeField(object obj)| +| InvokeListAdd() |public static void InvokeListAdd(object obj, FieldInfo field, object item)| +| InvokeListAddTo<T>() |public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback)| +| InvokeListClear() |public static void InvokeListClear(object obj, FieldInfo field)| +| InvokeListCount() |public static int InvokeListCount(object obj, FieldInfo field)| +| InvokeListGet<T>() |public static T InvokeListGet<T>(object obj, FieldInfo field, int i)| -## `RequireChartComponentAttribute` +## RequireChartComponentAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `RequireChartComponentAttribute()` |public RequireChartComponentAttribute(Type requiredComponent)
| -| `RequireChartComponentAttribute()` |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)
| -| `RequireChartComponentAttribute()` |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)
| +| RequireChartComponentAttribute() |public RequireChartComponentAttribute(Type requiredComponent)| +| RequireChartComponentAttribute() |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)| +| RequireChartComponentAttribute() |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)| -## `RingChart` +## RingChart Inherits or Implemented: [BaseChart](#BaseChart) -## `RuntimeUtil` +## RuntimeUtil |public method|description| |--|--| -| `GetAllAssemblyTypes()` |public static IEnumerable GetAllAssemblyTypes()
| -| `GetAllTypesDerivedFrom()` |public static IEnumerable GetAllTypesDerivedFrom(Type type)
| -| `GetAllTypesDerivedFrom()` |public static IEnumerable GetAllTypesDerivedFrom()
| -| `GetAttribute()` |public static T GetAttribute(this MemberInfo type, bool check = true) where T : Attribute
| -| `GetAttribute()` |public static T GetAttribute(this Type type, bool check = true) where T : Attribute
| -| `HasSubclass()` |public static bool HasSubclass(Type type)
| +| GetAllAssemblyTypes() |public static IEnumerable<Type> GetAllAssemblyTypes()| +| GetAllTypesDerivedFrom() |public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type)| +| GetAllTypesDerivedFrom<T>() |public static IEnumerable<Type> GetAllTypesDerivedFrom<T>()| +| GetAttribute<T>() |public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute| +| GetAttribute<T>() |public static T GetAttribute<T>(this Type type, bool check = true) where T : Attribute| +| HasSubclass() |public static bool HasSubclass(Type type)| -## `ScatterChart` +## ScatterChart Inherits or Implemented: [BaseChart](#BaseChart) -## `SerieContext` +## SerieContext -## `SerieConvertAttribute` +## SerieConvertAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Contains()` |public bool Contains(Type type)
| -| `Contains()` |public bool Contains() where T : Serie
| -| `SerieConvertAttribute()` |public SerieConvertAttribute(Type serie)
| -| `SerieConvertAttribute()` |public SerieConvertAttribute(Type serie, Type serie2)
| -| `SerieConvertAttribute()` |public SerieConvertAttribute(Type serie, Type serie2, Type serie3)
| -| `SerieConvertAttribute()` |public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4)
| +| Contains() |public bool Contains(Type type)| +| Contains<T>() |public bool Contains<T>() where T : Serie| +| SerieConvertAttribute() |public SerieConvertAttribute(Type serie)| +| SerieConvertAttribute() |public SerieConvertAttribute(Type serie, Type serie2)| +| SerieConvertAttribute() |public SerieConvertAttribute(Type serie, Type serie2, Type serie3)| +| SerieConvertAttribute() |public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4)| -## `SerieDataContext` +## SerieDataContext |public method|description| |--|--| -| `Reset()` |public void Reset()
| +| Reset() |public void Reset()| -## `SerieDataExtraComponentAttribute` +## SerieDataExtraComponentAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Contains()` |public bool Contains(Type type)
| -| `Contains()` |public bool Contains() where T : ISerieExtraComponent
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute()
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)
| -| `SerieDataExtraComponentAttribute()` |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)
| +| Contains() |public bool Contains(Type type)| +| Contains<T>() |public bool Contains<T>() where T : ISerieExtraComponent| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute()| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)| +| SerieDataExtraComponentAttribute() |public SerieDataExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)| -## `SerieDataExtraFieldAttribute` +## SerieDataExtraFieldAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Contains()` |public bool Contains(string field)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute()
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2, string field3)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6)
| -| `SerieDataExtraFieldAttribute()` |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7)
| +| Contains() |public bool Contains(string field)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute()| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6)| +| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7)| -## `SerieExtraComponentAttribute` +## SerieExtraComponentAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Contains()` |public bool Contains(Type type)
| -| `Contains()` |public bool Contains() where T : ISerieExtraComponent
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute()
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)
| -| `SerieExtraComponentAttribute()` |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)
| +| Contains() |public bool Contains(Type type)| +| Contains<T>() |public bool Contains<T>() where T : ISerieExtraComponent| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute()| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)| +| SerieExtraComponentAttribute() |public SerieExtraComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)| -## `SerieHandler` +## SerieHandler |public method|description| |--|--| -| `CheckComponent()` |public virtual void CheckComponent(StringBuilder sb) { }
| -| `DrawBase()` |public virtual void DrawBase(VertexHelper vh) { }
| -| `DrawSerie()` |public virtual void DrawSerie(VertexHelper vh) { }
| -| `DrawTop()` |public virtual void DrawTop(VertexHelper vh) { }
| -| `DrawUpper()` |public virtual void DrawUpper(VertexHelper vh) { }
| -| `InitComponent()` |public virtual void InitComponent() { }
| -| `OnBeginDrag()` |public virtual void OnBeginDrag(PointerEventData eventData) { }
| -| `OnDrag()` |public virtual void OnDrag(PointerEventData eventData) { }
| -| `OnEndDrag()` |public virtual void OnEndDrag(PointerEventData eventData) { }
| -| `OnLegendButtonClick()` |public virtual void OnLegendButtonClick(int index, string legendName, bool show) { }
| -| `OnLegendButtonEnter()` |public virtual void OnLegendButtonEnter(int index, string legendName) { }
| -| `OnLegendButtonExit()` |public virtual void OnLegendButtonExit(int index, string legendName) { }
| -| `OnPointerClick()` |public virtual void OnPointerClick(PointerEventData eventData) { }
| -| `OnPointerDown()` |public virtual void OnPointerDown(PointerEventData eventData) { }
| -| `OnPointerEnter()` |public virtual void OnPointerEnter(PointerEventData eventData) { }
| -| `OnPointerExit()` |public virtual void OnPointerExit(PointerEventData eventData) { }
| -| `OnPointerUp()` |public virtual void OnPointerUp(PointerEventData eventData) { }
| -| `OnScroll()` |public virtual void OnScroll(PointerEventData eventData) { }
| -| `RefreshLabelInternal()` |public virtual void RefreshLabelInternal() { }
| -| `RefreshLabelNextFrame()` |public virtual void RefreshLabelNextFrame() { }
| -| `RemoveComponent()` |public virtual void RemoveComponent() { }
| -| `Update()` |public virtual void Update() { }
| +| CheckComponent() |public virtual void CheckComponent(StringBuilder sb) { }| +| DrawBase() |public virtual void DrawBase(VertexHelper vh) { }| +| DrawSerie() |public virtual void DrawSerie(VertexHelper vh) { }| +| DrawTop() |public virtual void DrawTop(VertexHelper vh) { }| +| DrawUpper() |public virtual void DrawUpper(VertexHelper vh) { }| +| InitComponent() |public virtual void InitComponent() { }| +| OnBeginDrag() |public virtual void OnBeginDrag(PointerEventData eventData) { }| +| OnDrag() |public virtual void OnDrag(PointerEventData eventData) { }| +| OnEndDrag() |public virtual void OnEndDrag(PointerEventData eventData) { }| +| OnLegendButtonClick() |public virtual void OnLegendButtonClick(int index, string legendName, bool show) { }| +| OnLegendButtonEnter() |public virtual void OnLegendButtonEnter(int index, string legendName) { }| +| OnLegendButtonExit() |public virtual void OnLegendButtonExit(int index, string legendName) { }| +| OnPointerClick() |public virtual void OnPointerClick(PointerEventData eventData) { }| +| OnPointerDown() |public virtual void OnPointerDown(PointerEventData eventData) { }| +| OnPointerEnter() |public virtual void OnPointerEnter(PointerEventData eventData) { }| +| OnPointerExit() |public virtual void OnPointerExit(PointerEventData eventData) { }| +| OnPointerUp() |public virtual void OnPointerUp(PointerEventData eventData) { }| +| OnScroll() |public virtual void OnScroll(PointerEventData eventData) { }| +| RefreshLabelInternal() |public virtual void RefreshLabelInternal() { }| +| RefreshLabelNextFrame() |public virtual void RefreshLabelNextFrame() { }| +| RemoveComponent() |public virtual void RemoveComponent() { }| +| Update() |public virtual void Update() { }| -## `SerieHandler` +## SerieHandler<T> Inherits or Implemented: [SerieHandler where T](#SerieHandler where T),[Serie](#Serie) |public method|description| |--|--| -| `GetSerieDataAutoColor()` |public virtual Color GetSerieDataAutoColor(SerieData serieData)
| -| `GetSerieDataLabelOffset()` |public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)
| -| `GetSerieDataLabelPosition()` |public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)
| -| `GetSerieDataTitlePosition()` |public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle)
| -| `InitComponent()` |public override void InitComponent()
| -| `OnLegendButtonClick()` |public override void OnLegendButtonClick(int index, string legendName, bool show)
| -| `OnLegendButtonEnter()` |public override void OnLegendButtonEnter(int index, string legendName)
| -| `OnLegendButtonExit()` |public override void OnLegendButtonExit(int index, string legendName)
| -| `RefreshEndLabelInternal()` |public virtual void RefreshEndLabelInternal()
| -| `RefreshLabelInternal()` |public override void RefreshLabelInternal()
| -| `RefreshLabelNextFrame()` |public override void RefreshLabelNextFrame()
| -| `RemoveComponent()` |public override void RemoveComponent()
| -| `Update()` |public override void Update()
| +| GetSerieDataAutoColor() |public virtual Color GetSerieDataAutoColor(SerieData serieData)| +| GetSerieDataLabelOffset() |public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)| +| GetSerieDataLabelPosition() |public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)| +| GetSerieDataTitlePosition() |public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle)| +| InitComponent() |public override void InitComponent()| +| OnLegendButtonClick() |public override void OnLegendButtonClick(int index, string legendName, bool show)| +| OnLegendButtonEnter() |public override void OnLegendButtonEnter(int index, string legendName)| +| OnLegendButtonExit() |public override void OnLegendButtonExit(int index, string legendName)| +| RefreshEndLabelInternal() |public virtual void RefreshEndLabelInternal()| +| RefreshLabelInternal() |public override void RefreshLabelInternal()| +| RefreshLabelNextFrame() |public override void RefreshLabelNextFrame()| +| RemoveComponent() |public override void RemoveComponent()| +| Update() |public override void Update()| -## `SerieHandlerAttribute` +## SerieHandlerAttribute Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `SerieHandlerAttribute()` |public SerieHandlerAttribute(Type handler)
| -| `SerieHandlerAttribute()` |public SerieHandlerAttribute(Type handler, bool allowMultiple)
| +| SerieHandlerAttribute() |public SerieHandlerAttribute(Type handler)| +| SerieHandlerAttribute() |public SerieHandlerAttribute(Type handler, bool allowMultiple)| -## `SerieHelper` +## SerieHelper |public method|description| |--|--| -| `CloneSerie()` |public static T CloneSerie(Serie serie) where T : Serie
| -| `CopySerie()` |public static void CopySerie(Serie oldSerie, Serie newSerie)
| -| `GetAllMinMaxData()` |public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null)
| -| `GetAreaStyle()` |public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData)
| -| `GetAverageData()` |public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetBlurStyle()` |public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData)
| -| `GetEmphasisStyle()` |public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData)
| -| `GetItemColor()` |public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true)
| -| `GetItemFormatter()` |public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)
| -| `GetItemMarker()` |public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null)
| -| `GetItemStyle()` |public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
| -| `GetLineColor()` |public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto)
| -| `GetLineStyle()` |public static LineStyle GetLineStyle(Serie serie, SerieData serieData)
| -| `GetMaxData()` |public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetMaxSerieData()` |public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetMedianData()` |public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetMinData()` |public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetMinMaxData()` |public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0)
获得系列所有数据的最大最小值。 | -| `GetMinSerieData()` |public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| -| `GetNumericFormatter()` |public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)
| -| `GetSelectStyle()` |public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData)
| -| `GetSerieLabel()` |public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
| -| `GetSerieLabelLine()` |public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
| -| `GetSerieState()` |public static SerieState GetSerieState(Serie serie)
| -| `GetSerieState()` |public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false)
| -| `GetSerieState()` |public static SerieState GetSerieState(SerieData serieData)
| -| `GetSerieSymbol()` |public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)
| -| `GetStateStyle()` |public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state)
| -| `GetSysmbolSize()` |public static float GetSysmbolSize(Serie serie, SerieData serieData, ThemeStyle theme, float defaultSize, SerieState state = SerieState.Auto)
| -| `GetTitleStyle()` |public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)
| -| `IsAllZeroValue()` |public static bool IsAllZeroValue(Serie serie, int dimension = 1)
系列指定维数的数据是否全部为0。 | -| `IsDownPoint()` |public static bool IsDownPoint(Serie serie, int index)
| -| `UpdateCenter()` |public static void UpdateCenter(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)
更新运行时中心点和半径 | -| `UpdateFilterData()` |public static void UpdateFilterData(Serie serie, DataZoom dataZoom)
根据dataZoom更新数据列表缓存 | -| `UpdateMinMaxData()` |public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null)
获得指定维数的最大最小值 | -| `UpdateRect()` |public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)
| -| `UpdateSerieRuntimeFilterData()` |public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true)
| +| CloneSerie<T>() |public static T CloneSerie<T>(Serie serie) where T : Serie| +| CopySerie() |public static void CopySerie(Serie oldSerie, Serie newSerie)| +| GetAllMinMaxData() |public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null)| +| GetAreaStyle() |public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData)| +| GetAverageData() |public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetBlurStyle() |public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData)| +| GetEmphasisStyle() |public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData)| +| GetItemColor() |public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true)| +| GetItemFormatter() |public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)| +| GetItemMarker() |public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null)| +| GetItemStyle() |public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| +| GetLineColor() |public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto)| +| GetLineStyle() |public static LineStyle GetLineStyle(Serie serie, SerieData serieData)| +| GetMaxData() |public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetMaxSerieData() |public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetMedianData() |public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetMinData() |public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetMinMaxData() |public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0)
获得系列所有数据的最大最小值。 | +| GetMinSerieData() |public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| +| GetNumericFormatter() |public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)| +| GetSelectStyle() |public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData)| +| GetSerieLabel() |public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| +| GetSerieLabelLine() |public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| +| GetSerieState() |public static SerieState GetSerieState(Serie serie)| +| GetSerieState() |public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false)| +| GetSerieState() |public static SerieState GetSerieState(SerieData serieData)| +| GetSerieSymbol() |public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| +| GetStateStyle() |public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state)| +| GetSysmbolSize() |public static float GetSysmbolSize(Serie serie, SerieData serieData, ThemeStyle theme, float defaultSize, SerieState state = SerieState.Auto)| +| GetTitleStyle() |public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)| +| IsAllZeroValue() |public static bool IsAllZeroValue(Serie serie, int dimension = 1)
系列指定维数的数据是否全部为0。 | +| IsDownPoint() |public static bool IsDownPoint(Serie serie, int index)| +| UpdateCenter() |public static void UpdateCenter(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)
更新运行时中心点和半径 | +| UpdateFilterData() |public static void UpdateFilterData(Serie serie, DataZoom dataZoom)
根据dataZoom更新数据列表缓存 | +| UpdateMinMaxData() |public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null)
获得指定维数的最大最小值 | +| UpdateRect() |public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)| +| UpdateSerieRuntimeFilterData() |public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true)| -## `SerieLabelHelper` +## SerieLabelHelper |public method|description| |--|--| -| `AvoidLabelOverlap()` |public static void AvoidLabelOverlap(Serie serie, ComponentTheme theme)
| -| `CanShowLabel()` |public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion)
| -| `GetLabelColor()` |public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index)
| -| `GetRealLabelPosition()` |public static Vector3 GetRealLabelPosition(Serie serie, SerieData serieData, LabelStyle label, LabelLine labelLine)
| -| `SetGaugeLabelText()` |public static void SetGaugeLabelText(Serie serie)
| -| `UpdatePieLabelPosition()` |public static void UpdatePieLabelPosition(Serie serie, SerieData serieData)
| +| AvoidLabelOverlap() |public static void AvoidLabelOverlap(Serie serie, ComponentTheme theme)| +| CanShowLabel() |public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion)| +| GetLabelColor() |public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index)| +| GetRealLabelPosition() |public static Vector3 GetRealLabelPosition(Serie serie, SerieData serieData, LabelStyle label, LabelLine labelLine)| +| SetGaugeLabelText() |public static void SetGaugeLabelText(Serie serie)| +| UpdatePieLabelPosition() |public static void UpdatePieLabelPosition(Serie serie, SerieData serieData)| -## `SerieLabelPool` +## SerieLabelPool |public method|description| |--|--| -| `ClearAll()` |public static void ClearAll()
| -| `Release()` |public static void Release(GameObject element)
| -| `ReleaseAll()` |public static void ReleaseAll(Transform parent)
| +| ClearAll() |public static void ClearAll()| +| Release() |public static void Release(GameObject element)| +| ReleaseAll() |public static void ReleaseAll(Transform parent)| -## `SerieParams` +## SerieParams -## `SeriesHelper` +## SeriesHelper |public method|description| |--|--| -| `GetLastStackSerie()` |public static Serie GetLastStackSerie(List series, Serie serie)
获得上一个同堆叠且显示的serie。 | -| `GetLegalSerieNameList()` |public static List GetLegalSerieNameList(List series)
| -| `GetMaxSerieDataCount()` |public static int GetMaxSerieDataCount(List series)
| -| `GetNameColor()` |public static Color GetNameColor(BaseChart chart, int index, string name)
| -| `GetStackSeries()` |public static void GetStackSeries(List series, ref Dictionary> stackSeries)
获得堆叠系列列表 | -| `IsAnyClipSerie()` |public static bool IsAnyClipSerie(List series)
是否有需裁剪的serie。 | -| `IsLegalLegendName()` |public static bool IsLegalLegendName(string name)
| -| `IsPercentStack()` |public static bool IsPercentStack(List series) where T : Serie
是否时百分比堆叠 | -| `IsPercentStack()` |public static bool IsPercentStack(List series, string stackName) where T : Serie
是否时百分比堆叠 | -| `IsStack()` |public static bool IsStack(List series)
是否由数据堆叠 | -| `IsStack()` |public static bool IsStack(List series, string stackName) where T : Serie
是否堆叠 | -| `UpdateSerieNameList()` |public static void UpdateSerieNameList(BaseChart chart, ref List serieNameList)
获得所有系列名,不包含空名字。 | -| `UpdateStackDataList()` |public static void UpdateStackDataList(List series, Serie currSerie, DataZoom dataZoom, List> dataList)
| +| GetLastStackSerie() |public static Serie GetLastStackSerie(List<Serie> series, Serie serie)
获得上一个同堆叠且显示的serie。 | +| GetLegalSerieNameList() |public static List<string> GetLegalSerieNameList(List<Serie> series)| +| GetMaxSerieDataCount() |public static int GetMaxSerieDataCount(List<Serie> series)| +| GetNameColor() |public static Color GetNameColor(BaseChart chart, int index, string name)| +| GetStackSeries() |public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries)
获得堆叠系列列表 | +| IsAnyClipSerie() |public static bool IsAnyClipSerie(List<Serie> series)
是否有需裁剪的serie。 | +| IsLegalLegendName() |public static bool IsLegalLegendName(string name)| +| IsPercentStack<T>() |public static bool IsPercentStack<T>(List<Serie> series) where T : Serie
是否时百分比堆叠 | +| IsPercentStack<T>() |public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie
是否时百分比堆叠 | +| IsStack() |public static bool IsStack(List<Serie> series)
是否由数据堆叠 | +| IsStack<T>() |public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie
是否堆叠 | +| UpdateSerieNameList() |public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList)
获得所有系列名,不包含空名字。 | +| UpdateStackDataList() |public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList)| -## `SimplifiedBarChart` +## SimplifiedBarChart Inherits or Implemented: [BaseChart](#BaseChart) -## `SimplifiedCandlestickChart` +## SimplifiedCandlestickChart Inherits or Implemented: [BaseChart](#BaseChart) -## `SimplifiedLineChart` +## SimplifiedLineChart Inherits or Implemented: [BaseChart](#BaseChart) -## `Since` +## Since Inherits or Implemented: [Attribute](#Attribute) |public method|description| |--|--| -| `Since()` |public Since(string version)
| +| Since() |public Since(string version)| -## `SVG` +## SVG |public method|description| |--|--| -| `DrawPath()` |public static void DrawPath(VertexHelper vh, string path)
| -| `DrawPath()` |public static void DrawPath(VertexHelper vh, SVGPath path)
| -| `Test()` |public static void Test(VertexHelper vh)
| +| DrawPath() |public static void DrawPath(VertexHelper vh, string path)| +| DrawPath() |public static void DrawPath(VertexHelper vh, SVGPath path)| +| Test() |public static void Test(VertexHelper vh)| -## `SVGImage` +## SVGImage Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) -## `SVGPath` +## SVGPath |public method|description| |--|--| -| `AddSegment()` |public void AddSegment(SVGPathSeg seg)
| -| `Draw()` |public void Draw(VertexHelper vh)
| -| `Parse()` |public static SVGPath Parse(string path)
| +| AddSegment() |public void AddSegment(SVGPathSeg seg)| +| Draw() |public void Draw(VertexHelper vh)| +| Parse() |public static SVGPath Parse(string path)| -## `SVGPathSeg` +## SVGPathSeg |public method|description| |--|--| -| `SVGPathSeg()` |public SVGPathSeg(SVGPathSegType type)
| +| SVGPathSeg() |public SVGPathSeg(SVGPathSegType type)| -## `TooltipContext` +## TooltipContext -## `TooltipData` +## TooltipData -## `TooltipHelper` +## TooltipHelper |public method|description| |--|--| -| `GetItemNumericFormatter()` |public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)
| -| `GetLineColor()` |public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme)
| -| `IsIgnoreFormatter()` |public static bool IsIgnoreFormatter(string itemFormatter)
| -| `LimitInRect()` |public static void LimitInRect(Tooltip tooltip, Rect chartRect)
| +| GetItemNumericFormatter() |public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)| +| GetLineColor() |public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme)| +| IsIgnoreFormatter() |public static bool IsIgnoreFormatter(string itemFormatter)| +| LimitInRect() |public static void LimitInRect(Tooltip tooltip, Rect chartRect)| -## `TooltipView` +## TooltipView |public method|description| |--|--| -| `CreateView()` |public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent)
| -| `GetCurrentPos()` |public Vector3 GetCurrentPos()
| -| `GetTargetPos()` |public Vector3 GetTargetPos()
| -| `Refresh()` |public void Refresh()
| -| `SetActive()` |public void SetActive(bool flag)
| -| `Update()` |public void Update()
| -| `UpdatePosition()` |public void UpdatePosition(Vector3 pos)
| +| CreateView() |public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent)| +| GetCurrentPos() |public Vector3 GetCurrentPos()| +| GetTargetPos() |public Vector3 GetTargetPos()| +| Refresh() |public void Refresh()| +| SetActive() |public void SetActive(bool flag)| +| Update() |public void Update()| +| UpdatePosition() |public void UpdatePosition(Vector3 pos)| -## `TooltipViewItem` +## TooltipViewItem -## `UGL` +## UGL |public method|description| |--|--| -| `DrawDiamond()` |public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color)
Draw a diamond. 画菱形(钻石形状) | -| `DrawDiamond()` |public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor)
Draw a diamond. 画菱形(钻石形状) | -| `DrawEllipse()` |public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1)
| -| `DrawLine()` |public static void DrawLine(VertexHelper vh, List points, float width, Color32 color, bool smooth, bool closepath = false)
| -| `DrawLine()` |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color)
Draw a line. 画直线 | -| `DrawLine()` |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor)
Draw a line. 画直线 | -| `DrawPolygon()` |public static void DrawPolygon(VertexHelper vh, List points, Color32 color)
填充任意多边形(目前只支持凸多边形) | -| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color)
| -| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor)
| -| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color)
| -| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor)
| -| `DrawRectangle()` |public static void DrawRectangle(VertexHelper vh, Vector3 p1, Vector3 p2, float radius, Color32 color)
Draw a rectangle. 画带长方形 | -| `DrawSquare()` |public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color)
Draw a square. 画正方形 | -| `DrawSvgPath()` |public static void DrawSvgPath(VertexHelper vh, string path)
| -| `DrawTriangle()` |public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color)
| -| `DrawTriangle()` |public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor)
| +| DrawDiamond() |public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color)
Draw a diamond. 画菱形(钻石形状) | +| DrawDiamond() |public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor)
Draw a diamond. 画菱形(钻石形状) | +| DrawEllipse() |public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1)| +| DrawLine() |public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false)| +| DrawLine() |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color)
Draw a line. 画直线 | +| DrawLine() |public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor)
Draw a line. 画直线 | +| DrawPolygon() |public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color)
填充任意多边形(目前只支持凸多边形) | +| DrawRectangle() |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color)| +| DrawRectangle() |public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor)| +| DrawRectangle() |public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color)| +| DrawRectangle() |public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor)| +| DrawRectangle() |public static void DrawRectangle(VertexHelper vh, Vector3 p1, Vector3 p2, float radius, Color32 color)
Draw a rectangle. 画带长方形 | +| DrawSquare() |public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color)
Draw a square. 画正方形 | +| DrawSvgPath() |public static void DrawSvgPath(VertexHelper vh, string path)| +| DrawTriangle() |public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color)| +| DrawTriangle() |public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor)| -## `UGLExample` +## UGLExample Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) -## `UGLHelper` +## UGLHelper |public method|description| |--|--| -| `GetAngle360()` |public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | -| `GetBezier()` |public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep)
| -| `GetBezier2()` |public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep)
| -| `GetBezierList()` |public static List GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp)
| -| `GetDire()` |public static Vector3 GetDire(float angle, bool isDegree = false)
| -| `GetIntersection()` |public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref Vector3 intersection)
获得两直线的交点 | -| `GetPos()` |public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)
| -| `GetVertialDire()` |public static Vector3 GetVertialDire(Vector3 dire)
| -| `IsClearColor()` |public static bool IsClearColor(Color color)
| -| `IsClearColor()` |public static bool IsClearColor(Color32 color)
| -| `IsPointInPolygon()` |public static bool IsPointInPolygon(Vector3 p, List polyons)
| -| `IsPointInPolygon()` |public static bool IsPointInPolygon(Vector3 p, List polyons)
| -| `IsPointInTriangle()` |public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check)
| -| `IsValueEqualsColor()` |public static bool IsValueEqualsColor(Color color1, Color color2)
| -| `IsValueEqualsColor()` |public static bool IsValueEqualsColor(Color32 color1, Color32 color2)
| -| `IsValueEqualsList()` |public static bool IsValueEqualsList(List list1, List list2)
| -| `IsValueEqualsString()` |public static bool IsValueEqualsString(string str1, string str2)
| -| `IsValueEqualsVector2()` |public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)
| -| `IsValueEqualsVector3()` |public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2)
| -| `IsValueEqualsVector3()` |public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)
| -| `IsZeroVector()` |public static bool IsZeroVector(Vector3 pos)
| -| `RotateRound()` |public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)
| +| GetAngle360() |public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | +| GetBezier() |public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep)| +| GetBezier2() |public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep)| +| GetBezierList() |public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp)| +| GetDire() |public static Vector3 GetDire(float angle, bool isDegree = false)| +| GetIntersection() |public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref Vector3 intersection)
获得两直线的交点 | +| GetPos() |public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)| +| GetVertialDire() |public static Vector3 GetVertialDire(Vector3 dire)| +| IsClearColor() |public static bool IsClearColor(Color color)| +| IsClearColor() |public static bool IsClearColor(Color32 color)| +| IsPointInPolygon() |public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons)| +| IsPointInPolygon() |public static bool IsPointInPolygon(Vector3 p, List<Vector3> polyons)| +| IsPointInTriangle() |public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check)| +| IsValueEqualsColor() |public static bool IsValueEqualsColor(Color color1, Color color2)| +| IsValueEqualsColor() |public static bool IsValueEqualsColor(Color32 color1, Color32 color2)| +| IsValueEqualsList<T>() |public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)| +| IsValueEqualsString() |public static bool IsValueEqualsString(string str1, string str2)| +| IsValueEqualsVector2() |public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)| +| IsValueEqualsVector3() |public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2)| +| IsValueEqualsVector3() |public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)| +| IsZeroVector() |public static bool IsZeroVector(Vector3 pos)| +| RotateRound() |public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)| -## `VisualMapContext` +## VisualMapContext Inherits or Implemented: [MainComponentContext](#MainComponentContext) -## `VisualMapHelper` +## VisualMapHelper |public method|description| |--|--| -| `AutoSetLineMinMax()` |public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis)
| -| `GetDimension()` |public static int GetDimension(VisualMap visualMap, int defaultDimension)
| -| `IsNeedAreaGradient()` |public static bool IsNeedAreaGradient(VisualMap visualMap)
| -| `IsNeedGradient()` |public static bool IsNeedGradient(VisualMap visualMap)
| -| `IsNeedLineGradient()` |public static bool IsNeedLineGradient(VisualMap visualMap)
| -| `SetMinMax()` |public static void SetMinMax(VisualMap visualMap, double min, double max)
| +| AutoSetLineMinMax() |public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis)| +| GetDimension() |public static int GetDimension(VisualMap visualMap, int defaultDimension)| +| IsNeedAreaGradient() |public static bool IsNeedAreaGradient(VisualMap visualMap)| +| IsNeedGradient() |public static bool IsNeedGradient(VisualMap visualMap)| +| IsNeedLineGradient() |public static bool IsNeedLineGradient(VisualMap visualMap)| +| SetMinMax() |public static void SetMinMax(VisualMap visualMap, double min, double max)| -## `XChartsMgr` +## XChartsMgr |public method|description| |--|--| -| `AddChart()` |public static void AddChart(BaseChart chart)
| -| `ContainsChart()` |public static bool ContainsChart(BaseChart chart)
| -| `ContainsChart()` |public static bool ContainsChart(string chartName)
| -| `DisableTextMeshPro()` |public static void DisableTextMeshPro()
| -| `EnableTextMeshPro()` |public static void EnableTextMeshPro()
| -| `GetChart()` |public static BaseChart GetChart(string chartName)
| -| `GetCharts()` |public static List GetCharts(string chartName)
| -| `GetPackageFullPath()` |public static string GetPackageFullPath()
| -| `GetRepeatChartNameInfo()` |public static string GetRepeatChartNameInfo(BaseChart chart, string chartName)
| -| `IsExistTMPAssembly()` |public static bool IsExistTMPAssembly()
| -| `IsRepeatChartName()` |public static bool IsRepeatChartName(BaseChart chart, string chartName = null)
| -| `ModifyTMPRefence()` |public static bool ModifyTMPRefence(bool removeTMP = false)
| -| `RemoveAllChartObject()` |public static void RemoveAllChartObject()
| -| `RemoveChart()` |public static void RemoveChart(string chartName)
| +| AddChart() |public static void AddChart(BaseChart chart)| +| ContainsChart() |public static bool ContainsChart(BaseChart chart)| +| ContainsChart() |public static bool ContainsChart(string chartName)| +| DisableTextMeshPro() |public static void DisableTextMeshPro()| +| EnableTextMeshPro() |public static void EnableTextMeshPro()| +| GetChart() |public static BaseChart GetChart(string chartName)| +| GetCharts() |public static List<BaseChart> GetCharts(string chartName)| +| GetPackageFullPath() |public static string GetPackageFullPath()| +| GetRepeatChartNameInfo() |public static string GetRepeatChartNameInfo(BaseChart chart, string chartName)| +| IsExistTMPAssembly() |public static bool IsExistTMPAssembly()| +| IsRepeatChartName() |public static bool IsRepeatChartName(BaseChart chart, string chartName = null)| +| ModifyTMPRefence() |public static bool ModifyTMPRefence(bool removeTMP = false)| +| RemoveAllChartObject() |public static void RemoveAllChartObject()| +| RemoveChart() |public static void RemoveChart(string chartName)| -## `XCResourceImporterWindow` +## XCResourceImporterWindow Inherits or Implemented: [UnityEditor.EditorWindow](#UnityEditor.EditorWindow) |public method|description| |--|--| -| `ShowPackageImporterWindow()` |public static void ShowPackageImporterWindow()
| +| ShowPackageImporterWindow() |public static void ShowPackageImporterWindow()| -## `XCThemeMgr` +## XCThemeMgr |public method|description| |--|--| -| `AddTheme()` |public static void AddTheme(Theme theme)
| -| `CheckReloadTheme()` |public static void CheckReloadTheme()
| -| `ContainsTheme()` |public static bool ContainsTheme(string themeName)
| -| `ExportTheme()` |public static bool ExportTheme(Theme theme)
| -| `ExportTheme()` |public static bool ExportTheme(Theme theme, string themeNewName)
| -| `GetAllThemeNames()` |public static List GetAllThemeNames()
| -| `GetTheme()` |public static Theme GetTheme(string themeName)
| -| `GetTheme()` |public static Theme GetTheme(ThemeType type)
| -| `GetThemeAssetPath()` |public static string GetThemeAssetPath(string themeName)
| -| `GetThemeList()` |public static List GetThemeList()
| -| `LoadTheme()` |public static Theme LoadTheme(string themeName)
| -| `LoadTheme()` |public static Theme LoadTheme(ThemeType type)
| -| `ReloadThemeList()` |public static void ReloadThemeList()
重新加载主题列表 | -| `SwitchTheme()` |public static void SwitchTheme(BaseChart chart, string themeName)
| +| AddTheme() |public static void AddTheme(Theme theme)| +| CheckReloadTheme() |public static void CheckReloadTheme()| +| ContainsTheme() |public static bool ContainsTheme(string themeName)| +| ExportTheme() |public static bool ExportTheme(Theme theme)| +| ExportTheme() |public static bool ExportTheme(Theme theme, string themeNewName)| +| GetAllThemeNames() |public static List<string> GetAllThemeNames()| +| GetTheme() |public static Theme GetTheme(string themeName)| +| GetTheme() |public static Theme GetTheme(ThemeType type)| +| GetThemeAssetPath() |public static string GetThemeAssetPath(string themeName)| +| GetThemeList() |public static List<Theme> GetThemeList()| +| LoadTheme() |public static Theme LoadTheme(string themeName)| +| LoadTheme() |public static Theme LoadTheme(ThemeType type)| +| ReloadThemeList() |public static void ReloadThemeList()
重新加载主题列表 | +| SwitchTheme() |public static void SwitchTheme(BaseChart chart, string themeName)| -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts配置项手册](XChartsConfiguration-ZH.md)
+[XCharts主页](https://github.com/XCharts-Team/XCharts)
+[XCharts配置项手册](XChartsConfiguration-ZH.md)
[XCharts问答](XChartsFAQ-ZH.md) diff --git a/Documentation/XChartsConfiguration-EN.md b/Documentation/XChartsConfiguration-EN.md index d43693a8..25fa0237 100644 --- a/Documentation/XChartsConfiguration-EN.md +++ b/Documentation/XChartsConfiguration-EN.md @@ -1,7 +1,7 @@ # Chart Configuration -[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
-[XCharts API](XChartsAPI-EN.md)
+[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
+[XCharts API](XChartsAPI-EN.md)
[XCharts FAQ](XChartsFAQ-EN.md) ## Serie @@ -167,7 +167,7 @@ - [XCResourcesImporter](#XCResourcesImporter) - [XCSettings](#XCSettings) -## `AngleAxis` +## AngleAxis Inherits or Implemented: [Axis](#Axis) @@ -175,14 +175,14 @@ Angle axis of Polar Coordinate. |field|default|since|comment| |--|--|--|--| -|`startAngle`|0||Starting angle of axis. 0 degrees by default, standing for right position of center. +|startAngle|0||Starting angle of axis. 0 degrees by default, standing for right position of center. -## `AngleAxisTheme` +## AngleAxisTheme Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) -## `AnimationStyle` +## AnimationStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -190,19 +190,19 @@ the animation of serie. |field|default|since|comment| |--|--|--|--| -|`enable`|true||Whether to enable animation. -|`type`|||The type of animation.
`AnimationType`:
- `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.
| -|`easting`|||Easing method used for the first animation.
`AnimationEasing`:
- `Linear`:
| -|`threshold`|2000||Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold. -|`fadeInDuration`|1000||The milliseconds duration of the fadeIn animation. -|`fadeInDelay`|0||The milliseconds delay before updating the first animation. -|`fadeOutDuration`|1000f||The milliseconds duration of the fadeOut animation. -|`fadeOutDelay`|0||渐出动画延时(毫秒)。如果要设置单个数据项的延时,可以用代码定制:customFadeOutDelay。 -|`dataChangeEnable`|true||是否开启数据变更动画。 -|`dataChangeDuration`|500||The milliseconds duration of the data change animation. -|`actualDuration`|||The milliseconds actual duration of the first animation. +|enable|true||Whether to enable animation. +|type|||The type of animation.
`AnimationType`:
- `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.
| +|easting|||Easing method used for the first animation.
`AnimationEasing`:
- `Linear`:
| +|threshold|2000||Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold. +|fadeInDuration|1000||The milliseconds duration of the fadeIn animation. +|fadeInDelay|0||The milliseconds delay before updating the first animation. +|fadeOutDuration|1000f||The milliseconds duration of the fadeOut animation. +|fadeOutDelay|0||渐出动画延时(毫秒)。如果要设置单个数据项的延时,可以用代码定制:customFadeOutDelay。 +|dataChangeEnable|true||是否开启数据变更动画。 +|dataChangeDuration|500||The milliseconds duration of the data change animation. +|actualDuration|||The milliseconds actual duration of the first animation. -## `AreaStyle` +## AreaStyle Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -210,26 +210,26 @@ The style of area. |field|default|since|comment| |--|--|--|--| -|`show`|true||Set this to false to prevent the areafrom showing. -|`origin`|||the origin of area.
`AreaStyle.AreaOrigin`:
- `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.
| -|`color`|||the color of area,default use serie color. -|`toColor`|||Gradient color, start color to toColor. -|`opacity`|0.6f||Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0. -|`innerFill`||v3.2.0|Whether to fill only polygonal areas. Currently, only convex polygons are supported. +|show|true||Set this to false to prevent the areafrom showing. +|origin|||the origin of area.
`AreaStyle.AreaOrigin`:
- `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.
| +|color|||the color of area,default use serie color. +|toColor|||Gradient color, start color to toColor. +|opacity|0.6f||Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0. +|innerFill||v3.2.0|Whether to fill only polygonal areas. Currently, only convex polygons are supported. -## `ArrowStyle` +## ArrowStyle Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`width`|10||The widht of arrow. -|`height`|15||The height of arrow. -|`offset`|0||The offset of arrow. -|`dent`|3||The dent of arrow. -|`color`|Color.clear||the color of arrow. +|width|10||The widht of arrow. +|height|15||The height of arrow. +|offset|0||The offset of arrow. +|dent|3||The dent of arrow. +|color|Color.clear||the color of arrow. -## `Axis` +## Axis Inherits or Implemented: [MainComponent](#MainComponent) @@ -237,38 +237,38 @@ The axis in rectangular coordinate. |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether to show axis. -|`type`|||the type of axis.
`Axis.AxisType`:
- `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.
| -|`minMaxType`|||the type of axis minmax.
`Axis.AxisMinMaxType`:
- `Default`: 0 - maximum.
- `MinMax`: minimum - maximum.
- `Custom`: Customize the minimum and maximum.
| -|`gridIndex`|||The index of the grid on which the axis are located, by default, is in the first grid. -|`polarIndex`|||The index of the polar on which the axis are located, by default, is in the first polar. -|`parallelIndex`|||The index of the parallel on which the axis are located, by default, is in the first parallel. -|`position`|||the position of axis in grid.
`Axis.AxisPosition`:
- `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.
| -|`offset`|||the offset of axis from the default position. Useful when the same position has multiple axes. -|`min`|||The minimun value of axis.Valid when `minMaxType` is `Custom` -|`max`|||The maximum value of axis.Valid when `minMaxType` is `Custom` -|`splitNumber`|0||Number of segments that the axis is split into. -|`interval`|0||Compulsively set segmentation interval for axis.This is unavailable for category axis. -|`boundaryGap`|true||The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'. -|`maxCache`|0||The max number of axis data cache. -|`logBase`|10||Base of logarithm, which is valid only for numeric axes with type: 'Log'. -|`logBaseE`|false||On the log axis, if base e is the natural number, and is true, logBase fails. -|`ceilRate`|0||The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. -|`inverse`|false||Whether the axis are reversed or not. Invalid in `Category` axis. -|`clockwise`|true||Whether the positive position of axis is in clockwise. True for clockwise by default. -|`insertDataToHead`|||Whether to add new data at the head or at the end of the list. -|`icons`|||类目数据对应的图标。 -|`data`|||Category data, available in type: 'Category' axis. -|`axisLine`|||axis Line. [AxisLine](#AxisLine)| -|`axisName`|||axis name. [AxisName](#AxisName)| -|`axisTick`|||axis tick. [AxisTick](#AxisTick)| -|`axisLabel`|||axis label. [AxisLabel](#AxisLabel)| -|`splitLine`|||axis split line. [AxisSplitLine](#AxisSplitLine)| -|`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)| +|show|true||Whether to show axis. +|type|||the type of axis.
`Axis.AxisType`:
- `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.
| +|minMaxType|||the type of axis minmax.
`Axis.AxisMinMaxType`:
- `Default`: 0 - maximum.
- `MinMax`: minimum - maximum.
- `Custom`: Customize the minimum and maximum.
| +|gridIndex|||The index of the grid on which the axis are located, by default, is in the first grid. +|polarIndex|||The index of the polar on which the axis are located, by default, is in the first polar. +|parallelIndex|||The index of the parallel on which the axis are located, by default, is in the first parallel. +|position|||the position of axis in grid.
`Axis.AxisPosition`:
- `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.
| +|offset|||the offset of axis from the default position. Useful when the same position has multiple axes. +|min|||The minimun value of axis.Valid when `minMaxType` is `Custom` +|max|||The maximum value of axis.Valid when `minMaxType` is `Custom` +|splitNumber|0||Number of segments that the axis is split into. +|interval|0||Compulsively set segmentation interval for axis.This is unavailable for category axis. +|boundaryGap|true||The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'. +|maxCache|0||The max number of axis data cache. +|logBase|10||Base of logarithm, which is valid only for numeric axes with type: 'Log'. +|logBaseE|false||On the log axis, if base e is the natural number, and is true, logBase fails. +|ceilRate|0||The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. +|inverse|false||Whether the axis are reversed or not. Invalid in `Category` axis. +|clockwise|true||Whether the positive position of axis is in clockwise. True for clockwise by default. +|insertDataToHead|||Whether to add new data at the head or at the end of the list. +|icons|||类目数据对应的图标。 +|data|||Category data, available in type: 'Category' axis. +|axisLine|||axis Line. [AxisLine](#AxisLine)| +|axisName|||axis name. [AxisName](#AxisName)| +|axisTick|||axis tick. [AxisTick](#AxisTick)| +|axisLabel|||axis label. [AxisLabel](#AxisLabel)| +|splitLine|||axis split line. [AxisSplitLine](#AxisSplitLine)| +|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)| -## `AxisLabel` +## AxisLabel Inherits or Implemented: [LabelStyle](#LabelStyle) @@ -276,15 +276,15 @@ Settings related to axis label. |field|default|since|comment| |--|--|--|--| -|`interval`|0||The display interval of the axis label. -|`inside`|false||Set this to true so the axis labels face the inside direction. -|`showAsPositiveNumber`|false||Show negative number as positive number. -|`onZero`|false||刻度标签显示在0刻度上。 -|`showStartLabel`|true||Whether to display the first label. -|`showEndLabel`|true||Whether to display the last label. -|`textLimit`|||文本限制。 [TextLimit](#TextLimit)| +|interval|0||The display interval of the axis label. +|inside|false||Set this to true so the axis labels face the inside direction. +|showAsPositiveNumber|false||Show negative number as positive number. +|onZero|false||刻度标签显示在0刻度上。 +|showStartLabel|true||Whether to display the first label. +|showEndLabel|true||Whether to display the last label. +|textLimit|||文本限制。 [TextLimit](#TextLimit)| -## `AxisLine` +## AxisLine Inherits or Implemented: [BaseLine](#BaseLine) @@ -292,11 +292,11 @@ Settings related to axis line. |field|default|since|comment| |--|--|--|--| -|`onZero`|||When mutiple axes exists, this option can be used to specify which axis can be "onZero" to. -|`showArrow`|||Whether to show the arrow symbol of axis. -|`arrow`|||the arrow of line. [ArrowStyle](#ArrowStyle)| +|onZero|||When mutiple axes exists, this option can be used to specify which axis can be "onZero" to. +|showArrow|||Whether to show the arrow symbol of axis. +|arrow|||the arrow of line. [ArrowStyle](#ArrowStyle)| -## `AxisMinorSplitLine` +## AxisMinorSplitLine Inherits or Implemented: [BaseLine](#BaseLine) @@ -306,10 +306,10 @@ Minor split line of axis in grid area. |field|default|since|comment| |--|--|--|--| -|`distance`|||The distance between the split line and axis line. -|`autoColor`|||auto color. +|distance|||The distance between the split line and axis line. +|autoColor|||auto color. -## `AxisMinorTick` +## AxisMinorTick Inherits or Implemented: [BaseLine](#BaseLine) @@ -319,10 +319,10 @@ Settings related to axis minor tick. |field|default|since|comment| |--|--|--|--| -|`splitNumber`|5||Number of segments that the axis is split into. -|`autoColor`||| +|splitNumber|5||Number of segments that the axis is split into. +|autoColor||| -## `AxisName` +## AxisName Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -330,12 +330,12 @@ the name of axis. |field|default|since|comment| |--|--|--|--| -|`show`|||Whether to show axis name. -|`name`|||the name of axis. -|`onZero`||v3.1.0|Whether the axis name position are the same with 0 position of YAxis. -|`labelStyle`|||The text style of axis name. [LabelStyle](#LabelStyle)| +|show|||Whether to show axis name. +|name|||the name of axis. +|onZero||v3.1.0|Whether the axis name position are the same with 0 position of YAxis. +|labelStyle|||The text style of axis name. [LabelStyle](#LabelStyle)| -## `AxisSplitArea` +## AxisSplitArea Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -343,10 +343,10 @@ Split area of axis in grid area, not shown by default. |field|default|since|comment| |--|--|--|--| -|`show`|||Set this to true to show the splitArea. -|`color`|||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. +|show|||Set this to true to show the splitArea. +|color|||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. -## `AxisSplitLine` +## AxisSplitLine Inherits or Implemented: [BaseLine](#BaseLine) @@ -354,18 +354,18 @@ Split line of axis in grid area. |field|default|since|comment| |--|--|--|--| -|`interval`|||Interval of Axis splitLine. -|`distance`|||The distance between the split line and axis line. -|`autoColor`|||auto color. -|`showStartLine`|true|v3.3.0|Whether to show the first split line. -|`showEndLine`|true|v3.3.0|Whether to show the last split line. +|interval|||Interval of Axis splitLine. +|distance|||The distance between the split line and axis line. +|autoColor|||auto color. +|showStartLine|true|v3.3.0|Whether to show the first split line. +|showEndLine|true|v3.3.0|Whether to show the last split line. -## `AxisTheme` +## AxisTheme Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) -## `AxisTick` +## AxisTick Inherits or Implemented: [BaseLine](#BaseLine) @@ -373,15 +373,15 @@ Settings related to axis tick. |field|default|since|comment| |--|--|--|--| -|`alignWithLabel`|||Align axis tick with label, which is available only when boundaryGap is set to be true in category axis. -|`inside`|||Set this to true so the axis labels face the inside direction. -|`showStartTick`|||Whether to display the first tick. -|`showEndTick`|||Whether to display the last tick. -|`distance`|||The distance between the tick line and axis line. -|`splitNumber`|0||Number of segments that the axis is split into. -|`autoColor`||| +|alignWithLabel|||Align axis tick with label, which is available only when boundaryGap is set to be true in category axis. +|inside|||Set this to true so the axis labels face the inside direction. +|showStartTick|||Whether to display the first tick. +|showEndTick|||Whether to display the last tick. +|distance|||The distance between the tick line and axis line. +|splitNumber|0||Number of segments that the axis is split into. +|autoColor||| -## `Background` +## Background Inherits or Implemented: [MainComponent](#MainComponent) @@ -389,38 +389,38 @@ Background component. |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether to enable the background component. -|`image`|||the image of background. -|`imageType`|||the fill type of background image. -|`imageColor`|||背景图颜色。 -|`autoColor`|true||Whether to use theme background color for component color when the background component is on. +|show|true||Whether to enable the background component. +|image|||the image of background. +|imageType|||the fill type of background image. +|imageColor|||背景图颜色。 +|autoColor|true||Whether to use theme background color for component color when the background component is on. -## `Bar` +## Bar Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) -## `BaseAxisTheme` +## BaseAxisTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) |field|default|since|comment| |--|--|--|--| -|`lineType`|||the type of line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`lineWidth`|1f||the width of line. -|`lineLength`|0f||the length of line. -|`lineColor`|||the color of line. -|`splitLineType`|||the type of split line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`splitLineWidth`|1f||the width of split line. -|`splitLineLength`|0f||the length of split line. -|`splitLineColor`|||the color of split line. -|`minorSplitLineColor`|||the color of minor split line. -|`tickWidth`|1f||the width of tick. -|`tickLength`|5f||the length of tick. -|`tickColor`|||the color of tick. -|`splitAreaColors`|||the colors of split area. +|lineType|||the type of line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|lineWidth|1f||the width of line. +|lineLength|0f||the length of line. +|lineColor|||the color of line. +|splitLineType|||the type of split line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|splitLineWidth|1f||the width of split line. +|splitLineLength|0f||the length of split line. +|splitLineColor|||the color of split line. +|minorSplitLineColor|||the color of minor split line. +|tickWidth|1f||the width of tick. +|tickLength|5f||the length of tick. +|tickColor|||the color of tick. +|splitAreaColors|||the colors of split area. -## `BaseLine` +## BaseLine Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -428,18 +428,18 @@ Settings related to base line. |field|default|since|comment| |--|--|--|--| -|`show`|||Set this to false to prevent the axis line from showing. -|`lineStyle`|||线条样式 [LineStyle](#LineStyle)| +|show|||Set this to false to prevent the axis line from showing. +|lineStyle|||线条样式 [LineStyle](#LineStyle)| -## `BaseScatter` +## BaseScatter Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) -## `BaseSerie` +## BaseSerie -## `BlurStyle` +## BlurStyle Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -448,23 +448,23 @@ Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISeri Configurations of blur state. -## `CalendarCoord` +## CalendarCoord Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) -## `Candlestick` +## Candlestick Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) -## `ChartText` +## ChartText -## `ChildComponent` +## ChildComponent -## `Comment` +## Comment Inherits or Implemented: [MainComponent](#MainComponent) @@ -472,12 +472,12 @@ comment of chart. |field|default|since|comment| |--|--|--|--| -|`show`|true||Set this to false to prevent the comment from showing. -|`labelStyle`|||The text style of all comments. [LabelStyle](#LabelStyle)| -|`markStyle`|||The text style of all comments. [CommentMarkStyle](#CommentMarkStyle)| -|`items`|||The items of comment. +|show|true||Set this to false to prevent the comment from showing. +|labelStyle|||The text style of all comments. [LabelStyle](#LabelStyle)| +|markStyle|||The text style of all comments. [CommentMarkStyle](#CommentMarkStyle)| +|items|||The items of comment. -## `CommentItem` +## CommentItem Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -485,14 +485,14 @@ comment of chart. |field|default|since|comment| |--|--|--|--| -|`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)| +|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)| -## `CommentMarkStyle` +## CommentMarkStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -500,29 +500,29 @@ the comment mark style. |field|default|since|comment| |--|--|--|--| -|`show`|true||Set this to false to prevent this comment item from showing. -|`lineStyle`|||line style of comment mark area. [LineStyle](#LineStyle)| +|show|true||Set this to false to prevent this comment item from showing. +|lineStyle|||line style of comment mark area. [LineStyle](#LineStyle)| -## `ComponentTheme` +## ComponentTheme Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`font`|||the font of text. -|`textColor`|||the color of text. -|`textBackgroundColor`|||the color of text. -|`fontSize`|18||the font size of text. -|`tMPFont`|||the font of chart text。 +|font|||the font of text. +|textColor|||the color of text. +|textBackgroundColor|||the color of text. +|fontSize|18||the font size of text. +|tMPFont|||the font of chart text。 -## `CoordSystem` +## CoordSystem Inherits or Implemented: [MainComponent](#MainComponent) Coordinate system component. -## `DataZoom` +## DataZoom Inherits or Implemented: [MainComponent](#MainComponent),[IUpdateRuntimeData](#IUpdateRuntimeData) @@ -530,66 +530,66 @@ DataZoom component is used for zooming a specific area, which enables user to in |field|default|since|comment| |--|--|--|--| -|`enable`|true||Whether to show dataZoom. -|`filterMode`|||The mode of data filter.
`DataZoom.FilterMode`:
- `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.
| -|`xAxisIndexs`|||Specify which xAxis is controlled by the dataZoom. -|`yAxisIndexs`|||Specify which yAxis is controlled by the dataZoom. -|`supportInside`|||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). -|`supportInsideScroll`|true||是否支持坐标系内滚动 -|`supportInsideDrag`|true||是否支持坐标系内拖拽 -|`supportSlider`|||Whether a slider is supported. There are separate sliders on which the user zooms or roams. -|`supportSelect`|||是否支持框选。提供一个选框进行数据区域缩放。 -|`showDataShadow`|||Whether to show data shadow, to indicate the data tendency in brief. -|`showDetail`|||Whether to show detail, that is, show the detailed data information when dragging. -|`zoomLock`|||Specify whether to lock the size of window (selected area). -|`fillerColor`|||the color of dataZoom data area. -|`borderColor`|||the color of dataZoom border. -|`borderWidth`|||边框宽。 -|`backgroundColor`|||The background color of the component. -|`left`|||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]. -|`right`|||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]. -|`top`|||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]. -|`bottom`|||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]. -|`rangeMode`|||Use absolute value or percent value in DataZoom.start and DataZoom.end.
`DataZoom.RangeMode`:
- `//Value`: The value type of start and end.取值类型
- `Percent`: percent value.
| -|`start`|||The start percentage of the window out of the data extent, in the range of 0 ~ 100. -|`end`|||The end percentage of the window out of the data extent, in the range of 0 ~ 100. -|`minShowNum`|1||Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum. -|`scrollSensitivity`|1.1f||The sensitivity of dataZoom scroll. The larger the number, the more sensitive it is. -|`orient`|||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.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`labelStyle`|||label style. [LabelStyle](#LabelStyle)| -|`lineStyle`|||阴影线条样式。 [LineStyle](#LineStyle)| -|`areaStyle`|||阴影填充样式。 [AreaStyle](#AreaStyle)| +|enable|true||Whether to show dataZoom. +|filterMode|||The mode of data filter.
`DataZoom.FilterMode`:
- `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.
| +|xAxisIndexs|||Specify which xAxis is controlled by the dataZoom. +|yAxisIndexs|||Specify which yAxis is controlled by the dataZoom. +|supportInside|||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). +|supportInsideScroll|true||是否支持坐标系内滚动 +|supportInsideDrag|true||是否支持坐标系内拖拽 +|supportSlider|||Whether a slider is supported. There are separate sliders on which the user zooms or roams. +|supportSelect|||是否支持框选。提供一个选框进行数据区域缩放。 +|showDataShadow|||Whether to show data shadow, to indicate the data tendency in brief. +|showDetail|||Whether to show detail, that is, show the detailed data information when dragging. +|zoomLock|||Specify whether to lock the size of window (selected area). +|fillerColor|||the color of dataZoom data area. +|borderColor|||the color of dataZoom border. +|borderWidth|||边框宽。 +|backgroundColor|||The background color of the component. +|left|||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]. +|right|||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]. +|top|||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]. +|bottom|||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]. +|rangeMode|||Use absolute value or percent value in DataZoom.start and DataZoom.end.
`DataZoom.RangeMode`:
- `//Value`: The value type of start and end.取值类型
- `Percent`: percent value.
| +|start|||The start percentage of the window out of the data extent, in the range of 0 ~ 100. +|end|||The end percentage of the window out of the data extent, in the range of 0 ~ 100. +|minShowNum|1||Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum. +|scrollSensitivity|1.1f||The sensitivity of dataZoom scroll. The larger the number, the more sensitive it is. +|orient|||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.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|labelStyle|||label style. [LabelStyle](#LabelStyle)| +|lineStyle|||阴影线条样式。 [LineStyle](#LineStyle)| +|areaStyle|||阴影填充样式。 [AreaStyle](#AreaStyle)| -## `DataZoomTheme` +## DataZoomTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) |field|default|since|comment| |--|--|--|--| -|`borderWidth`|||the width of border line. -|`dataLineWidth`|||the width of data line. -|`fillerColor`|||the color of dataZoom data area. -|`borderColor`|||the color of dataZoom border. -|`dataLineColor`|||the color of data area line. -|`dataAreaColor`|||the color of data area line. -|`backgroundColor`|||the background color of datazoom. +|borderWidth|||the width of border line. +|dataLineWidth|||the width of data line. +|fillerColor|||the color of dataZoom data area. +|borderColor|||the color of dataZoom border. +|dataLineColor|||the color of data area line. +|dataAreaColor|||the color of data area line. +|backgroundColor|||the background color of datazoom. -## `DebugInfo` +## DebugInfo |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether show debug component. -|`showDebugInfo`|false|| -|`showAllChartObject`|false||Whether show children components of chart in hierarchy view. -|`foldSeries`|false||Whether to fold series in inspector view. -|`labelStyle`||| [LabelStyle](#LabelStyle)| +|show|true||Whether show debug component. +|showDebugInfo|false|| +|showAllChartObject|false||Whether show children components of chart in hierarchy view. +|foldSeries|false||Whether to fold series in inspector view. +|labelStyle||| [LabelStyle](#LabelStyle)| -## `EffectScatter` +## EffectScatter Inherits or Implemented: [BaseScatter](#BaseScatter) -## `EmphasisStyle` +## EmphasisStyle Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -599,16 +599,16 @@ Configurations of emphasis state. |field|default|since|comment| |--|--|--|--| -|`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.
`EmphasisStyle.FocusType`:
- `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.
| -|`blurScope`|||The range of fade out when focus is enabled.
`EmphasisStyle.BlurScope`:
- `GridCoord`: coordinate system.
- `Series`: series.
- `Global`: global.
| +|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.
`EmphasisStyle.FocusType`:
- `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.
| +|blurScope|||The range of fade out when focus is enabled.
`EmphasisStyle.BlurScope`:
- `GridCoord`: coordinate system.
- `Series`: series.
- `Global`: global.
| -## `EndLabelStyle` +## EndLabelStyle Inherits or Implemented: [LabelStyle](#LabelStyle) -## `GridCoord` +## GridCoord Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) @@ -616,85 +616,85 @@ Grid component. |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether to show the grid in rectangular coordinate. -|`left`|0.1f||Distance between grid component and the left side of the container. -|`right`|0.08f||Distance between grid component and the right side of the container. -|`top`|0.22f||Distance between grid component and the top side of the container. -|`bottom`|0.12f||Distance between grid component and the bottom side of the container. -|`backgroundColor`|||Background color of grid, which is transparent by default. -|`showBorder`|false||Whether to show the grid border. -|`borderWidth`|0f||Border width of grid. -|`borderColor`|||The color of grid border. +|show|true||Whether to show the grid in rectangular coordinate. +|left|0.1f||Distance between grid component and the left side of the container. +|right|0.08f||Distance between grid component and the right side of the container. +|top|0.22f||Distance between grid component and the top side of the container. +|bottom|0.12f||Distance between grid component and the bottom side of the container. +|backgroundColor|||Background color of grid, which is transparent by default. +|showBorder|false||Whether to show the grid border. +|borderWidth|0f||Border width of grid. +|borderColor|||The color of grid border. -## `Heatmap` +## Heatmap Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) |field|default|since|comment| |--|--|--|--| -|`heatmapType`||3.3.0|The mapping type of heatmap.
`HeatmapType`:
- `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.
| +|heatmapType||3.3.0|The mapping type of heatmap.
`HeatmapType`:
- `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.
| -## `IconStyle` +## IconStyle Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|false||Whether the data icon is show. -|`layer`|||显示在上层还是在下层。
`IconStyle.Layer`:
- `UnderText`: The icon is display under the label text. 图标在标签文字下
- `AboveText`: The icon is display above the label text. 图标在标签文字上
| -|`align`|||水平方向对齐方式。
`Align`:
- `Center`: 对齐方式
- `Left`: 对齐方式
- `Right`: 对齐方式
| -|`sprite`|||The image of icon. -|`type`|||How to display the icon. -|`color`|||图标颜色。 -|`width`|20||图标宽。 -|`height`|20||图标高。 -|`offset`|||图标偏移。 -|`autoHideWhenLabelEmpty`|false||当label内容为空时是否自动隐藏图标 +|show|false||Whether the data icon is show. +|layer|||显示在上层还是在下层。
`IconStyle.Layer`:
- `UnderText`: The icon is display under the label text. 图标在标签文字下
- `AboveText`: The icon is display above the label text. 图标在标签文字上
| +|align|||水平方向对齐方式。
`Align`:
- `Center`: 对齐方式
- `Left`: 对齐方式
- `Right`: 对齐方式
| +|sprite|||The image of icon. +|type|||How to display the icon. +|color|||图标颜色。 +|width|20||图标宽。 +|height|20||图标高。 +|offset|||图标偏移。 +|autoHideWhenLabelEmpty|false||当label内容为空时是否自动隐藏图标 -## `ImageStyle` +## ImageStyle Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether the data icon is show. -|`sprite`|||The image of icon. -|`type`|||How to display the image. -|`autoColor`|||是否自动颜色。 -|`color`|||图标颜色。 -|`width`|0||图标宽。 -|`height`|0||图标高。 +|show|true||Whether the data icon is show. +|sprite|||The image of icon. +|type|||How to display the image. +|autoColor|||是否自动颜色。 +|color|||图标颜色。 +|width|0||图标宽。 +|height|0||图标高。 -## `Indicator` +## Indicator Indicator of radar chart, which is used to assign multiple variables(dimensions) in radar chart. |field|default|since|comment| |--|--|--|--| -|`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. -|`range`|||Normal range. When the value is outside this range, the display color is automatically changed. -|`show`|||[default:true] Set this to false to prevent the radar from showing. -|`shape`|||Radar render type, in which 'Polygon' and 'Circle' are supported. -|`radius`|100||the radius of radar. -|`splitNumber`|5||Segments of indicator axis. -|`center`|||the center of radar chart. -|`axisLine`|||axis line. [AxisLine](#AxisLine)| -|`axisName`|||Name options for radar indicators. [AxisName](#AxisName)| -|`splitLine`|||split line. [AxisSplitLine](#AxisSplitLine)| -|`splitArea`|||Split area of axis in grid area. [AxisSplitArea](#AxisSplitArea)| -|`indicator`|true||Whether to show indicator. -|`positionType`|||The position type of indicator. -|`indicatorGap`|10||The gap of indicator and radar. -|`ceilRate`|0||The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. -|`isAxisTooltip`|||是否Tooltip显示轴线上的所有数据。 -|`outRangeColor`|Color.red||The color displayed when data out of range. -|`connectCenter`|false||Whether serie data connect to radar center with line. -|`lineGradient`|true||Whether need gradient for data line. -|`indicatorList`|||the indicator list. +|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. +|range|||Normal range. When the value is outside this range, the display color is automatically changed. +|show|||[default:true] Set this to false to prevent the radar from showing. +|shape|||Radar render type, in which 'Polygon' and 'Circle' are supported. +|radius|100||the radius of radar. +|splitNumber|5||Segments of indicator axis. +|center|||the center of radar chart. +|axisLine|||axis line. [AxisLine](#AxisLine)| +|axisName|||Name options for radar indicators. [AxisName](#AxisName)| +|splitLine|||split line. [AxisSplitLine](#AxisSplitLine)| +|splitArea|||Split area of axis in grid area. [AxisSplitArea](#AxisSplitArea)| +|indicator|true||Whether to show indicator. +|positionType|||The position type of indicator. +|indicatorGap|10||The gap of indicator and radar. +|ceilRate|0||The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. +|isAxisTooltip|||是否Tooltip显示轴线上的所有数据。 +|outRangeColor|Color.red||The color displayed when data out of range. +|connectCenter|false||Whether serie data connect to radar center with line. +|lineGradient|true||Whether need gradient for data line. +|indicatorList|||the indicator list. -## `ItemStyle` +## ItemStyle Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -702,27 +702,27 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent] |field|default|since|comment| |--|--|--|--| -|`show`|true||是否启用。 -|`color`|||数据项颜色。 -|`color0`|||数据项颜色。 -|`toColor`|||Gradient color1. -|`toColor2`|||Gradient color2.Only valid in line diagrams. -|`backgroundColor`|||数据项背景颜色。 -|`backgroundWidth`|||数据项背景宽度。 -|`centerColor`|||中心区域颜色。 -|`centerGap`|||中心区域间隙。 -|`borderWidth`|0||边框宽。 -|`borderGap`|0||边框间隙。 -|`borderColor`|||边框的颜色。 -|`borderColor0`|||边框的颜色。 -|`borderToColor`|||边框的渐变色。 -|`opacity`|1||透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 -|`itemMarker`|||提示框单项的字符标志。用在Tooltip中。 -|`itemFormatter`|||提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` -|`numericFormatter`|||Standard numeric format strings. -|`cornerRadius`|||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)). +|show|true||是否启用。 +|color|||数据项颜色。 +|color0|||数据项颜色。 +|toColor|||Gradient color1. +|toColor2|||Gradient color2.Only valid in line diagrams. +|backgroundColor|||数据项背景颜色。 +|backgroundWidth|||数据项背景宽度。 +|centerColor|||中心区域颜色。 +|centerGap|||中心区域间隙。 +|borderWidth|0||边框宽。 +|borderGap|0||边框间隙。 +|borderColor|||边框的颜色。 +|borderColor0|||边框的颜色。 +|borderToColor|||边框的渐变色。 +|opacity|1||透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 +|itemMarker|||提示框单项的字符标志。用在Tooltip中。 +|itemFormatter|||提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` +|numericFormatter|||Standard numeric format strings. +|cornerRadius|||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)). -## `LabelLine` +## LabelLine Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -730,18 +730,18 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether the label line is showed. -|`lineType`|||the type of visual guide line.
`LabelLine.LineType`:
- `BrokenLine`: 折线
- `Curves`: 曲线
- `HorizontalLine`: 水平线
| -|`lineColor`|ChartConst.clearColor32||the color of visual guild line. -|`lineAngle`|0||the angle of visual guild line. -|`lineWidth`|1.0f||the width of visual guild line. -|`lineGap`|1.0f||the gap of container and guild line. -|`lineLength1`|25f||The length of the first segment of visual guide line. -|`lineLength2`|15f||The length of the second segment of visual guide line. -|`startSymbol`|||The symbol of the start point of labelline. [SymbolStyle](#SymbolStyle)| -|`endSymbol`|||The symbol of the end point of labelline. [SymbolStyle](#SymbolStyle)| +|show|true||Whether the label line is showed. +|lineType|||the type of visual guide line.
`LabelLine.LineType`:
- `BrokenLine`: 折线
- `Curves`: 曲线
- `HorizontalLine`: 水平线
| +|lineColor|ChartConst.clearColor32||the color of visual guild line. +|lineAngle|0||the angle of visual guild line. +|lineWidth|1.0f||the width of visual guild line. +|lineGap|1.0f||the gap of container and guild line. +|lineLength1|25f||The length of the first segment of visual guide line. +|lineLength2|15f||The length of the second segment of visual guide line. +|startSymbol|||The symbol of the start point of labelline. [SymbolStyle](#SymbolStyle)| +|endSymbol|||The symbol of the end point of labelline. [SymbolStyle](#SymbolStyle)| -## `LabelStyle` +## LabelStyle Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -749,35 +749,35 @@ Text label of chart, to explain some data information about graphic item like va |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether the label is showed. -|`Position`|||The position of label. -|`autoOffset`|false||是否开启自动偏移。当开启时,Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。 -|`offset`|||offset to the host graphic element. -|`rotate`|||Rotation of label. -|`distance`|||距离轴线的距离。 -|`formatter`|||formatter of label. -|`numericFormatter`|||Standard numeric format strings. -|`width`|0||the width of label. If set as default value 0, it means than the label width auto set as the text width. -|`height`|0||the height of label. If set as default value 0, it means than the label height auto set as the text height. -|`icon`|||the sytle of icon. [IconStyle](#IconStyle)| -|`background`|||the sytle of background. [ImageStyle](#ImageStyle)| -|`textPadding`|||the text padding of label. [TextPadding](#TextPadding)| -|`textStyle`|||the sytle of text. [TextStyle](#TextStyle)| +|show|true||Whether the label is showed. +|Position|||The position of label. +|autoOffset|false||是否开启自动偏移。当开启时,Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。 +|offset|||offset to the host graphic element. +|rotate|||Rotation of label. +|distance|||距离轴线的距离。 +|formatter|||formatter of label. +|numericFormatter|||Standard numeric format strings. +|width|0||the width of label. If set as default value 0, it means than the label width auto set as the text width. +|height|0||the height of label. If set as default value 0, it means than the label height auto set as the text height. +|icon|||the sytle of icon. [IconStyle](#IconStyle)| +|background|||the sytle of background. [ImageStyle](#ImageStyle)| +|textPadding|||the text padding of label. [TextPadding](#TextPadding)| +|textStyle|||the sytle of text. [TextStyle](#TextStyle)| -## `Lang` +## Lang Inherits or Implemented: [ScriptableObject](#ScriptableObject) Language. -## `LangCandlestick` +## LangCandlestick -## `LangTime` +## LangTime -## `Legend` +## Legend Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPropertyChanged) @@ -785,68 +785,68 @@ Legend component.The legend component shows different sets of tags, colors, and |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether to show legend component. -|`iconType`|||Type of legend.
`Legend.Type`:
- `Auto`: 自动匹配。
- `Custom`: 自定义图标。
- `EmptyCircle`: 空心圆。
- `Circle`: 圆形。
- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle`: 三角形。
- `Diamond`: 菱形。
- `Candlestick`: 烛台(可用于K线图)。
| -|`selectedMode`|||Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
`Legend.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
- `None`: 无法选择。
| -|`orient`|||Specify whether the layout of legend component is horizontal or vertical.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`location`|||The location of legend. [Location](#Location)| -|`itemWidth`|25.0f||Image width of legend symbol. -|`itemHeight`|12.0f||Image height of legend symbol. -|`itemGap`|10f||The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout. -|`itemAutoColor`|true||Whether the legend symbol matches the color automatically. -|`itemOpacity`|1||the opacity of item color. -|`formatter`|||Legend content string template formatter. Support for wrapping lines with \n. Template:{value}. -|`numericFormatter`|||Standard numeric format strings. -|`labelStyle`|||the style of text. [LabelStyle](#LabelStyle)| -|`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`|||自定义的图例标记图形。 -|`colors`|||the colors of legend item. -|`background`||v3.1.0|the sytle of background. [ImageStyle](#ImageStyle)| -|`padding`||v3.1.0|the paddinng of item and background. [Padding](#Padding)| +|show|true||Whether to show legend component. +|iconType|||Type of legend.
`Legend.Type`:
- `Auto`: 自动匹配。
- `Custom`: 自定义图标。
- `EmptyCircle`: 空心圆。
- `Circle`: 圆形。
- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle`: 三角形。
- `Diamond`: 菱形。
- `Candlestick`: 烛台(可用于K线图)。
| +|selectedMode|||Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
`Legend.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
- `None`: 无法选择。
| +|orient|||Specify whether the layout of legend component is horizontal or vertical.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|location|||The location of legend. [Location](#Location)| +|itemWidth|25.0f||Image width of legend symbol. +|itemHeight|12.0f||Image height of legend symbol. +|itemGap|10f||The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout. +|itemAutoColor|true||Whether the legend symbol matches the color automatically. +|itemOpacity|1||the opacity of item color. +|formatter|||Legend content string template formatter. Support for wrapping lines with \n. Template:{value}. +|numericFormatter|||Standard numeric format strings. +|labelStyle|||the style of text. [LabelStyle](#LabelStyle)| +|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|||自定义的图例标记图形。 +|colors|||the colors of legend item. +|background||v3.1.0|the sytle of background. [ImageStyle](#ImageStyle)| +|padding||v3.1.0|the paddinng of item and background. [Padding](#Padding)| -## `LegendTheme` +## LegendTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) |field|default|since|comment| |--|--|--|--| -|`unableColor`|||the color of text. +|unableColor|||the color of text. -## `Level` +## Level Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`label`|||文本标签样式。 [LabelStyle](#LabelStyle)| -|`upperLabel`|||上方的文本标签样式。 [LabelStyle](#LabelStyle)| -|`itemStyle`|||数据项样式。 [ItemStyle](#ItemStyle)| +|label|||文本标签样式。 [LabelStyle](#LabelStyle)| +|upperLabel|||上方的文本标签样式。 [LabelStyle](#LabelStyle)| +|itemStyle|||数据项样式。 [ItemStyle](#ItemStyle)| -## `LevelStyle` +## LevelStyle Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|false||是否启用LevelStyle -|`levels`|||各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 +|show|false||是否启用LevelStyle +|levels|||各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 -## `Line` +## Line Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) -## `LineArrow` +## LineArrow Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent) |field|default|since|comment| |--|--|--|--| -|`show`|||Whether to show the arrow. -|`position`|||The position of arrow.
`LineArrow.Position`:
- `End`: 末端箭头
- `Start`: 头端箭头
| -|`arrow`|||the arrow of line. [ArrowStyle](#ArrowStyle)| +|show|||Whether to show the arrow. +|position|||The position of arrow.
`LineArrow.Position`:
- `End`: 末端箭头
- `Start`: 头端箭头
| +|arrow|||the arrow of line. [ArrowStyle](#ArrowStyle)| -## `LineStyle` +## LineStyle Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -854,16 +854,16 @@ The style of line. |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether show line. -|`type`|||the type of line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`color`|||the color of line, default use serie color. -|`toColor`|||the middle color of line, default use serie color. -|`toColor2`|||the end color of line, default use serie color. -|`width`|0||the width of line. -|`length`|0||the length of line. -|`opacity`|1||Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0. +|show|true||Whether show line. +|type|||the type of line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|color|||the color of line, default use serie color. +|toColor|||the middle color of line, default use serie color. +|toColor2|||the end color of line, default use serie color. +|width|0||the width of line. +|length|0||the length of line. +|opacity|1||Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0. -## `Location` +## Location Inherits or Implemented: [ChildComponent](#ChildComponent),[IPropertyChanged](#IPropertyChanged) @@ -871,18 +871,18 @@ Location type. Quick to set the general location. |field|default|since|comment| |--|--|--|--| -|`align`|||对齐方式。
`Location.Align`:
- `TopLeft`: 对齐方式
- `TopRight`: 对齐方式
- `TopCenter`: 对齐方式
- `BottomLeft`: 对齐方式
- `BottomRight`: 对齐方式
- `BottomCenter`: 对齐方式
- `Center`: 对齐方式
- `CenterLeft`: 对齐方式
- `CenterRight`: 对齐方式
| -|`left`|||Distance between component and the left side of the container. -|`right`|||Distance between component and the left side of the container. -|`top`|||Distance between component and the left side of the container. -|`bottom`|||Distance between component and the left side of the container. +|align|||对齐方式。
`Location.Align`:
- `TopLeft`: 对齐方式
- `TopRight`: 对齐方式
- `TopCenter`: 对齐方式
- `BottomLeft`: 对齐方式
- `BottomRight`: 对齐方式
- `BottomCenter`: 对齐方式
- `Center`: 对齐方式
- `CenterLeft`: 对齐方式
- `CenterRight`: 对齐方式
| +|left|||Distance between component and the left side of the container. +|right|||Distance between component and the left side of the container. +|top|||Distance between component and the left side of the container. +|bottom|||Distance between component and the left side of the container. -## `MainComponent` +## MainComponent Inherits or Implemented: [IComparable](#IComparable) -## `MarkArea` +## MarkArea Inherits or Implemented: [MainComponent](#MainComponent) @@ -890,15 +890,15 @@ Used to mark an area in chart. For example, mark a time interval. |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示标域。 -|`text`|||The text of markArea. 标域显示的文本。 -|`serieIndex`|0||Serie index of markArea. 标域影响的Serie索引。 -|`start`|||标域范围的起始数据。 [MarkAreaData](#MarkAreaData)| -|`end`|||标域范围的结束数据。 [MarkAreaData](#MarkAreaData)| -|`itemStyle`|||标域样式。 [ItemStyle](#ItemStyle)| -|`label`|||标域文本样式。 [LabelStyle](#LabelStyle)| +|show|true||是否显示标域。 +|text|||The text of markArea. 标域显示的文本。 +|serieIndex|0||Serie index of markArea. 标域影响的Serie索引。 +|start|||标域范围的起始数据。 [MarkAreaData](#MarkAreaData)| +|end|||标域范围的结束数据。 [MarkAreaData](#MarkAreaData)| +|itemStyle|||标域样式。 [ItemStyle](#ItemStyle)| +|label|||标域文本样式。 [LabelStyle](#LabelStyle)| -## `MarkAreaData` +## MarkAreaData Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -906,15 +906,15 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`type`|||Special markArea types, are used to label maximum value, minimum value and so on.
`MarkAreaType`:
- `None`: 标域类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| -|`name`|||Name of the marker, which will display as a label. -|`dimension`|1||From which dimension of data to calculate the maximum and minimum value and so on. -|`xPosition`|||The x coordinate relative to the origin, in pixels. -|`yPosition`|||The y coordinate relative to the origin, in pixels. -|`xValue`|||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. -|`yValue`|||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. +|type|||Special markArea types, are used to label maximum value, minimum value and so on.
`MarkAreaType`:
- `None`: 标域类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| +|name|||Name of the marker, which will display as a label. +|dimension|1||From which dimension of data to calculate the maximum and minimum value and so on. +|xPosition|||The x coordinate relative to the origin, in pixels. +|yPosition|||The y coordinate relative to the origin, in pixels. +|xValue|||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. +|yValue|||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. -## `MarkLine` +## MarkLine Inherits or Implemented: [MainComponent](#MainComponent) @@ -922,12 +922,12 @@ Use a line in the chart to illustrate. |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether to display the marking line. -|`serieIndex`|0||The serie index of markLine. -|`animation`|||The animation of markline. [AnimationStyle](#AnimationStyle)| -|`data`|||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. +|show|true||Whether to display the marking line. +|serieIndex|0||The serie index of markLine. +|animation|||The animation of markline. [AnimationStyle](#AnimationStyle)| +|data|||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. -## `MarkLineData` +## MarkLineData Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -935,21 +935,21 @@ Data of marking line. |field|default|since|comment| |--|--|--|--| -|`type`|||Special label types, are used to label maximum value, minimum value and so on.
`MarkLineType`:
- `None`: 标线类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| -|`name`|||Name of the marker, which will display as a label. -|`dimension`|1||From which dimension of data to calculate the maximum and minimum value and so on. -|`xPosition`|||The x coordinate relative to the origin, in pixels. -|`yPosition`|||The y coordinate relative to the origin, in pixels. -|`xValue`|||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. -|`yValue`|||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. -|`group`|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. -|`zeroPosition`|false||Is the origin of the coordinate system. -|`startSymbol`|||The symbol of the start point of markline. [SymbolStyle](#SymbolStyle)| -|`endSymbol`|||The symbol of the end point of markline. [SymbolStyle](#SymbolStyle)| -|`lineStyle`|||The line style of markline. [LineStyle](#LineStyle)| -|`label`|||Text styles of label. You can set position to Start, Middle, and End to display text in different locations. [LabelStyle](#LabelStyle)| +|type|||Special label types, are used to label maximum value, minimum value and so on.
`MarkLineType`:
- `None`: 标线类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| +|name|||Name of the marker, which will display as a label. +|dimension|1||From which dimension of data to calculate the maximum and minimum value and so on. +|xPosition|||The x coordinate relative to the origin, in pixels. +|yPosition|||The y coordinate relative to the origin, in pixels. +|xValue|||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. +|yValue|||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. +|group|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. +|zeroPosition|false||Is the origin of the coordinate system. +|startSymbol|||The symbol of the start point of markline. [SymbolStyle](#SymbolStyle)| +|endSymbol|||The symbol of the end point of markline. [SymbolStyle](#SymbolStyle)| +|lineStyle|||The line style of markline. [LineStyle](#LineStyle)| +|label|||Text styles of label. You can set position to Start, Middle, and End to display text in different locations. [LabelStyle](#LabelStyle)| -## `Padding` +## Padding Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -957,23 +957,23 @@ padding setting of item or text. |field|default|since|comment| |--|--|--|--| -|`show`|true||show padding. 是否显示。 -|`top`|0||padding of top. -|`right`|2f||padding of right. -|`left`|2f||padding of left. -|`bottom`|0||padding of bottom. +|show|true||show padding. 是否显示。 +|top|0||padding of top. +|right|2f||padding of right. +|left|2f||padding of left. +|bottom|0||padding of bottom. -## `Parallel` +## Parallel Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) -## `ParallelAxis` +## ParallelAxis Inherits or Implemented: [Axis](#Axis) -## `ParallelCoord` +## ParallelCoord Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) @@ -981,25 +981,25 @@ Grid component. |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether to show the grid in rectangular coordinate. -|`orient`|||Orientation of the axis. By default, it's 'Vertical'. You can set it to be 'Horizonal' to make a vertical axis.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`left`|0.1f||Distance between grid component and the left side of the container. -|`right`|0.08f||Distance between grid component and the right side of the container. -|`top`|0.22f||Distance between grid component and the top side of the container. -|`bottom`|0.12f||Distance between grid component and the bottom side of the container. -|`backgroundColor`|||Background color of grid, which is transparent by default. +|show|true||Whether to show the grid in rectangular coordinate. +|orient|||Orientation of the axis. By default, it's 'Vertical'. You can set it to be 'Horizonal' to make a vertical axis.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|left|0.1f||Distance between grid component and the left side of the container. +|right|0.08f||Distance between grid component and the right side of the container. +|top|0.22f||Distance between grid component and the top side of the container. +|bottom|0.12f||Distance between grid component and the bottom side of the container. +|backgroundColor|||Background color of grid, which is transparent by default. -## `Pie` +## Pie Inherits or Implemented: [Serie](#Serie) -## `PolarAxisTheme` +## PolarAxisTheme Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) -## `PolarCoord` +## PolarCoord Inherits or Implemented: [CoordSystem](#CoordSystem),[ISerieContainer](#ISerieContainer) @@ -1007,54 +1007,54 @@ Polar coordinate can be used in scatter and line chart. Every polar coordinate h |field|default|since|comment| |--|--|--|--| -|`show`|true||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. +|show|true||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 Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) |field|default|since|comment| |--|--|--|--| -|`smooth`|false|3.2.0|Whether use smooth curve. +|smooth|false|3.2.0|Whether use smooth curve. -## `RadarAxisTheme` +## RadarAxisTheme Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) -## `RadarCoord` +## RadarCoord Inherits or Implemented: [CoordSystem](#CoordSystem),[ISerieContainer](#ISerieContainer) Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。 -## `RadiusAxis` +## RadiusAxis Inherits or Implemented: [Axis](#Axis) Radial axis of polar coordinate. -## `RadiusAxisTheme` +## RadiusAxisTheme Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) -## `Ring` +## Ring Inherits or Implemented: [Serie](#Serie) -## `Scatter` +## Scatter Inherits or Implemented: [BaseScatter](#BaseScatter) -## `SelectStyle` +## SelectStyle Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -1063,7 +1063,7 @@ Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISeri Configurations of select state. -## `Serie` +## Serie Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) @@ -1071,76 +1071,76 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) |field|default|since|comment| |--|--|--|--| -|`index`|||The index of serie. -|`show`|true||Whether to show serie in chart. -|`coordSystem`|||the chart coord system of serie. -|`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.
`SerieState`:
- `Normal`: Normal state.
- `Emphasis`: Emphasis state.
- `Blur`: Blur state.
- `Select`: Select state.
- `Auto`: Auto state.
| -|`colorBy`||v3.2.0|The policy to take color from theme.
`SerieColorBy`:
- `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..
| -|`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. -|`radarIndex`|0||Index of radar component that radar chart uses. -|`vesselIndex`|0||Index of vesel component that liquid chart uses. -|`polarIndex`|0||Index of polar component that serie uses. -|`singleAxisIndex`|0||Index of single axis component that serie uses. -|`parallelIndex`|0||Index of parallel coord component that serie uses. -|`minShow`|||The min number of data to show in chart. -|`maxShow`|||The max number of data to show in chart. -|`maxCache`|||The max number of serie data cache. The first data will be remove when the size of serie data is larger then maxCache. -|`sampleDist`|0||the min pixel dist of sample. -|`sampleType`|||the type of sample.
`SampleType`:
- `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.
| -|`sampleAverage`|0||设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 -|`lineType`|||The type of line chart.
`LineType`:
- `Normal`: the normal line chart,
- `Smooth`: the smooth line chart,
- `StepStart`: step line.
- `StepMiddle`: step line.
- `StepEnd`: step line.
| -|`barType`|||柱形图类型。
`BarType`:
- `Normal`: normal bar.
- `Zebra`: zebra bar.
- `Capsule`: capsule bar.
| -|`barPercentStack`|false||柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 -|`barWidth`|0||The 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||斑马线的间距。 -|`min`|||最小值。 -|`max`|||最大值。 -|`minSize`|0f||数据最小值 min 映射的宽度。 -|`maxSize`|1f||数据最大值 max 映射的宽度。 -|`startAngle`|||起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 -|`endAngle`|||结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。 -|`minAngle`|||The minimum angle of sector(0-360). It prevents some sector from being too small when value is small. -|`clockwise`|true||是否顺时针。 -|`roundCap`|||是否开启圆弧效果。 -|`splitNumber`|||刻度分割段数。最大可设置36。 -|`clickOffset`|true||Whether offset when mouse click pie chart item. -|`roseType`|||Whether to show as Nightingale chart.
`RoseType`:
- `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.
| -|`gap`|||gap of item. -|`center`|||the center of chart. -|`radius`|||the radius of chart. -|`showDataDimension`|||数据项里的数据维数。 -|`showDataName`|||在Editor的inpsector上是否显示name参数 -|`clip`|false||If clip the overflow on the coordinate system. -|`ignore`|false||是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 -|`ignoreValue`|0||忽略数据的默认值。当ignore为true才有效。 -|`ignoreLineBreak`|false||忽略数据时折线是断开还是连接。默认false为连接。 -|`showAsPositiveNumber`|false||Show negative number as positive number. -|`large`|true||是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 -|`largeThreshold`|200||开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。 -|`avoidLabelOverlap`|false||在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。 -|`radarType`|||雷达图类型。
`RadarType`:
- `Multiple`: multiple radar.
- `Single`: single radar.
| -|`placeHolder`|false||占位模式。占位模式时,数据有效但不参与渲染和显示。 -|`dataSortType`|||组件的数据排序。
`SerieDataSortType`:
- `None`: 按 data 的顺序
- `Ascending`: 升序
- `Descending`: 降序
| -|`orient`|||组件的朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`align`|||组件水平方向对齐方式。
`Align`:
- `Center`: 对齐方式
- `Left`: 对齐方式
- `Right`: 对齐方式
| -|`left`|||Distance between component and the left side of the container. -|`right`|||Distance between component and the right side of the container. -|`top`|||Distance between component and the top side of the container. -|`bottom`|||Distance between component and the bottom side of the container. -|`insertDataToHead`|||Whether to add new data at the head or at the end of the list. -|`lineStyle`|||The style of line. [LineStyle](#LineStyle)| -|`symbol`|||the symbol of serie data item. [SerieSymbol](#SerieSymbol)| -|`animation`|||The start animation. [AnimationStyle](#AnimationStyle)| -|`itemStyle`|||The style of data item. [ItemStyle](#ItemStyle)| -|`data`|||系列中的数据内容数组。SerieData可以设置1到n维数据。 +|index|||The index of serie. +|show|true||Whether to show serie in chart. +|coordSystem|||the chart coord system of serie. +|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.
`SerieState`:
- `Normal`: Normal state.
- `Emphasis`: Emphasis state.
- `Blur`: Blur state.
- `Select`: Select state.
- `Auto`: Auto state.
| +|colorBy||v3.2.0|The policy to take color from theme.
`SerieColorBy`:
- `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..
| +|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. +|radarIndex|0||Index of radar component that radar chart uses. +|vesselIndex|0||Index of vesel component that liquid chart uses. +|polarIndex|0||Index of polar component that serie uses. +|singleAxisIndex|0||Index of single axis component that serie uses. +|parallelIndex|0||Index of parallel coord component that serie uses. +|minShow|||The min number of data to show in chart. +|maxShow|||The max number of data to show in chart. +|maxCache|||The max number of serie data cache. The first data will be remove when the size of serie data is larger then maxCache. +|sampleDist|0||the min pixel dist of sample. +|sampleType|||the type of sample.
`SampleType`:
- `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.
| +|sampleAverage|0||设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 +|lineType|||The type of line chart.
`LineType`:
- `Normal`: the normal line chart,
- `Smooth`: the smooth line chart,
- `StepStart`: step line.
- `StepMiddle`: step line.
- `StepEnd`: step line.
| +|barType|||柱形图类型。
`BarType`:
- `Normal`: normal bar.
- `Zebra`: zebra bar.
- `Capsule`: capsule bar.
| +|barPercentStack|false||柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 +|barWidth|0||The 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||斑马线的间距。 +|min|||最小值。 +|max|||最大值。 +|minSize|0f||数据最小值 min 映射的宽度。 +|maxSize|1f||数据最大值 max 映射的宽度。 +|startAngle|||起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 +|endAngle|||结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。 +|minAngle|||The minimum angle of sector(0-360). It prevents some sector from being too small when value is small. +|clockwise|true||是否顺时针。 +|roundCap|||是否开启圆弧效果。 +|splitNumber|||刻度分割段数。最大可设置36。 +|clickOffset|true||Whether offset when mouse click pie chart item. +|roseType|||Whether to show as Nightingale chart.
`RoseType`:
- `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.
| +|gap|||gap of item. +|center|||the center of chart. +|radius|||the radius of chart. +|showDataDimension|||数据项里的数据维数。 +|showDataName|||在Editor的inpsector上是否显示name参数 +|clip|false||If clip the overflow on the coordinate system. +|ignore|false||是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 +|ignoreValue|0||忽略数据的默认值。当ignore为true才有效。 +|ignoreLineBreak|false||忽略数据时折线是断开还是连接。默认false为连接。 +|showAsPositiveNumber|false||Show negative number as positive number. +|large|true||是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 +|largeThreshold|200||开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。 +|avoidLabelOverlap|false||在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。 +|radarType|||雷达图类型。
`RadarType`:
- `Multiple`: multiple radar.
- `Single`: single radar.
| +|placeHolder|false||占位模式。占位模式时,数据有效但不参与渲染和显示。 +|dataSortType|||组件的数据排序。
`SerieDataSortType`:
- `None`: 按 data 的顺序
- `Ascending`: 升序
- `Descending`: 降序
| +|orient|||组件的朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|align|||组件水平方向对齐方式。
`Align`:
- `Center`: 对齐方式
- `Left`: 对齐方式
- `Right`: 对齐方式
| +|left|||Distance between component and the left side of the container. +|right|||Distance between component and the right side of the container. +|top|||Distance between component and the top side of the container. +|bottom|||Distance between component and the bottom side of the container. +|insertDataToHead|||Whether to add new data at the head or at the end of the list. +|lineStyle|||The style of line. [LineStyle](#LineStyle)| +|symbol|||the symbol of serie data item. [SerieSymbol](#SerieSymbol)| +|animation|||The start animation. [AnimationStyle](#AnimationStyle)| +|itemStyle|||The style of data item. [ItemStyle](#ItemStyle)| +|data|||系列中的数据内容数组。SerieData可以设置1到n维数据。 -## `SerieData` +## SerieData Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1148,17 +1148,17 @@ A data item of serie. |field|default|since|comment| |--|--|--|--| -|`index`|||the index of SerieData. -|`name`|||the name of data item. -|`id`|||the id of data. -|`parentId`|||the id of parent SerieData. -|`ignore`|||是否忽略数据。当为 true 时,数据不进行绘制。 -|`selected`|||Whether the data item is selected. -|`radius`|||自定义半径。可用在饼图中自定义某个数据项的半径。 -|`state`||v3.2.0|the state of serie data.
`SerieState`:
- `Normal`: Normal state.
- `Emphasis`: Emphasis state.
- `Blur`: Blur state.
- `Select`: Select state.
- `Auto`: Auto state.
| -|`data`|||An arbitrary dimension data list of data item. +|index|||the index of SerieData. +|name|||the name of data item. +|id|||the id of data. +|parentId|||the id of parent SerieData. +|ignore|||是否忽略数据。当为 true 时,数据不进行绘制。 +|selected|||Whether the data item is selected. +|radius|||自定义半径。可用在饼图中自定义某个数据项的半径。 +|state||v3.2.0|the state of serie data.
`SerieState`:
- `Normal`: Normal state.
- `Emphasis`: Emphasis state.
- `Blur`: Blur state.
- `Select`: Select state.
- `Auto`: Auto state.
| +|data|||An arbitrary dimension data list of data item. -## `SerieSymbol` +## SerieSymbol Inherits or Implemented: [SymbolStyle](#SymbolStyle),[ISerieDataComponent](#ISerieDataComponent) @@ -1166,36 +1166,36 @@ Inherits or Implemented: [SymbolStyle](#SymbolStyle),[ISerieDataComponent](#ISer |field|default|since|comment| |--|--|--|--| -|`sizeType`|||the type of symbol size.
`SymbolSizeType`:
- `Custom`: Specify constant for symbol size.
- `FromData`: Specify the dataIndex and dataScale to calculate symbol size.
- `Function`: Specify function for symbol size.
| -|`dataIndex`|1||whitch data index is when the sizeType assined as FromData. -|`dataScale`|1||the scale of data when sizeType assined as FromData. -|`sizeFunction`|||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. -|`repeat`|false||图形是否重复。 -|`minSize`|0f|v3.3.0|Minimum symbol size. -|`maxSize`|0f|v3.3.0|Maximum symbol size. +|sizeType|||the type of symbol size.
`SymbolSizeType`:
- `Custom`: Specify constant for symbol size.
- `FromData`: Specify the dataIndex and dataScale to calculate symbol size.
- `Function`: Specify function for symbol size.
| +|dataIndex|1||whitch data index is when the sizeType assined as FromData. +|dataScale|1||the scale of data when sizeType assined as FromData. +|sizeFunction|||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. +|repeat|false||图形是否重复。 +|minSize|0f|v3.3.0|Minimum symbol size. +|maxSize|0f|v3.3.0|Maximum symbol size. -## `SerieTheme` +## SerieTheme Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`lineWidth`|||the color of text. -|`lineSymbolSize`|||the symbol size of line serie. -|`scatterSymbolSize`|||the symbol size of scatter serie. -|`pieTooltipExtraRadius`|||the extra radius of pie when actived by tooltip. -|`selectedRate`|1.3f||the rate of symbol size of line or scatter serie. -|`pieSelectedOffset`|||the center offset of pie if selected. -|`candlestickColor`|Color32(235, 84, 84, 255)||K线图阳线(涨)填充色 -|`candlestickColor0`|Color32(71, 178, 98, 255)||K线图阴线(跌)填充色 -|`candlestickBorderWidth`|1||K线图边框宽度 -|`candlestickBorderColor`|Color32(235, 84, 84, 255)||K线图阳线(跌)边框色 -|`candlestickBorderColor0`|Color32(71, 178, 98, 255)||K线图阴线(跌)边框色 +|lineWidth|||the color of text. +|lineSymbolSize|||the symbol size of line serie. +|scatterSymbolSize|||the symbol size of scatter serie. +|pieTooltipExtraRadius|||the extra radius of pie when actived by tooltip. +|selectedRate|1.3f||the rate of symbol size of line or scatter serie. +|pieSelectedOffset|||the center offset of pie if selected. +|candlestickColor|Color32(235, 84, 84, 255)||K线图阳线(涨)填充色 +|candlestickColor0|Color32(71, 178, 98, 255)||K线图阴线(跌)填充色 +|candlestickBorderWidth|1||K线图边框宽度 +|candlestickBorderColor|Color32(235, 84, 84, 255)||K线图阳线(跌)边框色 +|candlestickBorderColor0|Color32(71, 178, 98, 255)||K线图阴线(跌)边框色 -## `Settings` +## Settings Inherits or Implemented: [MainComponent](#MainComponent) @@ -1203,37 +1203,37 @@ Global parameter setting component. The default value can be used in general, an |field|default|since|comment| |--|--|--|--| -|`show`|true|| -|`maxPainter`|10||max painter. -|`reversePainter`|false||Painter是否逆序。逆序时index大的serie最先绘制。 -|`basePainterMaterial`|||Base Pointer 材质球,设置后会影响Axis等。 -|`seriePainterMaterial`|||Serie Pointer 材质球,设置后会影响所有Serie。 -|`upperPainterMaterial`|||Upper Pointer 材质球。 -|`topPainterMaterial`|||Top Pointer 材质球。 -|`lineSmoothStyle`|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. -|`lineSmoothness`|2f||Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase. -|`lineSegmentDistance`|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. -|`cicleSmoothness`|2f||the smoothess of cricle. -|`legendIconLineWidth`|2||the width of line serie legend. -|`legendIconCornerRadius`|||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)). -|`axisMaxSplitNumber`|50|v3.1.0|the max splitnumber of axis. +|show|true|| +|maxPainter|10||max painter. +|reversePainter|false||Painter是否逆序。逆序时index大的serie最先绘制。 +|basePainterMaterial|||Base Pointer 材质球,设置后会影响Axis等。 +|seriePainterMaterial|||Serie Pointer 材质球,设置后会影响所有Serie。 +|upperPainterMaterial|||Upper Pointer 材质球。 +|topPainterMaterial|||Top Pointer 材质球。 +|lineSmoothStyle|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. +|lineSmoothness|2f||Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase. +|lineSegmentDistance|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. +|cicleSmoothness|2f||the smoothess of cricle. +|legendIconLineWidth|2||the width of line serie legend. +|legendIconCornerRadius|||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)). +|axisMaxSplitNumber|50|v3.1.0|the max splitnumber of axis. -## `SimplifiedBar` +## SimplifiedBar Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) -## `SimplifiedCandlestick` +## SimplifiedCandlestick Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) -## `SimplifiedLine` +## SimplifiedLine Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) -## `SingleAxis` +## SingleAxis Inherits or Implemented: [Axis](#Axis),[IUpdateRuntimeData](#IUpdateRuntimeData) @@ -1241,29 +1241,29 @@ Single axis. |field|default|since|comment| |--|--|--|--| -|`orient`|||Orientation of the axis. By default, it's 'Horizontal'. You can set it to be 'Vertical' to make a vertical axis.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`left`|0.1f||Distance between component and the left side of the container. -|`right`|0.1f||Distance between component and the right side of the container. -|`top`|0f||Distance between component and the top side of the container. -|`bottom`|0.2f||Distance between component and the bottom side of the container. -|`width`|0||width of axis. -|`height`|50||height of axis. +|orient|||Orientation of the axis. By default, it's 'Horizontal'. You can set it to be 'Vertical' to make a vertical axis.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|left|0.1f||Distance between component and the left side of the container. +|right|0.1f||Distance between component and the right side of the container. +|top|0f||Distance between component and the top side of the container. +|bottom|0.2f||Distance between component and the bottom side of the container. +|width|0||width of axis. +|height|50||height of axis. -## `SingleAxisCoord` +## SingleAxisCoord Inherits or Implemented: [CoordSystem](#CoordSystem) -## `StageColor` +## StageColor Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`percent`|||结束位置百分比。 -|`color`|||颜色。 +|percent|||结束位置百分比。 +|color|||颜色。 -## `StateStyle` +## StateStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1273,20 +1273,20 @@ the state style of serie. |field|default|since|comment| |--|--|--|--| -|`show`|true||是否启用高亮样式。 -|`label`|||图形文本标签。 [LabelStyle](#LabelStyle)| -|`labelLine`|||图形文本引导线样式。 [LabelLine](#LabelLine)| -|`itemStyle`|||图形样式。 [ItemStyle](#ItemStyle)| -|`lineStyle`|||折线样式。 [LineStyle](#LineStyle)| -|`areaStyle`|||区域样式。 [AreaStyle](#AreaStyle)| -|`symbol`|||标记样式。 [SerieSymbol](#SerieSymbol)| +|show|true||是否启用高亮样式。 +|label|||图形文本标签。 [LabelStyle](#LabelStyle)| +|labelLine|||图形文本引导线样式。 [LabelLine](#LabelLine)| +|itemStyle|||图形样式。 [ItemStyle](#ItemStyle)| +|lineStyle|||折线样式。 [LineStyle](#LineStyle)| +|areaStyle|||区域样式。 [AreaStyle](#AreaStyle)| +|symbol|||标记样式。 [SerieSymbol](#SerieSymbol)| -## `SubTitleTheme` +## SubTitleTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) -## `SymbolStyle` +## SymbolStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1294,18 +1294,18 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether the symbol is showed. -|`type`|||the type of symbol.
`SymbolType`:
- `None`: 不显示标记。
- `Custom`: 自定义标记。
- `Circle`: 圆形。
- `EmptyCircle`: 空心圆。
- `Rect`: 正方形。可通过设置`itemStyle`的`cornerRadius`变成圆角矩形。
- `EmptyRect`: 空心正方形。
- `Triangle`: 三角形。
- `EmptyTriangle`: 空心三角形。
- `Diamond`: 菱形。
- `EmptyDiamond`: 空心菱形。
- `Arrow`: 箭头。
- `EmptyArrow`: 空心箭头。
| -|`size`|0f||the size of symbol. -|`gap`|0||the gap of symbol and line segment. -|`width`|0f||图形的宽。 -|`height`|0f||图形的高。 -|`offset`|Vector2.zero||图形的偏移。 -|`image`|||自定义的标记图形。 -|`imageType`|||the fill type of image. -|`color`|||图形的颜色。 +|show|true||Whether the symbol is showed. +|type|||the type of symbol.
`SymbolType`:
- `None`: 不显示标记。
- `Custom`: 自定义标记。
- `Circle`: 圆形。
- `EmptyCircle`: 空心圆。
- `Rect`: 正方形。可通过设置`itemStyle`的`cornerRadius`变成圆角矩形。
- `EmptyRect`: 空心正方形。
- `Triangle`: 三角形。
- `EmptyTriangle`: 空心三角形。
- `Diamond`: 菱形。
- `EmptyDiamond`: 空心菱形。
- `Arrow`: 箭头。
- `EmptyArrow`: 空心箭头。
| +|size|0f||the size of symbol. +|gap|0||the gap of symbol and line segment. +|width|0f||图形的宽。 +|height|0f||图形的高。 +|offset|Vector2.zero||图形的偏移。 +|image|||自定义的标记图形。 +|imageType|||the fill type of image. +|color|||图形的颜色。 -## `TextLimit` +## TextLimit Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1313,19 +1313,19 @@ Text character limitation and adaptation component. When the length of the text |field|default|since|comment| |--|--|--|--| -|`enable`|false||Whether to enable text limit. -|`maxWidth`|0||Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom. -|`gap`|1||White pixel distance at both ends. -|`suffix`|||Suffixes when the length exceeds. +|enable|false||Whether to enable text limit. +|maxWidth|0||Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom. +|gap|1||White pixel distance at both ends. +|suffix|||Suffixes when the length exceeds. -## `TextPadding` +## TextPadding Inherits or Implemented: [Padding](#Padding) Settings related to text. -## `TextStyle` +## TextStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1333,23 +1333,23 @@ Settings related to text. |field|default|since|comment| |--|--|--|--| -|`show`|true||Settings related to text. -|`font`|||the font of text. When `null`, the theme's font is used by default. -|`autoWrap`|false||是否自动换行。 -|`autoAlign`|true||文本是否让系统自动选对齐方式。为false时才会用alignment。 -|`rotate`|0||Rotation of text. -|`autoColor`|false||是否开启自动颜色。当开启时,会自动设置颜色。 -|`color`|||the color of text. -|`fontSize`|0||font size. -|`fontStyle`|||font style. -|`lineSpacing`|1f||text line spacing. -|`alignment`|||对齐方式。 -|`tMPFont`|||the font of textmeshpro. -|`tMPFontStyle`||| -|`tMPAlignment`||| -|`tMPSpriteAsset`||v3.1.0| +|show|true||Settings related to text. +|font|||the font of text. When `null`, the theme's font is used by default. +|autoWrap|false||是否自动换行。 +|autoAlign|true||文本是否让系统自动选对齐方式。为false时才会用alignment。 +|rotate|0||Rotation of text. +|autoColor|false||是否开启自动颜色。当开启时,会自动设置颜色。 +|color|||the color of text. +|fontSize|0||font size. +|fontStyle|||font style. +|lineSpacing|1f||text line spacing. +|alignment|||对齐方式。 +|tMPFont|||the font of textmeshpro. +|tMPFontStyle||| +|tMPAlignment||| +|tMPSpriteAsset||v3.1.0| -## `Theme` +## Theme Inherits or Implemented: [ScriptableObject](#ScriptableObject) @@ -1357,24 +1357,24 @@ Theme. |field|default|since|comment| |--|--|--|--| -|`themeType`|||the theme of chart.
`ThemeType`:
- `Default`: 默认主题。
- `Light`: 亮主题。
- `Dark`: 暗主题。
- `Custom`: 自定义主题。
| -|`themeName`|||the name of theme. -|`font`|||the font of chart text。 -|`tMPFont`|||the font of chart text。 -|`contrastColor`|||the contrast color of chart. -|`backgroundColor`|||the background color of chart. -|`colorPalette`|||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. -|`common`||| [ComponentTheme](#ComponentTheme)| -|`title`||| [TitleTheme](#TitleTheme)| -|`subTitle`||| [SubTitleTheme](#SubTitleTheme)| -|`legend`||| [LegendTheme](#LegendTheme)| -|`axis`||| [AxisTheme](#AxisTheme)| -|`tooltip`||| [TooltipTheme](#TooltipTheme)| -|`dataZoom`||| [DataZoomTheme](#DataZoomTheme)| -|`visualMap`||| [VisualMapTheme](#VisualMapTheme)| -|`serie`||| [SerieTheme](#SerieTheme)| +|themeType|||the theme of chart.
`ThemeType`:
- `Default`: 默认主题。
- `Light`: 亮主题。
- `Dark`: 暗主题。
- `Custom`: 自定义主题。
| +|themeName|||the name of theme. +|font|||the font of chart text。 +|tMPFont|||the font of chart text。 +|contrastColor|||the contrast color of chart. +|backgroundColor|||the background color of chart. +|colorPalette|||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. +|common||| [ComponentTheme](#ComponentTheme)| +|title||| [TitleTheme](#TitleTheme)| +|subTitle||| [SubTitleTheme](#SubTitleTheme)| +|legend||| [LegendTheme](#LegendTheme)| +|axis||| [AxisTheme](#AxisTheme)| +|tooltip||| [TooltipTheme](#TooltipTheme)| +|dataZoom||| [DataZoomTheme](#DataZoomTheme)| +|visualMap||| [VisualMapTheme](#VisualMapTheme)| +|serie||| [SerieTheme](#SerieTheme)| -## `ThemeStyle` +## ThemeStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1382,15 +1382,15 @@ Theme. |field|default|since|comment| |--|--|--|--| -|`show`|true|| -|`sharedTheme`|||the asset of theme. [Theme](#Theme)| -|`transparentBackground`|false||Whether the background color is transparent. When true, the background color is not drawn. -|`enableCustomTheme`|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. -|`customFont`||| -|`customBackgroundColor`|||the custom background color of chart. -|`customColorPalette`||| +|show|true|| +|sharedTheme|||the asset of theme. [Theme](#Theme)| +|transparentBackground|false||Whether the background color is transparent. When true, the background color is not drawn. +|enableCustomTheme|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. +|customFont||| +|customBackgroundColor|||the custom background color of chart. +|customColorPalette||| -## `Title` +## Title Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPropertyChanged) @@ -1398,27 +1398,27 @@ Title component, including main title and subtitle. |field|default|since|comment| |--|--|--|--| -|`show`|true||[default:true] Set this to false to prevent the title from showing. -|`text`|||The main title text, supporting \n for newlines. -|`subText`|||Subtitle text, supporting for \n for newlines. -|`labelStyle`|||The text style of main title. [LabelStyle](#LabelStyle)| -|`subLabelStyle`|||The text style of sub title. [LabelStyle](#LabelStyle)| -|`itemGap`|0||[default:8] The gap between the main title and subtitle. -|`location`|||The location of title component. [Location](#Location)| +|show|true||[default:true] Set this to false to prevent the title from showing. +|text|||The main title text, supporting \n for newlines. +|subText|||Subtitle text, supporting for \n for newlines. +|labelStyle|||The text style of main title. [LabelStyle](#LabelStyle)| +|subLabelStyle|||The text style of sub title. [LabelStyle](#LabelStyle)| +|itemGap|0||[default:8] The gap between the main title and subtitle. +|location|||The location of title component. [Location](#Location)| -## `TitleStyle` +## TitleStyle Inherits or Implemented: [LabelStyle](#LabelStyle),[ISerieDataComponent](#ISerieDataComponent),[ISerieExtraComponent](#ISerieExtraComponent) the title of serie. -## `TitleTheme` +## TitleTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) -## `Tooltip` +## Tooltip Inherits or Implemented: [MainComponent](#MainComponent) @@ -1426,53 +1426,53 @@ Tooltip component. |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether to show the tooltip component. -|`type`|||Indicator type.
`Tooltip.Type`:
- `Line`: line indicator.
- `Shadow`: shadow crosshair indicator.
- `None`: no indicator displayed.
- `Corss`: crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes.
| -|`trigger`|||Type of triggering.
`Tooltip.Trigger`:
- `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.
| -|`position`||v3.3.0|Type of position.
`Tooltip.Position`:
- `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`:
| -|`itemFormatter`|||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.
{.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}"
-|`titleFormatter`|||The string template formatter for the tooltip title content. Support for wrapping lines with \n. The placeholder {I} can be set separately to indicate that the title is ignored and not displayed. Template see itemFormatter. -|`marker`|||the marker of serie. -|`fixedWidth`|0||Fixed width. Higher priority than minWidth. -|`fixedHeight`|0||Fixed height. Higher priority than minHeight. -|`minWidth`|0||Minimum width. If fixedWidth has a value, get fixedWidth first. -|`minHeight`|0||Minimum height. If fixedHeight has a value, take priority over fixedHeight. -|`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'. -|`paddingLeftRight`|10||the text padding of left and right. defaut:5. -|`paddingTopBottom`|10||the text padding of top and bottom. defaut:5. -|`ignoreDataShow`|false||Whether to show ignored data on tooltip. -|`ignoreDataDefaultContent`|||The default display character information for ignored data. -|`showContent`|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. -|`alwayShowContent`|false||Whether to trigger after always display. -|`offset`|Vector2(18f, -25f)||The position offset of tooltip relative to the mouse position. -|`backgroundImage`|||The background image of tooltip. -|`backgroundType`|||The background type of tooltip. -|`backgroundColor`|||The background color of tooltip. -|`borderWidth`|2f||the width of tooltip border. -|`fixedX`|0f||the x positionn of fixedX. -|`fixedY`|0.7f||the y position of fixedY. -|`titleHeight`|25f||height of title text. -|`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. +|show|true||Whether to show the tooltip component. +|type|||Indicator type.
`Tooltip.Type`:
- `Line`: line indicator.
- `Shadow`: shadow crosshair indicator.
- `None`: no indicator displayed.
- `Corss`: crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes.
| +|trigger|||Type of triggering.
`Tooltip.Trigger`:
- `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.
| +|position||v3.3.0|Type of position.
`Tooltip.Position`:
- `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`:
| +|itemFormatter|||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.
{.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}"
+|titleFormatter|||The string template formatter for the tooltip title content. Support for wrapping lines with \n. The placeholder {I} can be set separately to indicate that the title is ignored and not displayed. Template see itemFormatter. +|marker|||the marker of serie. +|fixedWidth|0||Fixed width. Higher priority than minWidth. +|fixedHeight|0||Fixed height. Higher priority than minHeight. +|minWidth|0||Minimum width. If fixedWidth has a value, get fixedWidth first. +|minHeight|0||Minimum height. If fixedHeight has a value, take priority over fixedHeight. +|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'. +|paddingLeftRight|10||the text padding of left and right. defaut:5. +|paddingTopBottom|10||the text padding of top and bottom. defaut:5. +|ignoreDataShow|false||Whether to show ignored data on tooltip. +|ignoreDataDefaultContent|||The default display character information for ignored data. +|showContent|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. +|alwayShowContent|false||Whether to trigger after always display. +|offset|Vector2(18f, -25f)||The position offset of tooltip relative to the mouse position. +|backgroundImage|||The background image of tooltip. +|backgroundType|||The background type of tooltip. +|backgroundColor|||The background color of tooltip. +|borderWidth|2f||the width of tooltip border. +|fixedX|0f||the x positionn of fixedX. +|fixedY|0.7f||the y position of fixedY. +|titleHeight|25f||height of title text. +|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. -## `TooltipTheme` +## TooltipTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) |field|default|since|comment| |--|--|--|--| -|`lineType`|||the type of line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`lineWidth`|1f||the width of line. -|`lineColor`|||the color of line. -|`areaColor`|||the color of line. -|`labelTextColor`|||the text color of tooltip cross indicator's axis label. -|`labelBackgroundColor`|||the background color of tooltip cross indicator's axis label. +|lineType|||the type of line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|lineWidth|1f||the width of line. +|lineColor|||the color of line. +|areaColor|||the color of line. +|labelTextColor|||the text color of tooltip cross indicator's axis label. +|labelBackgroundColor|||the background color of tooltip cross indicator's axis label. -## `VisualMap` +## VisualMap Inherits or Implemented: [MainComponent](#MainComponent) @@ -1480,116 +1480,116 @@ VisualMap component. Mapping data to visual elements such as colors. |field|default|since|comment| |--|--|--|--| -|`show`|true||Whether to enable components. -|`showUI`|false||Whether to display components. If set to false, it will not show up, but the data mapping function still exists. -|`type`|||the type of visualmap component.
`VisualMap.Type`:
- `Continuous`: 连续型。
- `Piecewise`: 分段型。
| -|`selectedMode`|||the selected mode for Piecewise visualMap.
`VisualMap.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
| -|`serieIndex`|0||the serie index of visualMap. -|`min`|0||范围最小值 -|`max`|0||范围最大值 -|`range`|||Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max]. -|`text`|||Text on both ends. -|`textGap`|||The distance between the two text bodies. -|`splitNumber`|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. -|`calculable`|false||Whether the handle used for dragging is displayed (the handle can be dragged to adjust the selected range). -|`realtime`|true||Whether to update in real time while dragging. -|`itemWidth`|20f||The width of the figure, that is, the width of the color bar. -|`itemHeight`|140f||The height of the figure, that is, the height of the color bar. -|`itemGap`|10f||每个图元之间的间隔距离。 -|`borderWidth`|0||Border line width. -|`dimension`|-1||Specifies "which dimension" of the data to map to the visual element. "Data" is series.data. -|`hoverLink`|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. -|`autoMinMax`|true||Automatically set min, Max value 自动设置min,max的值 -|`orient`|||Specify whether the layout of component is horizontal or vertical.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`location`|||The location of component. [Location](#Location)| -|`workOnLine`|true||Whether the visualmap is work on linestyle of linechart. -|`workOnArea`|false||Whether the visualmap is work on areaStyle of linechart. -|`outOfRange`|||Defines a visual color outside of the selected range. -|`inRange`|||分段式每一段的相关配置。 +|show|true||Whether to enable components. +|showUI|false||Whether to display components. If set to false, it will not show up, but the data mapping function still exists. +|type|||the type of visualmap component.
`VisualMap.Type`:
- `Continuous`: 连续型。
- `Piecewise`: 分段型。
| +|selectedMode|||the selected mode for Piecewise visualMap.
`VisualMap.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
| +|serieIndex|0||the serie index of visualMap. +|min|0||范围最小值 +|max|0||范围最大值 +|range|||Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max]. +|text|||Text on both ends. +|textGap|||The distance between the two text bodies. +|splitNumber|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. +|calculable|false||Whether the handle used for dragging is displayed (the handle can be dragged to adjust the selected range). +|realtime|true||Whether to update in real time while dragging. +|itemWidth|20f||The width of the figure, that is, the width of the color bar. +|itemHeight|140f||The height of the figure, that is, the height of the color bar. +|itemGap|10f||每个图元之间的间隔距离。 +|borderWidth|0||Border line width. +|dimension|-1||Specifies "which dimension" of the data to map to the visual element. "Data" is series.data. +|hoverLink|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. +|autoMinMax|true||Automatically set min, Max value 自动设置min,max的值 +|orient|||Specify whether the layout of component is horizontal or vertical.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|location|||The location of component. [Location](#Location)| +|workOnLine|true||Whether the visualmap is work on linestyle of linechart. +|workOnArea|false||Whether the visualmap is work on areaStyle of linechart. +|outOfRange|||Defines a visual color outside of the selected range. +|inRange|||分段式每一段的相关配置。 -## `VisualMapRange` +## VisualMapRange Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`min`|||范围最小值 -|`max`|||范围最大值 -|`label`|||文字描述 -|`color`|||颜色 +|min|||范围最小值 +|max|||范围最大值 +|label|||文字描述 +|color|||颜色 -## `VisualMapTheme` +## VisualMapTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) |field|default|since|comment| |--|--|--|--| -|`borderWidth`|||the width of border. -|`borderColor`|||the color of dataZoom border. -|`backgroundColor`|||the background color of visualmap. -|`triangeLen`|20f||可视化组件的调节三角形边长。 +|borderWidth|||the width of border. +|borderColor|||the color of dataZoom border. +|backgroundColor|||the background color of visualmap. +|triangeLen|20f||可视化组件的调节三角形边长。 -## `XAxis` +## XAxis Inherits or Implemented: [Axis](#Axis) The x axis in cartesian(rectangular) coordinate. -## `XCResourcesImporter` +## XCResourcesImporter -## `XCSettings` +## XCSettings Inherits or Implemented: [ScriptableObject](#ScriptableObject) |field|default|since|comment| |--|--|--|--| -|`lang`||| [Lang](#Lang)| -|`font`||| -|`tMPFont`||| -|`fontSizeLv1`|28||一级字体大小。 -|`fontSizeLv2`|24|| -|`fontSizeLv3`|20|| -|`fontSizeLv4`|18|| -|`axisLineType`|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`axisLineWidth`|0.8f|| -|`axisSplitLineType`|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`axisSplitLineWidth`|0.8f|| -|`axisTickWidth`|0.8f|| -|`axisTickLength`|5f|| -|`gaugeAxisLineWidth`|15f|| -|`gaugeAxisSplitLineWidth`|0.8f|| -|`gaugeAxisSplitLineLength`|15f|| -|`gaugeAxisTickWidth`|0.8f|| -|`gaugeAxisTickLength`|5f|| -|`tootipLineWidth`|0.8f|| -|`dataZoomBorderWidth`|0.5f|| -|`dataZoomDataLineWidth`|0.5f|| -|`visualMapBorderWidth`|0f|| -|`serieLineWidth`|1.8f|| -|`serieLineSymbolSize`|5f|| -|`serieScatterSymbolSize`|20f|| -|`serieSelectedRate`|1.3f|| -|`serieCandlestickBorderWidth`|1f|| -|`editorShowAllListData`|false|| -|`maxPainter`|10|| -|`lineSmoothStyle`|3f|| -|`lineSmoothness`|2f|| -|`lineSegmentDistance`|3f|| -|`cicleSmoothness`|2f|| -|`visualMapTriangeLen`|20f|| -|`pieTooltipExtraRadius`|8f|| -|`pieSelectedOffset`|8f|| -|`customThemes`||| +|lang||| [Lang](#Lang)| +|font||| +|tMPFont||| +|fontSizeLv1|28||一级字体大小。 +|fontSizeLv2|24|| +|fontSizeLv3|20|| +|fontSizeLv4|18|| +|axisLineType|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|axisLineWidth|0.8f|| +|axisSplitLineType|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|axisSplitLineWidth|0.8f|| +|axisTickWidth|0.8f|| +|axisTickLength|5f|| +|gaugeAxisLineWidth|15f|| +|gaugeAxisSplitLineWidth|0.8f|| +|gaugeAxisSplitLineLength|15f|| +|gaugeAxisTickWidth|0.8f|| +|gaugeAxisTickLength|5f|| +|tootipLineWidth|0.8f|| +|dataZoomBorderWidth|0.5f|| +|dataZoomDataLineWidth|0.5f|| +|visualMapBorderWidth|0f|| +|serieLineWidth|1.8f|| +|serieLineSymbolSize|5f|| +|serieScatterSymbolSize|20f|| +|serieSelectedRate|1.3f|| +|serieCandlestickBorderWidth|1f|| +|editorShowAllListData|false|| +|maxPainter|10|| +|lineSmoothStyle|3f|| +|lineSmoothness|2f|| +|lineSegmentDistance|3f|| +|cicleSmoothness|2f|| +|visualMapTriangeLen|20f|| +|pieTooltipExtraRadius|8f|| +|pieSelectedOffset|8f|| +|customThemes||| -## `YAxis` +## YAxis Inherits or Implemented: [Axis](#Axis) The x axis in cartesian(rectangular) coordinate. -[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
-[XCharts API](XChartsAPI-EN.md)
+[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
+[XCharts API](XChartsAPI-EN.md)
[XCharts FAQ](XChartsFAQ-EN.md) diff --git a/Documentation/XChartsConfiguration-ZH.md b/Documentation/XChartsConfiguration-ZH.md index af9a78cd..41b40b68 100644 --- a/Documentation/XChartsConfiguration-ZH.md +++ b/Documentation/XChartsConfiguration-ZH.md @@ -1,7 +1,7 @@ # 配置项手册 -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XChartsAPI接口](XChartsAPI-ZH.md)
+[XCharts主页](https://github.com/XCharts-Team/XCharts)
+[XChartsAPI接口](XChartsAPI-ZH.md)
[XCharts问答](XChartsFAQ-ZH.md) ## Serie 系列 @@ -167,7 +167,7 @@ - [XCResourcesImporter](#XCResourcesImporter) - [XCSettings](#XCSettings) -## `AngleAxis` +## AngleAxis Inherits or Implemented: [Axis](#Axis) @@ -175,14 +175,14 @@ Inherits or Implemented: [Axis](#Axis) |field|default|since|comment| |--|--|--|--| -|`startAngle`|0||起始刻度的角度,默认为 0 度,即圆心的正右方。 +|startAngle|0||起始刻度的角度,默认为 0 度,即圆心的正右方。 -## `AngleAxisTheme` +## AngleAxisTheme Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) -## `AnimationStyle` +## AnimationStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -190,19 +190,19 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`enable`|true||是否开启动画效果。 -|`type`|||动画类型。
`AnimationType`:
- `Default`: 默认。内部会根据实际情况选择一种动画播放方式。
- `LeftToRight`: 从左往右播放动画。
- `BottomToTop`: 从下往上播放动画。
- `InsideOut`: 由内到外播放动画。
- `AlongPath`: 沿着路径播放动画。
- `Clockwise`: 顺时针播放动画。
| -|`easting`|||动画的缓动效果。
`AnimationEasing`:
- `Linear`:
| -|`threshold`|2000||是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。 -|`fadeInDuration`|1000||设定的渐入动画时长(毫秒)。如果要设置单个数据项的渐入时长,可以用代码定制:customFadeInDuration。 -|`fadeInDelay`|0||渐入动画延时(毫秒)。如果要设置单个数据项的延时,可以用代码定制:customFadeInDelay。 -|`fadeOutDuration`|1000f||设定的渐出动画时长(毫秒)。如果要设置单个数据项的渐出时长,可以用代码定制:customFadeOutDuration。 -|`fadeOutDelay`|0||渐出动画延时(毫秒)。如果要设置单个数据项的延时,可以用代码定制:customFadeOutDelay。 -|`dataChangeEnable`|true||是否开启数据变更动画。 -|`dataChangeDuration`|500||数据变更的动画时长(毫秒)。 -|`actualDuration`|||实际的动画时长(毫秒)。 +|enable|true||是否开启动画效果。 +|type|||动画类型。
`AnimationType`:
- `Default`: 默认。内部会根据实际情况选择一种动画播放方式。
- `LeftToRight`: 从左往右播放动画。
- `BottomToTop`: 从下往上播放动画。
- `InsideOut`: 由内到外播放动画。
- `AlongPath`: 沿着路径播放动画。
- `Clockwise`: 顺时针播放动画。
| +|easting|||动画的缓动效果。
`AnimationEasing`:
- `Linear`:
| +|threshold|2000||是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。 +|fadeInDuration|1000||设定的渐入动画时长(毫秒)。如果要设置单个数据项的渐入时长,可以用代码定制:customFadeInDuration。 +|fadeInDelay|0||渐入动画延时(毫秒)。如果要设置单个数据项的延时,可以用代码定制:customFadeInDelay。 +|fadeOutDuration|1000f||设定的渐出动画时长(毫秒)。如果要设置单个数据项的渐出时长,可以用代码定制:customFadeOutDuration。 +|fadeOutDelay|0||渐出动画延时(毫秒)。如果要设置单个数据项的延时,可以用代码定制:customFadeOutDelay。 +|dataChangeEnable|true||是否开启数据变更动画。 +|dataChangeDuration|500||数据变更的动画时长(毫秒)。 +|actualDuration|||实际的动画时长(毫秒)。 -## `AreaStyle` +## AreaStyle Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -210,26 +210,26 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示区域填充。 -|`origin`|||区域填充的起始位置。
`AreaStyle.AreaOrigin`:
- `Auto`: 填充坐标轴轴线到数据间的区域。
- `Start`: 填充坐标轴底部到数据间的区域。
- `End`: 填充坐标轴顶部到数据间的区域。
| -|`color`|||区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。 -|`toColor`|||渐变色的终点颜色。 -|`opacity`|0.6f||图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 -|`innerFill`||v3.2.0|是否只填充多边形区域。目前只支持凸多边形。 +|show|true||是否显示区域填充。 +|origin|||区域填充的起始位置。
`AreaStyle.AreaOrigin`:
- `Auto`: 填充坐标轴轴线到数据间的区域。
- `Start`: 填充坐标轴底部到数据间的区域。
- `End`: 填充坐标轴顶部到数据间的区域。
| +|color|||区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。 +|toColor|||渐变色的终点颜色。 +|opacity|0.6f||图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 +|innerFill||v3.2.0|是否只填充多边形区域。目前只支持凸多边形。 -## `ArrowStyle` +## ArrowStyle Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`width`|10||箭头宽。 -|`height`|15||箭头高。 -|`offset`|0||箭头偏移。 -|`dent`|3||箭头的凹度。 -|`color`|Color.clear||箭头颜色。 +|width|10||箭头宽。 +|height|15||箭头高。 +|offset|0||箭头偏移。 +|dent|3||箭头的凹度。 +|color|Color.clear||箭头颜色。 -## `Axis` +## Axis Inherits or Implemented: [MainComponent](#MainComponent) @@ -237,38 +237,38 @@ Inherits or Implemented: [MainComponent](#MainComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示坐标轴。 -|`type`|||坐标轴类型。
`Axis.AxisType`:
- `Value`: 数值轴。适用于连续数据。
- `Category`: 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。
- `Log`: 对数轴。适用于对数数据。
- `Time`: 时间轴。适用于连续的时序数据。
| -|`minMaxType`|||坐标轴刻度最大最小值显示类型。
`Axis.AxisMinMaxType`:
- `Default`: 0-最大值。
- `MinMax`: 最小值-最大值。
- `Custom`: 自定义最小值最大值。
| -|`gridIndex`|||坐标轴所在的 grid 的索引,默认位于第一个 grid。 -|`polarIndex`|||坐标轴所在的 ploar 的索引,默认位于第一个 polar。 -|`parallelIndex`|||坐标轴所在的 parallel 的索引,默认位于第一个 parallel。 -|`position`|||坐标轴在Grid中的位置。
`Axis.AxisPosition`:
- `Left`: 坐标轴在Grid中的位置
- `Right`: 坐标轴在Grid中的位置
- `Bottom`: 坐标轴在Grid中的位置
- `Top`: 坐标轴在Grid中的位置
| -|`offset`|||坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。 -|`min`|||设定的坐标轴刻度最小值,当minMaxType为Custom时有效。 -|`max`|||设定的坐标轴刻度最大值,当minMaxType为Custom时有效。 -|`splitNumber`|0||坐标轴的期望的分割段数。默认为0表示自动分割。 -|`interval`|0||强制设置坐标轴分割间隔。无法在类目轴中使用。 -|`boundaryGap`|true||坐标轴两边是否留白。只对类目轴有效。 -|`maxCache`|0||The first data will be remove when the size of axis data is larger then maxCache. -|`logBase`|10||对数轴的底数,只在对数轴(type:'Log')中有效。 -|`logBaseE`|false||对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。 -|`ceilRate`|0||最大最小值向上取整的倍率。默认为0时自动计算。 -|`inverse`|false||是否反向坐标轴。在类目轴中无效。 -|`clockwise`|true||刻度增长是否按顺时针,默认顺时针。 -|`insertDataToHead`|||添加新数据时是在列表的头部还是尾部加入。 -|`icons`|||类目数据对应的图标。 -|`data`|||类目数据,在类目轴(type: 'category')中有效。 -|`axisLine`|||坐标轴轴线。 [AxisLine](#AxisLine)| -|`axisName`|||坐标轴名称。 [AxisName](#AxisName)| -|`axisTick`|||坐标轴刻度。 [AxisTick](#AxisTick)| -|`axisLabel`|||坐标轴刻度标签。 [AxisLabel](#AxisLabel)| -|`splitLine`|||坐标轴分割线。 [AxisSplitLine](#AxisSplitLine)| -|`splitArea`|||坐标轴分割区域。 [AxisSplitArea](#AxisSplitArea)| -|`minorTick`||v3.2.0|坐标轴次刻度。 [AxisMinorTick](#AxisMinorTick)| -|`minorSplitLine`||v3.2.0|坐标轴次分割线。 [AxisMinorSplitLine](#AxisMinorSplitLine)| +|show|true||是否显示坐标轴。 +|type|||坐标轴类型。
`Axis.AxisType`:
- `Value`: 数值轴。适用于连续数据。
- `Category`: 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。
- `Log`: 对数轴。适用于对数数据。
- `Time`: 时间轴。适用于连续的时序数据。
| +|minMaxType|||坐标轴刻度最大最小值显示类型。
`Axis.AxisMinMaxType`:
- `Default`: 0-最大值。
- `MinMax`: 最小值-最大值。
- `Custom`: 自定义最小值最大值。
| +|gridIndex|||坐标轴所在的 grid 的索引,默认位于第一个 grid。 +|polarIndex|||坐标轴所在的 ploar 的索引,默认位于第一个 polar。 +|parallelIndex|||坐标轴所在的 parallel 的索引,默认位于第一个 parallel。 +|position|||坐标轴在Grid中的位置。
`Axis.AxisPosition`:
- `Left`: 坐标轴在Grid中的位置
- `Right`: 坐标轴在Grid中的位置
- `Bottom`: 坐标轴在Grid中的位置
- `Top`: 坐标轴在Grid中的位置
| +|offset|||坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。 +|min|||设定的坐标轴刻度最小值,当minMaxType为Custom时有效。 +|max|||设定的坐标轴刻度最大值,当minMaxType为Custom时有效。 +|splitNumber|0||坐标轴的期望的分割段数。默认为0表示自动分割。 +|interval|0||强制设置坐标轴分割间隔。无法在类目轴中使用。 +|boundaryGap|true||坐标轴两边是否留白。只对类目轴有效。 +|maxCache|0||The first data will be remove when the size of axis data is larger then maxCache. +|logBase|10||对数轴的底数,只在对数轴(type:'Log')中有效。 +|logBaseE|false||对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。 +|ceilRate|0||最大最小值向上取整的倍率。默认为0时自动计算。 +|inverse|false||是否反向坐标轴。在类目轴中无效。 +|clockwise|true||刻度增长是否按顺时针,默认顺时针。 +|insertDataToHead|||添加新数据时是在列表的头部还是尾部加入。 +|icons|||类目数据对应的图标。 +|data|||类目数据,在类目轴(type: 'category')中有效。 +|axisLine|||坐标轴轴线。 [AxisLine](#AxisLine)| +|axisName|||坐标轴名称。 [AxisName](#AxisName)| +|axisTick|||坐标轴刻度。 [AxisTick](#AxisTick)| +|axisLabel|||坐标轴刻度标签。 [AxisLabel](#AxisLabel)| +|splitLine|||坐标轴分割线。 [AxisSplitLine](#AxisSplitLine)| +|splitArea|||坐标轴分割区域。 [AxisSplitArea](#AxisSplitArea)| +|minorTick||v3.2.0|坐标轴次刻度。 [AxisMinorTick](#AxisMinorTick)| +|minorSplitLine||v3.2.0|坐标轴次分割线。 [AxisMinorSplitLine](#AxisMinorSplitLine)| -## `AxisLabel` +## AxisLabel Inherits or Implemented: [LabelStyle](#LabelStyle) @@ -276,15 +276,15 @@ Inherits or Implemented: [LabelStyle](#LabelStyle) |field|default|since|comment| |--|--|--|--| -|`interval`|0||坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 -|`inside`|false||刻度标签是否朝内,默认朝外。 -|`showAsPositiveNumber`|false||将负数数值显示为正数。一般和`Serie`的`showAsPositiveNumber`配合使用。 -|`onZero`|false||刻度标签显示在0刻度上。 -|`showStartLabel`|true||是否显示第一个文本。 -|`showEndLabel`|true||是否显示最后一个文本。 -|`textLimit`|||文本限制。 [TextLimit](#TextLimit)| +|interval|0||坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 +|inside|false||刻度标签是否朝内,默认朝外。 +|showAsPositiveNumber|false||将负数数值显示为正数。一般和`Serie`的`showAsPositiveNumber`配合使用。 +|onZero|false||刻度标签显示在0刻度上。 +|showStartLabel|true||是否显示第一个文本。 +|showEndLabel|true||是否显示最后一个文本。 +|textLimit|||文本限制。 [TextLimit](#TextLimit)| -## `AxisLine` +## AxisLine Inherits or Implemented: [BaseLine](#BaseLine) @@ -292,11 +292,11 @@ Inherits or Implemented: [BaseLine](#BaseLine) |field|default|since|comment| |--|--|--|--| -|`onZero`|||X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。 -|`showArrow`|||是否显示箭头。 -|`arrow`|||轴线箭头。 [ArrowStyle](#ArrowStyle)| +|onZero|||X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。 +|showArrow|||是否显示箭头。 +|arrow|||轴线箭头。 [ArrowStyle](#ArrowStyle)| -## `AxisMinorSplitLine` +## AxisMinorSplitLine Inherits or Implemented: [BaseLine](#BaseLine) @@ -306,10 +306,10 @@ Inherits or Implemented: [BaseLine](#BaseLine) |field|default|since|comment| |--|--|--|--| -|`distance`|||刻度线与轴线的距离。 -|`autoColor`|||自动设置颜色。 +|distance|||刻度线与轴线的距离。 +|autoColor|||自动设置颜色。 -## `AxisMinorTick` +## AxisMinorTick Inherits or Implemented: [BaseLine](#BaseLine) @@ -319,10 +319,10 @@ Inherits or Implemented: [BaseLine](#BaseLine) |field|default|since|comment| |--|--|--|--| -|`splitNumber`|5||分隔线之间分割的刻度数。 -|`autoColor`||| +|splitNumber|5||分隔线之间分割的刻度数。 +|autoColor||| -## `AxisName` +## AxisName Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -330,12 +330,12 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|||是否显示坐标轴名称。 -|`name`|||坐标轴名称。 -|`onZero`||v3.1.0|坐标轴名称的位置是否保持和Y轴0刻度一致。 -|`labelStyle`|||文本样式。 [LabelStyle](#LabelStyle)| +|show|||是否显示坐标轴名称。 +|name|||坐标轴名称。 +|onZero||v3.1.0|坐标轴名称的位置是否保持和Y轴0刻度一致。 +|labelStyle|||文本样式。 [LabelStyle](#LabelStyle)| -## `AxisSplitArea` +## AxisSplitArea Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -343,10 +343,10 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|||是否显示分隔区域。 -|`color`|||分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。 +|show|||是否显示分隔区域。 +|color|||分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。 -## `AxisSplitLine` +## AxisSplitLine Inherits or Implemented: [BaseLine](#BaseLine) @@ -354,18 +354,18 @@ Inherits or Implemented: [BaseLine](#BaseLine) |field|default|since|comment| |--|--|--|--| -|`interval`|||坐标轴分隔线的显示间隔。 -|`distance`|||刻度线与轴线的距离。 -|`autoColor`|||自动设置颜色。 -|`showStartLine`|true|v3.3.0|是否显示第一条分割线。 -|`showEndLine`|true|v3.3.0|是否显示最后一条分割线。 +|interval|||坐标轴分隔线的显示间隔。 +|distance|||刻度线与轴线的距离。 +|autoColor|||自动设置颜色。 +|showStartLine|true|v3.3.0|是否显示第一条分割线。 +|showEndLine|true|v3.3.0|是否显示最后一条分割线。 -## `AxisTheme` +## AxisTheme Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) -## `AxisTick` +## AxisTick Inherits or Implemented: [BaseLine](#BaseLine) @@ -373,15 +373,15 @@ Inherits or Implemented: [BaseLine](#BaseLine) |field|default|since|comment| |--|--|--|--| -|`alignWithLabel`|||类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。 -|`inside`|||坐标轴刻度是否朝内,默认朝外。 -|`showStartTick`|||是否显示第一个刻度。 -|`showEndTick`|||是否显示最后一个刻度。 -|`distance`|||刻度线与轴线的距离。 -|`splitNumber`|0||分隔线之间分割的刻度数。 -|`autoColor`||| +|alignWithLabel|||类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。 +|inside|||坐标轴刻度是否朝内,默认朝外。 +|showStartTick|||是否显示第一个刻度。 +|showEndTick|||是否显示最后一个刻度。 +|distance|||刻度线与轴线的距离。 +|splitNumber|0||分隔线之间分割的刻度数。 +|autoColor||| -## `Background` +## Background Inherits or Implemented: [MainComponent](#MainComponent) @@ -389,38 +389,38 @@ Inherits or Implemented: [MainComponent](#MainComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||是否启用背景组件。 -|`image`|||背景图。 -|`imageType`|||背景图填充类型。 -|`imageColor`|||背景图颜色。 -|`autoColor`|true||当background组件开启时,是否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时,用imageColor作为颜色。 +|show|true||是否启用背景组件。 +|image|||背景图。 +|imageType|||背景图填充类型。 +|imageColor|||背景图颜色。 +|autoColor|true||当background组件开启时,是否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时,用imageColor作为颜色。 -## `Bar` +## Bar Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) -## `BaseAxisTheme` +## BaseAxisTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) |field|default|since|comment| |--|--|--|--| -|`lineType`|||坐标轴线类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`lineWidth`|1f||坐标轴线宽。 -|`lineLength`|0f||坐标轴线长。 -|`lineColor`|||坐标轴线颜色。 -|`splitLineType`|||分割线线类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`splitLineWidth`|1f||分割线线宽。 -|`splitLineLength`|0f||分割线线长。 -|`splitLineColor`|||分割线线颜色。 -|`minorSplitLineColor`|||次分割线线颜色。 -|`tickWidth`|1f||刻度线线宽。 -|`tickLength`|5f||刻度线线长。 -|`tickColor`|||坐标轴线颜色。 -|`splitAreaColors`|||坐标轴分隔区域的颜色。 +|lineType|||坐标轴线类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|lineWidth|1f||坐标轴线宽。 +|lineLength|0f||坐标轴线长。 +|lineColor|||坐标轴线颜色。 +|splitLineType|||分割线线类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|splitLineWidth|1f||分割线线宽。 +|splitLineLength|0f||分割线线长。 +|splitLineColor|||分割线线颜色。 +|minorSplitLineColor|||次分割线线颜色。 +|tickWidth|1f||刻度线线宽。 +|tickLength|5f||刻度线线长。 +|tickColor|||坐标轴线颜色。 +|splitAreaColors|||坐标轴分隔区域的颜色。 -## `BaseLine` +## BaseLine Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -428,18 +428,18 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|||是否显示坐标轴轴线。 -|`lineStyle`|||线条样式 [LineStyle](#LineStyle)| +|show|||是否显示坐标轴轴线。 +|lineStyle|||线条样式 [LineStyle](#LineStyle)| -## `BaseScatter` +## BaseScatter Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) -## `BaseSerie` +## BaseSerie -## `BlurStyle` +## BlurStyle Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -448,23 +448,23 @@ Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISeri 淡出状态样式。 -## `CalendarCoord` +## CalendarCoord Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) -## `Candlestick` +## Candlestick Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) -## `ChartText` +## ChartText -## `ChildComponent` +## ChildComponent -## `Comment` +## Comment Inherits or Implemented: [MainComponent](#MainComponent) @@ -472,12 +472,12 @@ Inherits or Implemented: [MainComponent](#MainComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示注解组件。 -|`labelStyle`|||所有组件的文本样式。 [LabelStyle](#LabelStyle)| -|`markStyle`|||所有组件的文本样式。 [CommentMarkStyle](#CommentMarkStyle)| -|`items`|||注解项。每个注解组件可以设置多个注解项。 +|show|true||是否显示注解组件。 +|labelStyle|||所有组件的文本样式。 [LabelStyle](#LabelStyle)| +|markStyle|||所有组件的文本样式。 [CommentMarkStyle](#CommentMarkStyle)| +|items|||注解项。每个注解组件可以设置多个注解项。 -## `CommentItem` +## CommentItem Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -485,14 +485,14 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示当前注解项。 -|`content`|||注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。 -|`position`|||注解项的位置坐标。 -|`markRect`|||注解区域。 -|`markStyle`|||注解标记区域样式。 [CommentMarkStyle](#CommentMarkStyle)| -|`labelStyle`|||注解项的文本样式。 [LabelStyle](#LabelStyle)| +|show|true||是否显示当前注解项。 +|content|||注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。 +|position|||注解项的位置坐标。 +|markRect|||注解区域。 +|markStyle|||注解标记区域样式。 [CommentMarkStyle](#CommentMarkStyle)| +|labelStyle|||注解项的文本样式。 [LabelStyle](#LabelStyle)| -## `CommentMarkStyle` +## CommentMarkStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -500,29 +500,29 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示当前注解项。 -|`lineStyle`|||线条样式。 [LineStyle](#LineStyle)| +|show|true||是否显示当前注解项。 +|lineStyle|||线条样式。 [LineStyle](#LineStyle)| -## `ComponentTheme` +## ComponentTheme Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`font`|||字体。 -|`textColor`|||文本颜色。 -|`textBackgroundColor`|||文本颜色。 -|`fontSize`|18||文本字体大小。 -|`tMPFont`|||字体。 +|font|||字体。 +|textColor|||文本颜色。 +|textBackgroundColor|||文本颜色。 +|fontSize|18||文本字体大小。 +|tMPFont|||字体。 -## `CoordSystem` +## CoordSystem Inherits or Implemented: [MainComponent](#MainComponent) 坐标系系统。 -## `DataZoom` +## DataZoom Inherits or Implemented: [MainComponent](#MainComponent),[IUpdateRuntimeData](#IUpdateRuntimeData) @@ -530,66 +530,66 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 |field|default|since|comment| |--|--|--|--| -|`enable`|true||是否显示缩放区域。 -|`filterMode`|||数据过滤类型。
`DataZoom.FilterMode`:
- `Filter`: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
- `WeakFilter`: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。
- `Empty`: 当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。
- `None`: 不过滤数据,只改变数轴范围。
| -|`xAxisIndexs`|||控制的 x 轴索引列表。 -|`yAxisIndexs`|||控制的 y 轴索引列表。 -|`supportInside`|||是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。 -|`supportInsideScroll`|true||是否支持坐标系内滚动 -|`supportInsideDrag`|true||是否支持坐标系内拖拽 -|`supportSlider`|||是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。 -|`supportSelect`|||是否支持框选。提供一个选框进行数据区域缩放。 -|`showDataShadow`|||是否显示数据阴影。数据阴影可以简单地反应数据走势。 -|`showDetail`|||是否显示detail,即拖拽时候显示详细数值信息。 -|`zoomLock`|||是否锁定选择区域(或叫做数据窗口)的大小。 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。 -|`fillerColor`|||数据区域颜色。 -|`borderColor`|||边框颜色。 -|`borderWidth`|||边框宽。 -|`backgroundColor`|||组件的背景颜色。 -|`left`|||组件离容器左侧的距离。 -|`right`|||组件离容器右侧的距离。 -|`top`|||组件离容器上侧的距离。 -|`bottom`|||组件离容器下侧的距离。 -|`rangeMode`|||取绝对值还是百分比。
`DataZoom.RangeMode`:
- `//Value`: The value type of start and end.取值类型
- `Percent`: 百分比。
| -|`start`|||数据窗口范围的起始百分比。范围是:0 ~ 100。 -|`end`|||数据窗口范围的结束百分比。范围是:0 ~ 100。 -|`minShowNum`|1||最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。 -|`scrollSensitivity`|1.1f||缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。 -|`orient`|||布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`labelStyle`|||文本标签格式。 [LabelStyle](#LabelStyle)| -|`lineStyle`|||阴影线条样式。 [LineStyle](#LineStyle)| -|`areaStyle`|||阴影填充样式。 [AreaStyle](#AreaStyle)| +|enable|true||是否显示缩放区域。 +|filterMode|||数据过滤类型。
`DataZoom.FilterMode`:
- `Filter`: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
- `WeakFilter`: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。
- `Empty`: 当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。
- `None`: 不过滤数据,只改变数轴范围。
| +|xAxisIndexs|||控制的 x 轴索引列表。 +|yAxisIndexs|||控制的 y 轴索引列表。 +|supportInside|||是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。 +|supportInsideScroll|true||是否支持坐标系内滚动 +|supportInsideDrag|true||是否支持坐标系内拖拽 +|supportSlider|||是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。 +|supportSelect|||是否支持框选。提供一个选框进行数据区域缩放。 +|showDataShadow|||是否显示数据阴影。数据阴影可以简单地反应数据走势。 +|showDetail|||是否显示detail,即拖拽时候显示详细数值信息。 +|zoomLock|||是否锁定选择区域(或叫做数据窗口)的大小。 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。 +|fillerColor|||数据区域颜色。 +|borderColor|||边框颜色。 +|borderWidth|||边框宽。 +|backgroundColor|||组件的背景颜色。 +|left|||组件离容器左侧的距离。 +|right|||组件离容器右侧的距离。 +|top|||组件离容器上侧的距离。 +|bottom|||组件离容器下侧的距离。 +|rangeMode|||取绝对值还是百分比。
`DataZoom.RangeMode`:
- `//Value`: The value type of start and end.取值类型
- `Percent`: 百分比。
| +|start|||数据窗口范围的起始百分比。范围是:0 ~ 100。 +|end|||数据窗口范围的结束百分比。范围是:0 ~ 100。 +|minShowNum|1||最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。 +|scrollSensitivity|1.1f||缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。 +|orient|||布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|labelStyle|||文本标签格式。 [LabelStyle](#LabelStyle)| +|lineStyle|||阴影线条样式。 [LineStyle](#LineStyle)| +|areaStyle|||阴影填充样式。 [AreaStyle](#AreaStyle)| -## `DataZoomTheme` +## DataZoomTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) |field|default|since|comment| |--|--|--|--| -|`borderWidth`|||边框线宽。 -|`dataLineWidth`|||数据阴影线宽。 -|`fillerColor`|||数据区域颜色。 -|`borderColor`|||边框颜色。 -|`dataLineColor`|||数据阴影的线条颜色。 -|`dataAreaColor`|||数据阴影的填充颜色。 -|`backgroundColor`|||背景颜色。 +|borderWidth|||边框线宽。 +|dataLineWidth|||数据阴影线宽。 +|fillerColor|||数据区域颜色。 +|borderColor|||边框颜色。 +|dataLineColor|||数据阴影的线条颜色。 +|dataAreaColor|||数据阴影的填充颜色。 +|backgroundColor|||背景颜色。 -## `DebugInfo` +## DebugInfo |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示Debug组件。 -|`showDebugInfo`|false|| -|`showAllChartObject`|false||是否在Hierarchy试图显示所有chart下的节点。 -|`foldSeries`|false||是否在Inspector上折叠Serie。 -|`labelStyle`||| [LabelStyle](#LabelStyle)| +|show|true||是否显示Debug组件。 +|showDebugInfo|false|| +|showAllChartObject|false||是否在Hierarchy试图显示所有chart下的节点。 +|foldSeries|false||是否在Inspector上折叠Serie。 +|labelStyle||| [LabelStyle](#LabelStyle)| -## `EffectScatter` +## EffectScatter Inherits or Implemented: [BaseScatter](#BaseScatter) -## `EmphasisStyle` +## EmphasisStyle Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -599,16 +599,16 @@ Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISeri |field|default|since|comment| |--|--|--|--| -|`scale`|1.1f||高亮时的缩放倍数。 -|`focus`|||在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。
`EmphasisStyle.FocusType`:
- `None`: 不淡出其它图形,默认使用该配置。
- `Self`: 只聚焦(不淡出)当前高亮的数据的图形。
- `Series`: 聚焦当前高亮的数据所在的系列的所有图形。
| -|`blurScope`|||在开启focus的时候,可以通过blurScope配置淡出的范围。
`EmphasisStyle.BlurScope`:
- `GridCoord`: 淡出范围为坐标系,默认使用该配置。
- `Series`: 淡出范围为系列。
- `Global`: 淡出范围为全局。
| +|scale|1.1f||高亮时的缩放倍数。 +|focus|||在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。
`EmphasisStyle.FocusType`:
- `None`: 不淡出其它图形,默认使用该配置。
- `Self`: 只聚焦(不淡出)当前高亮的数据的图形。
- `Series`: 聚焦当前高亮的数据所在的系列的所有图形。
| +|blurScope|||在开启focus的时候,可以通过blurScope配置淡出的范围。
`EmphasisStyle.BlurScope`:
- `GridCoord`: 淡出范围为坐标系,默认使用该配置。
- `Series`: 淡出范围为系列。
- `Global`: 淡出范围为全局。
| -## `EndLabelStyle` +## EndLabelStyle Inherits or Implemented: [LabelStyle](#LabelStyle) -## `GridCoord` +## GridCoord Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) @@ -616,85 +616,85 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示直角坐标系网格。 -|`left`|0.1f||grid 组件离容器左侧的距离。 -|`right`|0.08f||grid 组件离容器右侧的距离。 -|`top`|0.22f||grid 组件离容器上侧的距离。 -|`bottom`|0.12f||grid 组件离容器下侧的距离。 -|`backgroundColor`|||网格背景色,默认透明。 -|`showBorder`|false||是否显示网格边框。 -|`borderWidth`|0f||网格边框宽。 -|`borderColor`|||网格边框颜色。 +|show|true||是否显示直角坐标系网格。 +|left|0.1f||grid 组件离容器左侧的距离。 +|right|0.08f||grid 组件离容器右侧的距离。 +|top|0.22f||grid 组件离容器上侧的距离。 +|bottom|0.12f||grid 组件离容器下侧的距离。 +|backgroundColor|||网格背景色,默认透明。 +|showBorder|false||是否显示网格边框。 +|borderWidth|0f||网格边框宽。 +|borderColor|||网格边框颜色。 -## `Heatmap` +## Heatmap Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) |field|default|since|comment| |--|--|--|--| -|`heatmapType`||3.3.0|热力图类型。通过颜色映射划分。
`HeatmapType`:
- `Data`: 数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。
- `Count`: 个数映射型。统计数据在划分的格子中出现的次数,作为颜色映射。要求数据至少有2个维度数据。
| +|heatmapType||3.3.0|热力图类型。通过颜色映射划分。
`HeatmapType`:
- `Data`: 数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。
- `Count`: 个数映射型。统计数据在划分的格子中出现的次数,作为颜色映射。要求数据至少有2个维度数据。
| -## `IconStyle` +## IconStyle Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|false||是否显示图标。 -|`layer`|||显示在上层还是在下层。
`IconStyle.Layer`:
- `UnderText`: The icon is display under the label text. 图标在标签文字下
- `AboveText`: The icon is display above the label text. 图标在标签文字上
| -|`align`|||水平方向对齐方式。
`Align`:
- `Center`: 对齐方式
- `Left`: 对齐方式
- `Right`: 对齐方式
| -|`sprite`|||图标的图片。 -|`type`|||图片的显示类型。 -|`color`|||图标颜色。 -|`width`|20||图标宽。 -|`height`|20||图标高。 -|`offset`|||图标偏移。 -|`autoHideWhenLabelEmpty`|false||当label内容为空时是否自动隐藏图标 +|show|false||是否显示图标。 +|layer|||显示在上层还是在下层。
`IconStyle.Layer`:
- `UnderText`: The icon is display under the label text. 图标在标签文字下
- `AboveText`: The icon is display above the label text. 图标在标签文字上
| +|align|||水平方向对齐方式。
`Align`:
- `Center`: 对齐方式
- `Left`: 对齐方式
- `Right`: 对齐方式
| +|sprite|||图标的图片。 +|type|||图片的显示类型。 +|color|||图标颜色。 +|width|20||图标宽。 +|height|20||图标高。 +|offset|||图标偏移。 +|autoHideWhenLabelEmpty|false||当label内容为空时是否自动隐藏图标 -## `ImageStyle` +## ImageStyle Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示图标。 -|`sprite`|||图标的图片。 -|`type`|||图片的显示类型。 -|`autoColor`|||是否自动颜色。 -|`color`|||图标颜色。 -|`width`|0||图标宽。 -|`height`|0||图标高。 +|show|true||是否显示图标。 +|sprite|||图标的图片。 +|type|||图片的显示类型。 +|autoColor|||是否自动颜色。 +|color|||图标颜色。 +|width|0||图标宽。 +|height|0||图标高。 -## `Indicator` +## Indicator 雷达图的指示器,用来指定雷达图中的多个变量(维度)。 |field|default|since|comment| |--|--|--|--| -|`name`|||指示器名称。 -|`max`|||指示器的最大值,默认为 0 无限制。 -|`min`|||指示器的最小值,默认为 0 无限制。 -|`range`|||正常值范围。当数值不在这个范围时,会自动变更显示颜色。 -|`show`|||是否显示雷达坐标系组件。 -|`shape`|||雷达图绘制类型,支持 'Polygon' 和 'Circle'。 -|`radius`|100||雷达图的半径。 -|`splitNumber`|5||指示器轴的分割段数。 -|`center`|||雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 -|`axisLine`|||轴线。 [AxisLine](#AxisLine)| -|`axisName`|||雷达图每个指示器名称的配置项。 [AxisName](#AxisName)| -|`splitLine`|||分割线。 [AxisSplitLine](#AxisSplitLine)| -|`splitArea`|||分割区域。 [AxisSplitArea](#AxisSplitArea)| -|`indicator`|true||是否显示指示器。 -|`positionType`|||显示位置类型。 -|`indicatorGap`|10||指示器和雷达的间距。 -|`ceilRate`|0||最大最小值向上取整的倍率。默认为0时自动计算。 -|`isAxisTooltip`|||是否Tooltip显示轴线上的所有数据。 -|`outRangeColor`|Color.red||数值超出范围时显示的颜色。 -|`connectCenter`|false||数值是否连线到中心点。 -|`lineGradient`|true||数值线段是否需要渐变。 -|`indicatorList`|||指示器列表。 +|name|||指示器名称。 +|max|||指示器的最大值,默认为 0 无限制。 +|min|||指示器的最小值,默认为 0 无限制。 +|range|||正常值范围。当数值不在这个范围时,会自动变更显示颜色。 +|show|||是否显示雷达坐标系组件。 +|shape|||雷达图绘制类型,支持 'Polygon' 和 'Circle'。 +|radius|100||雷达图的半径。 +|splitNumber|5||指示器轴的分割段数。 +|center|||雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 +|axisLine|||轴线。 [AxisLine](#AxisLine)| +|axisName|||雷达图每个指示器名称的配置项。 [AxisName](#AxisName)| +|splitLine|||分割线。 [AxisSplitLine](#AxisSplitLine)| +|splitArea|||分割区域。 [AxisSplitArea](#AxisSplitArea)| +|indicator|true||是否显示指示器。 +|positionType|||显示位置类型。 +|indicatorGap|10||指示器和雷达的间距。 +|ceilRate|0||最大最小值向上取整的倍率。默认为0时自动计算。 +|isAxisTooltip|||是否Tooltip显示轴线上的所有数据。 +|outRangeColor|Color.red||数值超出范围时显示的颜色。 +|connectCenter|false||数值是否连线到中心点。 +|lineGradient|true||数值线段是否需要渐变。 +|indicatorList|||指示器列表。 -## `ItemStyle` +## ItemStyle Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -702,27 +702,27 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent] |field|default|since|comment| |--|--|--|--| -|`show`|true||是否启用。 -|`color`|||数据项颜色。 -|`color0`|||数据项颜色。 -|`toColor`|||渐变色的颜色1。 -|`toColor2`|||渐变色的颜色2。只在折线图中有效。 -|`backgroundColor`|||数据项背景颜色。 -|`backgroundWidth`|||数据项背景宽度。 -|`centerColor`|||中心区域颜色。 -|`centerGap`|||中心区域间隙。 -|`borderWidth`|0||边框宽。 -|`borderGap`|0||边框间隙。 -|`borderColor`|||边框的颜色。 -|`borderColor0`|||边框的颜色。 -|`borderToColor`|||边框的渐变色。 -|`opacity`|1||透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 -|`itemMarker`|||提示框单项的字符标志。用在Tooltip中。 -|`itemFormatter`|||提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` -|`numericFormatter`|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings -|`cornerRadius`|||圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 +|show|true||是否启用。 +|color|||数据项颜色。 +|color0|||数据项颜色。 +|toColor|||渐变色的颜色1。 +|toColor2|||渐变色的颜色2。只在折线图中有效。 +|backgroundColor|||数据项背景颜色。 +|backgroundWidth|||数据项背景宽度。 +|centerColor|||中心区域颜色。 +|centerGap|||中心区域间隙。 +|borderWidth|0||边框宽。 +|borderGap|0||边框间隙。 +|borderColor|||边框的颜色。 +|borderColor0|||边框的颜色。 +|borderToColor|||边框的渐变色。 +|opacity|1||透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 +|itemMarker|||提示框单项的字符标志。用在Tooltip中。 +|itemFormatter|||提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` +|numericFormatter|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings +|cornerRadius|||圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 -## `LabelLine` +## LabelLine Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -730,18 +730,18 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示视觉引导线。 -|`lineType`|||视觉引导线类型。
`LabelLine.LineType`:
- `BrokenLine`: 折线
- `Curves`: 曲线
- `HorizontalLine`: 水平线
| -|`lineColor`|ChartConst.clearColor32||视觉引导线颜色。默认和serie一致取自调色板。 -|`lineAngle`|0||视觉引导线的固定角度。对折线和曲线有效。 -|`lineWidth`|1.0f||视觉引导线的宽度。 -|`lineGap`|1.0f||视觉引导线和容器的间距。 -|`lineLength1`|25f||视觉引导线第一段的长度。 -|`lineLength2`|15f||视觉引导线第二段的长度。 -|`startSymbol`|||起始点的图形标记。 [SymbolStyle](#SymbolStyle)| -|`endSymbol`|||结束点的图形标记。 [SymbolStyle](#SymbolStyle)| +|show|true||是否显示视觉引导线。 +|lineType|||视觉引导线类型。
`LabelLine.LineType`:
- `BrokenLine`: 折线
- `Curves`: 曲线
- `HorizontalLine`: 水平线
| +|lineColor|ChartConst.clearColor32||视觉引导线颜色。默认和serie一致取自调色板。 +|lineAngle|0||视觉引导线的固定角度。对折线和曲线有效。 +|lineWidth|1.0f||视觉引导线的宽度。 +|lineGap|1.0f||视觉引导线和容器的间距。 +|lineLength1|25f||视觉引导线第一段的长度。 +|lineLength2|15f||视觉引导线第二段的长度。 +|startSymbol|||起始点的图形标记。 [SymbolStyle](#SymbolStyle)| +|endSymbol|||结束点的图形标记。 [SymbolStyle](#SymbolStyle)| -## `LabelStyle` +## LabelStyle Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -749,35 +749,35 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示文本标签。 -|`Position`|||标签的位置。 -|`autoOffset`|false||是否开启自动偏移。当开启时,Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。 -|`offset`|||距离图形元素的偏移 -|`rotate`|||文本的旋转。 -|`distance`|||距离轴线的距离。 -|`formatter`|||标签内容字符串模版格式器。支持用 \n 换行。 模板变量有: {.}:圆点标记。 {a}:系列名。 {a}:系列名。 {b}:类目值或数据名。 {c}:数据值。 {d}:百分比。 {e}:数据名。 {f}:数据和。 示例:“{b}:{c}” -|`numericFormatter`|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings -|`width`|0||标签的宽度。一般不用指定,不指定时则自动是文字的宽度。 -|`height`|0||标签的高度。一般不用指定,不指定时则自动是文字的高度。 -|`icon`|||图标样式。 [IconStyle](#IconStyle)| -|`background`|||背景图样式。 [ImageStyle](#ImageStyle)| -|`textPadding`|||文本的边距。 [TextPadding](#TextPadding)| -|`textStyle`|||文本样式。 [TextStyle](#TextStyle)| +|show|true||是否显示文本标签。 +|Position|||标签的位置。 +|autoOffset|false||是否开启自动偏移。当开启时,Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。 +|offset|||距离图形元素的偏移 +|rotate|||文本的旋转。 +|distance|||距离轴线的距离。 +|formatter|||标签内容字符串模版格式器。支持用 \n 换行。 模板变量有: {.}:圆点标记。 {a}:系列名。 {a}:系列名。 {b}:类目值或数据名。 {c}:数据值。 {d}:百分比。 {e}:数据名。 {f}:数据和。 示例:“{b}:{c}” +|numericFormatter|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings +|width|0||标签的宽度。一般不用指定,不指定时则自动是文字的宽度。 +|height|0||标签的高度。一般不用指定,不指定时则自动是文字的高度。 +|icon|||图标样式。 [IconStyle](#IconStyle)| +|background|||背景图样式。 [ImageStyle](#ImageStyle)| +|textPadding|||文本的边距。 [TextPadding](#TextPadding)| +|textStyle|||文本样式。 [TextStyle](#TextStyle)| -## `Lang` +## Lang Inherits or Implemented: [ScriptableObject](#ScriptableObject) 国际化语言表。 -## `LangCandlestick` +## LangCandlestick -## `LangTime` +## LangTime -## `Legend` +## Legend Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPropertyChanged) @@ -785,68 +785,68 @@ Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPr |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示图例组件。 -|`iconType`|||图例类型。
`Legend.Type`:
- `Auto`: 自动匹配。
- `Custom`: 自定义图标。
- `EmptyCircle`: 空心圆。
- `Circle`: 圆形。
- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle`: 三角形。
- `Diamond`: 菱形。
- `Candlestick`: 烛台(可用于K线图)。
| -|`selectedMode`|||选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
`Legend.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
- `None`: 无法选择。
| -|`orient`|||布局方式是横还是竖。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`location`|||图例显示的位置。 [Location](#Location)| -|`itemWidth`|25.0f||图例标记的图形宽度。 -|`itemHeight`|12.0f||图例标记的图形高度。 -|`itemGap`|10f||图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。 -|`itemAutoColor`|true||图例标记的图形是否自动匹配颜色。 -|`itemOpacity`|1||图例标记的图形的颜色透明度。 -|`formatter`|||图例内容字符串模版格式器。支持用 \n 换行。 模板变量为图例名称 {value}。其他模板变量参考Toolip的itemFormatter。 -|`numericFormatter`|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings -|`labelStyle`|||文本样式。 [LabelStyle](#LabelStyle)| -|`data`|||图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。 -|`icons`|||自定义的图例标记图形。 -|`colors`|||图例标记的颜色列表。 -|`background`||v3.1.0|背景图样式。 [ImageStyle](#ImageStyle)| -|`padding`||v3.1.0|图例标记和背景的间距。 [Padding](#Padding)| +|show|true||是否显示图例组件。 +|iconType|||图例类型。
`Legend.Type`:
- `Auto`: 自动匹配。
- `Custom`: 自定义图标。
- `EmptyCircle`: 空心圆。
- `Circle`: 圆形。
- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle`: 三角形。
- `Diamond`: 菱形。
- `Candlestick`: 烛台(可用于K线图)。
| +|selectedMode|||选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
`Legend.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
- `None`: 无法选择。
| +|orient|||布局方式是横还是竖。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|location|||图例显示的位置。 [Location](#Location)| +|itemWidth|25.0f||图例标记的图形宽度。 +|itemHeight|12.0f||图例标记的图形高度。 +|itemGap|10f||图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。 +|itemAutoColor|true||图例标记的图形是否自动匹配颜色。 +|itemOpacity|1||图例标记的图形的颜色透明度。 +|formatter|||图例内容字符串模版格式器。支持用 \n 换行。 模板变量为图例名称 {value}。其他模板变量参考Toolip的itemFormatter。 +|numericFormatter|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings +|labelStyle|||文本样式。 [LabelStyle](#LabelStyle)| +|data|||图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。 +|icons|||自定义的图例标记图形。 +|colors|||图例标记的颜色列表。 +|background||v3.1.0|背景图样式。 [ImageStyle](#ImageStyle)| +|padding||v3.1.0|图例标记和背景的间距。 [Padding](#Padding)| -## `LegendTheme` +## LegendTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) |field|default|since|comment| |--|--|--|--| -|`unableColor`|||文本颜色。 +|unableColor|||文本颜色。 -## `Level` +## Level Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`label`|||文本标签样式。 [LabelStyle](#LabelStyle)| -|`upperLabel`|||上方的文本标签样式。 [LabelStyle](#LabelStyle)| -|`itemStyle`|||数据项样式。 [ItemStyle](#ItemStyle)| +|label|||文本标签样式。 [LabelStyle](#LabelStyle)| +|upperLabel|||上方的文本标签样式。 [LabelStyle](#LabelStyle)| +|itemStyle|||数据项样式。 [ItemStyle](#ItemStyle)| -## `LevelStyle` +## LevelStyle Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|false||是否启用LevelStyle -|`levels`|||各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 +|show|false||是否启用LevelStyle +|levels|||各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 -## `Line` +## Line Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) -## `LineArrow` +## LineArrow Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent) |field|default|since|comment| |--|--|--|--| -|`show`|||是否显示箭头。 -|`position`|||箭头位置。
`LineArrow.Position`:
- `End`: 末端箭头
- `Start`: 头端箭头
| -|`arrow`|||箭头。 [ArrowStyle](#ArrowStyle)| +|show|||是否显示箭头。 +|position|||箭头位置。
`LineArrow.Position`:
- `End`: 末端箭头
- `Start`: 头端箭头
| +|arrow|||箭头。 [ArrowStyle](#ArrowStyle)| -## `LineStyle` +## LineStyle Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -854,16 +854,16 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent] |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。 -|`type`|||线的类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`color`|||线的颜色。 -|`toColor`|||线的渐变颜色(需要水平方向渐变时)。 -|`toColor2`|||线的渐变颜色2(需要水平方向三个渐变色的渐变时)。 -|`width`|0||线宽。 -|`length`|0||线长。 -|`opacity`|1||线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 +|show|true||是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。 +|type|||线的类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|color|||线的颜色。 +|toColor|||线的渐变颜色(需要水平方向渐变时)。 +|toColor2|||线的渐变颜色2(需要水平方向三个渐变色的渐变时)。 +|width|0||线宽。 +|length|0||线长。 +|opacity|1||线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 -## `Location` +## Location Inherits or Implemented: [ChildComponent](#ChildComponent),[IPropertyChanged](#IPropertyChanged) @@ -871,18 +871,18 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[IPropertyChanged](#I |field|default|since|comment| |--|--|--|--| -|`align`|||对齐方式。
`Location.Align`:
- `TopLeft`: 对齐方式
- `TopRight`: 对齐方式
- `TopCenter`: 对齐方式
- `BottomLeft`: 对齐方式
- `BottomRight`: 对齐方式
- `BottomCenter`: 对齐方式
- `Center`: 对齐方式
- `CenterLeft`: 对齐方式
- `CenterRight`: 对齐方式
| -|`left`|||离容器左侧的距离。 -|`right`|||离容器右侧的距离。 -|`top`|||离容器上侧的距离。 -|`bottom`|||离容器下侧的距离。 +|align|||对齐方式。
`Location.Align`:
- `TopLeft`: 对齐方式
- `TopRight`: 对齐方式
- `TopCenter`: 对齐方式
- `BottomLeft`: 对齐方式
- `BottomRight`: 对齐方式
- `BottomCenter`: 对齐方式
- `Center`: 对齐方式
- `CenterLeft`: 对齐方式
- `CenterRight`: 对齐方式
| +|left|||离容器左侧的距离。 +|right|||离容器右侧的距离。 +|top|||离容器上侧的距离。 +|bottom|||离容器下侧的距离。 -## `MainComponent` +## MainComponent Inherits or Implemented: [IComparable](#IComparable) -## `MarkArea` +## MarkArea Inherits or Implemented: [MainComponent](#MainComponent) @@ -890,15 +890,15 @@ Inherits or Implemented: [MainComponent](#MainComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示标域。 -|`text`|||The text of markArea. 标域显示的文本。 -|`serieIndex`|0||Serie index of markArea. 标域影响的Serie索引。 -|`start`|||标域范围的起始数据。 [MarkAreaData](#MarkAreaData)| -|`end`|||标域范围的结束数据。 [MarkAreaData](#MarkAreaData)| -|`itemStyle`|||标域样式。 [ItemStyle](#ItemStyle)| -|`label`|||标域文本样式。 [LabelStyle](#LabelStyle)| +|show|true||是否显示标域。 +|text|||The text of markArea. 标域显示的文本。 +|serieIndex|0||Serie index of markArea. 标域影响的Serie索引。 +|start|||标域范围的起始数据。 [MarkAreaData](#MarkAreaData)| +|end|||标域范围的结束数据。 [MarkAreaData](#MarkAreaData)| +|itemStyle|||标域样式。 [ItemStyle](#ItemStyle)| +|label|||标域文本样式。 [LabelStyle](#LabelStyle)| -## `MarkAreaData` +## MarkAreaData Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -906,15 +906,15 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`type`|||特殊的标域类型,用于标注最大值最小值等。
`MarkAreaType`:
- `None`: 标域类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| -|`name`|||标注名称。会作为文字显示。 -|`dimension`|1||从哪个维度的数据计算最大最小值等。 -|`xPosition`|||相对原点的 x 坐标,单位像素。当type为None时有效。 -|`yPosition`|||相对原点的 y 坐标,单位像素。当type为None时有效。 -|`xValue`|||X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 -|`yValue`|||Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 +|type|||特殊的标域类型,用于标注最大值最小值等。
`MarkAreaType`:
- `None`: 标域类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| +|name|||标注名称。会作为文字显示。 +|dimension|1||从哪个维度的数据计算最大最小值等。 +|xPosition|||相对原点的 x 坐标,单位像素。当type为None时有效。 +|yPosition|||相对原点的 y 坐标,单位像素。当type为None时有效。 +|xValue|||X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 +|yValue|||Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 -## `MarkLine` +## MarkLine Inherits or Implemented: [MainComponent](#MainComponent) @@ -922,12 +922,12 @@ Inherits or Implemented: [MainComponent](#MainComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示标线。 -|`serieIndex`|0||标线影响的Serie索引。 -|`animation`|||标线的动画样式。 [AnimationStyle](#AnimationStyle)| -|`data`|||标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。 +|show|true||是否显示标线。 +|serieIndex|0||标线影响的Serie索引。 +|animation|||标线的动画样式。 [AnimationStyle](#AnimationStyle)| +|data|||标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。 -## `MarkLineData` +## MarkLineData Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -935,21 +935,21 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`type`|||特殊的标线类型,用于标注最大值最小值等。
`MarkLineType`:
- `None`: 标线类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| -|`name`|||标线名称,将会作为文字显示。label的formatter可通过{b}显示名称,通过{c}显示数值。 -|`dimension`|1||从哪个维度的数据计算最大最小值等。 -|`xPosition`|||相对原点的 x 坐标,单位像素。当type为None时有效。 -|`yPosition`|||相对原点的 y 坐标,单位像素。当type为None时有效。 -|`xValue`|||X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 -|`yValue`|||Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 -|`group`|0||分组。当group不为0时,表示这个data是标线的起点或终点,group一致的data组成一条标线。 -|`zeroPosition`|false||是否为坐标系原点。 -|`startSymbol`|||起始点的图形标记。 [SymbolStyle](#SymbolStyle)| -|`endSymbol`|||结束点的图形标记。 [SymbolStyle](#SymbolStyle)| -|`lineStyle`|||标线样式。 [LineStyle](#LineStyle)| -|`label`|||文本样式。可设置position为Start、Middle和End在不同的位置显示文本。 [LabelStyle](#LabelStyle)| +|type|||特殊的标线类型,用于标注最大值最小值等。
`MarkLineType`:
- `None`: 标线类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| +|name|||标线名称,将会作为文字显示。label的formatter可通过{b}显示名称,通过{c}显示数值。 +|dimension|1||从哪个维度的数据计算最大最小值等。 +|xPosition|||相对原点的 x 坐标,单位像素。当type为None时有效。 +|yPosition|||相对原点的 y 坐标,单位像素。当type为None时有效。 +|xValue|||X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 +|yValue|||Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 +|group|0||分组。当group不为0时,表示这个data是标线的起点或终点,group一致的data组成一条标线。 +|zeroPosition|false||是否为坐标系原点。 +|startSymbol|||起始点的图形标记。 [SymbolStyle](#SymbolStyle)| +|endSymbol|||结束点的图形标记。 [SymbolStyle](#SymbolStyle)| +|lineStyle|||标线样式。 [LineStyle](#LineStyle)| +|label|||文本样式。可设置position为Start、Middle和End在不同的位置显示文本。 [LabelStyle](#LabelStyle)| -## `Padding` +## Padding Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -957,23 +957,23 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||show padding. 是否显示。 -|`top`|0||顶部间距。 -|`right`|2f||右部间距。 -|`left`|2f||左边间距。 -|`bottom`|0||底部间距。 +|show|true||show padding. 是否显示。 +|top|0||顶部间距。 +|right|2f||右部间距。 +|left|2f||左边间距。 +|bottom|0||底部间距。 -## `Parallel` +## Parallel Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) -## `ParallelAxis` +## ParallelAxis Inherits or Implemented: [Axis](#Axis) -## `ParallelCoord` +## ParallelCoord Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) @@ -981,25 +981,25 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示直角坐标系网格。 -|`orient`|||坐标轴朝向。默认为垂直朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`left`|0.1f||grid 组件离容器左侧的距离。 -|`right`|0.08f||grid 组件离容器右侧的距离。 -|`top`|0.22f||grid 组件离容器上侧的距离。 -|`bottom`|0.12f||grid 组件离容器下侧的距离。 -|`backgroundColor`|||网格背景色,默认透明。 +|show|true||是否显示直角坐标系网格。 +|orient|||坐标轴朝向。默认为垂直朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|left|0.1f||grid 组件离容器左侧的距离。 +|right|0.08f||grid 组件离容器右侧的距离。 +|top|0.22f||grid 组件离容器上侧的距离。 +|bottom|0.12f||grid 组件离容器下侧的距离。 +|backgroundColor|||网格背景色,默认透明。 -## `Pie` +## Pie Inherits or Implemented: [Serie](#Serie) -## `PolarAxisTheme` +## PolarAxisTheme Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) -## `PolarCoord` +## PolarCoord Inherits or Implemented: [CoordSystem](#CoordSystem),[ISerieContainer](#ISerieContainer) @@ -1007,54 +1007,54 @@ Inherits or Implemented: [CoordSystem](#CoordSystem),[ISerieContainer](#ISerieCo |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示极坐标。 -|`center`|||极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 -|`radius`|||半径。radius[0]表示内径,radius[1]表示外径。 -|`backgroundColor`|||极坐标的背景色,默认透明。 +|show|true||是否显示极坐标。 +|center|||极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 +|radius|||半径。radius[0]表示内径,radius[1]表示外径。 +|backgroundColor|||极坐标的背景色,默认透明。 -## `Radar` +## Radar Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) |field|default|since|comment| |--|--|--|--| -|`smooth`|false|3.2.0|是否平滑曲线。平滑曲线时不支持区域填充颜色。 +|smooth|false|3.2.0|是否平滑曲线。平滑曲线时不支持区域填充颜色。 -## `RadarAxisTheme` +## RadarAxisTheme Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) -## `RadarCoord` +## RadarCoord Inherits or Implemented: [CoordSystem](#CoordSystem),[ISerieContainer](#ISerieContainer) Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。 -## `RadiusAxis` +## RadiusAxis Inherits or Implemented: [Axis](#Axis) 极坐标系的径向轴。 -## `RadiusAxisTheme` +## RadiusAxisTheme Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) -## `Ring` +## Ring Inherits or Implemented: [Serie](#Serie) -## `Scatter` +## Scatter Inherits or Implemented: [BaseScatter](#BaseScatter) -## `SelectStyle` +## SelectStyle Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) @@ -1063,7 +1063,7 @@ Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISeri 选中状态样式。 -## `Serie` +## Serie Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) @@ -1071,76 +1071,76 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) |field|default|since|comment| |--|--|--|--| -|`index`|||系列索引。 -|`show`|true||系列是否显示在图表上。 -|`coordSystem`|||使用的坐标系。 -|`serieType`|||系列类型。 -|`serieName`|||系列名称,用于 tooltip 的显示,legend 的图例筛选。 -|`state`||v3.2.0|系列的默认状态。
`SerieState`:
- `Normal`: 正常状态。
- `Emphasis`: 高亮状态。
- `Blur`: 淡出状态。
- `Select`: 选中状态。
- `Auto`: 自动保持和父节点一致。一般用在SerieData。
| -|`colorBy`||v3.2.0|从主题中取色的策略。
`SerieColorBy`:
- `Default`: 默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略,Pie默认是Data策略
- `Serie`: 按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。
- `Data`: 按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。
| -|`stack`|||数据堆叠,同个类目轴上系列配置相同的stack值后,后一个系列的值会在前一个系列的值上相加。 -|`xAxisIndex`|0||使用X轴的index。 -|`yAxisIndex`|0||使用Y轴的index。 -|`radarIndex`|0||雷达图所使用的 radar 组件的 index。 -|`vesselIndex`|0||水位图所使用的 vessel 组件的 index。 -|`polarIndex`|0||所使用的 polar 组件的 index。 -|`singleAxisIndex`|0||所使用的 singleAxis 组件的 index。 -|`parallelIndex`|0||所使用的 parallel coord 组件的 index。 -|`minShow`|||系列所显示数据的最小索引 -|`maxShow`|||系列所显示数据的最大索引 -|`maxCache`|||系列中可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。 -|`sampleDist`|0||采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。 -|`sampleType`|||采样类型。当sampleDist大于0时有效。
`SampleType`:
- `Peak`: 取峰值。
- `Average`: 取过滤点的平均值。
- `Max`: 取过滤点的最大值。
- `Min`: 取过滤点的最小值。
- `Sum`: 取过滤点的和。
| -|`sampleAverage`|0||设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 -|`lineType`|||折线图样式类型。
`LineType`:
- `Normal`: 普通折线图。
- `Smooth`: 平滑曲线。
- `StepStart`: 阶梯线图:当前点。
- `StepMiddle`: 阶梯线图:当前点和下一个点的中间。
- `StepEnd`: 阶梯线图:下一个拐点。
| -|`barType`|||柱形图类型。
`BarType`:
- `Normal`: 普通柱形图。
- `Zebra`: 斑马柱形图。
- `Capsule`: 胶囊柱形图。
| -|`barPercentStack`|false||柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 -|`barWidth`|0||柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。 -|`barGap`|0.1f||不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%) 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。 -|`barZebraWidth`|4f||斑马线的粗细。 -|`barZebraGap`|2f||斑马线的间距。 -|`min`|||最小值。 -|`max`|||最大值。 -|`minSize`|0f||数据最小值 min 映射的宽度。 -|`maxSize`|1f||数据最大值 max 映射的宽度。 -|`startAngle`|||起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 -|`endAngle`|||结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。 -|`minAngle`|||最小的扇区角度(0-360)。用于防止某个值过小导致扇区太小影响交互。 -|`clockwise`|true||是否顺时针。 -|`roundCap`|||是否开启圆弧效果。 -|`splitNumber`|||刻度分割段数。最大可设置36。 -|`clickOffset`|true||鼠标点击时是否开启偏移,一般用在PieChart图表中。 -|`roseType`|||是否展示成南丁格尔图,通过半径区分数据大小。
`RoseType`:
- `None`: 不展示成南丁格尔玫瑰图。
- `Radius`: 扇区圆心角展现数据的百分比,半径展现数据的大小。
- `Area`: 所有扇区圆心角相同,仅通过半径展现数据大小。
| -|`gap`|||间距。 -|`center`|||中心点。 -|`radius`|||半径。radius[0]表示内径,radius[1]表示外径。 -|`showDataDimension`|||数据项里的数据维数。 -|`showDataName`|||在Editor的inpsector上是否显示name参数 -|`clip`|false||是否裁剪超出坐标系部分的图形。 -|`ignore`|false||是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 -|`ignoreValue`|0||忽略数据的默认值。当ignore为true才有效。 -|`ignoreLineBreak`|false||忽略数据时折线是断开还是连接。默认false为连接。 -|`showAsPositiveNumber`|false||将负数数值显示为正数。一般和`AxisLabel`的`showAsPositiveNumber`配合使用。仅在折线图和柱状图中有效。 -|`large`|true||是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 -|`largeThreshold`|200||开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。 -|`avoidLabelOverlap`|false||在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。 -|`radarType`|||雷达图类型。
`RadarType`:
- `Multiple`: 多圈雷达图。此时可一个雷达里绘制多个圈,一个serieData就可组成一个圈(多维数据)。
- `Single`: 单圈雷达图。此时一个雷达只能绘制一个圈,多个serieData组成一个圈,数据取自`data[1]`。
| -|`placeHolder`|false||占位模式。占位模式时,数据有效但不参与渲染和显示。 -|`dataSortType`|||组件的数据排序。
`SerieDataSortType`:
- `None`: 按 data 的顺序
- `Ascending`: 升序
- `Descending`: 降序
| -|`orient`|||组件的朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`align`|||组件水平方向对齐方式。
`Align`:
- `Center`: 对齐方式
- `Left`: 对齐方式
- `Right`: 对齐方式
| -|`left`|||组件离容器左侧的距离。 -|`right`|||组件离容器右侧的距离。 -|`top`|||组件离容器上侧的距离。 -|`bottom`|||组件离容器下侧的距离。 -|`insertDataToHead`|||添加新数据时是在列表的头部还是尾部加入。 -|`lineStyle`|||线条样式。 [LineStyle](#LineStyle)| -|`symbol`|||标记的图形。 [SerieSymbol](#SerieSymbol)| -|`animation`|||起始动画。 [AnimationStyle](#AnimationStyle)| -|`itemStyle`|||图形样式。 [ItemStyle](#ItemStyle)| -|`data`|||系列中的数据内容数组。SerieData可以设置1到n维数据。 +|index|||系列索引。 +|show|true||系列是否显示在图表上。 +|coordSystem|||使用的坐标系。 +|serieType|||系列类型。 +|serieName|||系列名称,用于 tooltip 的显示,legend 的图例筛选。 +|state||v3.2.0|系列的默认状态。
`SerieState`:
- `Normal`: 正常状态。
- `Emphasis`: 高亮状态。
- `Blur`: 淡出状态。
- `Select`: 选中状态。
- `Auto`: 自动保持和父节点一致。一般用在SerieData。
| +|colorBy||v3.2.0|从主题中取色的策略。
`SerieColorBy`:
- `Default`: 默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略,Pie默认是Data策略
- `Serie`: 按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。
- `Data`: 按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。
| +|stack|||数据堆叠,同个类目轴上系列配置相同的stack值后,后一个系列的值会在前一个系列的值上相加。 +|xAxisIndex|0||使用X轴的index。 +|yAxisIndex|0||使用Y轴的index。 +|radarIndex|0||雷达图所使用的 radar 组件的 index。 +|vesselIndex|0||水位图所使用的 vessel 组件的 index。 +|polarIndex|0||所使用的 polar 组件的 index。 +|singleAxisIndex|0||所使用的 singleAxis 组件的 index。 +|parallelIndex|0||所使用的 parallel coord 组件的 index。 +|minShow|||系列所显示数据的最小索引 +|maxShow|||系列所显示数据的最大索引 +|maxCache|||系列中可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。 +|sampleDist|0||采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。 +|sampleType|||采样类型。当sampleDist大于0时有效。
`SampleType`:
- `Peak`: 取峰值。
- `Average`: 取过滤点的平均值。
- `Max`: 取过滤点的最大值。
- `Min`: 取过滤点的最小值。
- `Sum`: 取过滤点的和。
| +|sampleAverage|0||设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 +|lineType|||折线图样式类型。
`LineType`:
- `Normal`: 普通折线图。
- `Smooth`: 平滑曲线。
- `StepStart`: 阶梯线图:当前点。
- `StepMiddle`: 阶梯线图:当前点和下一个点的中间。
- `StepEnd`: 阶梯线图:下一个拐点。
| +|barType|||柱形图类型。
`BarType`:
- `Normal`: 普通柱形图。
- `Zebra`: 斑马柱形图。
- `Capsule`: 胶囊柱形图。
| +|barPercentStack|false||柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 +|barWidth|0||柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。 +|barGap|0.1f||不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%) 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。 +|barZebraWidth|4f||斑马线的粗细。 +|barZebraGap|2f||斑马线的间距。 +|min|||最小值。 +|max|||最大值。 +|minSize|0f||数据最小值 min 映射的宽度。 +|maxSize|1f||数据最大值 max 映射的宽度。 +|startAngle|||起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 +|endAngle|||结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。 +|minAngle|||最小的扇区角度(0-360)。用于防止某个值过小导致扇区太小影响交互。 +|clockwise|true||是否顺时针。 +|roundCap|||是否开启圆弧效果。 +|splitNumber|||刻度分割段数。最大可设置36。 +|clickOffset|true||鼠标点击时是否开启偏移,一般用在PieChart图表中。 +|roseType|||是否展示成南丁格尔图,通过半径区分数据大小。
`RoseType`:
- `None`: 不展示成南丁格尔玫瑰图。
- `Radius`: 扇区圆心角展现数据的百分比,半径展现数据的大小。
- `Area`: 所有扇区圆心角相同,仅通过半径展现数据大小。
| +|gap|||间距。 +|center|||中心点。 +|radius|||半径。radius[0]表示内径,radius[1]表示外径。 +|showDataDimension|||数据项里的数据维数。 +|showDataName|||在Editor的inpsector上是否显示name参数 +|clip|false||是否裁剪超出坐标系部分的图形。 +|ignore|false||是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 +|ignoreValue|0||忽略数据的默认值。当ignore为true才有效。 +|ignoreLineBreak|false||忽略数据时折线是断开还是连接。默认false为连接。 +|showAsPositiveNumber|false||将负数数值显示为正数。一般和`AxisLabel`的`showAsPositiveNumber`配合使用。仅在折线图和柱状图中有效。 +|large|true||是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 +|largeThreshold|200||开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。 +|avoidLabelOverlap|false||在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。 +|radarType|||雷达图类型。
`RadarType`:
- `Multiple`: 多圈雷达图。此时可一个雷达里绘制多个圈,一个serieData就可组成一个圈(多维数据)。
- `Single`: 单圈雷达图。此时一个雷达只能绘制一个圈,多个serieData组成一个圈,数据取自`data[1]`。
| +|placeHolder|false||占位模式。占位模式时,数据有效但不参与渲染和显示。 +|dataSortType|||组件的数据排序。
`SerieDataSortType`:
- `None`: 按 data 的顺序
- `Ascending`: 升序
- `Descending`: 降序
| +|orient|||组件的朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|align|||组件水平方向对齐方式。
`Align`:
- `Center`: 对齐方式
- `Left`: 对齐方式
- `Right`: 对齐方式
| +|left|||组件离容器左侧的距离。 +|right|||组件离容器右侧的距离。 +|top|||组件离容器上侧的距离。 +|bottom|||组件离容器下侧的距离。 +|insertDataToHead|||添加新数据时是在列表的头部还是尾部加入。 +|lineStyle|||线条样式。 [LineStyle](#LineStyle)| +|symbol|||标记的图形。 [SerieSymbol](#SerieSymbol)| +|animation|||起始动画。 [AnimationStyle](#AnimationStyle)| +|itemStyle|||图形样式。 [ItemStyle](#ItemStyle)| +|data|||系列中的数据内容数组。SerieData可以设置1到n维数据。 -## `SerieData` +## SerieData Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1148,17 +1148,17 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`index`|||数据项索引。 -|`name`|||数据项名称。 -|`id`|||数据项的唯一id。唯一id不是必须设置的。 -|`parentId`|||父节点id。父节点id不是必须设置的。 -|`ignore`|||是否忽略数据。当为 true 时,数据不进行绘制。 -|`selected`|||该数据项是否被选中。 -|`radius`|||自定义半径。可用在饼图中自定义某个数据项的半径。 -|`state`||v3.2.0|数据项的默认状态。
`SerieState`:
- `Normal`: 正常状态。
- `Emphasis`: 高亮状态。
- `Blur`: 淡出状态。
- `Select`: 选中状态。
- `Auto`: 自动保持和父节点一致。一般用在SerieData。
| -|`data`|||可指定任意维数的数值列表。 +|index|||数据项索引。 +|name|||数据项名称。 +|id|||数据项的唯一id。唯一id不是必须设置的。 +|parentId|||父节点id。父节点id不是必须设置的。 +|ignore|||是否忽略数据。当为 true 时,数据不进行绘制。 +|selected|||该数据项是否被选中。 +|radius|||自定义半径。可用在饼图中自定义某个数据项的半径。 +|state||v3.2.0|数据项的默认状态。
`SerieState`:
- `Normal`: 正常状态。
- `Emphasis`: 高亮状态。
- `Blur`: 淡出状态。
- `Select`: 选中状态。
- `Auto`: 自动保持和父节点一致。一般用在SerieData。
| +|data|||可指定任意维数的数值列表。 -## `SerieSymbol` +## SerieSymbol Inherits or Implemented: [SymbolStyle](#SymbolStyle),[ISerieDataComponent](#ISerieDataComponent) @@ -1166,36 +1166,36 @@ Inherits or Implemented: [SymbolStyle](#SymbolStyle),[ISerieDataComponent](#ISer |field|default|since|comment| |--|--|--|--| -|`sizeType`|||标记图形的大小获取方式。
`SymbolSizeType`:
- `Custom`: 自定义大小。
- `FromData`: 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
- `Function`: 通过委托函数获取。
| -|`dataIndex`|1||当sizeType指定为FromData时,指定的数据源索引。 -|`dataScale`|1||当sizeType指定为FromData时,指定的倍数系数。 -|`sizeFunction`|||当sizeType指定为Function时,指定的委托函数。 -|`startIndex`|||开始显示图形标记的索引。 -|`interval`|||显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 -|`forceShowLast`|false||是否强制显示最后一个图形标记。 -|`repeat`|false||图形是否重复。 -|`minSize`|0f|v3.3.0|图形最小尺寸。只在sizeType为SymbolSizeType.FromData时有效。 -|`maxSize`|0f|v3.3.0|图形最大尺寸。只在sizeType为SymbolSizeType.FromData时有效。 +|sizeType|||标记图形的大小获取方式。
`SymbolSizeType`:
- `Custom`: 自定义大小。
- `FromData`: 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
- `Function`: 通过委托函数获取。
| +|dataIndex|1||当sizeType指定为FromData时,指定的数据源索引。 +|dataScale|1||当sizeType指定为FromData时,指定的倍数系数。 +|sizeFunction|||当sizeType指定为Function时,指定的委托函数。 +|startIndex|||开始显示图形标记的索引。 +|interval|||显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 +|forceShowLast|false||是否强制显示最后一个图形标记。 +|repeat|false||图形是否重复。 +|minSize|0f|v3.3.0|图形最小尺寸。只在sizeType为SymbolSizeType.FromData时有效。 +|maxSize|0f|v3.3.0|图形最大尺寸。只在sizeType为SymbolSizeType.FromData时有效。 -## `SerieTheme` +## SerieTheme Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`lineWidth`|||文本颜色。 -|`lineSymbolSize`|||折线图的Symbol大小。 -|`scatterSymbolSize`|||散点图的Symbol大小。 -|`pieTooltipExtraRadius`|||饼图鼠标移到高亮时的额外半径 -|`selectedRate`|1.3f||折线图或散点图在被选中时的放大倍数。 -|`pieSelectedOffset`|||饼图选中时的中心点偏移。 -|`candlestickColor`|Color32(235, 84, 84, 255)||K线图阳线(涨)填充色 -|`candlestickColor0`|Color32(71, 178, 98, 255)||K线图阴线(跌)填充色 -|`candlestickBorderWidth`|1||K线图边框宽度 -|`candlestickBorderColor`|Color32(235, 84, 84, 255)||K线图阳线(跌)边框色 -|`candlestickBorderColor0`|Color32(71, 178, 98, 255)||K线图阴线(跌)边框色 +|lineWidth|||文本颜色。 +|lineSymbolSize|||折线图的Symbol大小。 +|scatterSymbolSize|||散点图的Symbol大小。 +|pieTooltipExtraRadius|||饼图鼠标移到高亮时的额外半径 +|selectedRate|1.3f||折线图或散点图在被选中时的放大倍数。 +|pieSelectedOffset|||饼图选中时的中心点偏移。 +|candlestickColor|Color32(235, 84, 84, 255)||K线图阳线(涨)填充色 +|candlestickColor0|Color32(71, 178, 98, 255)||K线图阴线(跌)填充色 +|candlestickBorderWidth|1||K线图边框宽度 +|candlestickBorderColor|Color32(235, 84, 84, 255)||K线图阳线(跌)边框色 +|candlestickBorderColor0|Color32(71, 178, 98, 255)||K线图阴线(跌)边框色 -## `Settings` +## Settings Inherits or Implemented: [MainComponent](#MainComponent) @@ -1203,37 +1203,37 @@ Inherits or Implemented: [MainComponent](#MainComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true|| -|`maxPainter`|10||设定的painter数量。 -|`reversePainter`|false||Painter是否逆序。逆序时index大的serie最先绘制。 -|`basePainterMaterial`|||Base Pointer 材质球,设置后会影响Axis等。 -|`seriePainterMaterial`|||Serie Pointer 材质球,设置后会影响所有Serie。 -|`upperPainterMaterial`|||Upper Pointer 材质球。 -|`topPainterMaterial`|||Top Pointer 材质球。 -|`lineSmoothStyle`|2.5f||曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。 -|`lineSmoothness`|2f||When the area with gradient is filled, the larger the value, the worse the transition effect. -|`lineSegmentDistance`|3f||线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。 -|`cicleSmoothness`|2f||圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。 -|`legendIconLineWidth`|2||Line类型图例图标的线条宽度。 -|`legendIconCornerRadius`|||图例圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 -|`axisMaxSplitNumber`|50|v3.1.0|坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。 +|show|true|| +|maxPainter|10||设定的painter数量。 +|reversePainter|false||Painter是否逆序。逆序时index大的serie最先绘制。 +|basePainterMaterial|||Base Pointer 材质球,设置后会影响Axis等。 +|seriePainterMaterial|||Serie Pointer 材质球,设置后会影响所有Serie。 +|upperPainterMaterial|||Upper Pointer 材质球。 +|topPainterMaterial|||Top Pointer 材质球。 +|lineSmoothStyle|2.5f||曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。 +|lineSmoothness|2f||When the area with gradient is filled, the larger the value, the worse the transition effect. +|lineSegmentDistance|3f||线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。 +|cicleSmoothness|2f||圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。 +|legendIconLineWidth|2||Line类型图例图标的线条宽度。 +|legendIconCornerRadius|||图例圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 +|axisMaxSplitNumber|50|v3.1.0|坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。 -## `SimplifiedBar` +## SimplifiedBar Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) -## `SimplifiedCandlestick` +## SimplifiedCandlestick Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) -## `SimplifiedLine` +## SimplifiedLine Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) -## `SingleAxis` +## SingleAxis Inherits or Implemented: [Axis](#Axis),[IUpdateRuntimeData](#IUpdateRuntimeData) @@ -1241,29 +1241,29 @@ Inherits or Implemented: [Axis](#Axis),[IUpdateRuntimeData](#IUpdateRuntimeData) |field|default|since|comment| |--|--|--|--| -|`orient`|||坐标轴朝向。默认为水平朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`left`|0.1f||组件离容器左侧的距离。 -|`right`|0.1f||组件离容器右侧的距离。 -|`top`|0f||组件离容器上侧的距离。 -|`bottom`|0.2f||组件离容器下侧的距离。 -|`width`|0||坐标轴宽。 -|`height`|50||坐标轴高。 +|orient|||坐标轴朝向。默认为水平朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|left|0.1f||组件离容器左侧的距离。 +|right|0.1f||组件离容器右侧的距离。 +|top|0f||组件离容器上侧的距离。 +|bottom|0.2f||组件离容器下侧的距离。 +|width|0||坐标轴宽。 +|height|50||坐标轴高。 -## `SingleAxisCoord` +## SingleAxisCoord Inherits or Implemented: [CoordSystem](#CoordSystem) -## `StageColor` +## StageColor Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`percent`|||结束位置百分比。 -|`color`|||颜色。 +|percent|||结束位置百分比。 +|color|||颜色。 -## `StateStyle` +## StateStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1273,20 +1273,20 @@ Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种 |field|default|since|comment| |--|--|--|--| -|`show`|true||是否启用高亮样式。 -|`label`|||图形文本标签。 [LabelStyle](#LabelStyle)| -|`labelLine`|||图形文本引导线样式。 [LabelLine](#LabelLine)| -|`itemStyle`|||图形样式。 [ItemStyle](#ItemStyle)| -|`lineStyle`|||折线样式。 [LineStyle](#LineStyle)| -|`areaStyle`|||区域样式。 [AreaStyle](#AreaStyle)| -|`symbol`|||标记样式。 [SerieSymbol](#SerieSymbol)| +|show|true||是否启用高亮样式。 +|label|||图形文本标签。 [LabelStyle](#LabelStyle)| +|labelLine|||图形文本引导线样式。 [LabelLine](#LabelLine)| +|itemStyle|||图形样式。 [ItemStyle](#ItemStyle)| +|lineStyle|||折线样式。 [LineStyle](#LineStyle)| +|areaStyle|||区域样式。 [AreaStyle](#AreaStyle)| +|symbol|||标记样式。 [SerieSymbol](#SerieSymbol)| -## `SubTitleTheme` +## SubTitleTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) -## `SymbolStyle` +## SymbolStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1294,18 +1294,18 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示标记。 -|`type`|||标记类型。
`SymbolType`:
- `None`: 不显示标记。
- `Custom`: 自定义标记。
- `Circle`: 圆形。
- `EmptyCircle`: 空心圆。
- `Rect`: 正方形。可通过设置`itemStyle`的`cornerRadius`变成圆角矩形。
- `EmptyRect`: 空心正方形。
- `Triangle`: 三角形。
- `EmptyTriangle`: 空心三角形。
- `Diamond`: 菱形。
- `EmptyDiamond`: 空心菱形。
- `Arrow`: 箭头。
- `EmptyArrow`: 空心箭头。
| -|`size`|0f||标记的大小。 -|`gap`|0||图形标记和线条的间隙距离。 -|`width`|0f||图形的宽。 -|`height`|0f||图形的高。 -|`offset`|Vector2.zero||图形的偏移。 -|`image`|||自定义的标记图形。 -|`imageType`|||图形填充类型。 -|`color`|||图形的颜色。 +|show|true||是否显示标记。 +|type|||标记类型。
`SymbolType`:
- `None`: 不显示标记。
- `Custom`: 自定义标记。
- `Circle`: 圆形。
- `EmptyCircle`: 空心圆。
- `Rect`: 正方形。可通过设置`itemStyle`的`cornerRadius`变成圆角矩形。
- `EmptyRect`: 空心正方形。
- `Triangle`: 三角形。
- `EmptyTriangle`: 空心三角形。
- `Diamond`: 菱形。
- `EmptyDiamond`: 空心菱形。
- `Arrow`: 箭头。
- `EmptyArrow`: 空心箭头。
| +|size|0f||标记的大小。 +|gap|0||图形标记和线条的间隙距离。 +|width|0f||图形的宽。 +|height|0f||图形的高。 +|offset|Vector2.zero||图形的偏移。 +|image|||自定义的标记图形。 +|imageType|||图形填充类型。 +|color|||图形的颜色。 -## `TextLimit` +## TextLimit Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1313,19 +1313,19 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`enable`|false||是否启用文本自适应。 [default:true] -|`maxWidth`|0||Clipping occurs when the width of the text is greater than this value. -|`gap`|1||两边留白像素距离。 [default:10f] -|`suffix`|||长度超出时的后缀。 [default: "..."] +|enable|false||是否启用文本自适应。 [default:true] +|maxWidth|0||Clipping occurs when the width of the text is greater than this value. +|gap|1||两边留白像素距离。 [default:10f] +|suffix|||长度超出时的后缀。 [default: "..."] -## `TextPadding` +## TextPadding Inherits or Implemented: [Padding](#Padding) 文本的内边距设置。 -## `TextStyle` +## TextStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1333,23 +1333,23 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||文本的相关设置。 -|`font`|||文本字体。 [default: null] -|`autoWrap`|false||是否自动换行。 -|`autoAlign`|true||文本是否让系统自动选对齐方式。为false时才会用alignment。 -|`rotate`|0||文本的旋转。 [default: `0f`] -|`autoColor`|false||是否开启自动颜色。当开启时,会自动设置颜色。 -|`color`|||文本的颜色。 [default: `Color.clear`] -|`fontSize`|0||文本字体大小。 [default: 18] -|`fontStyle`|||文本字体的风格。 [default: FontStyle.Normal] -|`lineSpacing`|1f||行间距。 [default: 1f] -|`alignment`|||对齐方式。 -|`tMPFont`|||TextMeshPro字体。 -|`tMPFontStyle`||| -|`tMPAlignment`||| -|`tMPSpriteAsset`||v3.1.0| +|show|true||文本的相关设置。 +|font|||文本字体。 [default: null] +|autoWrap|false||是否自动换行。 +|autoAlign|true||文本是否让系统自动选对齐方式。为false时才会用alignment。 +|rotate|0||文本的旋转。 [default: `0f`] +|autoColor|false||是否开启自动颜色。当开启时,会自动设置颜色。 +|color|||文本的颜色。 [default: `Color.clear`] +|fontSize|0||文本字体大小。 [default: 18] +|fontStyle|||文本字体的风格。 [default: FontStyle.Normal] +|lineSpacing|1f||行间距。 [default: 1f] +|alignment|||对齐方式。 +|tMPFont|||TextMeshPro字体。 +|tMPFontStyle||| +|tMPAlignment||| +|tMPSpriteAsset||v3.1.0| -## `Theme` +## Theme Inherits or Implemented: [ScriptableObject](#ScriptableObject) @@ -1357,24 +1357,24 @@ Inherits or Implemented: [ScriptableObject](#ScriptableObject) |field|default|since|comment| |--|--|--|--| -|`themeType`|||主题类型。
`ThemeType`:
- `Default`: 默认主题。
- `Light`: 亮主题。
- `Dark`: 暗主题。
- `Custom`: 自定义主题。
| -|`themeName`|||主题名称。 -|`font`|||主题字体。 -|`tMPFont`|||主题字体。 -|`contrastColor`|||对比色。 -|`backgroundColor`|||背景颜色。 -|`colorPalette`|||调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。 -|`common`||| [ComponentTheme](#ComponentTheme)| -|`title`||| [TitleTheme](#TitleTheme)| -|`subTitle`||| [SubTitleTheme](#SubTitleTheme)| -|`legend`||| [LegendTheme](#LegendTheme)| -|`axis`||| [AxisTheme](#AxisTheme)| -|`tooltip`||| [TooltipTheme](#TooltipTheme)| -|`dataZoom`||| [DataZoomTheme](#DataZoomTheme)| -|`visualMap`||| [VisualMapTheme](#VisualMapTheme)| -|`serie`||| [SerieTheme](#SerieTheme)| +|themeType|||主题类型。
`ThemeType`:
- `Default`: 默认主题。
- `Light`: 亮主题。
- `Dark`: 暗主题。
- `Custom`: 自定义主题。
| +|themeName|||主题名称。 +|font|||主题字体。 +|tMPFont|||主题字体。 +|contrastColor|||对比色。 +|backgroundColor|||背景颜色。 +|colorPalette|||调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。 +|common||| [ComponentTheme](#ComponentTheme)| +|title||| [TitleTheme](#TitleTheme)| +|subTitle||| [SubTitleTheme](#SubTitleTheme)| +|legend||| [LegendTheme](#LegendTheme)| +|axis||| [AxisTheme](#AxisTheme)| +|tooltip||| [TooltipTheme](#TooltipTheme)| +|dataZoom||| [DataZoomTheme](#DataZoomTheme)| +|visualMap||| [VisualMapTheme](#VisualMapTheme)| +|serie||| [SerieTheme](#SerieTheme)| -## `ThemeStyle` +## ThemeStyle Inherits or Implemented: [ChildComponent](#ChildComponent) @@ -1382,15 +1382,15 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true|| -|`sharedTheme`|||主题配置。 [Theme](#Theme)| -|`transparentBackground`|false||是否透明背景颜色。当设置为true时,不绘制背景颜色。 -|`enableCustomTheme`|false||是否自定义主题颜色。当设置为true时,可以用‘sync color to custom’同步主题的颜色到自定义颜色。也可以手动设置。 -|`customFont`||| -|`customBackgroundColor`|||自定义的背景颜色。 -|`customColorPalette`||| +|show|true|| +|sharedTheme|||主题配置。 [Theme](#Theme)| +|transparentBackground|false||是否透明背景颜色。当设置为true时,不绘制背景颜色。 +|enableCustomTheme|false||是否自定义主题颜色。当设置为true时,可以用‘sync color to custom’同步主题的颜色到自定义颜色。也可以手动设置。 +|customFont||| +|customBackgroundColor|||自定义的背景颜色。 +|customColorPalette||| -## `Title` +## Title Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPropertyChanged) @@ -1398,27 +1398,27 @@ Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPr |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示标题组件。 -|`text`|||主标题文本,支持使用 \n 换行。 -|`subText`|||副标题文本,支持使用 \n 换行。 -|`labelStyle`|||主标题文本样式。 [LabelStyle](#LabelStyle)| -|`subLabelStyle`|||副标题文本样式。 [LabelStyle](#LabelStyle)| -|`itemGap`|0||主副标题之间的间距。 -|`location`|||标题显示位置。 [Location](#Location)| +|show|true||是否显示标题组件。 +|text|||主标题文本,支持使用 \n 换行。 +|subText|||副标题文本,支持使用 \n 换行。 +|labelStyle|||主标题文本样式。 [LabelStyle](#LabelStyle)| +|subLabelStyle|||副标题文本样式。 [LabelStyle](#LabelStyle)| +|itemGap|0||主副标题之间的间距。 +|location|||标题显示位置。 [Location](#Location)| -## `TitleStyle` +## TitleStyle Inherits or Implemented: [LabelStyle](#LabelStyle),[ISerieDataComponent](#ISerieDataComponent),[ISerieExtraComponent](#ISerieExtraComponent) 标题相关设置。 -## `TitleTheme` +## TitleTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) -## `Tooltip` +## Tooltip Inherits or Implemented: [MainComponent](#MainComponent) @@ -1426,53 +1426,53 @@ Inherits or Implemented: [MainComponent](#MainComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||是否显示提示框组件。 -|`type`|||提示框指示器类型。
`Tooltip.Type`:
- `Line`: 直线指示器
- `Shadow`: 阴影指示器
- `None`: 无指示器
- `Corss`: 十字准星指示器。坐标轴显示Label和交叉线。
| -|`trigger`|||触发类型。
`Tooltip.Trigger`:
- `Item`: 数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
- `Axis`: 坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。
- `None`: 什么都不触发。
| -|`position`||v3.3.0|显示位置类型。
`Tooltip.Position`:
- `Auto`: 自适应。移动平台靠顶部显示,非移动平台跟随鼠标位置。
- `Custom`: 自定义。完全自定义显示位置(x,y)。
- `FixedX`: 只固定坐标X。Y跟随鼠标位置。
- `FixedY`:
| -|`itemFormatter`|||提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用 -|`titleFormatter`|||提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{.}为当前所指示或index为0的serie的对应颜色的圆点。
{a}为当前所指示或index为0的serie的系列名name。
{b}为当前所指示或index为0的serie的数据项serieData的name,或者类目值(如折线图的X轴)。
{c}为当前所指示或index为0的serie的y维(dimesion为1)的数值。
{d}为当前所指示或index为0的serie的y维(dimesion为1)百分比值,注意不带%号。
{e}为当前所指示或index为0的serie的数据项serieData的name。
{f}为数据总和。
{g}为数据总个数。
{.1}表示指定index为1的serie对应颜色的圆点。
{a1}、{b1}、{c1}中的1表示指定index为1的serie。
{c1:2}表示索引为1的serie的当前指示数据项的第3个数据(一个数据项有多个数据,index为2表示第3个数据)。
{c1:2-2}表示索引为1的serie的第3个数据项的第3个数据(也就是要指定第几个数据项时必须要指定第几个数据)。
{d1:2:f2}表示单独指定了数值的格式化字符串为f2(不指定时用numericFormatter)。
{d:0.##} 表示单独指定了数值的格式化字符串为 0.## (用于百分比,保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。
示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}" -|`marker`|||serie的符号标志。 -|`fixedWidth`|0||固定宽度。比 minWidth 优先。 -|`fixedHeight`|0||固定高度。比 minHeight 优先。 -|`minWidth`|0||最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。 -|`minHeight`|0||最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。 -|`numericFormatter`|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings -|`paddingLeftRight`|10||左右边距。 -|`paddingTopBottom`|10||上下边距。 -|`ignoreDataShow`|false||是否显示忽略数据在tooltip上。 -|`ignoreDataDefaultContent`|||被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。 -|`showContent`|true||是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。 -|`alwayShowContent`|false||是否触发后一直显示提示框浮层。 -|`offset`|Vector2(18f, -25f)||提示框相对于鼠标位置的偏移。 -|`backgroundImage`|||提示框的背景图片。 -|`backgroundType`|||提示框的背景图片显示类型。 -|`backgroundColor`|||提示框的背景颜色。 -|`borderWidth`|2f||边框线宽。 -|`fixedX`|0f||固定X位置的坐标。 -|`fixedY`|0.7f||固定Y位置的坐标。 -|`titleHeight`|25f||标题文本的高。 -|`itemHeight`|25f||数据项文本的高。 -|`borderColor`|Color32(230, 230, 230, 255)||边框颜色。 -|`lineStyle`|||指示线样式。 [LineStyle](#LineStyle)| -|`indicatorLabelStyle`|||提示框的坐标轴指示器文本的样式。 [LabelStyle](#LabelStyle)| -|`titleLabelStyle`|||标题的文本样式。 [LabelStyle](#LabelStyle)| -|`contentLabelStyles`|||内容部分的文本样式列表。和列一一对应。 +|show|true||是否显示提示框组件。 +|type|||提示框指示器类型。
`Tooltip.Type`:
- `Line`: 直线指示器
- `Shadow`: 阴影指示器
- `None`: 无指示器
- `Corss`: 十字准星指示器。坐标轴显示Label和交叉线。
| +|trigger|||触发类型。
`Tooltip.Trigger`:
- `Item`: 数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
- `Axis`: 坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。
- `None`: 什么都不触发。
| +|position||v3.3.0|显示位置类型。
`Tooltip.Position`:
- `Auto`: 自适应。移动平台靠顶部显示,非移动平台跟随鼠标位置。
- `Custom`: 自定义。完全自定义显示位置(x,y)。
- `FixedX`: 只固定坐标X。Y跟随鼠标位置。
- `FixedY`:
| +|itemFormatter|||提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用 +|titleFormatter|||提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{.}为当前所指示或index为0的serie的对应颜色的圆点。
{a}为当前所指示或index为0的serie的系列名name。
{b}为当前所指示或index为0的serie的数据项serieData的name,或者类目值(如折线图的X轴)。
{c}为当前所指示或index为0的serie的y维(dimesion为1)的数值。
{d}为当前所指示或index为0的serie的y维(dimesion为1)百分比值,注意不带%号。
{e}为当前所指示或index为0的serie的数据项serieData的name。
{f}为数据总和。
{g}为数据总个数。
{.1}表示指定index为1的serie对应颜色的圆点。
{a1}、{b1}、{c1}中的1表示指定index为1的serie。
{c1:2}表示索引为1的serie的当前指示数据项的第3个数据(一个数据项有多个数据,index为2表示第3个数据)。
{c1:2-2}表示索引为1的serie的第3个数据项的第3个数据(也就是要指定第几个数据项时必须要指定第几个数据)。
{d1:2:f2}表示单独指定了数值的格式化字符串为f2(不指定时用numericFormatter)。
{d:0.##} 表示单独指定了数值的格式化字符串为 0.## (用于百分比,保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。
示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}" +|marker|||serie的符号标志。 +|fixedWidth|0||固定宽度。比 minWidth 优先。 +|fixedHeight|0||固定高度。比 minHeight 优先。 +|minWidth|0||最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。 +|minHeight|0||最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。 +|numericFormatter|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings +|paddingLeftRight|10||左右边距。 +|paddingTopBottom|10||上下边距。 +|ignoreDataShow|false||是否显示忽略数据在tooltip上。 +|ignoreDataDefaultContent|||被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。 +|showContent|true||是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。 +|alwayShowContent|false||是否触发后一直显示提示框浮层。 +|offset|Vector2(18f, -25f)||提示框相对于鼠标位置的偏移。 +|backgroundImage|||提示框的背景图片。 +|backgroundType|||提示框的背景图片显示类型。 +|backgroundColor|||提示框的背景颜色。 +|borderWidth|2f||边框线宽。 +|fixedX|0f||固定X位置的坐标。 +|fixedY|0.7f||固定Y位置的坐标。 +|titleHeight|25f||标题文本的高。 +|itemHeight|25f||数据项文本的高。 +|borderColor|Color32(230, 230, 230, 255)||边框颜色。 +|lineStyle|||指示线样式。 [LineStyle](#LineStyle)| +|indicatorLabelStyle|||提示框的坐标轴指示器文本的样式。 [LabelStyle](#LabelStyle)| +|titleLabelStyle|||标题的文本样式。 [LabelStyle](#LabelStyle)| +|contentLabelStyles|||内容部分的文本样式列表。和列一一对应。 -## `TooltipTheme` +## TooltipTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) |field|default|since|comment| |--|--|--|--| -|`lineType`|||坐标轴线类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`lineWidth`|1f||指示线线宽。 -|`lineColor`|||指示线颜色。 -|`areaColor`|||区域指示的颜色。 -|`labelTextColor`|||十字指示器坐标轴标签的文本颜色。 -|`labelBackgroundColor`|||十字指示器坐标轴标签的背景颜色。 +|lineType|||坐标轴线类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|lineWidth|1f||指示线线宽。 +|lineColor|||指示线颜色。 +|areaColor|||区域指示的颜色。 +|labelTextColor|||十字指示器坐标轴标签的文本颜色。 +|labelBackgroundColor|||十字指示器坐标轴标签的背景颜色。 -## `VisualMap` +## VisualMap Inherits or Implemented: [MainComponent](#MainComponent) @@ -1480,116 +1480,116 @@ Inherits or Implemented: [MainComponent](#MainComponent) |field|default|since|comment| |--|--|--|--| -|`show`|true||组件是否生效。 -|`showUI`|false||是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。 -|`type`|||组件类型。
`VisualMap.Type`:
- `Continuous`: 连续型。
- `Piecewise`: 分段型。
| -|`selectedMode`|||选择模式。
`VisualMap.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
| -|`serieIndex`|0||影响的serie索引。 -|`min`|0||范围最小值 -|`max`|0||范围最大值 -|`range`|||指定手柄对应数值的位置。range 应在[min,max]范围内。 -|`text`|||两端的文本,如 ['High', 'Low']。 -|`textGap`|||两端文字主体之间的距离,单位为px。 -|`splitNumber`|5||对于连续型数据,自动平均切分成几段,默认为0时自动匹配inRange颜色列表大小。 -|`calculable`|false||是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。 -|`realtime`|true||拖拽时,是否实时更新。 -|`itemWidth`|20f||图形的宽度,即颜色条的宽度。 -|`itemHeight`|140f||图形的高度,即颜色条的高度。 -|`itemGap`|10f||每个图元之间的间隔距离。 -|`borderWidth`|0||边框线宽,单位px。 -|`dimension`|-1||Starting at 1, the default is 0 to take the last dimension in data. -|`hoverLink`|true||Conversely, when the mouse hovers over a graphic element in a diagram, the corresponding value of the visualMap component is triangulated in the corresponding position. -|`autoMinMax`|true||Automatically set min, Max value 自动设置min,max的值 -|`orient`|||布局方式是横还是竖。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|`location`|||组件显示的位置。 [Location](#Location)| -|`workOnLine`|true||组件是否对LineChart的LineStyle有效。 -|`workOnArea`|false||组件是否对LineChart的AreaStyle有效。 -|`outOfRange`|||定义 在选中范围外 的视觉颜色。 -|`inRange`|||分段式每一段的相关配置。 +|show|true||组件是否生效。 +|showUI|false||是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。 +|type|||组件类型。
`VisualMap.Type`:
- `Continuous`: 连续型。
- `Piecewise`: 分段型。
| +|selectedMode|||选择模式。
`VisualMap.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
| +|serieIndex|0||影响的serie索引。 +|min|0||范围最小值 +|max|0||范围最大值 +|range|||指定手柄对应数值的位置。range 应在[min,max]范围内。 +|text|||两端的文本,如 ['High', 'Low']。 +|textGap|||两端文字主体之间的距离,单位为px。 +|splitNumber|5||对于连续型数据,自动平均切分成几段,默认为0时自动匹配inRange颜色列表大小。 +|calculable|false||是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。 +|realtime|true||拖拽时,是否实时更新。 +|itemWidth|20f||图形的宽度,即颜色条的宽度。 +|itemHeight|140f||图形的高度,即颜色条的高度。 +|itemGap|10f||每个图元之间的间隔距离。 +|borderWidth|0||边框线宽,单位px。 +|dimension|-1||Starting at 1, the default is 0 to take the last dimension in data. +|hoverLink|true||Conversely, when the mouse hovers over a graphic element in a diagram, the corresponding value of the visualMap component is triangulated in the corresponding position. +|autoMinMax|true||Automatically set min, Max value 自动设置min,max的值 +|orient|||布局方式是横还是竖。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| +|location|||组件显示的位置。 [Location](#Location)| +|workOnLine|true||组件是否对LineChart的LineStyle有效。 +|workOnArea|false||组件是否对LineChart的AreaStyle有效。 +|outOfRange|||定义 在选中范围外 的视觉颜色。 +|inRange|||分段式每一段的相关配置。 -## `VisualMapRange` +## VisualMapRange Inherits or Implemented: [ChildComponent](#ChildComponent) |field|default|since|comment| |--|--|--|--| -|`min`|||范围最小值 -|`max`|||范围最大值 -|`label`|||文字描述 -|`color`|||颜色 +|min|||范围最小值 +|max|||范围最大值 +|label|||文字描述 +|color|||颜色 -## `VisualMapTheme` +## VisualMapTheme Inherits or Implemented: [ComponentTheme](#ComponentTheme) |field|default|since|comment| |--|--|--|--| -|`borderWidth`|||边框线宽。 -|`borderColor`|||边框颜色。 -|`backgroundColor`|||背景颜色。 -|`triangeLen`|20f||可视化组件的调节三角形边长。 +|borderWidth|||边框线宽。 +|borderColor|||边框颜色。 +|backgroundColor|||背景颜色。 +|triangeLen|20f||可视化组件的调节三角形边长。 -## `XAxis` +## XAxis Inherits or Implemented: [Axis](#Axis) 直角坐标系 grid 中的 x 轴。 -## `XCResourcesImporter` +## XCResourcesImporter -## `XCSettings` +## XCSettings Inherits or Implemented: [ScriptableObject](#ScriptableObject) |field|default|since|comment| |--|--|--|--| -|`lang`||| [Lang](#Lang)| -|`font`||| -|`tMPFont`||| -|`fontSizeLv1`|28||一级字体大小。 -|`fontSizeLv2`|24|| -|`fontSizeLv3`|20|| -|`fontSizeLv4`|18|| -|`axisLineType`|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`axisLineWidth`|0.8f|| -|`axisSplitLineType`|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|`axisSplitLineWidth`|0.8f|| -|`axisTickWidth`|0.8f|| -|`axisTickLength`|5f|| -|`gaugeAxisLineWidth`|15f|| -|`gaugeAxisSplitLineWidth`|0.8f|| -|`gaugeAxisSplitLineLength`|15f|| -|`gaugeAxisTickWidth`|0.8f|| -|`gaugeAxisTickLength`|5f|| -|`tootipLineWidth`|0.8f|| -|`dataZoomBorderWidth`|0.5f|| -|`dataZoomDataLineWidth`|0.5f|| -|`visualMapBorderWidth`|0f|| -|`serieLineWidth`|1.8f|| -|`serieLineSymbolSize`|5f|| -|`serieScatterSymbolSize`|20f|| -|`serieSelectedRate`|1.3f|| -|`serieCandlestickBorderWidth`|1f|| -|`editorShowAllListData`|false|| -|`maxPainter`|10|| -|`lineSmoothStyle`|3f|| -|`lineSmoothness`|2f|| -|`lineSegmentDistance`|3f|| -|`cicleSmoothness`|2f|| -|`visualMapTriangeLen`|20f|| -|`pieTooltipExtraRadius`|8f|| -|`pieSelectedOffset`|8f|| -|`customThemes`||| +|lang||| [Lang](#Lang)| +|font||| +|tMPFont||| +|fontSizeLv1|28||一级字体大小。 +|fontSizeLv2|24|| +|fontSizeLv3|20|| +|fontSizeLv4|18|| +|axisLineType|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|axisLineWidth|0.8f|| +|axisSplitLineType|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| +|axisSplitLineWidth|0.8f|| +|axisTickWidth|0.8f|| +|axisTickLength|5f|| +|gaugeAxisLineWidth|15f|| +|gaugeAxisSplitLineWidth|0.8f|| +|gaugeAxisSplitLineLength|15f|| +|gaugeAxisTickWidth|0.8f|| +|gaugeAxisTickLength|5f|| +|tootipLineWidth|0.8f|| +|dataZoomBorderWidth|0.5f|| +|dataZoomDataLineWidth|0.5f|| +|visualMapBorderWidth|0f|| +|serieLineWidth|1.8f|| +|serieLineSymbolSize|5f|| +|serieScatterSymbolSize|20f|| +|serieSelectedRate|1.3f|| +|serieCandlestickBorderWidth|1f|| +|editorShowAllListData|false|| +|maxPainter|10|| +|lineSmoothStyle|3f|| +|lineSmoothness|2f|| +|lineSegmentDistance|3f|| +|cicleSmoothness|2f|| +|visualMapTriangeLen|20f|| +|pieTooltipExtraRadius|8f|| +|pieSelectedOffset|8f|| +|customThemes||| -## `YAxis` +## YAxis Inherits or Implemented: [Axis](#Axis) 直角坐标系 grid 中的 y 轴。 -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XChartsAPI接口](XChartsAPI-ZH.md)
+[XCharts主页](https://github.com/XCharts-Team/XCharts)
+[XChartsAPI接口](XChartsAPI-ZH.md)
[XCharts问答](XChartsFAQ-ZH.md) diff --git a/Documentation/XChartsFAQ-EN.md b/Documentation/XChartsFAQ-EN.md index d3b00d5b..f615f2ca 100644 --- a/Documentation/XChartsFAQ-EN.md +++ b/Documentation/XChartsFAQ-EN.md @@ -1,7 +1,7 @@ # XCharts FAQ -[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
-[XCharts API](XChartsAPI-EN.md)
+[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
+[XCharts API](XChartsAPI-EN.md)
[XCharts Configuration](XChartsConfiguration-EN.md) [QA 1: How to adjust the margin between the axis and the background?](#How-to-adjust-the-margin-between-the-axis-and-the=-background) @@ -145,6 +145,6 @@ A: This is the limit of `UGUI` on the number of vertices for a single `Graphic`. A: Check whether `RemoveData()` and add new `Serie` in the code. If you want to keep the configuration of `Serie`, you can only `ClearData()` which just clear data and then readd the data to the old serie. -[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
-[XCharts API](XChartsAPI-EN.md)
+[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
+[XCharts API](XChartsAPI-EN.md)
[XCharts Configuration](XChartsConfiguration-EN.md) \ No newline at end of file diff --git a/Documentation/XChartsFAQ-ZH.md b/Documentation/XChartsFAQ-ZH.md index 532f3811..44468e15 100644 --- a/Documentation/XChartsFAQ-ZH.md +++ b/Documentation/XChartsFAQ-ZH.md @@ -1,4 +1,4 @@ -# XCharts问答 +# 问答 [XCharts主页](https://github.com/XCharts-Team/XCharts) [XChartsAPI](XChartsAPI-ZH.md) diff --git a/Documentation/XChartsTutorial01-EN.md b/Documentation/XChartsTutorial01-EN.md index e4013745..40342704 100644 --- a/Documentation/XChartsTutorial01-EN.md +++ b/Documentation/XChartsTutorial01-EN.md @@ -1,8 +1,8 @@ # 教程:5分钟上手 XCharts 3.0 -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts问答](XChartsFAQ-ZH.md)
-[XChartsAPI接口](XChartsAPI-ZH.md)
+[XCharts主页](https://github.com/XCharts-Team/XCharts)
+[XCharts问答](XChartsFAQ-ZH.md)
+[XChartsAPI接口](XChartsAPI-ZH.md)
[XCharts配置项手册](XChartsConfiguration-ZH.md) ## 获取和导入 XCharts @@ -257,7 +257,7 @@ itemStyle.color = Color.blue; ``` -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts问答](XChartsFAQ-ZH.md)
-[XChartsAPI接口](XChartsAPI-ZH.md)
+[XCharts主页](https://github.com/XCharts-Team/XCharts)
+[XCharts问答](XChartsFAQ-ZH.md)
+[XChartsAPI接口](XChartsAPI-ZH.md)
[XCharts配置项手册](XChartsConfiguration-ZH.md) diff --git a/Documentation/XChartsTutorial01-ZH.md b/Documentation/XChartsTutorial01-ZH.md index 4adb80a2..e37f9b84 100644 --- a/Documentation/XChartsTutorial01-ZH.md +++ b/Documentation/XChartsTutorial01-ZH.md @@ -1,8 +1,8 @@ # 教程:5分钟上手 XCharts 3.0 -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts问答](XChartsFAQ-ZH.md)
-[XChartsAPI接口](XChartsAPI-ZH.md)
+[XCharts主页](https://github.com/XCharts-Team/XCharts)
+[XCharts问答](XChartsFAQ-ZH.md)
+[XChartsAPI接口](XChartsAPI-ZH.md)
[XCharts配置项手册](XChartsConfiguration-ZH.md) ## 获取和导入 XCharts @@ -257,7 +257,7 @@ itemStyle.color = Color.blue; ``` -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts问答](XChartsFAQ-ZH.md)
-[XChartsAPI接口](XChartsAPI-ZH.md)
+[XCharts主页](https://github.com/XCharts-Team/XCharts)
+[XCharts问答](XChartsFAQ-ZH.md)
+[XChartsAPI接口](XChartsAPI-ZH.md)
[XCharts配置项手册](XChartsConfiguration-ZH.md) diff --git a/Runtime/Component/Tooltip/Tooltip.cs b/Runtime/Component/Tooltip/Tooltip.cs index b882e057..b6a9b9b9 100644 --- a/Runtime/Component/Tooltip/Tooltip.cs +++ b/Runtime/Component/Tooltip/Tooltip.cs @@ -178,56 +178,56 @@ namespace XCharts.Runtime /// The placeholder {I} can be set separately to indicate that the title is ignored and not displayed. /// Template see itemFormatter. /// |提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。 - /// 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
- /// {.}为当前所指示或index为0的serie的对应颜色的圆点。
- /// {a}为当前所指示或index为0的serie的系列名name。
- /// {b}为当前所指示或index为0的serie的数据项serieData的name,或者类目值(如折线图的X轴)。
- /// {c}为当前所指示或index为0的serie的y维(dimesion为1)的数值。
- /// {d}为当前所指示或index为0的serie的y维(dimesion为1)百分比值,注意不带%号。
- /// {e}为当前所指示或index为0的serie的数据项serieData的name。
- /// {f}为数据总和。
- /// {g}为数据总个数。
- /// {.1}表示指定index为1的serie对应颜色的圆点。
- /// {a1}、{b1}、{c1}中的1表示指定index为1的serie。
- /// {c1:2}表示索引为1的serie的当前指示数据项的第3个数据(一个数据项有多个数据,index为2表示第3个数据)。
- /// {c1:2-2}表示索引为1的serie的第3个数据项的第3个数据(也就是要指定第几个数据项时必须要指定第几个数据)。
- /// {d1:2:f2}表示单独指定了数值的格式化字符串为f2(不指定时用numericFormatter)。
- /// {d:0.##} 表示单独指定了数值的格式化字符串为 0.## (用于百分比,保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。
+ /// 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
+ /// {.}为当前所指示或index为0的serie的对应颜色的圆点。
+ /// {a}为当前所指示或index为0的serie的系列名name。
+ /// {b}为当前所指示或index为0的serie的数据项serieData的name,或者类目值(如折线图的X轴)。
+ /// {c}为当前所指示或index为0的serie的y维(dimesion为1)的数值。
+ /// {d}为当前所指示或index为0的serie的y维(dimesion为1)百分比值,注意不带%号。
+ /// {e}为当前所指示或index为0的serie的数据项serieData的name。
+ /// {f}为数据总和。
+ /// {g}为数据总个数。
+ /// {.1}表示指定index为1的serie对应颜色的圆点。
+ /// {a1}、{b1}、{c1}中的1表示指定index为1的serie。
+ /// {c1:2}表示索引为1的serie的当前指示数据项的第3个数据(一个数据项有多个数据,index为2表示第3个数据)。
+ /// {c1:2-2}表示索引为1的serie的第3个数据项的第3个数据(也就是要指定第几个数据项时必须要指定第几个数据)。
+ /// {d1:2:f2}表示单独指定了数值的格式化字符串为f2(不指定时用numericFormatter)。
+ /// {d:0.##} 表示单独指定了数值的格式化字符串为 0.## (用于百分比,保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。
/// 示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}" /// /// public string titleFormatter { get { return m_TitleFormatter; } set { m_TitleFormatter = value; } } /// /// 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.
- /// {.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}"
+ /// 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.
+ /// {.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}"
/// |提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用|来表示多个列的分隔。 - /// 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
+ /// 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
/// {i}或-表示忽略当前项。 - /// {.}为当前所指示的serie或数据项的对应颜色的圆点。
- /// {a}为当前所指示的serie或数据项的系列名name。
- /// {b}为当前所指示的serie或数据项的数据项serieData的name,或者类目值(如折线图的X轴)。
- /// {c}为当前所指示的serie或数据项的y维(dimesion为1)的数值。
- /// {d}为当前所指示的serie或数据项的y维(dimesion为1)百分比值,注意不带%号。
- /// {e}为当前所指示的serie或数据项的数据项serieData的name。
- /// {f}为当前所指示的serie的默认维度的数据总和。
- /// {g}为当前所指示的serie的数据总个数。
- /// {c0}表示当前数据项维度为0的数据。
- /// {c1}表示当前数据项维度为1的数据。
- /// {d3}表示维度3的数据的百分比。它的分母是默认维度(一般是1维度)数据。
+ /// {.}为当前所指示的serie或数据项的对应颜色的圆点。
+ /// {a}为当前所指示的serie或数据项的系列名name。
+ /// {b}为当前所指示的serie或数据项的数据项serieData的name,或者类目值(如折线图的X轴)。
+ /// {c}为当前所指示的serie或数据项的y维(dimesion为1)的数值。
+ /// {d}为当前所指示的serie或数据项的y维(dimesion为1)百分比值,注意不带%号。
+ /// {e}为当前所指示的serie或数据项的数据项serieData的name。
+ /// {f}为当前所指示的serie的默认维度的数据总和。
+ /// {g}为当前所指示的serie的数据总个数。
+ /// {c0}表示当前数据项维度为0的数据。
+ /// {c1}表示当前数据项维度为1的数据。
+ /// {d3}表示维度3的数据的百分比。它的分母是默认维度(一般是1维度)数据。
/// |表示多个列的分隔。
/// 示例:"{i}", "{.}|{a}|{c}", "{.}|{b}|{c2:f2}" ///
diff --git a/Runtime/Serie/Heatmap/Heatmap.cs b/Runtime/Serie/Heatmap/Heatmap.cs index 91b79855..54a50e98 100644 --- a/Runtime/Serie/Heatmap/Heatmap.cs +++ b/Runtime/Serie/Heatmap/Heatmap.cs @@ -30,7 +30,7 @@ namespace XCharts.Runtime [SerieDataExtraField()] public class Heatmap : Serie, INeedSerieContainer { - [SerializeField][Since("3.3.0")] private HeatmapType m_HeatmapType = HeatmapType.Data; + [SerializeField][Since("v3.3.0")] private HeatmapType m_HeatmapType = HeatmapType.Data; /// /// The mapping type of heatmap. diff --git a/Runtime/Serie/Radar/Radar.cs b/Runtime/Serie/Radar/Radar.cs index 4aa23261..a0524271 100644 --- a/Runtime/Serie/Radar/Radar.cs +++ b/Runtime/Serie/Radar/Radar.cs @@ -11,7 +11,7 @@ namespace XCharts.Runtime [SerieDataExtraField()] public class Radar : Serie, INeedSerieContainer { - [SerializeField][Since("3.2.0")] private bool m_Smooth = false; + [SerializeField][Since("v3.2.0")] private bool m_Smooth = false; /// /// Whether use smooth curve.