Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit aa7e08c

Browse files
doc: the charts component will be per default shipped in the starter kit
1 parent f5ad968 commit aa7e08c

File tree

1 file changed

+3
-34
lines changed

1 file changed

+3
-34
lines changed

doc/slides/slides.md

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -337,44 +337,13 @@ The "Chart" slide's Web Component could be integrated using the tag `<deckgo-sli
337337

338338
The slot `title` is optional.
339339

340-
##### Chart components
340+
#### Chart components
341341

342342
The slide "Chart" relies on the charts components `<deckgo-pie-chart/>` and `<deckgo-line-chart/>` which are described in the components [documentation](https://github.com/fluster/deckdeckgo/blob/master/doc/components/components.md).
343343

344-
##### Installation
344+
#### Installation
345345

346-
**Important note**: The [DeckDeckGo] charts components are provided in separate extra library. If you wish to add charts to your presentation, you will need to install and integrate this extra component from a CDN or [npm](https://www.npmjs.com/package/deckdeckgo) as described below or in its [installation guide](https://github.com/fluster/deckdeckgo-charts#getting-started).
347-
348-
###### 1. Installation guide
349-
350-
From a CDN:
351-
352-
```
353-
<script src="https://unpkg.com/deckdeckgo-charts@latest/dist/deckdeckgo-charts.js"></script>
354-
```
355-
356-
From NPM:
357-
358-
```
359-
npm install deckdeckgo-charts
360-
```
361-
362-
###### 2. Integration
363-
364-
Once installed, if you use the [DeckDeckGo] starter kit, you would need to integrate, respectively load, the chart components as the following in your `src/index.js`:
365-
366-
```
367-
import { defineCustomElements as deckDeckGoChartsElements } from 'deckdeckgo-charts/dist/loader';
368-
369-
await deckDeckGoChartsElements(window);
370-
```
371-
372-
###### Side notes
373-
374-
The reasons behind are the following:
375-
376-
1. If you don't use charts, you will not have to install unnecessary dependencies
377-
2. Cherry on the cake, the [DeckDeckGo] charts Web Component could be use in [DeckDeckGo] as in any other web projects
346+
The [DeckDeckGo] charts components are provided in separate extra library. If you don't use the [DeckDeckGo] starter kit and wish to add charts to your project, you will need to install and integrate it from a CDN or [npm](https://www.npmjs.com/package/deckdeckgo) as described in its [installation guide](https://github.com/fluster/deckdeckgo-charts#getting-started).
378347

379348
#### Attributes
380349

0 commit comments

Comments
 (0)