diff --git a/src/plots/area/index.ts b/src/plots/area/index.ts index df935ae750..9864576b58 100644 --- a/src/plots/area/index.ts +++ b/src/plots/area/index.ts @@ -16,6 +16,7 @@ export class Area extends Plot { protected getDefaultOptions() { return deepAssign({}, super.getDefaultOptions(), { tooltip: { + shared: true, showMarkers: true, showCrosshairs: true, crosshairs: { diff --git a/src/plots/histogram/index.ts b/src/plots/histogram/index.ts index 2924af7aee..4ffb08ec99 100644 --- a/src/plots/histogram/index.ts +++ b/src/plots/histogram/index.ts @@ -16,6 +16,11 @@ export class Histogram extends Plot { columnStyle: { stroke: '#FFFFFF', }, + tooltip: { + shared: true, + showMarkers: false, + }, + interactions: [{ type: 'active-region' }], }); } diff --git a/src/plots/line/index.ts b/src/plots/line/index.ts index a3c045766e..43ee5389e8 100644 --- a/src/plots/line/index.ts +++ b/src/plots/line/index.ts @@ -18,6 +18,7 @@ export class Line extends Plot { protected getDefaultOptions() { return deepAssign({}, super.getDefaultOptions(), { tooltip: { + shared: true, showMarkers: true, showCrosshairs: true, crosshairs: { diff --git a/src/plots/rose/index.ts b/src/plots/rose/index.ts index 8767a67d8f..e72f08ad31 100644 --- a/src/plots/rose/index.ts +++ b/src/plots/rose/index.ts @@ -30,6 +30,11 @@ export class Rose extends Plot { type: 'limit-in-shape', }, }, + tooltip: { + shared: true, + showMarkers: false, + }, + interactions: [{ type: 'active-region' }], }); }