Browse Source

Treat as multiple xs when scatter plot - #526

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

2
c3.js

@ -1436,7 +1436,7 @@
return this.d3.set(Object.keys(xs).map(function (id) { return xs[id]; })).size() > 1;
};
c3_chart_internal_fn.isMultipleX = function () {
return notEmpty(this.config.data_xs) || !this.config.data_xSort;
return notEmpty(this.config.data_xs) || !this.config.data_xSort || this.hasType('scatter');
};
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

@ -47,7 +47,7 @@ c3_chart_internal_fn.hasMultipleX = function (xs) {
return this.d3.set(Object.keys(xs).map(function (id) { return xs[id]; })).size() > 1;
};
c3_chart_internal_fn.isMultipleX = function () {
return notEmpty(this.config.data_xs) || !this.config.data_xSort;
return notEmpty(this.config.data_xs) || !this.config.data_xSort || this.hasType('scatter');
};
c3_chart_internal_fn.addName = function (data) {
var $$ = this, name;

Loading…
Cancel
Save