From 1e25bccca4de14918526caa52c7478ad6cb498ed Mon Sep 17 00:00:00 2001 From: Guillermo Croppi Date: Thu, 26 Dec 2024 18:14:32 -0300 Subject: [PATCH] Add map charts for Cali and Bogota with updated configurations and data handling --- assets/svg/bogota.svg | 176 +++++++++++++++++++++++++++++++++++ assets/svg/cali.svg | 167 +++++++++++++++++++++++++++++++++ nuxt.config.ts | 4 +- pages/chart.vue | 209 +++++++++++++++++++++++++++++++++++------- 4 files changed, 521 insertions(+), 35 deletions(-) create mode 100644 assets/svg/bogota.svg create mode 100644 assets/svg/cali.svg diff --git a/assets/svg/bogota.svg b/assets/svg/bogota.svg new file mode 100644 index 0000000..0f68ec0 --- /dev/null +++ b/assets/svg/bogota.svg @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/svg/cali.svg b/assets/svg/cali.svg new file mode 100644 index 0000000..476256c --- /dev/null +++ b/assets/svg/cali.svg @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nuxt.config.ts b/nuxt.config.ts index b346299..05d7072 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -14,8 +14,8 @@ export default defineNuxtConfig({ }, echarts: { renderer: ['svg', 'canvas'], - charts: ['PieChart', 'RadarChart'], - components: ['TitleComponent','TooltipComponent','LegendComponent'] + charts: ['PieChart', 'RadarChart','MapChart'], + components: ['TitleComponent','TooltipComponent','LegendComponent','VisualMapComponent','GeoComponent'] }, runtimeConfig: { public: { diff --git a/pages/chart.vue b/pages/chart.vue index 82ba9d6..e7106a5 100644 --- a/pages/chart.vue +++ b/pages/chart.vue @@ -2,7 +2,9 @@
- + + + - \ No newline at end of file