@swimlane/ngx-charts
Version:
Declarative Charting Framework for Angular2 and beyond!
15 lines • 466 B
JavaScript
;
var moment = require('moment');
function tickFormat(fieldType, groupByType) {
return function (label) {
if (label === 'No Value' || label === 'Other') {
return label;
}
if (fieldType === 'date' && groupByType === 'groupBy') {
return moment(label).format('MM/DD/YYYY');
}
return label.toString();
};
}
exports.tickFormat = tickFormat;
//# sourceMappingURL=tick-format.helper.js.map