Standardization of default chart colors

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Has anyone out there found or developed some clever way of standardizing the colors used for chart reports? I find it extremely frustrating that I have to continuously change my colors back to my preferred color options (the opposite of the very dull default colors) when reports are edited. 

This is something that has bugged me for years and I just haven't invested the time or resources to develop a way to solve it. 

Thanks!
Photo of Eric Hansen | CirrusOps

Eric Hansen | CirrusOps

  • 4,022 Points 4k badge 2x thumb
  • frustrated

Posted 2 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,322 Points 20k badge 2x thumb
You can use the BOL technique to patch a chart after it has rendered.
chart.series[0].update({
  color: 'red'
});
This is the default HighChart colors used for series:
colors: ['#7cb5ec', '#434348', '#90ed7d', '#f7a35c', '#8085e9', '#f15c80', '#e4d354', '#2b908f', '#f45b5b', '#91e8e1']
Here is a color palette generator library:

Colour Palette Generator
https://github.com/google/palette.js/tree/master

Here are 10 colors generated from Paul Tol's qualitative palette using the above library:
var seq = palette('tol', 10);
console.log(seq);
> ["332288", "88ccee", "44aa99", "117733", "999933", "ddcc77", "661100", "cc6677", "882255", "aa4499"]
That's fantastic. Thanks for the help. We will look into that.