mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 01:40:06 +00:00
重构代码,废弃Series.series接口,用Series.list代替
This commit is contained in:
@@ -33,7 +33,7 @@ public class Demo11_AddSinCurve : MonoBehaviour
|
|||||||
|
|
||||||
chart.xAxises[0].boundaryGap = false;
|
chart.xAxises[0].boundaryGap = false;
|
||||||
chart.xAxises[0].maxCache = 0;
|
chart.xAxises[0].maxCache = 0;
|
||||||
chart.series.series[0].maxCache = 0;
|
chart.series.list[0].maxCache = 0;
|
||||||
|
|
||||||
chart.RemoveData();
|
chart.RemoveData();
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public class Demo12_CustomDrawing : MonoBehaviour
|
|||||||
|
|
||||||
chart.customDrawCallback = delegate (VertexHelper vh)
|
chart.customDrawCallback = delegate (VertexHelper vh)
|
||||||
{
|
{
|
||||||
var dataPoints = chart.series.series[0].dataPoints;
|
var dataPoints = chart.series.list[0].dataPoints;
|
||||||
if (dataPoints.Count > 0)
|
if (dataPoints.Count > 0)
|
||||||
{
|
{
|
||||||
var pos = dataPoints[3];
|
var pos = dataPoints[3];
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class Demo_LargeData : MonoBehaviour
|
|||||||
timeNow = System.DateTime.Now;
|
timeNow = System.DateTime.Now;
|
||||||
chart.ClearAxisData();
|
chart.ClearAxisData();
|
||||||
chart.series.ClearData();
|
chart.series.ClearData();
|
||||||
chart.series.series[0].maxCache = maxCacheDataNumber;
|
chart.series.list[0].maxCache = maxCacheDataNumber;
|
||||||
chart.xAxises[0].maxCache = maxCacheDataNumber;
|
chart.xAxises[0].maxCache = maxCacheDataNumber;
|
||||||
chart.title.text = maxCacheDataNumber + "数据";
|
chart.title.text = maxCacheDataNumber + "数据";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ namespace XCharts
|
|||||||
private bool m_IndicatorJsonAreaToggle = false;
|
private bool m_IndicatorJsonAreaToggle = false;
|
||||||
private string m_IndicatorJsonAreaText;
|
private string m_IndicatorJsonAreaText;
|
||||||
private int m_IndicatorSize;
|
private int m_IndicatorSize;
|
||||||
private bool m_BackgroundColorToggle = false;
|
|
||||||
private int m_BackgroundColorSize;
|
private int m_BackgroundColorSize;
|
||||||
|
|
||||||
private void InitProperty(SerializedProperty prop)
|
private void InitProperty(SerializedProperty prop)
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ namespace XCharts
|
|||||||
[CustomPropertyDrawer(typeof(Serie), true)]
|
[CustomPropertyDrawer(typeof(Serie), true)]
|
||||||
public class SerieDrawer : PropertyDrawer
|
public class SerieDrawer : PropertyDrawer
|
||||||
{
|
{
|
||||||
|
|
||||||
private Dictionary<string, bool> m_SerieModuleToggle = new Dictionary<string, bool>();
|
private Dictionary<string, bool> m_SerieModuleToggle = new Dictionary<string, bool>();
|
||||||
private List<bool> m_DataFoldout = new List<bool>();
|
private List<bool> m_DataFoldout = new List<bool>();
|
||||||
private bool m_ShowJsonDataArea = false;
|
private bool m_ShowJsonDataArea = false;
|
||||||
@@ -35,7 +34,6 @@ namespace XCharts
|
|||||||
SerializedProperty m_SampleAverage = prop.FindPropertyRelative("m_SampleAverage");
|
SerializedProperty m_SampleAverage = prop.FindPropertyRelative("m_SampleAverage");
|
||||||
SerializedProperty m_BarWidth = prop.FindPropertyRelative("m_BarWidth");
|
SerializedProperty m_BarWidth = prop.FindPropertyRelative("m_BarWidth");
|
||||||
SerializedProperty m_BarGap = prop.FindPropertyRelative("m_BarGap");
|
SerializedProperty m_BarGap = prop.FindPropertyRelative("m_BarGap");
|
||||||
SerializedProperty m_BarCategoryGap = prop.FindPropertyRelative("m_BarCategoryGap");
|
|
||||||
SerializedProperty m_AreaStyle = prop.FindPropertyRelative("m_AreaStyle");
|
SerializedProperty m_AreaStyle = prop.FindPropertyRelative("m_AreaStyle");
|
||||||
SerializedProperty m_Symbol = prop.FindPropertyRelative("m_Symbol");
|
SerializedProperty m_Symbol = prop.FindPropertyRelative("m_Symbol");
|
||||||
SerializedProperty m_RoseType = prop.FindPropertyRelative("m_RoseType");
|
SerializedProperty m_RoseType = prop.FindPropertyRelative("m_RoseType");
|
||||||
|
|||||||
@@ -423,7 +423,6 @@ namespace XCharts
|
|||||||
return coordinateWidth / segment;
|
return coordinateWidth / segment;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Dictionary<float, string> _cacheValue2str = new Dictionary<float, string>();
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得标签显示的名称
|
/// 获得标签显示的名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace XCharts
|
namespace XCharts
|
||||||
{
|
{
|
||||||
@@ -10,6 +11,7 @@ namespace XCharts
|
|||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class Series : JsonDataSupport
|
public class Series : JsonDataSupport
|
||||||
{
|
{
|
||||||
|
|
||||||
[SerializeField] protected List<Serie> m_Series;
|
[SerializeField] protected List<Serie> m_Series;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -17,7 +19,15 @@ namespace XCharts
|
|||||||
/// 系列列表。
|
/// 系列列表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
|
[Obsolete("Use series.list instead.", true)]
|
||||||
public List<Serie> series { get { return m_Series; } }
|
public List<Serie> series { get { return m_Series; } }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// the list of serie
|
||||||
|
/// 系列列表。
|
||||||
|
/// </summary>
|
||||||
|
/// <value></value>
|
||||||
|
public List<Serie> list { get { return m_Series; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the size of serie list.
|
/// the size of serie list.
|
||||||
/// 系列个数。
|
/// 系列个数。
|
||||||
@@ -532,7 +542,7 @@ namespace XCharts
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public bool IsUsedAxisIndex(int axisIndex)
|
public bool IsUsedAxisIndex(int axisIndex)
|
||||||
{
|
{
|
||||||
foreach (var serie in series)
|
foreach (var serie in list)
|
||||||
{
|
{
|
||||||
if (serie.axisIndex == axisIndex) return true;
|
if (serie.axisIndex == axisIndex) return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -254,7 +254,6 @@ namespace XCharts
|
|||||||
{
|
{
|
||||||
for (int n = 0; n < datas.Count; n++)
|
for (int n = 0; n < datas.Count; n++)
|
||||||
{
|
{
|
||||||
var legendName = m_Legend.GetFormatterContent(datas[n]);
|
|
||||||
OnLegendButtonClick(n, datas[n], n == 0 ? true : false);
|
OnLegendButtonClick(n, datas[n], n == 0 ? true : false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -268,7 +267,7 @@ namespace XCharts
|
|||||||
int count = 0;
|
int count = 0;
|
||||||
for (int i = 0; i < m_Series.Count; i++)
|
for (int i = 0; i < m_Series.Count; i++)
|
||||||
{
|
{
|
||||||
var serie = m_Series.series[i];
|
var serie = m_Series.list[i];
|
||||||
if (serie.type != SerieType.Pie && !serie.label.show) continue;
|
if (serie.type != SerieType.Pie && !serie.label.show) continue;
|
||||||
for (int j = 0; j < serie.data.Count; j++)
|
for (int j = 0; j < serie.data.Count; j++)
|
||||||
{
|
{
|
||||||
@@ -533,7 +532,7 @@ namespace XCharts
|
|||||||
protected bool CheckDataShow(string legendName, bool show)
|
protected bool CheckDataShow(string legendName, bool show)
|
||||||
{
|
{
|
||||||
bool needShow = false;
|
bool needShow = false;
|
||||||
foreach (var serie in m_Series.series)
|
foreach (var serie in m_Series.list)
|
||||||
{
|
{
|
||||||
if (legendName.Equals(serie.name))
|
if (legendName.Equals(serie.name))
|
||||||
{
|
{
|
||||||
@@ -560,7 +559,7 @@ namespace XCharts
|
|||||||
protected bool CheckDataHighlighted(string legendName, bool heighlight)
|
protected bool CheckDataHighlighted(string legendName, bool heighlight)
|
||||||
{
|
{
|
||||||
bool show = false;
|
bool show = false;
|
||||||
foreach (var serie in m_Series.series)
|
foreach (var serie in m_Series.list)
|
||||||
{
|
{
|
||||||
if (legendName.Equals(serie.name))
|
if (legendName.Equals(serie.name))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ namespace XCharts
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public virtual bool IsActiveByLegend(string legendName)
|
public virtual bool IsActiveByLegend(string legendName)
|
||||||
{
|
{
|
||||||
foreach (var serie in m_Series.series)
|
foreach (var serie in m_Series.list)
|
||||||
{
|
{
|
||||||
if (serie.show && legendName.Equals(serie.name))
|
if (serie.show && legendName.Equals(serie.name))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -914,7 +914,7 @@ namespace XCharts
|
|||||||
ChartDrawer.DrawLine(vh, p4, p1, xAxis.axisLine.width, m_ThemeInfo.dataZoomLineColor);
|
ChartDrawer.DrawLine(vh, p4, p1, xAxis.axisLine.width, m_ThemeInfo.dataZoomLineColor);
|
||||||
if (m_DataZoom.showDataShadow && m_Series.Count > 0)
|
if (m_DataZoom.showDataShadow && m_Series.Count > 0)
|
||||||
{
|
{
|
||||||
Serie serie = m_Series.series[0];
|
Serie serie = m_Series.list[0];
|
||||||
Axis axis = yAxises[0];
|
Axis axis = yAxises[0];
|
||||||
float scaleWid = coordinateWid / (serie.data.Count - 1);
|
float scaleWid = coordinateWid / (serie.data.Count - 1);
|
||||||
Vector3 lp = Vector3.zero;
|
Vector3 lp = Vector3.zero;
|
||||||
@@ -963,7 +963,6 @@ namespace XCharts
|
|||||||
protected void DrawSplitLine(VertexHelper vh, Axis axis, Axis.SplitLineType type,
|
protected void DrawSplitLine(VertexHelper vh, Axis axis, Axis.SplitLineType type,
|
||||||
Vector3 startPos, Vector3 endPos, Color color)
|
Vector3 startPos, Vector3 endPos, Color color)
|
||||||
{
|
{
|
||||||
bool isYAxis = axis is YAxis;
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case Axis.SplitLineType.Dashed:
|
case Axis.SplitLineType.Dashed:
|
||||||
@@ -1165,8 +1164,6 @@ namespace XCharts
|
|||||||
|
|
||||||
protected override void OnRefreshLabel()
|
protected override void OnRefreshLabel()
|
||||||
{
|
{
|
||||||
var isYAxis = m_YAxises[0].type == Axis.AxisType.Category
|
|
||||||
|| m_YAxises[1].type == Axis.AxisType.Category;
|
|
||||||
for (int i = 0; i < m_Series.Count; i++)
|
for (int i = 0; i < m_Series.Count; i++)
|
||||||
{
|
{
|
||||||
var serie = m_Series.GetSerie(i);
|
var serie = m_Series.GetSerie(i);
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ namespace XCharts
|
|||||||
float gap = 0.3f;
|
float gap = 0.3f;
|
||||||
for (int i = 0; i < m_Series.Count; i++)
|
for (int i = 0; i < m_Series.Count; i++)
|
||||||
{
|
{
|
||||||
var serie = m_Series.series[i];
|
var serie = m_Series.list[i];
|
||||||
if (serie.type == SerieType.Bar)
|
if (serie.type == SerieType.Bar)
|
||||||
{
|
{
|
||||||
if (serie.barGap != 0)
|
if (serie.barGap != 0)
|
||||||
@@ -186,7 +186,7 @@ namespace XCharts
|
|||||||
barStackSet.Clear();
|
barStackSet.Clear();
|
||||||
for (int i = 0; i < m_Series.Count; i++)
|
for (int i = 0; i < m_Series.Count; i++)
|
||||||
{
|
{
|
||||||
var serie = m_Series.series[i];
|
var serie = m_Series.list[i];
|
||||||
if (serie.type == SerieType.Bar && serie.show)
|
if (serie.type == SerieType.Bar && serie.show)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(serie.stack))
|
if (!string.IsNullOrEmpty(serie.stack))
|
||||||
@@ -217,7 +217,7 @@ namespace XCharts
|
|||||||
float barWidth = 0;
|
float barWidth = 0;
|
||||||
for (int i = 0; i < m_Series.Count; i++)
|
for (int i = 0; i < m_Series.Count; i++)
|
||||||
{
|
{
|
||||||
var serie = m_Series.series[i];
|
var serie = m_Series.list[i];
|
||||||
if (serie.type == SerieType.Bar && serie.show && now.stack.Equals(serie.stack))
|
if (serie.type == SerieType.Bar && serie.show && now.stack.Equals(serie.stack))
|
||||||
{
|
{
|
||||||
if (serie.barWidth > barWidth) barWidth = serie.barWidth;
|
if (serie.barWidth > barWidth) barWidth = serie.barWidth;
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ namespace XCharts
|
|||||||
var yAxis = m_YAxises[serie.axisIndex];
|
var yAxis = m_YAxises[serie.axisIndex];
|
||||||
var xAxis = m_XAxises[serie.axisIndex];
|
var xAxis = m_XAxises[serie.axisIndex];
|
||||||
var zeroPos = new Vector3(coordinateX, coordinateY + yAxis.zeroYOffset);
|
var zeroPos = new Vector3(coordinateX, coordinateY + yAxis.zeroYOffset);
|
||||||
var lastSerie = m_Series.GetSerie(serie.index - 1);
|
|
||||||
var isStack = m_Series.IsStack(serie.stack, SerieType.Line);
|
var isStack = m_Series.IsStack(serie.stack, SerieType.Line);
|
||||||
if (!xAxis.show) xAxis = m_XAxises[(serie.axisIndex + 1) % m_XAxises.Count];
|
if (!xAxis.show) xAxis = m_XAxises[(serie.axisIndex + 1) % m_XAxises.Count];
|
||||||
float scaleWid = xAxis.GetDataWidth(coordinateWid, m_DataZoom);
|
float scaleWid = xAxis.GetDataWidth(coordinateWid, m_DataZoom);
|
||||||
@@ -357,7 +356,6 @@ namespace XCharts
|
|||||||
var xAxis = m_XAxises[serie.axisIndex];
|
var xAxis = m_XAxises[serie.axisIndex];
|
||||||
var yAxis = m_YAxises[serie.axisIndex];
|
var yAxis = m_YAxises[serie.axisIndex];
|
||||||
var zeroPos = new Vector3(coordinateX + xAxis.zeroXOffset, coordinateY);
|
var zeroPos = new Vector3(coordinateX + xAxis.zeroXOffset, coordinateY);
|
||||||
var lastSerie = m_Series.GetSerie(serieIndex - 1);
|
|
||||||
var isStack = m_Series.IsStack(serie.stack, SerieType.Line);
|
var isStack = m_Series.IsStack(serie.stack, SerieType.Line);
|
||||||
if (!yAxis.show) yAxis = m_YAxises[(serie.axisIndex + 1) % m_YAxises.Count];
|
if (!yAxis.show) yAxis = m_YAxises[(serie.axisIndex + 1) % m_YAxises.Count];
|
||||||
float scaleWid = yAxis.GetDataWidth(coordinateHig, m_DataZoom);
|
float scaleWid = yAxis.GetDataWidth(coordinateHig, m_DataZoom);
|
||||||
@@ -373,8 +371,6 @@ namespace XCharts
|
|||||||
seriesHig.Add(0);
|
seriesHig.Add(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var fine = isStack && m_Series.IsAnyGradientSerie(serie.stack);
|
|
||||||
|
|
||||||
int rate = 1;
|
int rate = 1;
|
||||||
var sampleDist = serie.sampleDist;
|
var sampleDist = serie.sampleDist;
|
||||||
if (sampleDist > 0) rate = (int)((maxCount - serie.minShow) / (coordinateWid / sampleDist));
|
if (sampleDist > 0) rate = (int)((maxCount - serie.minShow) / (coordinateWid / sampleDist));
|
||||||
@@ -493,7 +489,6 @@ namespace XCharts
|
|||||||
bool isDown;
|
bool isDown;
|
||||||
var dir1 = (np - lp).normalized;
|
var dir1 = (np - lp).normalized;
|
||||||
dir1v = Vector3.Cross(dir1, Vector3.forward).normalized * (isYAxis ? -1 : 1);
|
dir1v = Vector3.Cross(dir1, Vector3.forward).normalized * (isYAxis ? -1 : 1);
|
||||||
float cut = 0;
|
|
||||||
if (np != nnp)
|
if (np != nnp)
|
||||||
{
|
{
|
||||||
var dir2 = (nnp - np).normalized;
|
var dir2 = (nnp - np).normalized;
|
||||||
@@ -502,7 +497,6 @@ namespace XCharts
|
|||||||
isDown = isYAxis ? normal.z >= 0 : normal.z <= 0;
|
isDown = isYAxis ? normal.z >= 0 : normal.z <= 0;
|
||||||
var angle = (180 - Vector3.Angle(dir1, dir2)) * Mathf.Deg2Rad / 2;
|
var angle = (180 - Vector3.Angle(dir1, dir2)) * Mathf.Deg2Rad / 2;
|
||||||
var diff = serie.lineStyle.width / Mathf.Sin(angle);
|
var diff = serie.lineStyle.width / Mathf.Sin(angle);
|
||||||
cut = serie.lineStyle.width / Mathf.Tan(angle);
|
|
||||||
var dirDp = Vector3.Cross(dir3, Vector3.forward).normalized * (isYAxis ? -1 : 1);
|
var dirDp = Vector3.Cross(dir3, Vector3.forward).normalized * (isYAxis ? -1 : 1);
|
||||||
dir2v = Vector3.Cross(dir2, Vector3.forward).normalized * (isYAxis ? -1 : 1);
|
dir2v = Vector3.Cross(dir2, Vector3.forward).normalized * (isYAxis ? -1 : 1);
|
||||||
dnPos = np + (isDown ? dirDp : -dirDp) * diff;
|
dnPos = np + (isDown ? dirDp : -dirDp) * diff;
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ namespace XCharts
|
|||||||
bool isDataHighlight = false;
|
bool isDataHighlight = false;
|
||||||
for (int i = 0; i < m_Series.Count; i++)
|
for (int i = 0; i < m_Series.Count; i++)
|
||||||
{
|
{
|
||||||
var serie = m_Series.series[i];
|
var serie = m_Series.list[i];
|
||||||
serie.index = i;
|
serie.index = i;
|
||||||
var data = serie.data;
|
var data = serie.data;
|
||||||
serie.animation.InitProgress(data.Count, 0, 360);
|
serie.animation.InitProgress(data.Count, 0, 360);
|
||||||
@@ -213,7 +213,7 @@ namespace XCharts
|
|||||||
|
|
||||||
private void DrawLabelBackground(VertexHelper vh)
|
private void DrawLabelBackground(VertexHelper vh)
|
||||||
{
|
{
|
||||||
foreach (var serie in m_Series.series)
|
foreach (var serie in m_Series.list)
|
||||||
{
|
{
|
||||||
if (serie.type == SerieType.Pie && serie.label.show)
|
if (serie.type == SerieType.Pie && serie.label.show)
|
||||||
{
|
{
|
||||||
@@ -279,7 +279,7 @@ namespace XCharts
|
|||||||
int serieNameCount = -1;
|
int serieNameCount = -1;
|
||||||
for (int i = 0; i < m_Series.Count; i++)
|
for (int i = 0; i < m_Series.Count; i++)
|
||||||
{
|
{
|
||||||
var serie = m_Series.series[i];
|
var serie = m_Series.list[i];
|
||||||
serie.index = i;
|
serie.index = i;
|
||||||
|
|
||||||
if (!serie.show)
|
if (!serie.show)
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ namespace XCharts
|
|||||||
int serieNameCount = -1;
|
int serieNameCount = -1;
|
||||||
for (int i = 0; i < m_Series.Count; i++)
|
for (int i = 0; i < m_Series.Count; i++)
|
||||||
{
|
{
|
||||||
var serie = m_Series.series[i];
|
var serie = m_Series.list[i];
|
||||||
var radar = m_Radars[serie.radarIndex];
|
var radar = m_Radars[serie.radarIndex];
|
||||||
int indicatorNum = radar.indicatorList.Count;
|
int indicatorNum = radar.indicatorList.Count;
|
||||||
var angle = 2 * Mathf.PI / indicatorNum;
|
var angle = 2 * Mathf.PI / indicatorNum;
|
||||||
@@ -296,7 +296,6 @@ namespace XCharts
|
|||||||
if (serie.symbol.type != SerieSymbolType.None )
|
if (serie.symbol.type != SerieSymbolType.None )
|
||||||
{
|
{
|
||||||
var symbolSize = (isHighlight ? serie.symbol.selectedSize : serie.symbol.size);
|
var symbolSize = (isHighlight ? serie.symbol.selectedSize : serie.symbol.size);
|
||||||
float symbolRadius = symbolSize - serie.lineStyle.width * 2;
|
|
||||||
var symbolColor = serie.symbol.color != Color.clear ? serie.symbol.color : lineColor;
|
var symbolColor = serie.symbol.color != Color.clear ? serie.symbol.color : lineColor;
|
||||||
symbolColor.a *= serie.symbol.opacity;
|
symbolColor.a *= serie.symbol.opacity;
|
||||||
foreach (var point in pointList)
|
foreach (var point in pointList)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace XCharts
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
bool hasEffectScatter = false;
|
bool hasEffectScatter = false;
|
||||||
foreach (var serie in m_Series.series)
|
foreach (var serie in m_Series.list)
|
||||||
{
|
{
|
||||||
if (serie.type == SerieType.EffectScatter)
|
if (serie.type == SerieType.EffectScatter)
|
||||||
{
|
{
|
||||||
@@ -66,7 +66,7 @@ namespace XCharts
|
|||||||
int serieNameCount = -1;
|
int serieNameCount = -1;
|
||||||
for (int i = 0; i < m_Series.Count; i++)
|
for (int i = 0; i < m_Series.Count; i++)
|
||||||
{
|
{
|
||||||
var serie = m_Series.series[i];
|
var serie = m_Series.list[i];
|
||||||
serie.index = i;
|
serie.index = i;
|
||||||
var yAxis = m_YAxises[serie.axisIndex];
|
var yAxis = m_YAxises[serie.axisIndex];
|
||||||
var xAxis = m_XAxises[serie.axisIndex];
|
var xAxis = m_XAxises[serie.axisIndex];
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ QQ交流群:XCharts交流群(202030963)
|
|||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
|
||||||
|
* (2019.10.01)重构代码,废弃`Series.series`接口,用`Series.list`代替
|
||||||
* (2019.10.01)增加`customDrawCallback`自定义绘制回调
|
* (2019.10.01)增加`customDrawCallback`自定义绘制回调
|
||||||
* (2019.10.01)增加`SmoothDash`平滑虚线的支持
|
* (2019.10.01)增加`SmoothDash`平滑虚线的支持
|
||||||
* (2019.09.30)增加`Serie`采样类型`sampleType`的相关配置
|
* (2019.09.30)增加`Serie`采样类型`sampleType`的相关配置
|
||||||
|
|||||||
Reference in New Issue
Block a user