Skip to content

Commit

Permalink
add links to LiveCodes playgrounds in README
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Oct 2, 2024
1 parent 03673c8 commit 1981bd4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const options = {
race("/data.json", "#race", options);
```

[Open in LiveCodes](https://livecodes.io/?x=id/k9djehhdtzq)

### Option 2: Load from CDN

Expand All @@ -102,11 +103,13 @@ race("/data.json", "#race", options);
</script>
```

[Open in LiveCodes](https://livecodes.io/?x=id/ztr5k5yayjh)

#### UMD

```html
<div id="race" style="height: 80vh"></div>
<script src="https://https://cdn.jsdelivr.net/npm/racing-bars/racing-bars.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/racing-bars/racing-bars.umd.js"></script>
<script>
const options = {
title: 'My Racing Bars',
Expand All @@ -118,6 +121,8 @@ race("/data.json", "#race", options);
</script>
```

[Open in LiveCodes](https://livecodes.io/?x=id/zen24gm8irn)

<!-- prettier-ignore-end -->

Please refer to [documentation website](https://racing-bars.hatemhosny.dev/) for [usage](https://racing-bars.hatemhosny.dev/getting-started/usage), [data preparation](https://racing-bars.hatemhosny.dev/documentation/data), [chart options](https://racing-bars.hatemhosny.dev/documentation/options), [API](https://racing-bars.hatemhosny.dev/documentation/api) and more.
Expand Down

0 comments on commit 1981bd4

Please sign in to comment.