Skip to content

Commit

Permalink
adding displayColors: false logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusviniciusLsantos committed Oct 24, 2024
1 parent 4b56e57 commit 3bd7665
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/insights/charts/LineChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export default {
const configData = {
fill: true,
borderColor: '#00A49F',
pointRadius: 0,
hoverRadius: 3,
pointStyle: 'circle',
backgroundColor: function (context) {
const chart = context.chart;
const { ctx, chartArea } = chart;
Expand Down Expand Up @@ -141,19 +144,14 @@ export default {
tooltip: {
enabled: true,
backgroundColor: '#272B33',
usePointStyle: true,
padding: {
right: 10,
top: 8,
bottom: 8,
},
displayColors: false,
font: {
size: '16',
weight: '700',
},
callbacks: {
title: function (tooltipItems) {
return `${' '.repeat(6)}${i18n.global.t('charts.hours')}: ${tooltipItems[0].label}`;
return `${i18n.global.t('charts.hours')}: ${tooltipItems[0].label}`;
},
label: function (tooltipItem) {
const originalValue = tooltipItem.raw;
Expand Down

0 comments on commit 3bd7665

Please sign in to comment.