Skip to content

Commit

Permalink
fix: improve options
Browse files Browse the repository at this point in the history
  • Loading branch information
filipgutica committed Dec 12, 2024
1 parent 255b51a commit 0d011d1
Showing 1 changed file with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export default function useLinechartOptions(chartOptions: LineChartOptions) {
weight: 'bold',
},
},
border: {
display: false,
},
stacked: chartOptions.stacked.value,
}))
const yAxesOptions = computed(() => ({
title: {
Expand All @@ -60,6 +64,10 @@ export default function useLinechartOptions(chartOptions: LineChartOptions) {
},
id: 'main-y-axis',
beginAtZero: true,
border: {
display: false,
},
stacked: chartOptions.stacked.value,
}))

const tooltipOptions = {
Expand Down Expand Up @@ -126,20 +134,8 @@ export default function useLinechartOptions(chartOptions: LineChartOptions) {
easing: 'linear',
},
scales: {
x: {
border: {
display: false,
},
...xAxesOptions.value,
stacked: chartOptions.stacked.value,
},
y: {
border: {
display: false,
},
...yAxesOptions.value,
stacked: chartOptions.stacked.value,
},
x: xAxesOptions.value,
y: yAxesOptions.value,
},
responsive: true,
maintainAspectRatio: false,
Expand Down

0 comments on commit 0d011d1

Please sign in to comment.