Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions api/web_components/examples/all-charts.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
layout: code-preview
title: All Charts
parent: All Charts - Web Components Example
title: All Charts - Web Components Example
published: true
nav_exclude: true
iframe_content_url: /assets/examples/web-components/all-charts.html
Expand Down
7 changes: 7 additions & 0 deletions api/web_components/examples/dynamic-map.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: code-preview
title: Dynamic Map - Web Components Example
published: true
nav_exclude: true
iframe_content_url: /assets/examples/web-components/dynamic-map.html
---
7 changes: 7 additions & 0 deletions api/web_components/examples/line-chart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: code-preview
title: Line Chart - Web Components Example
published: true
nav_exclude: true
iframe_content_url: /assets/examples/web-components/line-chart.html
---
7 changes: 7 additions & 0 deletions api/web_components/examples/map-styles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: code-preview
title: Map Styles - Web Components Example
published: true
nav_exclude: true
iframe_content_url: /assets/examples/web-components/map-styles.html
---
18 changes: 7 additions & 11 deletions api/web_components/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ For example, to embed a line chart:
</html>
```

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For conciseness and improved readability, this sentence can be shortened.

Suggested change
See a live version of this example you can play around with
[here](examples/line-chart.html){: target="_blank"}.
See a live example [here](examples/line-chart.html){: target="_blank"}.


## Components

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

## Code Playground Examples
## Examples

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

## Variables and places

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

### Styling Example

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

```html
<html>
Expand Down
Loading