* Remove decimals from Y-axis

* Add CHANGELOG message
This commit is contained in:
Albert Juhé Lluveras 2019-01-11 19:18:31 +01:00 committed by GitHub
parent ad457cc123
commit 328a49127a
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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';