Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

g-chartcolour

Package Overview
Dependencies
Maintainers
5
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g-chartcolour

colours for FT charts

  • 0.8.26
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

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!

Keywords

FAQs

Package last updated on 29 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc