mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 00:20:18 +00:00
XY轴增加参数boundaryGap设置数据起始与原点的偏移
This commit is contained in:
@@ -64,7 +64,7 @@ namespace xcharts
|
||||
Color color = legend.GetColor(j);
|
||||
Vector3 lp = Vector3.zero;
|
||||
Vector3 np = Vector3.zero;
|
||||
float startX = zeroX + scaleWid / 2;
|
||||
float startX = zeroX + (xAxis.boundaryGap ? scaleWid / 2 : 0);
|
||||
for (int i = 0; i < series.dataList.Count; i++)
|
||||
{
|
||||
SeriesData data = series.dataList[i];
|
||||
|
||||
Reference in New Issue
Block a user