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