mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-19 23:10:06 +00:00
增加Tooltip的titleFormatter支持配置占位符{i}表示忽略不显示标题
This commit is contained in:
@@ -236,7 +236,8 @@ namespace XCharts
|
||||
needCategory = needCategory || (serie.type == SerieType.Line || serie.type == SerieType.Bar);
|
||||
if (formatTitle)
|
||||
{
|
||||
FormatterHelper.ReplaceContent(ref title, dataIndex, tooltip.numericFormatter, null, series, themeInfo, category, dataZoom);
|
||||
if (title.Equals("{i}")) title = string.Empty;
|
||||
else FormatterHelper.ReplaceContent(ref title, dataIndex, tooltip.numericFormatter, null, series, themeInfo, category, dataZoom);
|
||||
}
|
||||
if (serie.show)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user