增加Tooltip的单个数据项和标题的字符串模版格式器

This commit is contained in:
monitor1394
2019-12-21 20:12:27 +08:00
parent 22cdfbd59f
commit 9cd6ea856d
8 changed files with 112 additions and 20 deletions

View File

@@ -579,7 +579,7 @@ namespace XCharts
int index = m_Tooltip.runtimeDataIndex[serie.index];
if (index < 0) continue;
showTooltip = true;
if (string.IsNullOrEmpty(tooltip.formatter))
if (tooltip.IsNoFormatter())
{
string key = serie.data[index].name;
if (string.IsNullOrEmpty(key)) key = m_Legend.GetData(index);