diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts index 8d40e240bb..8cf46f0d9d 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts @@ -47,46 +47,7 @@ export class Bar extends G2PlotChartView { yField: 'value', seriesField: 'category', isGroup: true, - data: [], - interactions: [ - { - type: 'legend-active', - cfg: { - start: [{ trigger: 'legend-item:mouseenter', action: ['element-active:reset'] }], - end: [{ trigger: 'legend-item:mouseleave', action: ['element-active:reset'] }] - } - }, - { - type: 'legend-filter', - cfg: { - start: [ - { - trigger: 'legend-item:click', - action: [ - 'list-unchecked:toggle', - 'data-filter:filter', - 'element-active:reset', - 'element-highlight:reset' - ] - } - ] - } - }, - { - type: 'tooltip', - cfg: { - start: [{ trigger: 'interval:mousemove', action: 'tooltip:show' }], - end: [{ trigger: 'interval:mouseleave', action: 'tooltip:hide' }] - } - }, - { - type: 'active-region', - cfg: { - start: [{ trigger: 'interval:mousemove', action: 'active-region:show' }], - end: [{ trigger: 'interval:mouseleave', action: 'active-region:hide' }] - } - } - ] + data: [] } axis: AxisType[] = [...BAR_AXIS_TYPE] diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bidirectional-bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bidirectional-bar.ts index 5480b2c25f..415965baee 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bidirectional-bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bidirectional-bar.ts @@ -131,7 +131,6 @@ export class BidirectionalHorizontalBar extends G2PlotChartView< }, position: 'bottom' }, - interactions: [{ type: 'active-region' }], yField: ['value', 'valueExt'], appendPadding: getPadding(chart), meta: { diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts index eca3e8b277..3c6c2516d2 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts @@ -68,46 +68,7 @@ export class HorizontalBar extends G2PlotChartView { xField: 'value', yField: 'field', seriesField: 'category', - isGroup: true, - interactions: [ - { - type: 'legend-active', - cfg: { - start: [{ trigger: 'legend-item:mouseenter', action: ['element-active:reset'] }], - end: [{ trigger: 'legend-item:mouseleave', action: ['element-active:reset'] }] - } - }, - { - type: 'legend-filter', - cfg: { - start: [ - { - trigger: 'legend-item:click', - action: [ - 'list-unchecked:toggle', - 'data-filter:filter', - 'element-active:reset', - 'element-highlight:reset' - ] - } - ] - } - }, - { - type: 'tooltip', - cfg: { - start: [{ trigger: 'interval:mousemove', action: 'tooltip:show' }], - end: [{ trigger: 'interval:mouseleave', action: 'tooltip:hide' }] - } - }, - { - type: 'active-region', - cfg: { - start: [{ trigger: 'interval:mousemove', action: 'active-region:show' }], - end: [{ trigger: 'interval:mouseleave', action: 'active-region:hide' }] - } - } - ] + isGroup: true } async drawChart(drawOptions: G2PlotDrawOptions): Promise { diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/range-bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/range-bar.ts index 0fee10c2ec..709b8b674d 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/range-bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/range-bar.ts @@ -68,46 +68,7 @@ export class RangeBar extends G2PlotChartView { xField: 'values', yField: 'field', colorField: 'category', - isGroup: true, - interactions: [ - { - type: 'legend-active', - cfg: { - start: [{ trigger: 'legend-item:mouseenter', action: ['element-active:reset'] }], - end: [{ trigger: 'legend-item:mouseleave', action: ['element-active:reset'] }] - } - }, - { - type: 'legend-filter', - cfg: { - start: [ - { - trigger: 'legend-item:click', - action: [ - 'list-unchecked:toggle', - 'data-filter:filter', - 'element-active:reset', - 'element-highlight:reset' - ] - } - ] - } - }, - { - type: 'tooltip', - cfg: { - start: [{ trigger: 'interval:mousemove', action: 'tooltip:show' }], - end: [{ trigger: 'interval:mouseleave', action: 'tooltip:hide' }] - } - }, - { - type: 'active-region', - cfg: { - start: [{ trigger: 'interval:mousemove', action: 'active-region:show' }], - end: [{ trigger: 'interval:mouseleave', action: 'active-region:hide' }] - } - } - ] + isGroup: true } async drawChart(drawOptions: G2PlotDrawOptions): Promise { diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/line/area.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/line/area.ts index 0077e3c46d..b7091824ef 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/line/area.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/line/area.ts @@ -83,13 +83,6 @@ export class Area extends G2PlotChartView { ] } }, - { - type: 'tooltip', - cfg: { - start: [{ trigger: 'point:mousemove', action: 'tooltip:show' }], - end: [{ trigger: 'point:mouseleave', action: 'tooltip:hide' }] - } - }, { type: 'active-region', cfg: { diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts index f2b23b31ce..1781068a20 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts @@ -100,13 +100,6 @@ export class Line extends G2PlotChartView { ] } }, - { - type: 'tooltip', - cfg: { - start: [{ trigger: 'point:mousemove', action: 'tooltip:show' }], - end: [{ trigger: 'point:mouseleave', action: 'tooltip:hide' }] - } - }, { type: 'active-region', cfg: { diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/scatter.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/scatter.ts index eb307fa3d9..fa96eb8230 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/scatter.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/scatter.ts @@ -126,13 +126,6 @@ export class Scatter extends G2PlotChartView { } ] } - }, - { - type: 'tooltip', - cfg: { - start: [{ trigger: 'point:mousemove', action: 'tooltip:show' }], - end: [{ trigger: 'point:mouseleave', action: 'tooltip:hide' }] - } } ] }