diff --git a/packages/analytics/analytics-chart/package.json b/packages/analytics/analytics-chart/package.json index afd0e81863..86e1e4e9ea 100644 --- a/packages/analytics/analytics-chart/package.json +++ b/packages/analytics/analytics-chart/package.json @@ -30,6 +30,7 @@ "@kong-ui-public/sandbox-layout": "workspace:^", "@kong/design-tokens": "1.12.3", "@kong/kongponents": "9.0.0-alpha.73", + "@types/geojson": "^7946.0.13", "@types/uuid": "^9.0.7", "file-saver": "^2.0.5", "lodash.mapkeys": "^4.6.0", @@ -78,6 +79,7 @@ "approximate-number": "^2.1.1", "chart.js": "^4.4.1", "chartjs-adapter-date-fns": "^3.0.0", + "chartjs-chart-geo": "^4.2.7", "chartjs-plugin-annotation": "^3.0.1", "date-fns": "^2.30.0", "date-fns-tz": "^2.0.0", @@ -86,7 +88,7 @@ "vue-chartjs": "^5.3.0" }, "distSizeChecker": { - "warningLimit": "1.35MB", - "errorLimit": "1.5MB" + "warningLimit": "1.75MB", + "errorLimit": "2.0MB" } } diff --git a/packages/analytics/analytics-chart/sandbox/index.ts b/packages/analytics/analytics-chart/sandbox/index.ts index fed91d69d1..2359da7d2e 100644 --- a/packages/analytics/analytics-chart/sandbox/index.ts +++ b/packages/analytics/analytics-chart/sandbox/index.ts @@ -32,6 +32,11 @@ const router = createRouter({ name: 'simple', component: () => import('./pages/ChartDemoSimple.vue'), }, + { + path: '/geo-chart', + name: 'geo-chart', + component: () => import('./pages/GeoChartDemo.vue'), + }, ], }) @@ -53,6 +58,10 @@ const appLinks: SandboxNavigationItem[] = ([ name: 'Simple Charts', to: { name: 'simple' }, }, + { + name: 'Geo Chart', + to: { name: 'geo-chart' }, + }, ]) // Provide the app links to the SandboxLayout components diff --git a/packages/analytics/analytics-chart/sandbox/pages/GeoChartDemo.vue b/packages/analytics/analytics-chart/sandbox/pages/GeoChartDemo.vue new file mode 100644 index 0000000000..f3912d341c --- /dev/null +++ b/packages/analytics/analytics-chart/sandbox/pages/GeoChartDemo.vue @@ -0,0 +1,41 @@ +