3.0 - optimize code

This commit is contained in:
monitor1394
2022-03-04 22:17:32 +08:00
parent 1ee0df09eb
commit 5745fea9a1
59 changed files with 482 additions and 435 deletions

View File

@@ -17,15 +17,15 @@ namespace XCharts.Example
chart = gameObject.GetComponent<LineChart>();
if (chart == null) return;
chart.onCustomDraw = delegate (VertexHelper vh)
chart.onDraw = delegate (VertexHelper vh)
{
};
// or
chart.onCustomDrawBeforeSerie = delegate (VertexHelper vh, Serie serie)
chart.onDrawBeforeSerie = delegate (VertexHelper vh, Serie serie)
{
};
// or
chart.onCustomDrawAfterSerie = delegate (VertexHelper vh, Serie serie)
chart.onDrawAfterSerie = delegate (VertexHelper vh, Serie serie)
{
if (serie.index != 0) return;
var dataPoints = serie.context.dataPoints;
@@ -41,7 +41,7 @@ namespace XCharts.Example
}
};
// or
chart.onCustomDrawTop = delegate (VertexHelper vh)
chart.onDrawTop = delegate (VertexHelper vh)
{
};
}