diff --git a/package-lock.json b/package-lock.json index 291ffd2..935fad5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "d3-simple-slider", - "version": "1.10.3", + "version": "1.10.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8827577..5f6f123 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d3-simple-slider", - "version": "1.10.3", + "version": "1.10.4", "description": "Renders an SVG slider", "keywords": [ "d3", diff --git a/src/slider.js b/src/slider.js index 9aa2686..8be37ca 100644 --- a/src/slider.js +++ b/src/slider.js @@ -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]); }); }