This commit is contained in:
monitor1394
2022-03-26 17:11:12 +08:00
parent 09f7557e1f
commit edd6d940b6
12 changed files with 142 additions and 48 deletions

View File

@@ -107,9 +107,11 @@
## `AxisContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `AxisHandler<T>`
Inherits or Implemented: [MainComponentHandler](#MainComponentHandler)
## `AxisHelper`
@@ -133,9 +135,12 @@
## `BarChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `BaseChart`
Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver](#ISerializationCallbackReceiver)
|public method|description|
|--|--|
| `AddChartComponent` |public MainComponent AddChartComponent(Type type)</br> |
@@ -262,6 +267,8 @@
## `BaseGraph`
Inherits or Implemented: [MaskableGraphic](#MaskableGraphic),[IPointerDownHandler](#IPointerDownHandler),[IPointerUpHandler](#IPointerUpHandler),[](#)
|public method|description|
|--|--|
| `CheckWarning` |public string CheckWarning()</br>检测警告信息。 |
@@ -283,6 +290,7 @@
## `CandlestickChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `ChartCached`
@@ -297,10 +305,8 @@
## `ChartConst`
## `ChartDrawer`
## `ChartHelper`
|public method|description|
@@ -360,6 +366,8 @@
## `ChartLabel`
Inherits or Implemented: [Image](#Image)
|public method|description|
|--|--|
| `GetLabelHeight` |public float GetLabelHeight()</br> |
@@ -402,6 +410,8 @@
## `ComponentHandlerAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `ComponentHandlerAttribute` |public ComponentHandlerAttribute(Type handler)</br> |
@@ -419,6 +429,8 @@
## `CoordOptionsAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `CoordOptionsAttribute` |public CoordOptionsAttribute(Type coord)</br> |
@@ -428,6 +440,7 @@
## `DataZoomContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `DataZoomHelper`
@@ -445,6 +458,8 @@
## `DefaultAnimationAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `DefaultAnimationAttribute` |public DefaultAnimationAttribute(AnimationType handler)</br> |
@@ -467,9 +482,11 @@
## `GridCoordContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext),[IRectContext](#IRectContext)
## `HeatmapChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `InteractData`
@@ -495,7 +512,6 @@
## `LangCandlestick`
## `LayerHelper`
|public method|description|
@@ -505,6 +521,7 @@
## `LegendContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `LegendHelper`
@@ -540,33 +557,39 @@
## `LineChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `ListFor`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `ListFor` |public ListFor(Type type)</br> |
## `ListForComponent`
Inherits or Implemented: [ListFor](#ListFor)
|public method|description|
|--|--|
| `ListForComponent` |public ListForComponent(Type type) : base(type)</br> |
## `ListForSerie`
Inherits or Implemented: [ListFor](#ListFor)
|public method|description|
|--|--|
| `ListForSerie` |public ListForSerie(Type type) : base(type)</br> |
## `MainComponentContext`
## `MainComponentHandler`
## `MainComponentHandler<T>`
Inherits or Implemented: [MainComponentHandler](#MainComponentHandler)
## `MathUtil`
@@ -580,6 +603,8 @@
## `Painter`
Inherits or Implemented: [MaskableGraphic](#MaskableGraphic)
|public method|description|
|--|--|
| `Init` |public void Init()</br> |
@@ -588,21 +613,27 @@
## `ParallelChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `ParallelCoordContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `PieChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `PolarChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `PolarCoordContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `ProgressBar`
Inherits or Implemented: [BaseChart](#BaseChart)
## `PropertyUtil`
@@ -613,9 +644,11 @@
## `RadarChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `RadarCoordContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `ReflectionUtil`
@@ -630,6 +663,8 @@
## `RequireChartComponentAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `RequireChartComponentAttribute` |public RequireChartComponentAttribute(Type requiredComponent)</br> |
@@ -638,6 +673,7 @@
## `RingChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `RuntimeUtil`
@@ -651,12 +687,14 @@
## `ScatterChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `SerieContext`
## `SerieConvertAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `Contains` |public bool Contains(Type type)</br> |
@@ -667,9 +705,10 @@
## `SerieDataContext`
## `SerieExtraComponentAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `Contains` |public bool Contains(Type type)</br> |
@@ -684,9 +723,10 @@
## `SerieHandler`
## `SerieHandler<T>`
Inherits or Implemented: [SerieHandler where T](#SerieHandler where T),[Serie](#Serie)
|public method|description|
|--|--|
| `GetSerieDataLabelPosition` |public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)</br> |
@@ -702,6 +742,8 @@
## `SerieHandlerAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `SerieHandlerAttribute` |public SerieHandlerAttribute(Type handler)</br> |
@@ -772,7 +814,6 @@
## `SerieParams`
## `SeriesHelper`
|public method|description|
@@ -794,12 +835,15 @@
## `SimplifiedBarChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `SimplifiedCandlestickChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `SimplifiedLineChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `SVG`
@@ -811,6 +855,7 @@
## `SVGImage`
Inherits or Implemented: [MaskableGraphic](#MaskableGraphic)
## `SVGPath`
@@ -828,10 +873,8 @@
## `TooltipContext`
## `TooltipData`
## `TooltipHelper`
|public method|description|
@@ -855,7 +898,6 @@
## `TooltipViewItem`
## `UGL`
|public method|description|
@@ -878,6 +920,7 @@
## `UGLExample`
Inherits or Implemented: [MaskableGraphic](#MaskableGraphic)
## `UGLHelper`
@@ -905,6 +948,7 @@
## `VisualMapContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `VisualMapHelper`
@@ -936,6 +980,8 @@
## `XChartsPackageResourceImporterWindow`
Inherits or Implemented: [UnityEditor.EditorWindow](#UnityEditor.EditorWindow)
|public method|description|
|--|--|
| `ShowPackageImporterWindow` |public static void ShowPackageImporterWindow()</br> |

View File

@@ -1,6 +1,6 @@
# API
[返回首](https://github.com/XCharts-Team/XCharts)</br>
[XCharts主](https://github.com/XCharts-Team/XCharts)</br>
[XCharts配置项手册](XChartsConfiguration-ZH.md)</br>
[XCharts问答](XChartsFQA-ZH.md)
@@ -107,9 +107,11 @@
## `AxisContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `AxisHandler<T>`
Inherits or Implemented: [MainComponentHandler](#MainComponentHandler)
## `AxisHelper`
@@ -133,9 +135,12 @@
## `BarChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `BaseChart`
Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver](#ISerializationCallbackReceiver)
|public method|description|
|--|--|
| `AddChartComponent` |public MainComponent AddChartComponent(Type type)</br> |
@@ -262,6 +267,8 @@
## `BaseGraph`
Inherits or Implemented: [MaskableGraphic](#MaskableGraphic),[IPointerDownHandler](#IPointerDownHandler),[IPointerUpHandler](#IPointerUpHandler),[](#)
|public method|description|
|--|--|
| `CheckWarning` |public string CheckWarning()</br>检测警告信息。 |
@@ -283,6 +290,7 @@
## `CandlestickChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `ChartCached`
@@ -297,10 +305,8 @@
## `ChartConst`
## `ChartDrawer`
## `ChartHelper`
|public method|description|
@@ -360,6 +366,8 @@
## `ChartLabel`
Inherits or Implemented: [Image](#Image)
|public method|description|
|--|--|
| `GetLabelHeight` |public float GetLabelHeight()</br> |
@@ -402,6 +410,8 @@
## `ComponentHandlerAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `ComponentHandlerAttribute` |public ComponentHandlerAttribute(Type handler)</br> |
@@ -419,6 +429,8 @@
## `CoordOptionsAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `CoordOptionsAttribute` |public CoordOptionsAttribute(Type coord)</br> |
@@ -428,6 +440,7 @@
## `DataZoomContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `DataZoomHelper`
@@ -445,6 +458,8 @@
## `DefaultAnimationAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `DefaultAnimationAttribute` |public DefaultAnimationAttribute(AnimationType handler)</br> |
@@ -467,9 +482,11 @@
## `GridCoordContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext),[IRectContext](#IRectContext)
## `HeatmapChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `InteractData`
@@ -495,7 +512,6 @@
## `LangCandlestick`
## `LayerHelper`
|public method|description|
@@ -505,6 +521,7 @@
## `LegendContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `LegendHelper`
@@ -540,33 +557,39 @@
## `LineChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `ListFor`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `ListFor` |public ListFor(Type type)</br> |
## `ListForComponent`
Inherits or Implemented: [ListFor](#ListFor)
|public method|description|
|--|--|
| `ListForComponent` |public ListForComponent(Type type) : base(type)</br> |
## `ListForSerie`
Inherits or Implemented: [ListFor](#ListFor)
|public method|description|
|--|--|
| `ListForSerie` |public ListForSerie(Type type) : base(type)</br> |
## `MainComponentContext`
## `MainComponentHandler`
## `MainComponentHandler<T>`
Inherits or Implemented: [MainComponentHandler](#MainComponentHandler)
## `MathUtil`
@@ -580,6 +603,8 @@
## `Painter`
Inherits or Implemented: [MaskableGraphic](#MaskableGraphic)
|public method|description|
|--|--|
| `Init` |public void Init()</br> |
@@ -588,21 +613,27 @@
## `ParallelChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `ParallelCoordContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `PieChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `PolarChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `PolarCoordContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `ProgressBar`
Inherits or Implemented: [BaseChart](#BaseChart)
## `PropertyUtil`
@@ -613,9 +644,11 @@
## `RadarChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `RadarCoordContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `ReflectionUtil`
@@ -630,6 +663,8 @@
## `RequireChartComponentAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `RequireChartComponentAttribute` |public RequireChartComponentAttribute(Type requiredComponent)</br> |
@@ -638,6 +673,7 @@
## `RingChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `RuntimeUtil`
@@ -651,12 +687,14 @@
## `ScatterChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `SerieContext`
## `SerieConvertAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `Contains` |public bool Contains(Type type)</br> |
@@ -667,9 +705,10 @@
## `SerieDataContext`
## `SerieExtraComponentAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `Contains` |public bool Contains(Type type)</br> |
@@ -684,9 +723,10 @@
## `SerieHandler`
## `SerieHandler<T>`
Inherits or Implemented: [SerieHandler where T](#SerieHandler where T),[Serie](#Serie)
|public method|description|
|--|--|
| `GetSerieDataLabelPosition` |public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)</br> |
@@ -702,6 +742,8 @@
## `SerieHandlerAttribute`
Inherits or Implemented: [Attribute](#Attribute)
|public method|description|
|--|--|
| `SerieHandlerAttribute` |public SerieHandlerAttribute(Type handler)</br> |
@@ -772,7 +814,6 @@
## `SerieParams`
## `SeriesHelper`
|public method|description|
@@ -794,12 +835,15 @@
## `SimplifiedBarChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `SimplifiedCandlestickChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `SimplifiedLineChart`
Inherits or Implemented: [BaseChart](#BaseChart)
## `SVG`
@@ -811,6 +855,7 @@
## `SVGImage`
Inherits or Implemented: [MaskableGraphic](#MaskableGraphic)
## `SVGPath`
@@ -828,10 +873,8 @@
## `TooltipContext`
## `TooltipData`
## `TooltipHelper`
|public method|description|
@@ -855,7 +898,6 @@
## `TooltipViewItem`
## `UGL`
|public method|description|
@@ -878,6 +920,7 @@
## `UGLExample`
Inherits or Implemented: [MaskableGraphic](#MaskableGraphic)
## `UGLHelper`
@@ -905,6 +948,7 @@
## `VisualMapContext`
Inherits or Implemented: [MainComponentContext](#MainComponentContext)
## `VisualMapHelper`
@@ -936,6 +980,8 @@
## `XChartsPackageResourceImporterWindow`
Inherits or Implemented: [UnityEditor.EditorWindow](#UnityEditor.EditorWindow)
|public method|description|
|--|--|
| `ShowPackageImporterWindow` |public static void ShowPackageImporterWindow()</br> |
@@ -959,6 +1005,6 @@
| `ReloadThemeList` |public static void ReloadThemeList()</br>重新加载主题列表 |
| `SwitchTheme` |public static void SwitchTheme(BaseChart chart, string themeName)</br> |
[返回首](https://github.com/XCharts-Team/XCharts)</br>
[XCharts主](https://github.com/XCharts-Team/XCharts)</br>
[XCharts配置项手册](XChartsConfiguration-ZH.md)</br>
[XCharts问答](XChartsFQA-ZH.md)

View File

@@ -1391,6 +1391,7 @@ Inherits or Implemented: [Axis](#Axis)
The x axis in cartesian(rectangular) coordinate.
n[XCharts Homepage](https://github.com/XCharts-Team/XCharts)</br>
[XCharts Homepage](https://github.com/XCharts-Team/XCharts)</br>
[XCharts API](XChartsAPI-EN.md)</br>
[XCharts Q&A](XChartsFQA-EN.md)

View File

@@ -1,6 +1,6 @@
# 配置项手册
[返回首](https://github.com/XCharts-Team/XCharts)</br>
[XCharts主](https://github.com/XCharts-Team/XCharts)</br>
[XChartsAPI接口](XChartsAPI-ZH.md)</br>
[XCharts问答](XChartsFQA-ZH.md)
@@ -1391,6 +1391,7 @@ Inherits or Implemented: [Axis](#Axis)
直角坐标系 grid 中的 y 轴。
n[返回首页](https://github.com/XCharts-Team/XCharts)</br>
[XCharts主页](https://github.com/XCharts-Team/XCharts)</br>
[XChartsAPI接口](XChartsAPI-ZH.md)</br>
[XCharts问答](XChartsFQA-ZH.md)

View File

@@ -1,6 +1,6 @@
# XCharts问答
[返回首](https://github.com/XCharts-Team/XCharts)
[XCharts主](https://github.com/XCharts-Team/XCharts)
[XChartsAPI](XChartsAPI-ZH.md)
[XCharts配置项手册](XChartsConfiguration-ZH.md)
@@ -162,6 +162,6 @@
6. 升级`XCharts`到最新版本。
7. 通过`菜单栏->XCharts->ImportColorConfig``color.config`导入即可恢复自定义的颜色(如果`color.config`不在升级后的项目的`Assets`下的话需要拷贝到此目录下)。
[返回首](https://github.com/XCharts-Team/XCharts)
[XCharts主](https://github.com/XCharts-Team/XCharts)
[XChartsAPI](XChartsAPI-ZH.md)
[XCharts配置项手册](XChartsConfiguration-ZH.md)

View File

@@ -1,6 +1,6 @@
# 教程5分钟上手 XCharts 3.0
[返回首](https://github.com/XCharts-Team/XCharts)</br>
[XCharts主](https://github.com/XCharts-Team/XCharts)</br>
[XCharts问答](XChartsFQA-ZH.md)</br>
[XChartsAPI接口](XChartsAPI-ZH.md)</br>
[XCharts配置项手册](XChartsConfiguration-ZH.md)
@@ -225,7 +225,7 @@ itemStyle.color = Color.blue;
```
[返回首](https://github.com/XCharts-Team/XCharts)</br>
[XCharts主](https://github.com/XCharts-Team/XCharts)</br>
[XCharts问答](XChartsFQA-ZH.md)</br>
[XChartsAPI接口](XChartsAPI-ZH.md)</br>
[XCharts配置项手册](XChartsConfiguration-ZH.md)

View File

@@ -1,6 +1,6 @@
# 教程5分钟上手 XCharts 3.0
[返回首](https://github.com/XCharts-Team/XCharts)</br>
[XCharts主](https://github.com/XCharts-Team/XCharts)</br>
[XCharts问答](XChartsFQA-ZH.md)</br>
[XChartsAPI接口](XChartsAPI-ZH.md)</br>
[XCharts配置项手册](XChartsConfiguration-ZH.md)
@@ -225,7 +225,7 @@ itemStyle.color = Color.blue;
```
[返回首](https://github.com/XCharts-Team/XCharts)</br>
[XCharts主](https://github.com/XCharts-Team/XCharts)</br>
[XCharts问答](XChartsFQA-ZH.md)</br>
[XChartsAPI接口](XChartsAPI-ZH.md)</br>
[XCharts配置项手册](XChartsConfiguration-ZH.md)

View File

@@ -26,7 +26,7 @@ namespace XCharts.Editor
this.chart = chart;
this.serie = target;
this.baseProperty = property;
m_DisplayName = string.Format("serie {0}: {1}", serie.index, serie.GetType().Name);
m_DisplayName = string.Format("Serie {0}: {1}", serie.index, serie.GetType().Name);
//m_Inspector = inspector;
showProperty = baseProperty.FindPropertyRelative("m_Show");
if (showProperty == null)

View File

@@ -45,11 +45,11 @@
一款基于`UGUI`的功能强大、易用、参数可配置的数据可视化图表插件。支持折线图、柱状图、饼图、雷达图、散点图、热力图、环形图、K线图、极坐标、平行坐标等十种常见免费内置图表以及3D柱图、漏斗图、金字塔、仪表盘、水位图、象形柱图、甘特图、矩形树图等多种付费扩展图表。
[XCharts教程](Documentation/XChartsTutorial01-ZH.md)
[XChartsAPI](Documentation/XChartsAPI-ZH.md)
[XCharts问答](Documentation/XChartsFQA-ZH.md)
[XCharts配置项手册](Documentation/XChartsConfiguration-ZH.md)
[XCharts更新日志](CHANGELOG.md)
[XCharts3.0 教程](Documentation/XChartsTutorial01-ZH.md)
[XCharts3.0 API](Documentation/XChartsAPI-ZH.md)
[XCharts3.0 问答](Documentation/XChartsFQA-ZH.md)
[XCharts3.0 配置项手册](Documentation/XChartsConfiguration-ZH.md)
[XCharts3.0 更新日志](CHANGELOG.md)
## 特性

View File

@@ -20,8 +20,8 @@ namespace XCharts.Runtime
[ExecuteInEditMode]
public static class XChartsMgr
{
public static readonly string version = "3.0.0";
public static readonly int versionDate = 20220101;
public static readonly string version = "3.0.0-preview5";
public static readonly int versionDate = 20220326;
public static string fullVersion { get { return version + "-" + versionDate; } }
internal static List<BaseChart> chartList = new List<BaseChart>();

View File

@@ -12,8 +12,8 @@ namespace XCharts.Runtime
private SVGPath m_Path;
public string svgPath { get { return m_SVGPath; } }
public bool mirrorY { get { return m_MirrorY; } }
public string svgPath { set { m_SVGPath = value; } get { return m_SVGPath; } }
public bool mirrorY { set { m_MirrorY = value; } get { return m_MirrorY; } }
protected override void Awake()
{

View File

@@ -1,9 +1,9 @@
{
"name": "com.monitor1394.xcharts",
"displayName": "XCharts",
"version": "3.0.0",
"date": "20210724",
"checkdate": "20210724",
"version": "3.0.0-preview5",
"date": "20220326",
"checkdate": "20220326",
"desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!",
"unity": "2018.3",
"description": "A charting and data visualization library for Unity.",