Skip to content

Commit

Permalink
fixing custom format
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Jan 13, 2017
1 parent af24338 commit 21dc660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core_plugins/timelion/public/services/tick_formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ define(function (require) {
return val.toLocaleString('en', { style: 'currency', currency: axis.options.units[1] });
},
'custom': function (val, axis) {
var prefix = axis.options._units[1] || '';
var suffix = axis.options._units[2] || '';
var prefix = axis.options.units[1] || '';
var suffix = axis.options.units[2] || '';
return prefix + val + suffix;
}
};
Expand Down

0 comments on commit 21dc660

Please sign in to comment.