From 09f7557e1f23251aa59bfb84f0c6c1153e7349f3 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 25 Mar 2022 13:36:10 +0800 Subject: [PATCH] 3.0 --- Documentation/XChartsAPI-EN.md | 1065 +++++++++++++++-- ...hartsAPI.md.meta => XChartsAPI-EN.md.meta} | 2 +- Documentation/XChartsAPI-ZH.md | 1063 ++++++++++++++-- ...钟上手教程.md.meta => XChartsAPI-ZH.md.meta} | 2 +- Documentation/XChartsConfiguration-EN.md | 51 +- ...册.md.meta => XChartsConfiguration-EN.md.meta} | 2 +- Documentation/XChartsConfiguration-ZH.md | 51 +- ....md.meta => XChartsConfiguration-ZH.md.meta} | 2 +- Documentation/XChartsFQA-EN.md | 12 +- Documentation/XChartsFQA-EN.md.meta | 7 + Documentation/XChartsFQA-ZH.md.meta | 7 + Documentation/XChartsTutorial01-EN.md | 16 +- Documentation/XChartsTutorial01-EN.md.meta | 7 + Documentation/XChartsTutorial01-ZH.md | 16 +- Documentation/XChartsTutorial01-ZH.md.meta | 7 + Documentation/config-EN.md.meta | 7 - Documentation/config-ZH.md.meta | 7 - Documentation/xcharts-api-EN.md.meta | 7 - .../xcharts-configuration-EN.md.meta | 7 - .../xcharts-questions-and-answers-EN.md.meta | 7 - 20 files changed, 1971 insertions(+), 374 deletions(-) rename Documentation/{XChartsAPI.md.meta => XChartsAPI-EN.md.meta} (75%) rename Documentation/{XCharts教程:5分钟上手教程.md.meta => XChartsAPI-ZH.md.meta} (75%) rename Documentation/{XCharts配置项手册.md.meta => XChartsConfiguration-EN.md.meta} (75%) rename Documentation/{XCharts问答.md.meta => XChartsConfiguration-ZH.md.meta} (75%) create mode 100644 Documentation/XChartsFQA-EN.md.meta create mode 100644 Documentation/XChartsFQA-ZH.md.meta create mode 100644 Documentation/XChartsTutorial01-EN.md.meta create mode 100644 Documentation/XChartsTutorial01-ZH.md.meta delete mode 100644 Documentation/config-EN.md.meta delete mode 100644 Documentation/config-ZH.md.meta delete mode 100644 Documentation/xcharts-api-EN.md.meta delete mode 100644 Documentation/xcharts-configuration-EN.md.meta delete mode 100644 Documentation/xcharts-questions-and-answers-EN.md.meta diff --git a/Documentation/XChartsAPI-EN.md b/Documentation/XChartsAPI-EN.md index a788f93a..191e9b1e 100644 --- a/Documentation/XChartsAPI-EN.md +++ b/Documentation/XChartsAPI-EN.md @@ -1,151 +1,964 @@ -# XCharts API +# Chart API -[返回首页](https://github.com/XCharts-Team/XCharts) -[XCharts配置项手册](XChartsConfiguration-ZH.md) -[XCharts问答](XChartsFQA-ZH.md) +[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
+[XCharts Configuration](XChartsConfiguration-EN.md)
+[XCharts Q&A](XChartsFQA-EN.md) -## `BaseChart` +## Class -* `BaseChart.theme`:主题组件`ThemeInfo`。 -* `BaseChart.title`:标题组件`Title`。 -* `BaseChart.legend`:图例组件`Legend`。 -* `BaseChart.tooltip`:提示框组件`Tooltip`。 -* `BaseChart.series`:系列列表`Series`。 -* `BaseChart.chartName`:图表的别称。 -* `BaseChart.chartWidth`:图表的宽。 -* `BaseChart.chartHeight`:图表的高。 -* `BaseChart.forceOpenRaycastTarget`:强制开启鼠标事件检测。一般不用手动设置,内部会自动判断是否需要检测。 -* `BaseChart.onCustomDraw`:自定义底部绘制回调。在绘制Serie前调用。 -* `BaseChart.onCustomDrawBeforeSerie`:自定义Serie绘制回调。在每个Serie绘制完前调用。 -* `BaseChart.onCustomDrawAfterSerie`:自定义Serie绘制回调。在每个Serie绘制完后调用。 -* `BaseChart.onCustomDrawTop`:自定义顶部绘制回调。在绘制Tooltip前调用。 -* `BaseChart.onPointerClick`:鼠标点击回调。 -* `BaseChart.onPointerDown`:鼠标按下回调。 -* `BaseChart.onPointerUp`:鼠标弹起回调。 -* `BaseChart.onPointerEnter`:鼠标进入图表回调。 -* `BaseChart.onPointerExit`:鼠标退出图表回调。 -* `BaseChart.onBeginDrag`:鼠标开始拖拽回调。 -* `BaseChart.onDrag`:鼠标拖拽回调。 -* `BaseChart.onEndDrag`:鼠标结束拖拽回调。 -* `BaseChart.onScroll`:鼠标滚动回调。 -* `BaseChart.onPointerClickPie`:点击柱条回调。参数:`eventData`, `serieIndex`, `dataIndex` -* `BaseChart.SetSize(float width, float height)`: 设置图表的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform)。 -* `BaseChart.ClearData()`:清除所有数据,系列列表会保留,只是移除列表中系列的数据。 -* `BaseChart.RemoveData()`:清除所有系列和图例数据,系列列表也会被清除。 -* `BaseChart.RemoveData(string serieName)`:清除指定系列名称的数据。 -* `BaseChart.AddSerie(SerieType type, string serieName = null, bool show = true)`:添加一个系列到系列列表中。 -* `BaseChart.AddData(string serieName, float data, string dataName = null)`:添加一个数据到指定的系列中。 -* `BaseChart.AddData(int serieIndex, float data, string dataName = null)`:添加一个数据到指定的系列中。 -* `BaseChart.AddData(string serieName, List multidimensionalData, string dataName = null)`:添加多维数据`(x,y,z...)`到指定的系列中。 -* `BaseChart.AddData(int serieIndex, List multidimensionalData, string dataName = null)`:添加多维数据`(x,y,z...)`到指定的系列中。 -* `BaseChart.AddData(string serieName, float xValue, float yValue, string dataName)`:添加`(x,y)`数据到指定系列中。 -* `BaseChart.AddData(int serieIndex, float xValue, float yValue, string dataName = null)`:添加`(x,y)`数据到指定系列中。 -* `BaseChart.UpdateData(string serieName,int dataIndex, float value)`:更新指定系列中的指定索引数据。 -* `BaseChart.UpdateData(int serieIndex,int dataIndex, float value)`:更新指定系列中的指定索引数据。 -* `BaseChart.UpdateData(string serieName, int dataIndex, List multidimensionalData)`:更新指定系列指定索引的数据项的多维数据。 -* `BaseChart.UpdateData(int serieIndex, int dataIndex, List multidimensionalData)`:更新指定系列指定索引的数据项的多维数据。 -* `BaseChart.UpdateData(string serieName, int dataIndex, int dimension, float value)`:更新指定系列指定索引指定维数的数据。维数从0开始。 -* `BaseChart.UpdateData(int serieIndex, int dataIndex, int dimension, float value)`:更新指定系列指定索引指定维数的数据。维数从0开始。 -* `BaseChart.UpdateDataName(string serieName,int dataIndex, string dataName)`:更新指定系列中的指定索引数据名称。 -* `BaseChart.UpdateDataName(int serieIndex, int dataIndex, string dataName)`:更新指定系列中的指定索引数据名称。 -* `BaseChart.SetActive(string serieName, bool active)`:设置指定系列是否显示。 -* `BaseChart.SetActive(int serieIndex, bool active)`:设置指定系列是否显示。 -* `BaseChart.IsActive(string serieName)`:获取指定系列是否显示。 -* `BaseChart.IsActive(int serieIndex)`:获取指定系列是否显示。 -* `BaseChart.IsActiveByLegend(string legendName)`:获得指定图例名字的系列是否显示。 -* `BaseChart.RefreshChart()`:在下一帧刷新图表。 -* `BaseChart.RefreshLabel()`:在下一帧刷新文本标签。 -* `BaseChart.RefreshTooltip()`:立即刷新`Tooltip`组件。 -* `BaseChart.UpdateTheme(Theme theme)`:切换图表主题。 -* `BaseChart.AnimationEnable(bool flag)`:启用或关闭动画。 -* `BaseChart.AnimationFadeIn()`:渐入动画。 -* `BaseChart.AnimationFadeOut()`:渐出动画。 -* `BaseChart.AnimationPause()`:暂停动画。 -* `BaseChart.AnimationResume()`:继续动画。 -* `BaseChart.AnimationReset()`:重置动画。 -* `BaseChart.ClickLegendButton(int legendIndex, string legendName, bool show)`:点击图例按钮。 -* `BaseChart.IsInChart(Vector2 local)`:坐标是否在图表范围内。 -* `BaseChart.IsInChart(float x, float y)`:坐标是否在图表范围内。 -* `BaseChart.EnableBackground(bool flag)`:开启背景组件。背景组件在`chart`受上层布局控制时无法开启。 -* `BaseChart.SetBasePainterMaterial(Material material)`:设置Base Painter的材质球。 -* `BaseChart.SetSeriePainterMaterial(Material material)`:设置Serie Painter的材质球。 -* `BaseChart.SetTopPainterMaterial(Material material)`:设置Top Painter的材质球。 +- [AnimationStyleHelper](#AnimationStyleHelper) +- [AxisContext](#AxisContext) +- [AxisHandler](#AxisHandler) +- [AxisHelper](#AxisHelper) +- [BarChart](#BarChart) +- [BaseChart](#BaseChart) +- [BaseGraph](#BaseGraph) +- [CandlestickChart](#CandlestickChart) +- [ChartCached](#ChartCached) +- [ChartConst](#ChartConst) +- [ChartDrawer](#ChartDrawer) +- [ChartHelper](#ChartHelper) +- [ChartLabel](#ChartLabel) +- [ChartObject](#ChartObject) +- [CheckHelper](#CheckHelper) +- [ColorUtil](#ColorUtil) +- [ComponentHandlerAttribute](#ComponentHandlerAttribute) +- [ComponentHelper](#ComponentHelper) +- [CoordOptionsAttribute](#CoordOptionsAttribute) +- [DataZoomContext](#DataZoomContext) +- [DataZoomHelper](#DataZoomHelper) +- [DateTimeUtil](#DateTimeUtil) +- [DefaultAnimationAttribute](#DefaultAnimationAttribute) +- [DefineSymbolsUtil](#DefineSymbolsUtil) +- [FormatterHelper](#FormatterHelper) +- [GridCoordContext](#GridCoordContext) +- [HeatmapChart](#HeatmapChart) +- [InteractData](#InteractData) +- [ItemStyleHelper](#ItemStyleHelper) +- [LangCandlestick](#LangCandlestick) +- [LayerHelper](#LayerHelper) +- [LegendContext](#LegendContext) +- [LegendHelper](#LegendHelper) +- [LegendItem](#LegendItem) +- [LineChart](#LineChart) +- [ListFor](#ListFor) +- [ListForComponent](#ListForComponent) +- [ListForSerie](#ListForSerie) +- [MainComponentContext](#MainComponentContext) +- [MainComponentHandler](#MainComponentHandler) +- [MainComponentHandler](#MainComponentHandler) +- [MathUtil](#MathUtil) +- [Painter](#Painter) +- [ParallelChart](#ParallelChart) +- [ParallelCoordContext](#ParallelCoordContext) +- [PieChart](#PieChart) +- [PolarChart](#PolarChart) +- [PolarCoordContext](#PolarCoordContext) +- [ProgressBar](#ProgressBar) +- [PropertyUtil](#PropertyUtil) +- [RadarChart](#RadarChart) +- [RadarCoordContext](#RadarCoordContext) +- [ReflectionUtil](#ReflectionUtil) +- [RequireChartComponentAttribute](#RequireChartComponentAttribute) +- [RingChart](#RingChart) +- [RuntimeUtil](#RuntimeUtil) +- [ScatterChart](#ScatterChart) +- [SerieContext](#SerieContext) +- [SerieConvertAttribute](#SerieConvertAttribute) +- [SerieDataContext](#SerieDataContext) +- [SerieExtraComponentAttribute](#SerieExtraComponentAttribute) +- [SerieHandler](#SerieHandler) +- [SerieHandler](#SerieHandler) +- [SerieHandlerAttribute](#SerieHandlerAttribute) +- [SerieHelper](#SerieHelper) +- [SerieLabelHelper](#SerieLabelHelper) +- [SerieLabelPool](#SerieLabelPool) +- [SerieParams](#SerieParams) +- [SeriesHelper](#SeriesHelper) +- [SimplifiedBarChart](#SimplifiedBarChart) +- [SimplifiedCandlestickChart](#SimplifiedCandlestickChart) +- [SimplifiedLineChart](#SimplifiedLineChart) +- [SVG](#SVG) +- [SVGImage](#SVGImage) +- [SVGPath](#SVGPath) +- [SVGPathSeg](#SVGPathSeg) +- [TooltipContext](#TooltipContext) +- [TooltipData](#TooltipData) +- [TooltipHelper](#TooltipHelper) +- [TooltipView](#TooltipView) +- [TooltipViewItem](#TooltipViewItem) +- [UGL](#UGL) +- [UGLExample](#UGLExample) +- [UGLHelper](#UGLHelper) +- [VisualMapContext](#VisualMapContext) +- [VisualMapHelper](#VisualMapHelper) +- [XChartsMgr](#XChartsMgr) +- [XChartsPackageResourceImporterWindow](#XChartsPackageResourceImporterWindow) +- [XCThemeMgr](#XCThemeMgr) -## `CoordinateChart` +## `AnimationStyleHelper` -* `CoordinateChart.grid`:网格组件 `Grid`。 -* `CoordinateChart.xAxes`:左右两个 `X` 轴组件 `XAxis`。 -* `CoordinateChart.yAxes`:左右两个 `Y` 轴组件 `YAxis`。 -* `CoordianteChart.xAxis0`:X轴(下)。 -* `CoordianteChart.xAxis1`:X轴(上)。 -* `CoordianteChart.xAxis0`:Y轴(左)。 -* `CoordianteChart.yAxis1`:Y轴(右)。 -* `CoordinateChart.dataZoom`:区域缩放组件 `DataZoom`。 -* `CoordinateChart.ClearAxisData()`:清除所有x轴和y轴的类目数据。 -* `CoordinateChart.AddXAxisData(string category, int xAxisIndex = 0)`:添加一个类目数据到指定的 `X` 轴。 -* `CoordinateChart.AddYAxisData(string category, int yAxisIndex = 0)`:添加一个类目数据到指定的 `Y` 轴。 -* `CoordinateChart.AddXAxisIcon(Sprite icon, int xAxisIndex = 0)`:添加一个图标到指定的 `X` 轴。 -* `CoordinateChart.AddYAxisIcon(Sprite icon, int yAxisIndex = 0)`:添加一个图标到指定的 `Y` 轴。 -* `CoordinateChart.UpdateXAxisData(int index, string category, int xAxisIndex = 0)`:更新 `X` 轴的类目数据。 -* `CoordinateChart.UpdateYAxisData(int index, string category, int yAxisIndex = 0)`:更新 `Y` 轴的类目数据。 -* `CoordinateChart.UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)`:更新 `X` 轴的图标。 -* `CoordinateChart.UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)`:更新 `Y` 轴的图标。 +|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)
| -* `CoordinateChart.IsValue()`:是否是纯数值坐标。 -* `CoordinateChart.RefreshDataZoom()`:在下一帧刷新DataZoom组件。 -* `CoordinateChart.RefreshAxisMinMaxValue()`:立即刷新数值坐标轴的最大最小值(更新坐标轴标签并触发重绘)。 -* `CoordinateChart.IsInCooridate(Vector2 local)`:坐标是否在坐标轴内。 -* `CoordinateChart.IsInCooridate(Vector3 local)`:坐标是否在坐标轴内。 -* `CoordinateChart.IsInCooridate(float x, float y)`:坐标是否在坐标轴内。 -* `CoordinateChart.IsInCooridate(Vector2 local)`:坐标是否在坐标轴内。 -* `CoordinateChart.ClampInGrid(grid, Vector3 pos)`:将坐标限制在坐标系内。 -* `CoordinateChart.CovertXYAxis(int index)`:转换X轴和Y轴的配置。 -* `CoordinateChart.UpdateCoordinate()`:更新坐标系原点和宽高。一般内部会自动更新,也可强制更新。 -* `CoordinateChart.SetMaxCache(int maxCache)`:设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 +## `AxisContext` -## `LineChart` -* 继承 `BaseChart`。 -* 继承自 `CoordinateChart`。 +## `AxisHandler` + + +## `AxisHelper` + +|public method|description| +|--|--| +| `AdjustCircleLabelPos` |public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
| +| `AdjustCircleLabelPos` |public static void AdjustCircleLabelPos(ChartText txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
| +| `AdjustMinMaxValue` |public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, int ceilRate = 0)
调整最大最小值 | +| `AdjustRadiusAxisLabelPos` |public static void AdjustRadiusAxisLabelPos(ChartText 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)
| +| `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在坐标轴上的坐标位置 | +| `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)
获得分割段数 | +| `NeedShowSplit` |public static bool NeedShowSplit(Axis axis)
| ## `BarChart` -* 继承自 `BaseChart`。 -* 继承自 `CoordinateChart`。 -* `BarChart.onPointerClickBar`:点击柱条回调。参数:`eventData`, `dataIndex` +## `BaseChart` + +|public method|description| +|--|--| +| `AddChartComponent` |public MainComponent AddChartComponent(Type type)
| +| `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 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, double data, string dataName = null, string dataId = null)
Add a data to serie. | +| `AddData` |public SerieData AddData(string serieName, 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,...). | +| `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)
| +| `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()
Remove all series and legend data. | +| `ClickLegendButton` |public void ClickLegendButton(int legendIndex, string legendName, bool show)
点击图例按钮 | +| `CovertSerie` |public bool CovertSerie(Serie serie, Type type)
| +| `CovertXYAxis` |public void CovertXYAxis(int index)
转换X轴和Y轴的配置 | +| `GenerateDefaultSerieName` |public string GenerateDefaultSerieName()
| +| `GetAllSerieDataCount` |public int GetAllSerieDataCount()
| +| `GetChartComponentNum` |public int GetChartComponentNum(Type type)
| +| `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)
| +| `GetLegendRealShowNameColor` |public Color32 GetLegendRealShowNameColor(string name)
| +| `GetLegendRealShowNameIndex` |public int GetLegendRealShowNameIndex(string name)
| +| `GetPainter` |public Painter GetPainter(int index)
| +| `GetSerie` |public Serie GetSerie(int serieIndex)
| +| `GetSerie` |public Serie GetSerie(string serieName)
| +| `GetSeriesMinMaxValue` |public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)
| +| `GetTitlePosition` |public Vector3 GetTitlePosition(Title title)
| +| `GetVisualMapOfSerie` |public VisualMap GetVisualMapOfSerie(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)
| +| `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)
| +| `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. | +| `RefreshDataZoom` |public void RefreshDataZoom()
在下一帧刷新DataZoom | +| `RefreshPainter` |public void RefreshPainter(int index)
| +| `RefreshPainter` |public void RefreshPainter(Serie serie)
| +| `RefreshTopPainter` |public void RefreshTopPainter()
| +| `RemoveAllChartComponent` |public void RemoveAllChartComponent()
| +| `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()
Remove all data from series and legend. | +| `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)
| +| `ReplaceSerie` |public bool ReplaceSerie(Serie oldSerie, Serie newSerie)
| +| `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的材质球 | +| `TryAddChartComponent` |public bool TryAddChartComponent(Type type)
| +| `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轴图标。 | + +## `BaseGraph` + +|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 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` -## `RadarChart` +## `ChartCached` -* 继承自 `BaseChart`。 -* `RadarChart.radars`:雷达坐标系组件列表 `Radar`。 -* `RadarChart.RemoveRadar()`:移除所有雷达坐标系组件。 -* `RadarChart.AddRadar(Radar radar)`:添加雷达坐标系组件。 -* `RadarChart.AddRadar(Radar.Shape shape, Vector2 center, float radius, int splitNumber = 5,float lineWidth = 0.6f, bool showIndicator = true, bool showSplitArea = true)`:添加雷达坐标系组件。 -* `RadarChart.AddIndicator(int radarIndex, string name, float min, float max)`:添加指示器。 -* `RadarChart.UpdateIndicator(int radarIndex, int indicatorIndex, string name, float min, float max)`:更新指示器。 -* `RadarChart.GetRadar(int radarIndex)`:获得指定索引的雷达坐标系组件。 -* `RadarChart.GetIndicator(int radarIndex, int indicatorIndex)`:获得指定雷达坐标系组件指定索引的指示器。 +|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)
| -## `ScatterChart` +## `ChartConst` + + +## `ChartDrawer` + + +## `ChartHelper` + +|public method|description| +|--|--| +| `ActiveAllObject` |public static void ActiveAllObject(Transform parent, bool active, string match = null)
| +| `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度) | +| `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, int ceilRate)
| +| `GetMaxLogValue` |public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
| +| `GetMinDivisibleValue` |public static double GetMinDivisibleValue(double min, int ceilRate)
| +| `GetMinLogValue` |public static float GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
| +| `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)
| +| `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)
| +| `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 | +| `SetColorOpacity` |public static void SetColorOpacity(ref Color32 color, float opacity)
| + +## `ChartLabel` + +|public method|description| +|--|--| +| `GetLabelHeight` |public float GetLabelHeight()
| +| `GetLabelWidth` |public float GetLabelWidth()
| +| `GetPosition` |public Vector3 GetPosition()
| +| `SetActive` |public void SetActive(bool flag)
| +| `SetAutoSize` |public void SetAutoSize(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)
| +| `SetLabel` |public void SetLabel(GameObject labelObj, bool autoSize, float paddingLeftRight, float paddingTopBottom)
| +| `SetLabelActive` |public void SetLabelActive(bool flag)
| +| `SetLabelBackground` |public void SetLabelBackground(Image image)
| +| `SetLabelPosition` |public void SetLabelPosition(Vector3 position)
| +| `SetLabelRotate` |public void SetLabelRotate(float rotate)
| +| `SetPosition` |public void SetPosition(Vector3 position)
| +| `SetText` |public bool SetText(string text)
| +| `SetTextColor` |public void SetTextColor(Color color)
| +| `UpdateIcon` |public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null)
| + +## `ChartObject` + +|public method|description| +|--|--| +| `Destroy` |public virtual void Destroy()
| + +## `CheckHelper` + +|public method|description| +|--|--| +| `CheckChart` |public static string CheckChart(BaseChart chart)
| +| `CheckChart` |public static string CheckChart(BaseGraph chart)
| + +## `ColorUtil` + +|public method|description| +|--|--| +| `GetColor` |public static Color32 GetColor(string hexColorStr)
Convert the html string to color. | + +## `ComponentHandlerAttribute` + +|public method|description| +|--|--| +| `ComponentHandlerAttribute` |public ComponentHandlerAttribute(Type handler)
| +| `ComponentHandlerAttribute` |public ComponentHandlerAttribute(Type handler, bool allowMultiple)
| + +## `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)
| + +## `CoordOptionsAttribute` + +|public method|description| +|--|--| +| `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` + + +## `DataZoomHelper` + +|public method|description| +|--|--| +| `UpdateDataZoomRuntimeStartEndValue` |public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie)
| + +## `DateTimeUtil` + +|public method|description| +|--|--| +| `GetDateTime` |public static DateTime GetDateTime(int timestamp)
| +| `GetTimestamp` |public static int GetTimestamp()
| +| `GetTimestamp` |public static int GetTimestamp(DateTime time)
| + +## `DefaultAnimationAttribute` + +|public method|description| +|--|--| +| `DefaultAnimationAttribute` |public DefaultAnimationAttribute(AnimationType handler)
| + +## `DefineSymbolsUtil` + +|public method|description| +|--|--| +| `AddGlobalDefine` |public static void AddGlobalDefine(string symbol)
| +| `RemoveGlobalDefine` |public static void RemoveGlobalDefine(string symbol)
| + +## `FormatterHelper` + +|public method|description| +|--|--| +| `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` -* 继承自 `BaseChart`。 -* 继承自 `CoordinateChart`。 ## `HeatmapChart` -* 继承自 `BaseChart`。 -* 继承自 `CoordinateChart`。 + +## `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)
| + +## `ItemStyleHelper` + +|public method|description| +|--|--| +| `IsNeedCorner` |public static bool IsNeedCorner(ItemStyle itemStyle)
| + +## `LangCandlestick` + + +## `LayerHelper` + +|public method|description| +|--|--| +| `IsFixedWidthHeight` |public static bool IsFixedWidthHeight(RectTransform rt)
| +| `IsStretchPivot` |public static bool IsStretchPivot(RectTransform rt)
| + +## `LegendContext` + + +## `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(int legendIndex, 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)
| + +## `LegendItem` + +|public method|description| +|--|--| +| `GetIconColor` |public Color GetIconColor()
| +| `GetIconRect` |public Rect GetIconRect()
| +| `SetActive` |public void SetActive(bool active)
| +| `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` + + +## `ListFor` + +|public method|description| +|--|--| +| `ListFor` |public ListFor(Type type)
| + +## `ListForComponent` + +|public method|description| +|--|--| +| `ListForComponent` |public ListForComponent(Type type) : base(type)
| + +## `ListForSerie` + +|public method|description| +|--|--| +| `ListForSerie` |public ListForSerie(Type type) : base(type)
| + +## `MainComponentContext` + + +## `MainComponentHandler` + + +## `MainComponentHandler` + + +## `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)
| + +## `Painter` + +|public method|description| +|--|--| +| `Init` |public void Init()
| +| `Refresh` |public void Refresh()
| +| `SetActive` |public void SetActive(bool flag, bool isDebugMode = false)
| + +## `ParallelChart` + + +## `ParallelCoordContext` + + +## `PieChart` + + +## `PolarChart` + + +## `PolarCoordContext` + + +## `ProgressBar` + + +## `PropertyUtil` + +|public method|description| +|--|--| +| `SetColor` |public static bool SetColor(ref Color currentValue, Color newValue)
| +| `SetColor` |public static bool SetColor(ref Color32 currentValue, Color32 newValue)
| + +## `RadarChart` + + +## `RadarCoordContext` + + +## `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)
| + +## `RequireChartComponentAttribute` + +|public method|description| +|--|--| +| `RequireChartComponentAttribute` |public RequireChartComponentAttribute(Type requiredComponent)
| +| `RequireChartComponentAttribute` |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)
| +| `RequireChartComponentAttribute` |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)
| ## `RingChart` -* 继承自 `BaseChart`。 -* `RingChart.UpdateMax(int serieIndex, int dataIndex, float value)`:更新指定系列执行数据项的最大值。 -* `RingChart.UpdateMax(int serieIndex, float value)`:更新指定系列的所有数据项的最大值。 -* `RingChart.UpdateMax(float value)`:更新第一个系列第一个数据项的最大值。 -[返回首页](https://github.com/XCharts-Team/XCharts) -[XCharts配置项手册](XChartsConfiguration-ZH.md) -[XCharts问答](XChartsFQA-ZH.md) +## `RuntimeUtil` +|public method|description| +|--|--| +| `CopyFolder` |public static bool CopyFolder(string sourPath, string destPath)
| +| `GetAllAssemblyTypes` |public static IEnumerable GetAllAssemblyTypes()
| +| `GetAllTypesDerivedFrom` |public static IEnumerable GetAllTypesDerivedFrom(Type type)
| +| `GetAllTypesDerivedFrom` |public static IEnumerable GetAllTypesDerivedFrom()
| +| `HasSubclass` |public static bool HasSubclass(Type type)
| + +## `ScatterChart` + + +## `SerieContext` + + +## `SerieConvertAttribute` + +|public method|description| +|--|--| +| `Contains` |public bool Contains(Type type)
| +| `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` + + +## `SerieExtraComponentAttribute` + +|public method|description| +|--|--| +| `Contains` |public bool Contains(Type type)
| +| `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| +|--|--| +| `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)
| +| `RefreshLabelInternal` |public override void RefreshLabelInternal()
| +| `RefreshLabelNextFrame` |public override void RefreshLabelNextFrame()
| +| `RemoveComponent` |public override void RemoveComponent()
| +| `Update` |public override void Update()
| + +## `SerieHandlerAttribute` + +|public method|description| +|--|--| +| `SerieHandlerAttribute` |public SerieHandlerAttribute(Type handler)
| +| `SerieHandlerAttribute` |public SerieHandlerAttribute(Type handler, bool allowMultiple)
| + +## `SerieHelper` + +|public method|description| +|--|--| +| `CopySerie` |public static void CopySerie(Serie oldSerie, Serie newSerie)
| +| `GetAllMinMaxData` |public static void GetAllMinMaxData(Serie serie, int ceilRate = 0, DataZoom dataZoom = null)
| +| `GetAreaColor` |public static Color32 GetAreaColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
| +| `GetAreaStyle` |public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData)
| +| `GetAreaToColor` |public static Color32 GetAreaToColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
| +| `GetAverageData` |public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| +| `GetIconStyle` |public static IconStyle GetIconStyle(Serie serie, SerieData serieData)
| +| `GetItemColor` |public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
| +| `GetItemColor0` |public static Color32 GetItemColor0(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight, Color32 defaultColor)
| +| `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, bool highlight = false)
| +| `GetItemStyleEmphasis` |public static ItemStyle GetItemStyleEmphasis(Serie serie, SerieData serieData)
| +| `GetItemToColor` |public static Color32 GetItemToColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
| +| `GetLineColor` |public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
| +| `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)
| +| `GetSerieEmphasisLabel` |public static LabelStyle GetSerieEmphasisLabel(Serie serie, SerieData serieData)
| +| `GetSerieLabel` |public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, bool highlight = false)
| +| `GetSerieLabelLine` |public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, bool highlight = false)
| +| `GetSerieSymbol` |public static SymbolStyle GetSerieSymbol(Serie serie, SerieData serieData)
| +| `GetSymbolBorder` |public static float GetSymbolBorder(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight)
| +| `GetSymbolBorder` |public static float GetSymbolBorder(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight, float defaultWidth)
| +| `GetSymbolBorderColor` |public static Color32 GetSymbolBorderColor(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight)
| +| `GetSymbolCornerRadius` |public static float[] GetSymbolCornerRadius(Serie serie, SerieData serieData, bool highlight)
| +| `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, int 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` + +|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(SerieData serieData, LabelStyle label, LabelLine labelLine)
| +| `SetGaugeLabelText` |public static void SetGaugeLabelText(Serie serie)
| +| `UpdatePieLabelPosition` |public static void UpdatePieLabelPosition(Serie serie, SerieData serieData)
| + +## `SerieLabelPool` + +|public method|description| +|--|--| +| `ClearAll` |public static void ClearAll()
| +| `Release` |public static void Release(GameObject element)
| +| `ReleaseAll` |public static void ReleaseAll(Transform parent)
| + +## `SerieParams` + + +## `SeriesHelper` + +|public method|description| +|--|--| +| `GetLastStackSerie` |public static Serie GetLastStackSerie(List series, int index)
获得上一个同堆叠且显示的serie。 | +| `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)
| +| `GetSerieByVesselIndex` |public static Serie GetSerieByVesselIndex(List series, int vesselIndex)
| +| `GetStackSeries` |public static void GetStackSeries(List series, ref Dictionary> stackSeries)
获得堆叠系列列表 | +| `IsAnyClipSerie` |public static bool IsAnyClipSerie(List series)
是否有需裁剪的serie。 | +| `IsAnyGradientSerie` |public static bool IsAnyGradientSerie(List series, string stack)
同堆叠的serie是否有渐变色的。 | +| `IsAnyUpdateAnimationSerie` |public static bool IsAnyUpdateAnimationSerie(List series)
| +| `IsLegalLegendName` |public static bool IsLegalLegendName(string name)
| +| `IsStack` |public static bool IsStack(List series)
是否由数据堆叠 | +| `UpdateSerieNameList` |public static void UpdateSerieNameList(BaseChart chart, ref List serieNameList)
获得所有系列名,不包含空名字。 | +| `UpdateStackDataList` |public static void UpdateStackDataList(List series, Serie currSerie, DataZoom dataZoom, List> dataList)
| + +## `SimplifiedBarChart` + + +## `SimplifiedCandlestickChart` + + +## `SimplifiedLineChart` + + +## `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)
| + +## `SVGImage` + + +## `SVGPath` + +|public method|description| +|--|--| +| `AddSegment` |public void AddSegment(SVGPathSeg seg)
| +| `Draw` |public void Draw(VertexHelper vh)
| +| `Parse` |public static SVGPath Parse(string path)
| + +## `SVGPathSeg` + +|public method|description| +|--|--| +| `SVGPathSeg` |public SVGPathSeg(SVGPathSegType type)
| + +## `TooltipContext` + + +## `TooltipData` + + +## `TooltipHelper` + +|public method|description| +|--|--| +| `GetItemNumericFormatter` |public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)
| +| `GetLineColor` |public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme)
| +| `IsIgnoreItemFormatter` |public static bool IsIgnoreItemFormatter(string itemFormatter)
| +| `LimitInRect` |public static void LimitInRect(Tooltip tooltip, Rect chartRect)
| + +## `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)
| + +## `TooltipViewItem` + + +## `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. 画直线 | +| `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` + + +## `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)
| +| `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)
| + +## `VisualMapContext` + + +## `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 serieDataCount)
| +| `IsNeedGradient` |public static bool IsNeedGradient(VisualMap visualMap)
| +| `SetMinMax` |public static void SetMinMax(VisualMap visualMap, double min, double max)
| + +## `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)
| + +## `XChartsPackageResourceImporterWindow` + +|public method|description| +|--|--| +| `ShowPackageImporterWindow` |public static void ShowPackageImporterWindow()
| + +## `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)
| + +[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
+[XCharts Configuration](XChartsConfiguration-EN.md)
+[XCharts Q&A](XChartsFQA-EN.md) diff --git a/Documentation/XChartsAPI.md.meta b/Documentation/XChartsAPI-EN.md.meta similarity index 75% rename from Documentation/XChartsAPI.md.meta rename to Documentation/XChartsAPI-EN.md.meta index 4ef5ac99..335be9ac 100644 --- a/Documentation/XChartsAPI.md.meta +++ b/Documentation/XChartsAPI-EN.md.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 81071e0166b9e49958800af4678e69ae +guid: 002217c6b4b5348bd86b5a6b881d2622 TextScriptImporter: externalObjects: {} userData: diff --git a/Documentation/XChartsAPI-ZH.md b/Documentation/XChartsAPI-ZH.md index a788f93a..552e35c3 100644 --- a/Documentation/XChartsAPI-ZH.md +++ b/Documentation/XChartsAPI-ZH.md @@ -1,151 +1,964 @@ -# XCharts API +# API -[返回首页](https://github.com/XCharts-Team/XCharts) -[XCharts配置项手册](XChartsConfiguration-ZH.md) +[返回首页](https://github.com/XCharts-Team/XCharts)
+[XCharts配置项手册](XChartsConfiguration-ZH.md)
[XCharts问答](XChartsFQA-ZH.md) -## `BaseChart` +## Class -* `BaseChart.theme`:主题组件`ThemeInfo`。 -* `BaseChart.title`:标题组件`Title`。 -* `BaseChart.legend`:图例组件`Legend`。 -* `BaseChart.tooltip`:提示框组件`Tooltip`。 -* `BaseChart.series`:系列列表`Series`。 -* `BaseChart.chartName`:图表的别称。 -* `BaseChart.chartWidth`:图表的宽。 -* `BaseChart.chartHeight`:图表的高。 -* `BaseChart.forceOpenRaycastTarget`:强制开启鼠标事件检测。一般不用手动设置,内部会自动判断是否需要检测。 -* `BaseChart.onCustomDraw`:自定义底部绘制回调。在绘制Serie前调用。 -* `BaseChart.onCustomDrawBeforeSerie`:自定义Serie绘制回调。在每个Serie绘制完前调用。 -* `BaseChart.onCustomDrawAfterSerie`:自定义Serie绘制回调。在每个Serie绘制完后调用。 -* `BaseChart.onCustomDrawTop`:自定义顶部绘制回调。在绘制Tooltip前调用。 -* `BaseChart.onPointerClick`:鼠标点击回调。 -* `BaseChart.onPointerDown`:鼠标按下回调。 -* `BaseChart.onPointerUp`:鼠标弹起回调。 -* `BaseChart.onPointerEnter`:鼠标进入图表回调。 -* `BaseChart.onPointerExit`:鼠标退出图表回调。 -* `BaseChart.onBeginDrag`:鼠标开始拖拽回调。 -* `BaseChart.onDrag`:鼠标拖拽回调。 -* `BaseChart.onEndDrag`:鼠标结束拖拽回调。 -* `BaseChart.onScroll`:鼠标滚动回调。 -* `BaseChart.onPointerClickPie`:点击柱条回调。参数:`eventData`, `serieIndex`, `dataIndex` -* `BaseChart.SetSize(float width, float height)`: 设置图表的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform)。 -* `BaseChart.ClearData()`:清除所有数据,系列列表会保留,只是移除列表中系列的数据。 -* `BaseChart.RemoveData()`:清除所有系列和图例数据,系列列表也会被清除。 -* `BaseChart.RemoveData(string serieName)`:清除指定系列名称的数据。 -* `BaseChart.AddSerie(SerieType type, string serieName = null, bool show = true)`:添加一个系列到系列列表中。 -* `BaseChart.AddData(string serieName, float data, string dataName = null)`:添加一个数据到指定的系列中。 -* `BaseChart.AddData(int serieIndex, float data, string dataName = null)`:添加一个数据到指定的系列中。 -* `BaseChart.AddData(string serieName, List multidimensionalData, string dataName = null)`:添加多维数据`(x,y,z...)`到指定的系列中。 -* `BaseChart.AddData(int serieIndex, List multidimensionalData, string dataName = null)`:添加多维数据`(x,y,z...)`到指定的系列中。 -* `BaseChart.AddData(string serieName, float xValue, float yValue, string dataName)`:添加`(x,y)`数据到指定系列中。 -* `BaseChart.AddData(int serieIndex, float xValue, float yValue, string dataName = null)`:添加`(x,y)`数据到指定系列中。 -* `BaseChart.UpdateData(string serieName,int dataIndex, float value)`:更新指定系列中的指定索引数据。 -* `BaseChart.UpdateData(int serieIndex,int dataIndex, float value)`:更新指定系列中的指定索引数据。 -* `BaseChart.UpdateData(string serieName, int dataIndex, List multidimensionalData)`:更新指定系列指定索引的数据项的多维数据。 -* `BaseChart.UpdateData(int serieIndex, int dataIndex, List multidimensionalData)`:更新指定系列指定索引的数据项的多维数据。 -* `BaseChart.UpdateData(string serieName, int dataIndex, int dimension, float value)`:更新指定系列指定索引指定维数的数据。维数从0开始。 -* `BaseChart.UpdateData(int serieIndex, int dataIndex, int dimension, float value)`:更新指定系列指定索引指定维数的数据。维数从0开始。 -* `BaseChart.UpdateDataName(string serieName,int dataIndex, string dataName)`:更新指定系列中的指定索引数据名称。 -* `BaseChart.UpdateDataName(int serieIndex, int dataIndex, string dataName)`:更新指定系列中的指定索引数据名称。 -* `BaseChart.SetActive(string serieName, bool active)`:设置指定系列是否显示。 -* `BaseChart.SetActive(int serieIndex, bool active)`:设置指定系列是否显示。 -* `BaseChart.IsActive(string serieName)`:获取指定系列是否显示。 -* `BaseChart.IsActive(int serieIndex)`:获取指定系列是否显示。 -* `BaseChart.IsActiveByLegend(string legendName)`:获得指定图例名字的系列是否显示。 -* `BaseChart.RefreshChart()`:在下一帧刷新图表。 -* `BaseChart.RefreshLabel()`:在下一帧刷新文本标签。 -* `BaseChart.RefreshTooltip()`:立即刷新`Tooltip`组件。 -* `BaseChart.UpdateTheme(Theme theme)`:切换图表主题。 -* `BaseChart.AnimationEnable(bool flag)`:启用或关闭动画。 -* `BaseChart.AnimationFadeIn()`:渐入动画。 -* `BaseChart.AnimationFadeOut()`:渐出动画。 -* `BaseChart.AnimationPause()`:暂停动画。 -* `BaseChart.AnimationResume()`:继续动画。 -* `BaseChart.AnimationReset()`:重置动画。 -* `BaseChart.ClickLegendButton(int legendIndex, string legendName, bool show)`:点击图例按钮。 -* `BaseChart.IsInChart(Vector2 local)`:坐标是否在图表范围内。 -* `BaseChart.IsInChart(float x, float y)`:坐标是否在图表范围内。 -* `BaseChart.EnableBackground(bool flag)`:开启背景组件。背景组件在`chart`受上层布局控制时无法开启。 -* `BaseChart.SetBasePainterMaterial(Material material)`:设置Base Painter的材质球。 -* `BaseChart.SetSeriePainterMaterial(Material material)`:设置Serie Painter的材质球。 -* `BaseChart.SetTopPainterMaterial(Material material)`:设置Top Painter的材质球。 +- [AnimationStyleHelper](#AnimationStyleHelper) +- [AxisContext](#AxisContext) +- [AxisHandler](#AxisHandler) +- [AxisHelper](#AxisHelper) +- [BarChart](#BarChart) +- [BaseChart](#BaseChart) +- [BaseGraph](#BaseGraph) +- [CandlestickChart](#CandlestickChart) +- [ChartCached](#ChartCached) +- [ChartConst](#ChartConst) +- [ChartDrawer](#ChartDrawer) +- [ChartHelper](#ChartHelper) +- [ChartLabel](#ChartLabel) +- [ChartObject](#ChartObject) +- [CheckHelper](#CheckHelper) +- [ColorUtil](#ColorUtil) +- [ComponentHandlerAttribute](#ComponentHandlerAttribute) +- [ComponentHelper](#ComponentHelper) +- [CoordOptionsAttribute](#CoordOptionsAttribute) +- [DataZoomContext](#DataZoomContext) +- [DataZoomHelper](#DataZoomHelper) +- [DateTimeUtil](#DateTimeUtil) +- [DefaultAnimationAttribute](#DefaultAnimationAttribute) +- [DefineSymbolsUtil](#DefineSymbolsUtil) +- [FormatterHelper](#FormatterHelper) +- [GridCoordContext](#GridCoordContext) +- [HeatmapChart](#HeatmapChart) +- [InteractData](#InteractData) +- [ItemStyleHelper](#ItemStyleHelper) +- [LangCandlestick](#LangCandlestick) +- [LayerHelper](#LayerHelper) +- [LegendContext](#LegendContext) +- [LegendHelper](#LegendHelper) +- [LegendItem](#LegendItem) +- [LineChart](#LineChart) +- [ListFor](#ListFor) +- [ListForComponent](#ListForComponent) +- [ListForSerie](#ListForSerie) +- [MainComponentContext](#MainComponentContext) +- [MainComponentHandler](#MainComponentHandler) +- [MainComponentHandler](#MainComponentHandler) +- [MathUtil](#MathUtil) +- [Painter](#Painter) +- [ParallelChart](#ParallelChart) +- [ParallelCoordContext](#ParallelCoordContext) +- [PieChart](#PieChart) +- [PolarChart](#PolarChart) +- [PolarCoordContext](#PolarCoordContext) +- [ProgressBar](#ProgressBar) +- [PropertyUtil](#PropertyUtil) +- [RadarChart](#RadarChart) +- [RadarCoordContext](#RadarCoordContext) +- [ReflectionUtil](#ReflectionUtil) +- [RequireChartComponentAttribute](#RequireChartComponentAttribute) +- [RingChart](#RingChart) +- [RuntimeUtil](#RuntimeUtil) +- [ScatterChart](#ScatterChart) +- [SerieContext](#SerieContext) +- [SerieConvertAttribute](#SerieConvertAttribute) +- [SerieDataContext](#SerieDataContext) +- [SerieExtraComponentAttribute](#SerieExtraComponentAttribute) +- [SerieHandler](#SerieHandler) +- [SerieHandler](#SerieHandler) +- [SerieHandlerAttribute](#SerieHandlerAttribute) +- [SerieHelper](#SerieHelper) +- [SerieLabelHelper](#SerieLabelHelper) +- [SerieLabelPool](#SerieLabelPool) +- [SerieParams](#SerieParams) +- [SeriesHelper](#SeriesHelper) +- [SimplifiedBarChart](#SimplifiedBarChart) +- [SimplifiedCandlestickChart](#SimplifiedCandlestickChart) +- [SimplifiedLineChart](#SimplifiedLineChart) +- [SVG](#SVG) +- [SVGImage](#SVGImage) +- [SVGPath](#SVGPath) +- [SVGPathSeg](#SVGPathSeg) +- [TooltipContext](#TooltipContext) +- [TooltipData](#TooltipData) +- [TooltipHelper](#TooltipHelper) +- [TooltipView](#TooltipView) +- [TooltipViewItem](#TooltipViewItem) +- [UGL](#UGL) +- [UGLExample](#UGLExample) +- [UGLHelper](#UGLHelper) +- [VisualMapContext](#VisualMapContext) +- [VisualMapHelper](#VisualMapHelper) +- [XChartsMgr](#XChartsMgr) +- [XChartsPackageResourceImporterWindow](#XChartsPackageResourceImporterWindow) +- [XCThemeMgr](#XCThemeMgr) -## `CoordinateChart` +## `AnimationStyleHelper` -* `CoordinateChart.grid`:网格组件 `Grid`。 -* `CoordinateChart.xAxes`:左右两个 `X` 轴组件 `XAxis`。 -* `CoordinateChart.yAxes`:左右两个 `Y` 轴组件 `YAxis`。 -* `CoordianteChart.xAxis0`:X轴(下)。 -* `CoordianteChart.xAxis1`:X轴(上)。 -* `CoordianteChart.xAxis0`:Y轴(左)。 -* `CoordianteChart.yAxis1`:Y轴(右)。 -* `CoordinateChart.dataZoom`:区域缩放组件 `DataZoom`。 -* `CoordinateChart.ClearAxisData()`:清除所有x轴和y轴的类目数据。 -* `CoordinateChart.AddXAxisData(string category, int xAxisIndex = 0)`:添加一个类目数据到指定的 `X` 轴。 -* `CoordinateChart.AddYAxisData(string category, int yAxisIndex = 0)`:添加一个类目数据到指定的 `Y` 轴。 -* `CoordinateChart.AddXAxisIcon(Sprite icon, int xAxisIndex = 0)`:添加一个图标到指定的 `X` 轴。 -* `CoordinateChart.AddYAxisIcon(Sprite icon, int yAxisIndex = 0)`:添加一个图标到指定的 `Y` 轴。 -* `CoordinateChart.UpdateXAxisData(int index, string category, int xAxisIndex = 0)`:更新 `X` 轴的类目数据。 -* `CoordinateChart.UpdateYAxisData(int index, string category, int yAxisIndex = 0)`:更新 `Y` 轴的类目数据。 -* `CoordinateChart.UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)`:更新 `X` 轴的图标。 -* `CoordinateChart.UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)`:更新 `Y` 轴的图标。 +|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)
| -* `CoordinateChart.IsValue()`:是否是纯数值坐标。 -* `CoordinateChart.RefreshDataZoom()`:在下一帧刷新DataZoom组件。 -* `CoordinateChart.RefreshAxisMinMaxValue()`:立即刷新数值坐标轴的最大最小值(更新坐标轴标签并触发重绘)。 -* `CoordinateChart.IsInCooridate(Vector2 local)`:坐标是否在坐标轴内。 -* `CoordinateChart.IsInCooridate(Vector3 local)`:坐标是否在坐标轴内。 -* `CoordinateChart.IsInCooridate(float x, float y)`:坐标是否在坐标轴内。 -* `CoordinateChart.IsInCooridate(Vector2 local)`:坐标是否在坐标轴内。 -* `CoordinateChart.ClampInGrid(grid, Vector3 pos)`:将坐标限制在坐标系内。 -* `CoordinateChart.CovertXYAxis(int index)`:转换X轴和Y轴的配置。 -* `CoordinateChart.UpdateCoordinate()`:更新坐标系原点和宽高。一般内部会自动更新,也可强制更新。 -* `CoordinateChart.SetMaxCache(int maxCache)`:设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 +## `AxisContext` -## `LineChart` -* 继承 `BaseChart`。 -* 继承自 `CoordinateChart`。 +## `AxisHandler` + + +## `AxisHelper` + +|public method|description| +|--|--| +| `AdjustCircleLabelPos` |public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
| +| `AdjustCircleLabelPos` |public static void AdjustCircleLabelPos(ChartText txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)
| +| `AdjustMinMaxValue` |public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, int ceilRate = 0)
调整最大最小值 | +| `AdjustRadiusAxisLabelPos` |public static void AdjustRadiusAxisLabelPos(ChartText 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)
| +| `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在坐标轴上的坐标位置 | +| `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)
获得分割段数 | +| `NeedShowSplit` |public static bool NeedShowSplit(Axis axis)
| ## `BarChart` -* 继承自 `BaseChart`。 -* 继承自 `CoordinateChart`。 -* `BarChart.onPointerClickBar`:点击柱条回调。参数:`eventData`, `dataIndex` +## `BaseChart` + +|public method|description| +|--|--| +| `AddChartComponent` |public MainComponent AddChartComponent(Type type)
| +| `AddData` |public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null)
添加一个数据到指定的系列中。 | +| `AddData` |public SerieData AddData(int serieIndex, 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, 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 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...)到指定的系列中。 | +| `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)
| +| `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()
It just emptying all of serie's data without emptying the list of series. | +| `ClickLegendButton` |public void ClickLegendButton(int legendIndex, string legendName, bool show)
点击图例按钮 | +| `CovertSerie` |public bool CovertSerie(Serie serie, Type type)
| +| `CovertXYAxis` |public void CovertXYAxis(int index)
转换X轴和Y轴的配置 | +| `GenerateDefaultSerieName` |public string GenerateDefaultSerieName()
| +| `GetAllSerieDataCount` |public int GetAllSerieDataCount()
| +| `GetChartComponentNum` |public int GetChartComponentNum(Type type)
| +| `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)
| +| `GetLegendRealShowNameColor` |public Color32 GetLegendRealShowNameColor(string name)
| +| `GetLegendRealShowNameIndex` |public int GetLegendRealShowNameIndex(string name)
| +| `GetPainter` |public Painter GetPainter(int index)
| +| `GetSerie` |public Serie GetSerie(int serieIndex)
| +| `GetSerie` |public Serie GetSerie(string serieName)
| +| `GetSeriesMinMaxValue` |public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)
| +| `GetTitlePosition` |public Vector3 GetTitlePosition(Title title)
| +| `GetVisualMapOfSerie` |public VisualMap GetVisualMapOfSerie(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)
| +| `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)
| +| `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()
在下一帧刷新图表。 | +| `RefreshDataZoom` |public void RefreshDataZoom()
在下一帧刷新DataZoom | +| `RefreshPainter` |public void RefreshPainter(int index)
| +| `RefreshPainter` |public void RefreshPainter(Serie serie)
| +| `RefreshTopPainter` |public void RefreshTopPainter()
| +| `RemoveAllChartComponent` |public void RemoveAllChartComponent()
| +| `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()
The series list is also cleared. | +| `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)
| +| `ReplaceSerie` |public bool ReplaceSerie(Serie oldSerie, Serie newSerie)
| +| `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的材质球 | +| `TryAddChartComponent` |public bool TryAddChartComponent(Type type)
| +| `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轴图标。 | + +## `BaseGraph` + +|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 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` -## `RadarChart` +## `ChartCached` -* 继承自 `BaseChart`。 -* `RadarChart.radars`:雷达坐标系组件列表 `Radar`。 -* `RadarChart.RemoveRadar()`:移除所有雷达坐标系组件。 -* `RadarChart.AddRadar(Radar radar)`:添加雷达坐标系组件。 -* `RadarChart.AddRadar(Radar.Shape shape, Vector2 center, float radius, int splitNumber = 5,float lineWidth = 0.6f, bool showIndicator = true, bool showSplitArea = true)`:添加雷达坐标系组件。 -* `RadarChart.AddIndicator(int radarIndex, string name, float min, float max)`:添加指示器。 -* `RadarChart.UpdateIndicator(int radarIndex, int indicatorIndex, string name, float min, float max)`:更新指示器。 -* `RadarChart.GetRadar(int radarIndex)`:获得指定索引的雷达坐标系组件。 -* `RadarChart.GetIndicator(int radarIndex, int indicatorIndex)`:获得指定雷达坐标系组件指定索引的指示器。 +|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)
| -## `ScatterChart` +## `ChartConst` + + +## `ChartDrawer` + + +## `ChartHelper` + +|public method|description| +|--|--| +| `ActiveAllObject` |public static void ActiveAllObject(Transform parent, bool active, string match = null)
| +| `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度) | +| `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, int ceilRate)
| +| `GetMaxLogValue` |public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
| +| `GetMinDivisibleValue` |public static double GetMinDivisibleValue(double min, int ceilRate)
| +| `GetMinLogValue` |public static float GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)
| +| `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)
| +| `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)
| +| `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 | +| `SetColorOpacity` |public static void SetColorOpacity(ref Color32 color, float opacity)
| + +## `ChartLabel` + +|public method|description| +|--|--| +| `GetLabelHeight` |public float GetLabelHeight()
| +| `GetLabelWidth` |public float GetLabelWidth()
| +| `GetPosition` |public Vector3 GetPosition()
| +| `SetActive` |public void SetActive(bool flag)
| +| `SetAutoSize` |public void SetAutoSize(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)
| +| `SetLabel` |public void SetLabel(GameObject labelObj, bool autoSize, float paddingLeftRight, float paddingTopBottom)
| +| `SetLabelActive` |public void SetLabelActive(bool flag)
| +| `SetLabelBackground` |public void SetLabelBackground(Image image)
| +| `SetLabelPosition` |public void SetLabelPosition(Vector3 position)
| +| `SetLabelRotate` |public void SetLabelRotate(float rotate)
| +| `SetPosition` |public void SetPosition(Vector3 position)
| +| `SetText` |public bool SetText(string text)
| +| `SetTextColor` |public void SetTextColor(Color color)
| +| `UpdateIcon` |public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null)
| + +## `ChartObject` + +|public method|description| +|--|--| +| `Destroy` |public virtual void Destroy()
| + +## `CheckHelper` + +|public method|description| +|--|--| +| `CheckChart` |public static string CheckChart(BaseChart chart)
| +| `CheckChart` |public static string CheckChart(BaseGraph chart)
| + +## `ColorUtil` + +|public method|description| +|--|--| +| `GetColor` |public static Color32 GetColor(string hexColorStr)
将字符串颜色值转成Color。 | + +## `ComponentHandlerAttribute` + +|public method|description| +|--|--| +| `ComponentHandlerAttribute` |public ComponentHandlerAttribute(Type handler)
| +| `ComponentHandlerAttribute` |public ComponentHandlerAttribute(Type handler, bool allowMultiple)
| + +## `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)
| + +## `CoordOptionsAttribute` + +|public method|description| +|--|--| +| `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` + + +## `DataZoomHelper` + +|public method|description| +|--|--| +| `UpdateDataZoomRuntimeStartEndValue` |public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie)
| + +## `DateTimeUtil` + +|public method|description| +|--|--| +| `GetDateTime` |public static DateTime GetDateTime(int timestamp)
| +| `GetTimestamp` |public static int GetTimestamp()
| +| `GetTimestamp` |public static int GetTimestamp(DateTime time)
| + +## `DefaultAnimationAttribute` + +|public method|description| +|--|--| +| `DefaultAnimationAttribute` |public DefaultAnimationAttribute(AnimationType handler)
| + +## `DefineSymbolsUtil` + +|public method|description| +|--|--| +| `AddGlobalDefine` |public static void AddGlobalDefine(string symbol)
| +| `RemoveGlobalDefine` |public static void RemoveGlobalDefine(string symbol)
| + +## `FormatterHelper` + +|public method|description| +|--|--| +| `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` -* 继承自 `BaseChart`。 -* 继承自 `CoordinateChart`。 ## `HeatmapChart` -* 继承自 `BaseChart`。 -* 继承自 `CoordinateChart`。 + +## `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)
| + +## `ItemStyleHelper` + +|public method|description| +|--|--| +| `IsNeedCorner` |public static bool IsNeedCorner(ItemStyle itemStyle)
| + +## `LangCandlestick` + + +## `LayerHelper` + +|public method|description| +|--|--| +| `IsFixedWidthHeight` |public static bool IsFixedWidthHeight(RectTransform rt)
| +| `IsStretchPivot` |public static bool IsStretchPivot(RectTransform rt)
| + +## `LegendContext` + + +## `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(int legendIndex, 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)
| + +## `LegendItem` + +|public method|description| +|--|--| +| `GetIconColor` |public Color GetIconColor()
| +| `GetIconRect` |public Rect GetIconRect()
| +| `SetActive` |public void SetActive(bool active)
| +| `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` + + +## `ListFor` + +|public method|description| +|--|--| +| `ListFor` |public ListFor(Type type)
| + +## `ListForComponent` + +|public method|description| +|--|--| +| `ListForComponent` |public ListForComponent(Type type) : base(type)
| + +## `ListForSerie` + +|public method|description| +|--|--| +| `ListForSerie` |public ListForSerie(Type type) : base(type)
| + +## `MainComponentContext` + + +## `MainComponentHandler` + + +## `MainComponentHandler` + + +## `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)
| + +## `Painter` + +|public method|description| +|--|--| +| `Init` |public void Init()
| +| `Refresh` |public void Refresh()
| +| `SetActive` |public void SetActive(bool flag, bool isDebugMode = false)
| + +## `ParallelChart` + + +## `ParallelCoordContext` + + +## `PieChart` + + +## `PolarChart` + + +## `PolarCoordContext` + + +## `ProgressBar` + + +## `PropertyUtil` + +|public method|description| +|--|--| +| `SetColor` |public static bool SetColor(ref Color currentValue, Color newValue)
| +| `SetColor` |public static bool SetColor(ref Color32 currentValue, Color32 newValue)
| + +## `RadarChart` + + +## `RadarCoordContext` + + +## `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)
| + +## `RequireChartComponentAttribute` + +|public method|description| +|--|--| +| `RequireChartComponentAttribute` |public RequireChartComponentAttribute(Type requiredComponent)
| +| `RequireChartComponentAttribute` |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)
| +| `RequireChartComponentAttribute` |public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)
| ## `RingChart` -* 继承自 `BaseChart`。 -* `RingChart.UpdateMax(int serieIndex, int dataIndex, float value)`:更新指定系列执行数据项的最大值。 -* `RingChart.UpdateMax(int serieIndex, float value)`:更新指定系列的所有数据项的最大值。 -* `RingChart.UpdateMax(float value)`:更新第一个系列第一个数据项的最大值。 -[返回首页](https://github.com/XCharts-Team/XCharts) -[XCharts配置项手册](XChartsConfiguration-ZH.md) +## `RuntimeUtil` + +|public method|description| +|--|--| +| `CopyFolder` |public static bool CopyFolder(string sourPath, string destPath)
| +| `GetAllAssemblyTypes` |public static IEnumerable GetAllAssemblyTypes()
| +| `GetAllTypesDerivedFrom` |public static IEnumerable GetAllTypesDerivedFrom(Type type)
| +| `GetAllTypesDerivedFrom` |public static IEnumerable GetAllTypesDerivedFrom()
| +| `HasSubclass` |public static bool HasSubclass(Type type)
| + +## `ScatterChart` + + +## `SerieContext` + + +## `SerieConvertAttribute` + +|public method|description| +|--|--| +| `Contains` |public bool Contains(Type type)
| +| `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` + + +## `SerieExtraComponentAttribute` + +|public method|description| +|--|--| +| `Contains` |public bool Contains(Type type)
| +| `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| +|--|--| +| `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)
| +| `RefreshLabelInternal` |public override void RefreshLabelInternal()
| +| `RefreshLabelNextFrame` |public override void RefreshLabelNextFrame()
| +| `RemoveComponent` |public override void RemoveComponent()
| +| `Update` |public override void Update()
| + +## `SerieHandlerAttribute` + +|public method|description| +|--|--| +| `SerieHandlerAttribute` |public SerieHandlerAttribute(Type handler)
| +| `SerieHandlerAttribute` |public SerieHandlerAttribute(Type handler, bool allowMultiple)
| + +## `SerieHelper` + +|public method|description| +|--|--| +| `CopySerie` |public static void CopySerie(Serie oldSerie, Serie newSerie)
| +| `GetAllMinMaxData` |public static void GetAllMinMaxData(Serie serie, int ceilRate = 0, DataZoom dataZoom = null)
| +| `GetAreaColor` |public static Color32 GetAreaColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
| +| `GetAreaStyle` |public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData)
| +| `GetAreaToColor` |public static Color32 GetAreaToColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
| +| `GetAverageData` |public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null)
| +| `GetIconStyle` |public static IconStyle GetIconStyle(Serie serie, SerieData serieData)
| +| `GetItemColor` |public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
| +| `GetItemColor0` |public static Color32 GetItemColor0(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight, Color32 defaultColor)
| +| `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, bool highlight = false)
| +| `GetItemStyleEmphasis` |public static ItemStyle GetItemStyleEmphasis(Serie serie, SerieData serieData)
| +| `GetItemToColor` |public static Color32 GetItemToColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
| +| `GetLineColor` |public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, bool highlight)
| +| `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)
| +| `GetSerieEmphasisLabel` |public static LabelStyle GetSerieEmphasisLabel(Serie serie, SerieData serieData)
| +| `GetSerieLabel` |public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, bool highlight = false)
| +| `GetSerieLabelLine` |public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, bool highlight = false)
| +| `GetSerieSymbol` |public static SymbolStyle GetSerieSymbol(Serie serie, SerieData serieData)
| +| `GetSymbolBorder` |public static float GetSymbolBorder(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight)
| +| `GetSymbolBorder` |public static float GetSymbolBorder(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight, float defaultWidth)
| +| `GetSymbolBorderColor` |public static Color32 GetSymbolBorderColor(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight)
| +| `GetSymbolCornerRadius` |public static float[] GetSymbolCornerRadius(Serie serie, SerieData serieData, bool highlight)
| +| `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, int 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` + +|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(SerieData serieData, LabelStyle label, LabelLine labelLine)
| +| `SetGaugeLabelText` |public static void SetGaugeLabelText(Serie serie)
| +| `UpdatePieLabelPosition` |public static void UpdatePieLabelPosition(Serie serie, SerieData serieData)
| + +## `SerieLabelPool` + +|public method|description| +|--|--| +| `ClearAll` |public static void ClearAll()
| +| `Release` |public static void Release(GameObject element)
| +| `ReleaseAll` |public static void ReleaseAll(Transform parent)
| + +## `SerieParams` + + +## `SeriesHelper` + +|public method|description| +|--|--| +| `GetLastStackSerie` |public static Serie GetLastStackSerie(List series, int index)
获得上一个同堆叠且显示的serie。 | +| `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)
| +| `GetSerieByVesselIndex` |public static Serie GetSerieByVesselIndex(List series, int vesselIndex)
| +| `GetStackSeries` |public static void GetStackSeries(List series, ref Dictionary> stackSeries)
获得堆叠系列列表 | +| `IsAnyClipSerie` |public static bool IsAnyClipSerie(List series)
是否有需裁剪的serie。 | +| `IsAnyGradientSerie` |public static bool IsAnyGradientSerie(List series, string stack)
同堆叠的serie是否有渐变色的。 | +| `IsAnyUpdateAnimationSerie` |public static bool IsAnyUpdateAnimationSerie(List series)
| +| `IsLegalLegendName` |public static bool IsLegalLegendName(string name)
| +| `IsStack` |public static bool IsStack(List series)
是否由数据堆叠 | +| `UpdateSerieNameList` |public static void UpdateSerieNameList(BaseChart chart, ref List serieNameList)
获得所有系列名,不包含空名字。 | +| `UpdateStackDataList` |public static void UpdateStackDataList(List series, Serie currSerie, DataZoom dataZoom, List> dataList)
| + +## `SimplifiedBarChart` + + +## `SimplifiedCandlestickChart` + + +## `SimplifiedLineChart` + + +## `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)
| + +## `SVGImage` + + +## `SVGPath` + +|public method|description| +|--|--| +| `AddSegment` |public void AddSegment(SVGPathSeg seg)
| +| `Draw` |public void Draw(VertexHelper vh)
| +| `Parse` |public static SVGPath Parse(string path)
| + +## `SVGPathSeg` + +|public method|description| +|--|--| +| `SVGPathSeg` |public SVGPathSeg(SVGPathSegType type)
| + +## `TooltipContext` + + +## `TooltipData` + + +## `TooltipHelper` + +|public method|description| +|--|--| +| `GetItemNumericFormatter` |public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)
| +| `GetLineColor` |public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme)
| +| `IsIgnoreItemFormatter` |public static bool IsIgnoreItemFormatter(string itemFormatter)
| +| `LimitInRect` |public static void LimitInRect(Tooltip tooltip, Rect chartRect)
| + +## `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)
| + +## `TooltipViewItem` + + +## `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. 画直线 | +| `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` + + +## `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)
| +| `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)
| + +## `VisualMapContext` + + +## `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 serieDataCount)
| +| `IsNeedGradient` |public static bool IsNeedGradient(VisualMap visualMap)
| +| `SetMinMax` |public static void SetMinMax(VisualMap visualMap, double min, double max)
| + +## `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)
| + +## `XChartsPackageResourceImporterWindow` + +|public method|description| +|--|--| +| `ShowPackageImporterWindow` |public static void ShowPackageImporterWindow()
| + +## `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)
| + +[返回首页](https://github.com/XCharts-Team/XCharts)
+[XCharts配置项手册](XChartsConfiguration-ZH.md)
[XCharts问答](XChartsFQA-ZH.md) - diff --git a/Documentation/XCharts教程:5分钟上手教程.md.meta b/Documentation/XChartsAPI-ZH.md.meta similarity index 75% rename from Documentation/XCharts教程:5分钟上手教程.md.meta rename to Documentation/XChartsAPI-ZH.md.meta index 8a4414c2..79944bc0 100644 --- a/Documentation/XCharts教程:5分钟上手教程.md.meta +++ b/Documentation/XChartsAPI-ZH.md.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4d51993143e26422eb0a4015658033a3 +guid: 2c38d275e62c6471ea2f4ef69b87b220 TextScriptImporter: externalObjects: {} userData: diff --git a/Documentation/XChartsConfiguration-EN.md b/Documentation/XChartsConfiguration-EN.md index 823fa56c..8c8e9ded 100644 --- a/Documentation/XChartsConfiguration-EN.md +++ b/Documentation/XChartsConfiguration-EN.md @@ -1,10 +1,9 @@ # 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 Q&A](XChartsFQA-EN.md) - ## Serie - [Bar](#Bar) @@ -77,7 +76,6 @@ - [LevelStyle](#LevelStyle) - [LineArrow](#LineArrow) - [LineStyle](#LineStyle) -- [Location](#Location) - [MarkAreaData](#MarkAreaData) - [MarkLineData](#MarkLineData) - [PolarAxisTheme](#PolarAxisTheme) @@ -281,7 +279,7 @@ the name of axis. | `show` | | Whether to show axis name. | | `name` | | the name of axis. | | `formatter` | | The formatter of indicator's name. | -| `location` | | Location of axis name. [Location](Location)| +| `location` | | Location of axis name.
`AxisName.Location`:
- `Start`: the location of axis name.
- `Middle`: the location of axis name.
- `End`: the location of axis name.
- `align`: 对齐方式。
- `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.
| | `textStyle` | | The text style of axis name. [TextStyle](TextStyle)| ## `AxisSplitArea` @@ -658,10 +656,10 @@ Legend component.The legend component shows different sets of tags, colors, and |field|default|comment| |--|--|--| | `show` |true | Whether to show legend component. | -| `iconType` | | Type of legend.
`Type`:
- `Base`:
- `Serie`:
- `Top`:
| +| `iconType` | | Type of legend.
`Painter.Type`:
- `Base`:
- `Serie`:
- `Top`:
| | `selectedMode` | | Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
`VisualMap.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
| | `orient` | | Specify whether the layout of legend component is horizontal or vertical.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -| `location` | | The location of legend. [Location](Location)| +| `location` | | The location of legend.
`AxisName.Location`:
- `Start`: the location of axis name.
- `Middle`: the location of axis name.
- `End`: the location of axis name.
- `align`: 对齐方式。
- `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.
| | `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. | @@ -723,7 +721,7 @@ The style of line. |field|default|comment| |--|--|--| | `show` |true | Whether show line. | -| `type` | | the type of line.
`Type`:
- `Base`:
- `Serie`:
- `Top`:
| +| `type` | | the type of line.
`Painter.Type`:
- `Base`:
- `Serie`:
- `Top`:
| | `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. | @@ -731,20 +729,6 @@ The style of line. | `length` |0 | | | `opacity` |1 | Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0. | -## `Location` - -Inherits or Implemented: [ChildComponent](#ChildComponent),[IPropertyChanged](#IPropertyChanged) - -Location type. Quick to set the general location. - -|field|default|comment| -|--|--|--| -| `align` | | 对齐方式。
`Align`:
- `Center`: 对齐方式
- `Left`: 对齐方式
- `Right`: 对齐方式
| -| `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` Inherits or Implemented: [IComparable](#IComparable) @@ -910,6 +894,14 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) |field|default|comment| |--|--|--| +| `labels` | | | +| `labelLines` | | | +| `endLabels` | | | +| `lineArrows` | | | +| `areaStyles` | | | +| `iconStyles` | | | +| `titleStyles` | | | +| `emphases` | | | | `index` | | The index of serie. | | `show` |true | Whether to show serie in chart. | | `coordSystem` | | the chart coord system of serie. | @@ -1211,7 +1203,7 @@ Title component, including main title and subtitle. | `subText` | | Subtitle text, supporting for \n for newlines. | | `subTextStyle` | | The text style of sub title. [TextStyle](TextStyle)| | `itemGap` |0 | [default:8] The gap between the main title and subtitle. | -| `location` | | The location of title component. [Location](Location)| +| `location` | | The location of title component.
`AxisName.Location`:
- `Start`: the location of axis name.
- `Middle`: the location of axis name.
- `End`: the location of axis name.
- `align`: 对齐方式。
- `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.
| ## `TitleStyle` @@ -1239,7 +1231,7 @@ Tooltip component. |field|default|comment| |--|--|--| | `show` |true | Whether to show the tooltip component. | -| `type` | | Indicator type.
`Type`:
- `Base`:
- `Serie`:
- `Top`:
| +| `type` | | Indicator type.
`Painter.Type`:
- `Base`:
- `Serie`:
- `Top`:
| | `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.
| | `itemFormatter` | | a string template formatter for a single Serie or data item content. Support for wrapping lines with \n. When formatter is not null, use formatter first, otherwise use itemFormatter. | | `titleFormatter` | | | @@ -1293,7 +1285,7 @@ VisualMap component. Mapping data to visual elements such as colors. |field|default|comment| |--|--|--| | `show` |true | 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.
`Type`:
- `Base`:
- `Serie`:
- `Top`:
| +| `type` | | the type of visualmap component.
`Painter.Type`:
- `Base`:
- `Serie`:
- `Top`:
| | `selectedMode` | | the selected mode for Piecewise visualMap.
`VisualMap.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
| | `serieIndex` |0 | the serie index of visualMap. | | `min` |0 | 范围最小值 | @@ -1312,7 +1304,7 @@ VisualMap component. Mapping data to visual elements such as colors. | `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)| +| `location` | | The location of component.
`AxisName.Location`:
- `Start`: the location of axis name.
- `Middle`: the location of axis name.
- `End`: the location of axis name.
- `align`: 对齐方式。
- `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.
| | `inRange` | | Defines the visual color in the selected range. | | `outOfRange` | | Defines a visual color outside of the selected range. | | `pieces` | | 分段式每一段的相关配置。 | @@ -1348,9 +1340,6 @@ The x axis in cartesian(rectangular) coordinate. ## `XCResourcesImporter` -|field|default|comment| -|--|--|--| -| `XCResourcesImporter` | | | ## `XCSettings` @@ -1402,6 +1391,6 @@ Inherits or Implemented: [Axis](#Axis) The x axis in cartesian(rectangular) coordinate. -n[XCharts Homepage](https://github.com/XCharts-Team/XCharts) -[XCharts API](XChartsAPI-EN.md) +n[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
+[XCharts API](XChartsAPI-EN.md)
[XCharts Q&A](XChartsFQA-EN.md) diff --git a/Documentation/XCharts配置项手册.md.meta b/Documentation/XChartsConfiguration-EN.md.meta similarity index 75% rename from Documentation/XCharts配置项手册.md.meta rename to Documentation/XChartsConfiguration-EN.md.meta index 65a6cdbb..68d7840c 100644 --- a/Documentation/XCharts配置项手册.md.meta +++ b/Documentation/XChartsConfiguration-EN.md.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f74b65f3be5d64689a5db6bdbc91df3e +guid: 1fdd2e77324c84364bf033ffefa41123 TextScriptImporter: externalObjects: {} userData: diff --git a/Documentation/XChartsConfiguration-ZH.md b/Documentation/XChartsConfiguration-ZH.md index ec9a28de..defaf1f2 100644 --- a/Documentation/XChartsConfiguration-ZH.md +++ b/Documentation/XChartsConfiguration-ZH.md @@ -1,10 +1,9 @@ # 配置项手册 -[返回首页](https://github.com/XCharts-Team/XCharts) -[XChartsAPI接口](XChartsAPI-ZH.md) +[返回首页](https://github.com/XCharts-Team/XCharts)
+[XChartsAPI接口](XChartsAPI-ZH.md)
[XCharts问答](XChartsFQA-ZH.md) - ## Serie 系列 - [Bar](#Bar) @@ -77,7 +76,6 @@ - [LevelStyle](#LevelStyle) - [LineArrow](#LineArrow) - [LineStyle](#LineStyle) -- [Location](#Location) - [MarkAreaData](#MarkAreaData) - [MarkLineData](#MarkLineData) - [PolarAxisTheme](#PolarAxisTheme) @@ -281,7 +279,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) | `show` | | 是否显示坐标名称。 | | `name` | | 坐标轴名称。 | | `formatter` | | 指示器名称显示的格式器。可用在雷达图。 | -| `location` | | 坐标轴名称显示位置。 [Location](Location)| +| `location` | | 坐标轴名称显示位置。
`AxisName.Location`:
- `Start`: 坐标轴名称显示位置。
- `Middle`: 坐标轴名称显示位置。
- `End`: 坐标轴名称显示位置。
- `align`: 对齐方式。
- `left`: 离容器左侧的距离。
- `right`: 离容器右侧的距离。
- `top`: 离容器上侧的距离。
- `bottom`: 离容器下侧的距离。
| | `textStyle` | | 文本样式。 [TextStyle](TextStyle)| ## `AxisSplitArea` @@ -658,10 +656,10 @@ Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPr |field|default|comment| |--|--|--| | `show` |true | 是否显示图例组件。 | -| `iconType` | | 图例类型。 [default:Type.Auto]
`Type`:
- `Base`:
- `Serie`:
- `Top`:
| +| `iconType` | | 图例类型。 [default:Type.Auto]
`Painter.Type`:
- `Base`:
- `Serie`:
- `Top`:
| | `selectedMode` | | 选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。 [default:SelectedMode.Multiple]
`VisualMap.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
| | `orient` | | 布局方式是横还是竖。 [default:Orient.Horizonal]
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -| `location` | | 图例显示的位置。 [default:Location.defaultTop] [Location](Location)| +| `location` | | 图例显示的位置。 [default:Location.defaultTop]
`AxisName.Location`:
- `Start`: 坐标轴名称显示位置。
- `Middle`: 坐标轴名称显示位置。
- `End`: 坐标轴名称显示位置。
- `align`: 对齐方式。
- `left`: 离容器左侧的距离。
- `right`: 离容器右侧的距离。
- `top`: 离容器上侧的距离。
- `bottom`: 离容器下侧的距离。
| | `itemWidth` |25.0f | 图例标记的图形宽度。 [default:24f] | | `itemHeight` |12.0f | 图例标记的图形高度。 [default:12f] | | `itemGap` |10f | 图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。 [default:10f] | @@ -723,7 +721,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent] |field|default|comment| |--|--|--| | `show` |true | 是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。 | -| `type` | | 线的类型。
`Type`:
- `Base`:
- `Serie`:
- `Top`:
| +| `type` | | 线的类型。
`Painter.Type`:
- `Base`:
- `Serie`:
- `Top`:
| | `color` | | 线的颜色。 | | `toColor` | | 线的渐变颜色(需要水平方向渐变时)。 | | `toColor2` | | 线的渐变颜色2(需要水平方向三个渐变色的渐变时)。 | @@ -731,20 +729,6 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent] | `length` |0 | | | `opacity` |1 | 线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 | -## `Location` - -Inherits or Implemented: [ChildComponent](#ChildComponent),[IPropertyChanged](#IPropertyChanged) - -位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。 - -|field|default|comment| -|--|--|--| -| `align` | | 对齐方式。
`Align`:
- `Center`: 对齐方式
- `Left`: 对齐方式
- `Right`: 对齐方式
| -| `left` | | 离容器左侧的距离。 | -| `right` | | 离容器右侧的距离。 | -| `top` | | 离容器上侧的距离。 | -| `bottom` | | 离容器下侧的距离。 | - ## `MainComponent` Inherits or Implemented: [IComparable](#IComparable) @@ -910,6 +894,14 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) |field|default|comment| |--|--|--| +| `labels` | | | +| `labelLines` | | | +| `endLabels` | | | +| `lineArrows` | | | +| `areaStyles` | | | +| `iconStyles` | | | +| `titleStyles` | | | +| `emphases` | | | | `index` | | 系列索引。 | | `show` |true | 系列是否显示在图表上。 | | `coordSystem` | | 使用的坐标系。 | @@ -1211,7 +1203,7 @@ Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPr | `subText` | | 副标题文本,支持使用 \n 换行。 | | `subTextStyle` | | 副标题文本样式。 [TextStyle](TextStyle)| | `itemGap` |0 | 主副标题之间的间距。 | -| `location` | | 标题显示位置。 [Location](Location)| +| `location` | | 标题显示位置。
`AxisName.Location`:
- `Start`: 坐标轴名称显示位置。
- `Middle`: 坐标轴名称显示位置。
- `End`: 坐标轴名称显示位置。
- `align`: 对齐方式。
- `left`: 离容器左侧的距离。
- `right`: 离容器右侧的距离。
- `top`: 离容器上侧的距离。
- `bottom`: 离容器下侧的距离。
| ## `TitleStyle` @@ -1239,7 +1231,7 @@ Inherits or Implemented: [MainComponent](#MainComponent) |field|default|comment| |--|--|--| | `show` |true | 是否显示提示框组件。 | -| `type` | | 提示框指示器类型。
`Type`:
- `Base`:
- `Serie`:
- `Top`:
| +| `type` | | 提示框指示器类型。
`Painter.Type`:
- `Base`:
- `Serie`:
- `Top`:
| | `trigger` | | 触发类型。
`Tooltip.Trigger`:
- `Item`: 数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
- `Axis`: 坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。
- `None`: 什么都不触发。
| | `itemFormatter` | | 提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。当formatter不为空时,优先使用formatter,否则使用itemFormatter。 | | `titleFormatter` | | | @@ -1293,7 +1285,7 @@ Inherits or Implemented: [MainComponent](#MainComponent) |field|default|comment| |--|--|--| | `show` |true | 是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。 [default: true] | -| `type` | | 组件类型。
`Type`:
- `Base`:
- `Serie`:
- `Top`:
| +| `type` | | 组件类型。
`Painter.Type`:
- `Base`:
- `Serie`:
- `Top`:
| | `selectedMode` | | 选择模式。
`VisualMap.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
| | `serieIndex` |0 | 影响的serie索引。 | | `min` |0 | 范围最小值 | @@ -1312,7 +1304,7 @@ Inherits or Implemented: [MainComponent](#MainComponent) | `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)| +| `location` | | 组件显示的位置。
`AxisName.Location`:
- `Start`: 坐标轴名称显示位置。
- `Middle`: 坐标轴名称显示位置。
- `End`: 坐标轴名称显示位置。
- `align`: 对齐方式。
- `left`: 离容器左侧的距离。
- `right`: 离容器右侧的距离。
- `top`: 离容器上侧的距离。
- `bottom`: 离容器下侧的距离。
| | `inRange` | | 定义 在选中范围中 的视觉颜色。 | | `outOfRange` | | 定义 在选中范围外 的视觉颜色。 | | `pieces` | | 分段式每一段的相关配置。 | @@ -1348,9 +1340,6 @@ Inherits or Implemented: [Axis](#Axis) ## `XCResourcesImporter` -|field|default|comment| -|--|--|--| -| `XCResourcesImporter` | | | ## `XCSettings` @@ -1402,6 +1391,6 @@ Inherits or Implemented: [Axis](#Axis) 直角坐标系 grid 中的 y 轴。 -n[返回首页](https://github.com/XCharts-Team/XCharts) -[XChartsAPI接口](XChartsAPI-ZH.md) +n[返回首页](https://github.com/XCharts-Team/XCharts)
+[XChartsAPI接口](XChartsAPI-ZH.md)
[XCharts问答](XChartsFQA-ZH.md) diff --git a/Documentation/XCharts问答.md.meta b/Documentation/XChartsConfiguration-ZH.md.meta similarity index 75% rename from Documentation/XCharts问答.md.meta rename to Documentation/XChartsConfiguration-ZH.md.meta index 1f6fc278..597b60ce 100644 --- a/Documentation/XCharts问答.md.meta +++ b/Documentation/XChartsConfiguration-ZH.md.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9a4780a4fbaf446cc9d948b6b2c803d6 +guid: 1d5cdb90dc99540768bfb21ea8243d04 TextScriptImporter: externalObjects: {} userData: diff --git a/Documentation/XChartsFQA-EN.md b/Documentation/XChartsFQA-EN.md index 21124fa7..c037e7c1 100644 --- a/Documentation/XChartsFQA-EN.md +++ b/Documentation/XChartsFQA-EN.md @@ -1,8 +1,8 @@ # XCharts Q&A -[XCharts Homepage](https://github.com/XCharts-Team/XCharts) -[XCharts API](xcharts-api-EN.md) -[XCharts Configuration](xcharts-configuration-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) [QA 2: How to play agian the fadeIn animation?](#How-to-play-agian-the-fadeIn-animation) @@ -156,6 +156,6 @@ The upgrade steps are as follows: 4. Upgrade `XCharts` to the latest version. 5. The custom color can be restored by importing `color.config` through `menu bar -> XCharts-> ImportColorConfig` (if `color.config` is not under `Assets` of the upgraded project, copy it to this directory). -[XCharts Homepage](https://github.com/XCharts-Team/XCharts) -[XCharts API](xcharts-api-EN.md) -[XCharts Configuration](xcharts-configuration-EN.md) \ No newline at end of file +[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/XChartsFQA-EN.md.meta b/Documentation/XChartsFQA-EN.md.meta new file mode 100644 index 00000000..712177c0 --- /dev/null +++ b/Documentation/XChartsFQA-EN.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2929481916a9540ed9ecc270be6a3b0e +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Documentation/XChartsFQA-ZH.md.meta b/Documentation/XChartsFQA-ZH.md.meta new file mode 100644 index 00000000..4fc853b7 --- /dev/null +++ b/Documentation/XChartsFQA-ZH.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f2d61cadf902a4e20a2690f3c7d2ceea +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Documentation/XChartsTutorial01-EN.md b/Documentation/XChartsTutorial01-EN.md index d8c5c47e..53edaa8e 100644 --- a/Documentation/XChartsTutorial01-EN.md +++ b/Documentation/XChartsTutorial01-EN.md @@ -1,9 +1,9 @@ # 教程:5分钟上手 XCharts 3.0 -[返回首页](https://github.com/XCharts-Team/XCharts) -[XCharts问答](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsFQA-ZH.md) -[XChartsAPI接口](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsAPI-ZH.md) -[XCharts配置项手册](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsConfiguration-ZH.md) +[返回首页](https://github.com/XCharts-Team/XCharts)
+[XCharts问答](XChartsFQA-ZH.md)
+[XChartsAPI接口](XChartsAPI-ZH.md)
+[XCharts配置项手册](XChartsConfiguration-ZH.md) ## 获取和导入 XCharts @@ -225,7 +225,7 @@ itemStyle.color = Color.blue; ``` -[返回首页](https://github.com/XCharts-Team/XCharts) -[XCharts问答](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsFQA-ZH.md) -[XChartsAPI接口](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsAPI-ZH.md) -[XCharts配置项手册](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsConfiguration-ZH.md) +[返回首页](https://github.com/XCharts-Team/XCharts)
+[XCharts问答](XChartsFQA-ZH.md)
+[XChartsAPI接口](XChartsAPI-ZH.md)
+[XCharts配置项手册](XChartsConfiguration-ZH.md) diff --git a/Documentation/XChartsTutorial01-EN.md.meta b/Documentation/XChartsTutorial01-EN.md.meta new file mode 100644 index 00000000..2b2b77ae --- /dev/null +++ b/Documentation/XChartsTutorial01-EN.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a772f2d2a3f994d439db4a07365b9554 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Documentation/XChartsTutorial01-ZH.md b/Documentation/XChartsTutorial01-ZH.md index d8c5c47e..53edaa8e 100644 --- a/Documentation/XChartsTutorial01-ZH.md +++ b/Documentation/XChartsTutorial01-ZH.md @@ -1,9 +1,9 @@ # 教程:5分钟上手 XCharts 3.0 -[返回首页](https://github.com/XCharts-Team/XCharts) -[XCharts问答](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsFQA-ZH.md) -[XChartsAPI接口](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsAPI-ZH.md) -[XCharts配置项手册](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsConfiguration-ZH.md) +[返回首页](https://github.com/XCharts-Team/XCharts)
+[XCharts问答](XChartsFQA-ZH.md)
+[XChartsAPI接口](XChartsAPI-ZH.md)
+[XCharts配置项手册](XChartsConfiguration-ZH.md) ## 获取和导入 XCharts @@ -225,7 +225,7 @@ itemStyle.color = Color.blue; ``` -[返回首页](https://github.com/XCharts-Team/XCharts) -[XCharts问答](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsFQA-ZH.md) -[XChartsAPI接口](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsAPI-ZH.md) -[XCharts配置项手册](https://github.com/XCharts-Team/XCharts/master/Documentation/XChartsConfiguration-ZH.md) +[返回首页](https://github.com/XCharts-Team/XCharts)
+[XCharts问答](XChartsFQA-ZH.md)
+[XChartsAPI接口](XChartsAPI-ZH.md)
+[XCharts配置项手册](XChartsConfiguration-ZH.md) diff --git a/Documentation/XChartsTutorial01-ZH.md.meta b/Documentation/XChartsTutorial01-ZH.md.meta new file mode 100644 index 00000000..a0596c72 --- /dev/null +++ b/Documentation/XChartsTutorial01-ZH.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2ab7eabdc796a45aea5bc457dc9e27f8 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Documentation/config-EN.md.meta b/Documentation/config-EN.md.meta deleted file mode 100644 index 18713f6f..00000000 --- a/Documentation/config-EN.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 255571a0ecc5848af97ee18c2c9fb4d1 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/config-ZH.md.meta b/Documentation/config-ZH.md.meta deleted file mode 100644 index 9821b902..00000000 --- a/Documentation/config-ZH.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: bc767d3c7d87449c2b739135d75f896b -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/xcharts-api-EN.md.meta b/Documentation/xcharts-api-EN.md.meta deleted file mode 100644 index e1c43e7e..00000000 --- a/Documentation/xcharts-api-EN.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 529e55126e1d04a629b14d857f76fffd -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/xcharts-configuration-EN.md.meta b/Documentation/xcharts-configuration-EN.md.meta deleted file mode 100644 index e6f44caa..00000000 --- a/Documentation/xcharts-configuration-EN.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3fa7a80a30cd846139159beaadba05f2 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/xcharts-questions-and-answers-EN.md.meta b/Documentation/xcharts-questions-and-answers-EN.md.meta deleted file mode 100644 index a7a5f85d..00000000 --- a/Documentation/xcharts-questions-and-answers-EN.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: ca54a17a3a60f4b36b0be43df9f1c33d -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: