Skip to content

Commit

Permalink
fix(): Fixed the problem that the rich style does not take effect whe…
Browse files Browse the repository at this point in the history
…n tooltip is in renderMode=richText
  • Loading branch information
XHL-study committed Dec 26, 2024
1 parent 104df1b commit 31be33d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/component/tooltip/TooltipView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ class TooltipView extends ComponentView {
// Only for legacy: `Serise['formatTooltip']` returns a string.
const markupTextArrLegacy: string[] = [];
const markupStyleCreator = new TooltipMarkupStyleCreator();
// @ts-ignore
Object.assign(markupStyleCreator.richTextStyles, singleTooltipModel.get('textStyle.rich'));

each(dataByCoordSys, function (itemCoordSys) {
each(itemCoordSys.dataByAxis, function (axisItem) {
Expand Down

0 comments on commit 31be33d

Please sign in to comment.