Skip to content

Commit a1a7bc1

Browse files
Update web-component example links (#688)
* Add more examples and update links * Update api/web_components/index.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent d81f3ba commit a1a7bc1

5 files changed

Lines changed: 29 additions & 13 deletions

File tree

api/web_components/examples/all-charts.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: code-preview
3-
title: All Charts
4-
parent: All Charts - Web Components Example
3+
title: All Charts - Web Components Example
54
published: true
65
nav_exclude: true
76
iframe_content_url: /assets/examples/web-components/all-charts.html
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: code-preview
3+
title: Dynamic Map - Web Components Example
4+
published: true
5+
nav_exclude: true
6+
iframe_content_url: /assets/examples/web-components/dynamic-map.html
7+
---
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: code-preview
3+
title: Line Chart - Web Components Example
4+
published: true
5+
nav_exclude: true
6+
iframe_content_url: /assets/examples/web-components/line-chart.html
7+
---
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: code-preview
3+
title: Map Styles - Web Components Example
4+
published: true
5+
nav_exclude: true
6+
iframe_content_url: /assets/examples/web-components/map-styles.html
7+
---

api/web_components/index.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ For example, to embed a line chart:
5151
</html>
5252
```
5353

54-
See a live version of this example you can play around with in
55-
[Playground](https://lit.dev/playground/#gist=c0c88276739f4f6061807cc943937a14){: target="_blank"}
56-
([source](/assets/examples/web-components/line-chart.html)).
54+
See a live version of this example you can play around with
55+
[here](examples/line-chart.html){: target="_blank"}.
5756

5857
## Components
5958

@@ -67,12 +66,11 @@ See a live version of this example you can play around with in
6766
- [datacommons-scatter](/api/web_components/scatter)
6867
- [datacommons-slider](/api/web_components/slider)
6968

70-
## Code Playground Examples
69+
## Examples
7170

72-
- [Static page with all chart types playground](https://lit.dev/playground/#gist=822ce6018bb41113c866d703760c1def){: target="_blank"}
73-
([source](/assets/examples/web-components/all-charts.html))
74-
- [Dynamically updating charts playground](https://lit.dev/playground/#gist=9e3ac88e162248f849dd276ff5895ad0){: target="_blank"}
75-
([source](/assets/examples/web-components/dynamic-map.html))
71+
- [All chart types](examples/all-charts.html){: target="_blank"}
72+
- [A dynamically updating map](examples/dynamic-map.html){: target="_blank"}
73+
- [A styled map](examples/map-styles.html){: target="_blank"}
7674

7775
## Variables and places
7876

@@ -125,9 +123,7 @@ Additionally, the following css variables are supported:
125123

126124
### Styling Example
127125

128-
See a live version of this example you can play around with in
129-
[Playground](https://lit.dev/playground/#gist=719f5d71c2823ac3e58f504cb6ceccd3){: target="_blank"}
130-
([source](/assets/examples/web-components/map-styles.html)).
126+
See a live example [here](examples/map-styles.html){: target="_blank"}.
131127

132128
```html
133129
<html>

0 commit comments

Comments
 (0)