Skip to content

Commit

Permalink
Shuffled colors in collaboration chart. (#32)
Browse files Browse the repository at this point in the history
The colors of the first few organizations were very close to each other,
making it hard to differentiate them. This commit shuffles the colors so
that consecutive colors are contrasting.
  • Loading branch information
pluehne authored and larsxschneider committed Oct 30, 2017
1 parent afc7e20 commit 61f3496
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/assets/js/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ var chartColors =

var extendedChartColors =
[
"#ff5e4d",
"#4c99e5",
"#ffa71a",
"#ffce00",
"#f8f535",
"#b0f20a",
"#16e94d",
"#6aedc7",
"#ff5e4d",
"#8bea12",
"#ffe300",
"#39c2c9",
"#998ce3",
"#f866b9",
"#ff7845",
"#ffbf1a",
"#ffe300",
"#dfff4d",
"#8bea12",
"#16e94d",
"#998ce3",
"#ff5a99",
"#ffce00",
"#19dc80",
"#10d9be",
"#4c99e5",
"#b0f20a",
"#f8f535",
"#c87adf",
"#ff5a99",
"#ffbf1a",
"#f866b9",
"#dfff4d",
];

function extendedChartColor(i)
{
return extendedChartColors[(i + 3) % extendedChartColors.length];
return extendedChartColors[i % extendedChartColors.length];
}

var chartColorSequence =
Expand Down

0 comments on commit 61f3496

Please sign in to comment.