0.8.26 • Published 7 years ago

g-chartcolour v0.8.26

Weekly downloads
73
License
BSD-3-Clause
Repository
github
Last release
7 years ago

ft-chartcolour

Work in progress.

A JS module (following the D3 pattern) for colours in FT charts.

The colours

using

Either npm install g-chartcolour or you can include it directly in your page via unpkg (or equiv)...

https://unpkg.com/g-chartcolour@0.5.0/build/g-chartcolour.min.js

developing

Clone the repository locally

install dev dependencies npm install

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 sequential-multi or a single object eg categorical-uk-politics). The palette should then be added to the index.js file so it gets included in the build.

Update snapshot testing with npm run update-snapshot.

When you're happy with the palette create a pull request and that's it!

0.8.26

7 years ago

0.8.25

7 years ago

0.8.24

7 years ago

0.8.23

7 years ago

0.8.22

8 years ago

0.8.21

8 years ago

0.8.20

8 years ago

0.8.19

8 years ago

0.8.18

8 years ago

0.8.17

8 years ago

0.8.16

8 years ago

0.8.15

8 years ago

0.8.14

8 years ago

0.8.13

8 years ago

0.8.12

8 years ago

0.8.11

8 years ago

0.8.10

8 years ago

0.8.9

8 years ago

0.8.8

8 years ago

0.8.7

8 years ago

0.8.6

8 years ago

0.8.5

8 years ago

0.8.0

8 years ago

0.7.0

8 years ago

0.6.0

8 years ago

0.5.0

8 years ago