mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-26 10:50:08 +00:00
优化自定义绘制回调接口
This commit is contained in:
@@ -25,9 +25,12 @@ namespace XCharts.Examples
|
|||||||
chart.onCustomDraw = delegate (VertexHelper vh)
|
chart.onCustomDraw = delegate (VertexHelper vh)
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
// or
|
// 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;
|
if (serie.index != 0) return;
|
||||||
var dataPoints = serie.dataPoints;
|
var dataPoints = serie.dataPoints;
|
||||||
@@ -41,7 +44,6 @@ namespace XCharts.Examples
|
|||||||
UGL.DrawCricle(vh, pos, 5, Color.blue);
|
UGL.DrawCricle(vh, pos, 5, Color.blue);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// or
|
// or
|
||||||
chart.onCustomDrawTop = delegate (VertexHelper vh)
|
chart.onCustomDrawTop = delegate (VertexHelper vh)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user