Commit b81ecd62 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

improved readability of legend

parent 1e2b24f6
......@@ -39,9 +39,11 @@ export default class extends Chart {
const groups = [...new Set(values.reduce((acc, cur) => acc.concat(cur.map(d => d.group)), []))];
const customSchemeSet3 = d3.schemeSet3;
customSchemeSet3.splice(1, 1);
const color = d3.scaleOrdinal()
.domain(groups)
.range(d3.schemeSet3);
.range(customSchemeSet3);
d3.select(this.container).select('svg')
.attr('width', width + margin.left + margin.right)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment