Skip to content

Commit

Permalink
fix(dashboard): show tooltips in line chart
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Jan 31, 2024
1 parent 2dc50ca commit 6591e3e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/pages/admin/dashboard/cards/MonthlyEarnings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ import { VaCard } from 'vuestic-ui'
import VaChart from '../../../../components/va-charts/VaChart.vue'
import { useChartData } from '../../../../data/charts/composables/useChartData'
import { lineChartData } from '../../../../data/charts/lineChartData'
import { ChartOptions } from 'chart.js'
const chartData = useChartData(lineChartData)
const options = {
const options: ChartOptions<'line'> = {
scales: {
x: {
display: false,
Expand All @@ -48,10 +49,17 @@ const options = {
},
},
},
interaction: {
intersect: false,
mode: 'index',
},
plugins: {
legend: {
display: false,
},
tooltip: {
enabled: true,
},
},
}
</script>

0 comments on commit 6591e3e

Please sign in to comment.