From 91c7d0fbd04257a760e589f3a1369bff06def9c6 Mon Sep 17 00:00:00 2001 From: zernonia Date: Mon, 13 Nov 2023 16:55:21 +0800 Subject: [PATCH] feat: add more props --- .../default/example/DonutChartDemo.vue | 1 - .../default/ui/chart-area/AreaChart.vue | 2 - .../default/ui/chart-bar/BarChart.vue | 2 - .../default/ui/chart-line/LineChart.vue | 10 +- .../default/ui/chart/ChartSingleTooltip.vue | 9 +- .../new-york/example/DonutChartDemo.vue | 4 +- .../new-york/example/LineChartDemo.vue | 271 +++++++++++++++++- .../new-york/ui/chart-area/AreaChart.vue | 2 - .../new-york/ui/chart-bar/BarChart.vue | 2 - .../new-york/ui/chart-donut/DonutChart.vue | 19 +- .../new-york/ui/chart-line/LineChart.vue | 8 +- .../new-york/ui/chart/ChartSingleTooltip.vue | 9 +- .../lib/registry/new-york/ui/chart/index.ts | 6 +- 13 files changed, 309 insertions(+), 36 deletions(-) diff --git a/apps/www/src/lib/registry/default/example/DonutChartDemo.vue b/apps/www/src/lib/registry/default/example/DonutChartDemo.vue index a1d4ff3e..ad8b9844 100644 --- a/apps/www/src/lib/registry/default/example/DonutChartDemo.vue +++ b/apps/www/src/lib/registry/default/example/DonutChartDemo.vue @@ -8,7 +8,6 @@ const data = [ { name: 'Apr', total: Math.floor(Math.random() * 2000) + 500, predicted: Math.floor(Math.random() * 2000) + 500 }, { name: 'May', total: Math.floor(Math.random() * 2000) + 500, predicted: Math.floor(Math.random() * 2000) + 500 }, { name: 'Jun', total: Math.floor(Math.random() * 2000) + 500, predicted: Math.floor(Math.random() * 2000) + 500 }, - { name: 'Jul', total: Math.floor(Math.random() * 2000) + 500, predicted: Math.floor(Math.random() * 2000) + 500 }, ] diff --git a/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue b/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue index 95553380..e330bacc 100644 --- a/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue +++ b/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue @@ -96,7 +96,6 @@ function handleLegendItemClick(d: BulletLegendItemInterface, i: number) { props.type === 'grouped' ? GroupedBar.select props.type === 'grouped' ? GroupedBar.select - +