XCharts 2.0

This commit is contained in:
monitor1394
2021-01-12 13:11:15 +08:00
parent 8078fdf097
commit 1f49877b5e
3 changed files with 37 additions and 29 deletions

View File

@@ -30,8 +30,8 @@ namespace XCharts.Examples
var pos = dataPoints[3];
var zeroPos = new Vector3(chart.grid.runtimeX, chart.grid.runtimeY);
var startPos = new Vector3(pos.x, zeroPos.y);
var endPos = new Vector3(pos.x, zeroPos.y + chart.grid.runtimeWidth);
UGL.DrawLine(vh, startPos, endPos, 1, Color.blue);
var endPos = new Vector3(pos.x, zeroPos.y + chart.grid.runtimeHeight);
UGL.DrawLine(vh, startPos, endPos, chart.theme.serie.lineWidth, Color.blue);
UGL.DrawCricle(vh, pos, 5, Color.blue);
}
};