Skip to content

Commit

Permalink
fix: displayFormat now used on first render
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwalley committed Feb 24, 2021
1 parent 25088e5 commit a57f601
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.10.3",
"version": "1.10.4",
"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 @@ -334,7 +334,7 @@ function slider(orientation, scale) {
)
.attr('transform', value.length > 1 ? 'translate(0,0)' : null)
.text(function (d, idx) {
return tickFormat(value[idx]);
return displayFormat(value[idx]);
});
}

Expand Down

0 comments on commit a57f601

Please sign in to comment.