Fixed Chart Axes
This commit is contained in:
@@ -250,7 +250,7 @@ const legendItems = computed(() => {
|
||||
|
||||
<div v-if="mode === 'all'" class="ring-labels">
|
||||
<span v-for="(r, i) in normalizedRings" :key="r.name">
|
||||
⚫ {{ i === 0 ? 'Outer' : i === normalizedRings.length - 1 ? 'Inner' : `Ring ${i + 1}` }}
|
||||
{{ i === 0 ? 'Outer' : i === normalizedRings.length - 1 ? 'Inner' : `Ring ${i + 1}` }}
|
||||
Ring = {{ r.name }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -7,10 +7,9 @@ const props = defineProps<{
|
||||
</script>
|
||||
<template>
|
||||
<DonutChart
|
||||
title="Flight Scopes"
|
||||
title="Flight Scope"
|
||||
:height="280"
|
||||
center-mode="count"
|
||||
total-label="Flight Scopes"
|
||||
total-label="Flights"
|
||||
:labels="flightStats.flightTypes.value.labels"
|
||||
:series="flightStats.flightTypes.value.series"
|
||||
/>
|
||||
|
||||
@@ -175,7 +175,7 @@ export function getCountries(flights: Flight[], upcomingFlights: Flight[]) {
|
||||
const result = {
|
||||
countries: sorted,
|
||||
series: [
|
||||
{ name: 'Departed', data: sorted.map(s => s.past) },
|
||||
{ name: 'Flown', data: sorted.map(s => s.past) },
|
||||
{ name: 'Upcoming', data: sorted.map(s => s.upcoming) },
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user