Skip to content

Commit

Permalink
xAxis tick format now uses config numberformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-ctrl committed Apr 5, 2024
1 parent 717d746 commit b7aa59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bar-chart-horizontal-with-reference-sm/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function drawGraphic() {
let xAxis = d3
.axisBottom(x)
.tickSize(-height)
.tickFormat(d3.format('.0%'))
.tickFormat(d3.format(config.essential.dataLabels.numberFormat))
.ticks(config.optional.xAxisTicks[size]);

//create svg for chart
Expand Down

0 comments on commit b7aa59f

Please sign in to comment.