增加科学计数法显示数值的支持

This commit is contained in:
monitor1394
2019-10-26 05:02:32 +08:00
parent 8c4ef814c8
commit bdf46ea785
9 changed files with 78 additions and 23 deletions

View File

@@ -556,7 +556,7 @@ namespace XCharts
sb.Append(serie.name).Append("\n");
}
sb.Append("<color=#").Append(m_ThemeInfo.GetColorStr(index)).Append(">● </color>")
.Append(key).Append(": ").Append(ChartCached.FloatToStr(value));
.Append(key).Append(": ").Append(ChartCached.FloatToStr(value, 0, m_Tooltip.forceENotation));
m_Tooltip.UpdateContentText(sb.ToString());
}
else