增加numericFormatter参数可配置数值格式化显示,去掉forceENotation参数

This commit is contained in:
monitor1394
2020-05-04 13:29:56 +08:00
parent 9bfc1fc9a6
commit f6c614e8c4
19 changed files with 211 additions and 149 deletions

View File

@@ -111,11 +111,11 @@ namespace XCharts
.Append(key).Append(!string.IsNullOrEmpty(key) ? "\n" : "")
.Append("<color=#").Append(ChartCached.ColorToStr(color)).Append(">● </color>")
.Append(xAxis.data[(int)xData]).Append(": ")
.Append(ChartCached.FloatToStr(value));
.Append(ChartCached.FloatToStr(value, string.Empty));
}
}
}
TooltipHelper.SetContentAndPosition(tooltip,sb.ToString().Trim(),chartRect);
TooltipHelper.SetContentAndPosition(tooltip, sb.ToString().Trim(), chartRect);
m_Tooltip.SetActive(true);
for (int i = 0; i < m_XAxises.Count; i++)