增加Custom类型的Serie的tooltip自定义

This commit is contained in:
monitor1394
2021-04-29 19:57:07 +08:00
parent 0d98a1db16
commit 852f93dec5
4 changed files with 22 additions and 15 deletions

View File

@@ -4,9 +4,7 @@
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System.Text;
using UnityEngine;
using UnityEngine.UI;
namespace XCharts
{
@@ -149,7 +147,6 @@ namespace XCharts
minValue = -minValue;
maxValue = -maxValue;
}
if (forcePercent) return string.Format("{0}%", (int)value);
else return axis.axisLabel.GetFormatterContent(value, minValue, maxValue);
}