Skip to content

Commit

Permalink
Merge pull request #41 from ft-interactive/master-main
Browse files Browse the repository at this point in the history
master -> main
  • Loading branch information
aendra-rininsland authored Sep 14, 2021
2 parents eb8ed58 + 8cea4c8 commit 6041d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build the module and the documentation page `npm run prepare`

To change an existing palette simply go into the `src` directory, open the file corresponding to the palette you want to change and edit the appropriate hex code.

To add a new palette create a sensibly named file in the `src` directory following the example of one of the existing palettes. Each palette exports either a single array eg <a href="https://github.com/ft-interactive/g-chartcolour/blob/master/src/sequential-multi.js">sequential-multi</a> or a single object eg <a href="https://github.com/ft-interactive/g-chartcolour/blob/master/src/categorical-uk-politics.js">categorical-uk-politics</a>). The palette should then be added to the <a href="https://github.com/ft-interactive/g-chartcolour/blob/master/index.js">index.js</a> file so it gets included in the build.
To add a new palette create a sensibly named file in the `src` directory following the example of one of the existing palettes. Each palette exports either a single array eg <a href="https://github.com/ft-interactive/g-chartcolour/blob/main/src/sequential-multi.js">sequential-multi</a> or a single object eg <a href="https://github.com/ft-interactive/g-chartcolour/blob/main/src/categorical-uk-politics.js">categorical-uk-politics</a>). The palette should then be added to the <a href="https://github.com/ft-interactive/g-chartcolour/blob/main/index.js">index.js</a> file so it gets included in the build.

Update snapshot testing with `npm run update-snapshot`.

Expand Down

0 comments on commit 6041d83

Please sign in to comment.