Browse Source

Regard isMultiple = true when data.xs is specified even if it has only one element - #522 #526

pull/555/head
Masayuki Tanaka 10 years ago
parent
commit
90eb353b67
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      src/data.js

2
c3.js

@ -1436,7 +1436,7 @@
};
c3_chart_internal_fn.isMultipleX = function () {
var $$ = this, config = $$.config;
return notEmpty(config.data_xs) && $$.hasMultipleX(config.data_xs);
return notEmpty(config.data_xs);
};
c3_chart_internal_fn.addName = function (data) {
var $$ = this, name;

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
src/data.js

@ -48,7 +48,7 @@ c3_chart_internal_fn.hasMultipleX = function (xs) {
};
c3_chart_internal_fn.isMultipleX = function () {
var $$ = this, config = $$.config;
return notEmpty(config.data_xs) && $$.hasMultipleX(config.data_xs);
return notEmpty(config.data_xs);
};
c3_chart_internal_fn.addName = function (data) {
var $$ = this, name;

Loading…
Cancel
Save