We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1017f1 commit 3819d71Copy full SHA for 3819d71
1 file changed
packages/plots/src/core/utils/transform.ts
@@ -68,9 +68,10 @@ export const transformOptions = (params: Adaptor) => {
68
} else {
69
// annotations
70
if (isArray(config[key])) {
71
+ const isText = config[key].some((item) => item.type === 'text');
72
config[key].forEach((annotation) => {
73
children.push(transformConfig({
- data: [],
74
+ ...(isText ? { data: [] } : {}),
75
tooltip: false,
76
...annotation
77
}));
0 commit comments