Skip to content

Commit

Permalink
skip-release - docs(svelte): update getting started example (#1679)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddxv authored Nov 30, 2023
1 parent 2cb8571 commit 0eabcc4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/svelte/src/stories/svelte.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ npm install --save @carbon/charts-svelte d3 d3-cloud d3-sankey
```

## Getting started
To start using the `StackedBarChart` component, try the example below:
To start using the `DonutChart` component, try the example below:

```tsx
<script lang="ts">
import { DonutChart, DonutChartOptions } from '@carbon/charts-svelte'
import '@carbon/styles/css/styles.css' // may affect global styles
import { DonutChart } from '@carbon/charts-svelte'
import '@carbon/charts-svelte/styles.css'
import { data, options } from '../../stores'
import options from './options.js'
import data from './data.js'
</script>

<DonutChart {data} {options}/>
<DonutChart {data} {options} />
```

## Data
Expand Down

0 comments on commit 0eabcc4

Please sign in to comment.