增加Formatter配置Axis的AxisLabel的格式化输出

This commit is contained in:
monitor1394
2019-09-23 19:09:56 +08:00
parent d23aaa359e
commit 32b7dd7516
5 changed files with 63 additions and 17 deletions

View File

@@ -12,6 +12,7 @@ namespace XCharts
public static string FloatToStr(float value, int f = 0)
{
if (f > 2) f = 2;
Dictionary<float, string> valueDic;
if (f == 1) valueDic = s_ValueToF1Str;
else if (f == 2) valueDic = s_ValueToF2Str;