#DOC [Readme] add browser including #2
Merged
vargburz
merged 2 commits from doc/add_browser_including
into main
2 years ago
1 changed files with 24 additions and 0 deletions
@ -1,2 +1,26 @@
|
||||
# Chartwerk Line Pod |
||||
## Including |
||||
|
||||
### Browser |
||||
|
||||
#### Script tag |
||||
```html |
||||
<script src="https://unpkg.com/@chartwerk/line-pod@latest/dist/index.dev.js" type="text/javascript"></script> |
||||
``` |
||||
|
||||
#### Example |
||||
```html |
||||
<div id="line-chart" class="chart-block" style="width: 100%; height: 400px;"></div> |
||||
|
||||
<script src="https://unpkg.com/@chartwerk/line-pod@latest/dist/index.dev.js" type="text/javascript"></script> |
||||
<script> |
||||
new LinePod(document.getElementById('yourDivId', yourData, yourOptions)).render(); |
||||
</script> |
||||
``` |
||||
|
||||
#### Other examples |
||||
[Static Chart](https://code.corpglory.net/chartwerk/line-pod/src/branch/main/examples/demo.html) |
||||
|
||||
[Live Chart](https://code.corpglory.net/chartwerk/line-pod/src/branch/main/examples/demo_live.html) |
||||
|
||||
[Vertical Chart](https://code.corpglory.net/chartwerk/line-pod/src/branch/main/examples/demo_vertical.html) |
Loading…
Reference in new issue