Skip to content

Commit

Permalink
feat(svelte): add Gauge chart wrapper (carbon-design-system#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Jul 7, 2020
1 parent 178bfe9 commit 9a490a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions packages/svelte/src/GaugeChart.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script>
import { GaugeChart } from "@carbon/charts";
import BaseChart from "./BaseChart.svelte";
</script>

<BaseChart
{...$$restProps}
Chart={GaugeChart}
on:load
on:update
on:destroy />
4 changes: 3 additions & 1 deletion packages/svelte/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import LineChart from "./LineChart.svelte";
import PieChart from "./PieChart.svelte";
import ScatterChart from "./ScatterChart.svelte";
import RadarChart from "./RadarChart.svelte";
import GaugeChart from "./GaugeChart.svelte";

export {
AreaChart,
Expand All @@ -21,5 +22,6 @@ export {
LineChart,
PieChart,
ScatterChart,
RadarChart
RadarChart,
GaugeChart,
};

0 comments on commit 9a490a9

Please sign in to comment.