Sessions: fix tooltip modes (#17997)
This commit is contained in:
parent
2739488a91
commit
413339b1b2
8 changed files with 8 additions and 14 deletions
|
|
@ -92,8 +92,7 @@ export default {
|
|||
...commonOptions.plugins,
|
||||
tooltip: {
|
||||
...commonOptions.plugins.tooltip,
|
||||
intersect: false,
|
||||
mode: "index",
|
||||
axis: "r",
|
||||
position: "topBottomCenter",
|
||||
callbacks: {
|
||||
title: () => null,
|
||||
|
|
|
|||
|
|
@ -86,9 +86,8 @@ export default {
|
|||
...commonOptions.plugins,
|
||||
tooltip: {
|
||||
...commonOptions.plugins.tooltip,
|
||||
mode: "index",
|
||||
axis: "r",
|
||||
position: "center",
|
||||
intersect: false,
|
||||
callbacks: {
|
||||
label: (tooltipItem) => this.formatValue(tooltipItem.raw || 0),
|
||||
labelColor: tooltipLabelColor(false),
|
||||
|
|
|
|||
|
|
@ -223,8 +223,7 @@ export default {
|
|||
...commonOptions.plugins,
|
||||
tooltip: {
|
||||
...commonOptions.plugins.tooltip,
|
||||
mode: "index",
|
||||
intersect: false,
|
||||
axis: "x",
|
||||
positioner: (context) => {
|
||||
const { chart, tooltipPosition } = context;
|
||||
const { tooltip } = chart;
|
||||
|
|
|
|||
|
|
@ -102,9 +102,8 @@ export default {
|
|||
...commonOptions.plugins,
|
||||
tooltip: {
|
||||
...commonOptions.plugins.tooltip,
|
||||
mode: "index",
|
||||
axis: "r",
|
||||
position: "center",
|
||||
intersect: false,
|
||||
callbacks: {
|
||||
label: (tooltipItem) => this.formatValue(tooltipItem.raw || 0),
|
||||
labelColor: tooltipLabelColor(false),
|
||||
|
|
|
|||
|
|
@ -159,8 +159,7 @@ export default {
|
|||
...commonOptions.plugins,
|
||||
tooltip: {
|
||||
...commonOptions.plugins.tooltip,
|
||||
mode: "index",
|
||||
intersect: false,
|
||||
axis: "x",
|
||||
positioner: (context) => {
|
||||
const { chart, tooltipPosition } = context;
|
||||
const { tooltip } = chart;
|
||||
|
|
|
|||
|
|
@ -92,8 +92,7 @@ export default {
|
|||
...commonOptions.plugins,
|
||||
tooltip: {
|
||||
...commonOptions.plugins.tooltip,
|
||||
intersect: false,
|
||||
mode: "index",
|
||||
axis: "r",
|
||||
position: "topBottomCenter",
|
||||
callbacks: {
|
||||
title: () => null,
|
||||
|
|
|
|||
|
|
@ -147,8 +147,6 @@ export default {
|
|||
...commonOptions.plugins,
|
||||
tooltip: {
|
||||
...commonOptions.plugins.tooltip,
|
||||
intersect: false,
|
||||
mode: "index",
|
||||
axis: "xy",
|
||||
position: "topBottomCenter",
|
||||
callbacks: {
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@ export const commonOptions = {
|
|||
boxPadding: 5,
|
||||
usePointStyle: false,
|
||||
borderWidth: 0.00001,
|
||||
mode: "index",
|
||||
intersect: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue