Skip to content

Commit

Permalink
documentation for schemeObservable10 (#3804)
Browse files Browse the repository at this point in the history
* documentation for d3/d3-scale-chromatic#51

* upgrade dependencies

* add d3.schemeObservable10 to index

* update actions

---------

Co-authored-by: Mike Bostock <mbostock@gmail.com>
  • Loading branch information
Fil and mbostock committed Mar 12, 2024
1 parent a353aa5 commit 6d6fb02
Show file tree
Hide file tree
Showing 5 changed files with 832 additions and 675 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Expand Up @@ -15,20 +15,20 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: d3/d3.github.com
path: build/d3.github.com
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn prepublishOnly
- run: yarn docs:build
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v1
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
- name: Deploy
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -10,10 +10,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: |
Expand Down
1 change: 1 addition & 0 deletions docs/api.md
Expand Up @@ -943,6 +943,7 @@ Color ramps and palettes for quantitative, ordinal and categorical scales.
* [d3.schemeCategory10](./d3-scale-chromatic/categorical.md#schemeCategory10) - an array of ten categorical colors.
* [d3.schemeAccent](./d3-scale-chromatic/categorical.md#schemeAccent) - an array of eight categorical colors.
* [d3.schemeDark2](./d3-scale-chromatic/categorical.md#schemeDark2) - an array of eight categorical colors.
* [d3.schemeObservable10](./d3-scale-chromatic/categorical.md#schemeObservable10) - an array of ten categorical colors.
* [d3.schemePaired](./d3-scale-chromatic/categorical.md#schemePaired) - an array of twelve categorical colors.
* [d3.schemePastel1](./d3-scale-chromatic/categorical.md#schemePastel1) - an array of nine categorical colors.
* [d3.schemePastel2](./d3-scale-chromatic/categorical.md#schemePastel2) - an array of eight categorical colors.
Expand Down
6 changes: 6 additions & 0 deletions docs/d3-scale-chromatic/categorical.md
Expand Up @@ -31,6 +31,12 @@ const color = d3.scaleOrdinal(d3.schemeAccent);

[Source](https://github.com/d3/d3-scale-chromatic/blob/main/src/categorical/Dark2.js) · An array of eight categorical colors represented as RGB hexadecimal strings.

## schemeObservable10 {#schemeObservable10}

<ColorSwatches :colors="d3.schemeObservable10" />

[Source](https://github.com/d3/d3-scale-chromatic/blob/main/src/categorical/observable10.js) · An array of ten categorical colors represented as RGB hexadecimal strings.

## schemePaired {#schemePaired}

<ColorSwatches :colors="d3.schemePaired" />
Expand Down

0 comments on commit 6d6fb02

Please sign in to comment.