Skip to content

Commit

Permalink
Fixing inaccurate Timeseries table colors. Closes #567
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsielicki committed Mar 10, 2016
1 parent 5991ab7 commit 59f3677
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ define("slycat-timeseries-table", ["d3"], function(d3)
column.colormap = self.options.colormap.copy();

var new_domain = []
var domain_scale = d3.scale.linear().domain([0, column.colormap.range().length]).range([self.options.metadata["column-min"][column.id], self.options.metadata["column-max"][column.id]]);
var domain_scale = d3.scale.linear()
.domain([0, column.colormap.range().length - 1])
.range([self.options.metadata["column-min"][column.id], self.options.metadata["column-max"][column.id]]);
for(var i in column.colormap.range())
new_domain.push(domain_scale(i));
column.colormap.domain(new_domain);
Expand Down

0 comments on commit 59f3677

Please sign in to comment.