Skip to content

Commit

Permalink
Better default for displayFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwalley committed Oct 16, 2018
1 parent 2d66bd6 commit def287f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3-simple-slider",
"version": "1.0.0",
"version": "1.0.1",
"description": "Renders an SVG slider",
"keywords": [
"d3",
Expand Down
2 changes: 1 addition & 1 deletion src/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function slider() {
.clamp(true)(value);

tickFormat = tickFormat || scale.tickFormat();
displayFormat = displayFormat || scale.tickFormat();
displayFormat = displayFormat || tickFormat || scale.tickFormat();

var axis = selection.selectAll('.axis').data([null]);

Expand Down

0 comments on commit def287f

Please sign in to comment.