Browse Source

refactor(axis): fix lint error (#2350)

pull/2351/head
Yoshiya Hinosawa 7 years ago committed by GitHub
parent
commit
7bee0ecdac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/axis.js

6
src/axis.js

@ -478,11 +478,7 @@ c3_axis_fn.getXAxisTickFormat = function getXAxisTickFormat() {
// #2251 previously set any negative values to a whole number,
// however both should be truncated according to the users format specification
var $$ = this.owner, config = $$.config;
let format = ($$.isTimeSeries())
? $$.defaultAxisTimeFormat
: ($$.isCategorized())
? $$.categoryName
: function (v) { return v; };
let format = ($$.isTimeSeries()) ? $$.defaultAxisTimeFormat : ($$.isCategorized()) ? $$.categoryName : function (v) { return v; };
if (config.axis_x_tick_format) {
if (isFunction(config.axis_x_tick_format)) {

Loading…
Cancel
Save