优化自定义绘制回调接口

This commit is contained in:
monitor1394
2021-03-29 20:28:53 +08:00
parent 5b5483915b
commit 9fa3f952a5

View File

@@ -25,9 +25,12 @@ namespace XCharts.Examples
chart.onCustomDraw = delegate (VertexHelper vh)
{
};
// or
chart.onCustomDrawSerie = delegate (VertexHelper vh, Serie serie)
chart.onCustomDrawBeforeSerie = delegate (VertexHelper vh, Serie serie)
{
};
// or
chart.onCustomDrawAfterSerie = delegate (VertexHelper vh, Serie serie)
{
if (serie.index != 0) return;
var dataPoints = serie.dataPoints;
@@ -41,7 +44,6 @@ namespace XCharts.Examples
UGL.DrawCricle(vh, pos, 5, Color.blue);
}
};
// or
chart.onCustomDrawTop = delegate (VertexHelper vh)
{