Remove decimals from Y-axis (https://github.com/woocommerce/woocommerce-admin/pull/1288)
* Remove decimals from Y-axis * Add CHANGELOG message
This commit is contained in:
parent
ad457cc123
commit
328a49127a
|
@ -10,6 +10,7 @@
|
||||||
- `showHeaderControls`: whether the header controls must be visible. Defaults to true.
|
- `showHeaderControls`: whether the header controls must be visible. Defaults to true.
|
||||||
- `getColor()` method in chart utils now requires `keys` and `colorScheme` to be passed as separate params.
|
- `getColor()` method in chart utils now requires `keys` and `colorScheme` to be passed as separate params.
|
||||||
- Fix to avoid duplicated Y-axis ticks when the Y max value was 0.
|
- Fix to avoid duplicated Y-axis ticks when the Y max value was 0.
|
||||||
|
- Remove decimals from Y-axis when displaying currencies.
|
||||||
|
|
||||||
# 1.3.0
|
# 1.3.0
|
||||||
|
|
||||||
|
|
|
@ -275,7 +275,7 @@ class Chart extends Component {
|
||||||
yFormat = '.0f';
|
yFormat = '.0f';
|
||||||
break;
|
break;
|
||||||
case 'currency':
|
case 'currency':
|
||||||
yFormat = '$.3s';
|
yFormat = '$.3~s';
|
||||||
break;
|
break;
|
||||||
case 'number':
|
case 'number':
|
||||||
yFormat = '.0f';
|
yFormat = '.0f';
|
||||||
|
|
Loading…
Reference in New Issue