From 5be5814f7dc8d48b7d014b425d8c14fe61e78d1f Mon Sep 17 00:00:00 2001 From: junjie Date: Fri, 15 Oct 2021 16:49:15 +0800 Subject: [PATCH] feat:antv --- .../src/views/chart/chart/pie/pie_antv.js | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/frontend/src/views/chart/chart/pie/pie_antv.js b/frontend/src/views/chart/chart/pie/pie_antv.js index a97b6aa2b5..d66180b364 100644 --- a/frontend/src/views/chart/chart/pie/pie_antv.js +++ b/frontend/src/views/chart/chart/pie/pie_antv.js @@ -31,6 +31,17 @@ export function basePieOptionAntV(plot, container, chart, action) { pieStyle: { lineWidth: 0 }, + statistic: { + title: false, + content: { + style: { + whiteSpace: 'pre-wrap', + overflow: 'hidden', + textOverflow: 'ellipsis' + }, + content: '' + } + }, interactions: [ { type: 'element-active', cfg: { @@ -107,6 +118,17 @@ export function basePieRoseOptionAntV(plot, container, chart, action) { label: label, tooltip: tooltip, legend: legend, + statistic: { + title: false, + content: { + style: { + whiteSpace: 'pre-wrap', + overflow: 'hidden', + textOverflow: 'ellipsis' + }, + content: '' + } + }, interactions: [ { type: 'element-active', cfg: {