mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-29 20:58:47 +00:00
修复Tooltip在设置itemFormatter为-后整个不显示的问题
This commit is contained in:
@@ -70,6 +70,7 @@ slug: /changelog
|
||||
|
||||
## master
|
||||
|
||||
* (2024.01.31) 修复`Tooltip`在设置`itemFormatter`为`-`后整个不显示的问题
|
||||
* (2024.01.27) 修复`TextLimit`在开启`TextMeshPro`后无效的问题 (#301)
|
||||
* (2024.01.24) 增加`Bar`支持X轴和Y轴都为`Category`类目轴
|
||||
* (2024.01.23) 增加`{y}`通配符用于获取Y轴的类目名
|
||||
|
||||
@@ -530,7 +530,7 @@ namespace XCharts.Runtime
|
||||
ref tooltip.context.data.title);
|
||||
}
|
||||
TooltipHelper.ResetTooltipParamsByItemFormatter(tooltip, chart);
|
||||
if (tooltip.context.data.param.Count > 0)
|
||||
if (tooltip.context.data.param.Count > 0 || !string.IsNullOrEmpty(tooltip.context.data.title))
|
||||
{
|
||||
tooltip.SetActive(true);
|
||||
if (tooltip.view != null)
|
||||
|
||||
Reference in New Issue
Block a user