diff --git a/web/src/components/Graph/util/getTooltipsContent.tsx b/web/src/components/Graph/util/getTooltipsContent.tsx index ad67fa4e..bb3f4925 100644 --- a/web/src/components/Graph/util/getTooltipsContent.tsx +++ b/web/src/components/Graph/util/getTooltipsContent.tsx @@ -45,6 +45,8 @@ function singlePoint(pointData = {}, activeTooltipData) { const value = numeral(pointData.value).format('0,0[.]000'); let name = tags; + name = _.chain(name).replace('<', '<').replace('>', '>').value(); + // 对比情况下 name 特殊处理 if (isComparison) { const mDate = serieOptions.comparison && typeof serieOptions.comparison === 'number' ? moment(timestamp).subtract(serieOptions.comparison, 'seconds') : moment(timestamp);