Skip to content

Commit

Permalink
fix total in tooltip charts
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliorighi committed Sep 13, 2024
1 parent 5b3ca7a commit ef889b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion biogenome-client/src/components/charts/BarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ await fetchData()
const chartOptions = computed(() => {
const total = itemStore.stores[model].total
const total = itemStore.stores[model].total || Object.values(data.value).reduce((acc, val) => acc + val, 0)
return getChartOptions(type, total)
})
const chartData = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion biogenome-client/src/components/charts/PieChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ await fetchData()
const chartOptions = computed(() => {
const total = itemStore.stores[model].total
const total = itemStore.stores[model].total || Object.values(data.value).reduce((acc, val) => acc + val, 0)
return getChartOptions(type, total)
})
const chartData = computed(() => {
Expand Down

0 comments on commit ef889b4

Please sign in to comment.