mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 09:50:15 +00:00
发布v0.8.0版本
This commit is contained in:
10761
Demo/demo_xchart.unity
10761
Demo/demo_xchart.unity
File diff suppressed because it is too large
Load Diff
@@ -387,7 +387,7 @@ namespace XCharts
|
|||||||
yAxis.axisName.color;
|
yAxis.axisName.color;
|
||||||
var fontSize = yAxis.axisName.fontSize;
|
var fontSize = yAxis.axisName.fontSize;
|
||||||
var gap = yAxis.axisName.gap;
|
var gap = yAxis.axisName.gap;
|
||||||
Text axisName;
|
Text axisName = null;
|
||||||
switch (yAxis.axisName.location)
|
switch (yAxis.axisName.location)
|
||||||
{
|
{
|
||||||
case AxisName.Location.Start:
|
case AxisName.Location.Start:
|
||||||
@@ -418,6 +418,7 @@ namespace XCharts
|
|||||||
new Vector2(coordinateX, coordinateY + coordinateHig + gap);
|
new Vector2(coordinateX, coordinateY + coordinateHig + gap);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
axisName.text = yAxis.axisName.name;
|
||||||
}
|
}
|
||||||
//init tooltip label
|
//init tooltip label
|
||||||
if (m_Tooltip.gameObject)
|
if (m_Tooltip.gameObject)
|
||||||
@@ -475,7 +476,7 @@ namespace XCharts
|
|||||||
xAxis.axisName.color;
|
xAxis.axisName.color;
|
||||||
var fontSize = xAxis.axisName.fontSize;
|
var fontSize = xAxis.axisName.fontSize;
|
||||||
var gap = xAxis.axisName.gap;
|
var gap = xAxis.axisName.gap;
|
||||||
Text axisName;
|
Text axisName = null;
|
||||||
switch (xAxis.axisName.location)
|
switch (xAxis.axisName.location)
|
||||||
{
|
{
|
||||||
case AxisName.Location.Start:
|
case AxisName.Location.Start:
|
||||||
@@ -506,6 +507,7 @@ namespace XCharts
|
|||||||
new Vector2(coordinateX + coordinateWid + gap, coordinateY);
|
new Vector2(coordinateX + coordinateWid + gap, coordinateY);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
axisName.text = xAxis.axisName.name;
|
||||||
}
|
}
|
||||||
if (m_Tooltip.gameObject)
|
if (m_Tooltip.gameObject)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user