Skip to content

Commit e17b57e

Browse files
committed
Use valueLabelFormat in x-tick
1 parent 156c9c2 commit e17b57e

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)