{
const names = ["red", "orange", "yellow", "blue", "green", "violet"];
const colors = ["#ff0000", "#ffa500", "#ffff00", "#0000ff", "#008000", "#ee82ee"];
const order = d3.shuffle(d3.range(names.length));
return {
names: d3.permute(names, order),
colors: d3.permute(colors, order)
};
}