Skip to content

Commit

Permalink
Update color scale with scientific notation. Add smaller dataset for …
Browse files Browse the repository at this point in the history
…initial state.
  • Loading branch information
kerzner committed Aug 23, 2017
1 parent 0d81b66 commit 23abdc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class AdjustableColorScaleController {
this.svg = null;

this.formatNumber = d3.format("d");
this.marginLeft = 10;
this.marginRight = 10;
this.marginLeft = 25;
this.marginRight = 25;
this.width = 400;

let self = this;
Expand Down Expand Up @@ -174,7 +174,7 @@ class AdjustableColorScaleController {
.tickSize(13)
.tickValues(colorScale.domain())
.tickFormat(function (d) {
return Math.floor(d);
return d3.format(".3n")(Math.floor(d));
});

this.group = this.svg.append("g")
Expand Down
2 changes: 1 addition & 1 deletion src/assets/mock/defaultMarclab.json

Large diffs are not rendered by default.

0 comments on commit 23abdc5

Please sign in to comment.