Skip to content

Commit

Permalink
Fixing issue with coloring by categorical variables. Closes #1102
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsielicki committed Feb 16, 2023
1 parent 632c011 commit 335ee18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ $.widget("slycat.colorswitcher", {
if (values === undefined) values = [0, 1];

let tempOrdinal = d3.scale.ordinal().domain(values).rangePoints([0, 100], 0);
let tempColorscale = this.get_color_scale(this.options.colormap, 0, 100);
let tempColorscale = this.get_color_scale(0, 100);
let rgbRange = [];
for (let i = 0; i < values.length; i++) {
rgbRange.push(tempColorscale(tempOrdinal(values[i])));
Expand Down

0 comments on commit 335ee18

Please sign in to comment.