mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 10:20:10 +00:00
增加AxisTick的width参数可单独设置坐标轴刻度的宽度
This commit is contained in:
@@ -1027,7 +1027,7 @@ namespace XCharts
|
||||
pX += startX - yAxis.axisTick.length;
|
||||
}
|
||||
ChartDrawer.DrawLine(vh, new Vector3(startX, pY), new Vector3(pX, pY),
|
||||
yAxis.axisLine.width, m_ThemeInfo.axisLineColor);
|
||||
AxisHelper.GetTickWidth(yAxis), m_ThemeInfo.axisLineColor);
|
||||
}
|
||||
totalWidth += scaleWidth;
|
||||
}
|
||||
@@ -1117,7 +1117,7 @@ namespace XCharts
|
||||
pY += startY - xAxis.axisTick.length;
|
||||
}
|
||||
ChartDrawer.DrawLine(vh, new Vector3(pX, startY), new Vector3(pX, pY),
|
||||
xAxis.axisLine.width, m_ThemeInfo.axisLineColor);
|
||||
AxisHelper.GetTickWidth(xAxis), m_ThemeInfo.axisLineColor);
|
||||
}
|
||||
totalWidth += scaleWidth;
|
||||
}
|
||||
@@ -1430,12 +1430,12 @@ namespace XCharts
|
||||
for (int j = 0; j < serie.data.Count; j++)
|
||||
{
|
||||
var serieData = serie.data[j];
|
||||
var serieLabel = SerieHelper.GetSerieLabel(serie,serieData,serieData.highlighted);
|
||||
var serieLabel = SerieHelper.GetSerieLabel(serie, serieData, serieData.highlighted);
|
||||
serieData.index = j;
|
||||
if ((serieLabel.show || serieData.iconStyle.show))
|
||||
{
|
||||
var pos = serie.dataPoints[j];
|
||||
|
||||
|
||||
var isIngore = ChartHelper.IsIngore(pos);
|
||||
if (isIngore)
|
||||
{
|
||||
@@ -1519,7 +1519,7 @@ namespace XCharts
|
||||
dimension = m_VisualMap.enable && m_VisualMap.dimension > 0 ? m_VisualMap.dimension - 1 :
|
||||
serieData.data.Count - 1;
|
||||
}
|
||||
|
||||
|
||||
SerieLabelHelper.ResetLabel(serieData, serieLabel, themeInfo, i);
|
||||
|
||||
value = serieData.data[dimension];
|
||||
|
||||
Reference in New Issue
Block a user