mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 22:10:11 +00:00
优化serie的name为空时的tooltip显示问题
This commit is contained in:
@@ -512,7 +512,7 @@ namespace XCharts
|
||||
{
|
||||
string key = radar.indicatorList[i].name;
|
||||
float value = serieData.GetData(i);
|
||||
sb.Append("\n");
|
||||
if ((i == 0 && !string.IsNullOrEmpty(serieData.name)) || i > 0) sb.Append("\n");
|
||||
sb.AppendFormat("{0}: {1}", key, ChartCached.FloatToStr(value, 0, m_Tooltip.forceENotation));
|
||||
}
|
||||
m_Tooltip.UpdateContentText(sb.ToString());
|
||||
|
||||
Reference in New Issue
Block a user