diff --git a/common/changes/@visactor/vchart/fix-poptip-plugin-option_2025-05-22-06-32.json b/common/changes/@visactor/vchart/fix-poptip-plugin-option_2025-05-22-06-32.json new file mode 100644 index 0000000000..7a5707e03f --- /dev/null +++ b/common/changes/@visactor/vchart/fix-poptip-plugin-option_2025-05-22-06-32.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "fix: option `{ poptip: true } should load `poptipForText`\n\n", + "type": "none", + "packageName": "@visactor/vchart" + } + ], + "packageName": "@visactor/vchart", + "email": "dingling112@gmail.com" +} \ No newline at end of file diff --git a/packages/vchart/src/core/vchart.ts b/packages/vchart/src/core/vchart.ts index 353dbc919d..c8a2f00c11 100644 --- a/packages/vchart/src/core/vchart.ts +++ b/packages/vchart/src/core/vchart.ts @@ -415,7 +415,7 @@ export class VChart implements IVChart { this._currentSize = this.getCurrentSize(); const pluginList: string[] = []; - if (!poptip !== false) { + if (poptip !== false) { pluginList.push('poptipForText'); }