Skip to content

Commit e9dd162

Browse files
authored
YAxis looses format property on update
The name of the property is format, not fmt. This resulted in the axis formatting defaulting to plain string instead of using the custom format provided when resizing or updating the axis in any way
1 parent 5ee2585 commit e9dd162

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/YAxis.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export default class YAxis extends React.Component {
124124
height,
125125
chartExtent,
126126
absolute,
127-
fmt,
127+
format,
128128
type,
129129
showGrid,
130130
hideAxisLine
@@ -141,10 +141,10 @@ export default class YAxis extends React.Component {
141141
hideAxisLine,
142142
absolute,
143143
type,
144-
fmt
144+
format
145145
);
146146
} else if (
147-
this.props.fmt !== fmt ||
147+
this.props.format !== format ||
148148
this.props.align !== align ||
149149
this.props.width !== width ||
150150
this.props.height !== height ||
@@ -164,7 +164,7 @@ export default class YAxis extends React.Component {
164164
hideAxisLine,
165165
absolute,
166166
type,
167-
fmt
167+
format
168168
);
169169
}
170170
}

0 commit comments

Comments
 (0)