@@ -2410,8 +2410,8 @@ const donutConfig = ref({
24102410 tooltip: {
24112411 customFormat : ({ datapoint, seriesIndex, series , config}) => {
24122412 console .log ({datapoint, seriesIndex, series, config});
2413- return ` <div style="color:${ datapoint .color } ">
2414- ${ datapoint .name }
2413+ return ` <div style="background: ${ datapoint . color } 33;color :${ datapoint .color } ;padding:12px ">
2414+ ${ datapoint .name } : ${ datapoint . value }
24152415 </div>`
24162416 }
24172417 }
@@ -2424,12 +2424,12 @@ const xyConfig = ref({
24242424 labels: {
24252425 fontSize: 30
24262426 },
2427- // tooltip: {
2428- // customFormat: ({ seriesIndex, datapoint, series, bars, lines, plots, config }) => {
2429- // console.log({seriesIndex, datapoint, series, bars, lines, plots, config});
2430- // return 'TEST'
2431- // }
2432- // }
2427+ tooltip: {
2428+ customFormat : ({ seriesIndex, datapoint, series, bars, lines, plots, config }) => {
2429+ console .log ({seriesIndex, datapoint, series, bars, lines, plots, config});
2430+ return ' TEST'
2431+ }
2432+ }
24332433 },
24342434 bar: {
24352435 labels: {
@@ -2545,6 +2545,13 @@ const pyramidConfig = ref({
25452545 console .log ({ seriesIndex, datapoint, series, config });
25462546 return " TEST"
25472547 }
2548+ },
2549+ layout: {
2550+ dataLabels: {
2551+ sideTitles: {
2552+ offsetY: - 20
2553+ }
2554+ }
25482555 }
25492556 }
25502557})
@@ -3948,8 +3955,5 @@ function selectHistoDatapoint({ datapoint, index }) {
39483955 </style >
39493956
39503957<style >
3951- .vue-data-ui-custom-tooltip {
3952- background : red ;
3953- }
39543958
39553959 </style >
0 commit comments