mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 21:40:41 +00:00
优化自定义绘制回调接口
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user