Skip to content

Commit f2d1283

Browse files
authored
Merge pull request #567 from toggle-corp/fix-horizontal-chart
Use valueLabelFormat in x-tick
2 parents 156c9c2 + e17b57e commit f2d1283

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • components/Visualization/HorizontalBar

components/Visualization/HorizontalBar/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,11 @@ class HorizontalBar extends PureComponent {
410410
.style('fill', fillColor);
411411
});
412412

413+
this.group
414+
.select('#xaxis')
415+
.selectAll('.tick text')
416+
.text(d => (valueLabelFormat ? valueLabelFormat(d) : d));
417+
413418
if (scaleType === 'log') {
414419
this.group
415420
.select('#xaxis')

0 commit comments

Comments
 (0)