Commit 90eb353b authored by Masayuki Tanaka's avatar Masayuki Tanaka

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

parent 967b5065
...@@ -1436,7 +1436,7 @@ ...@@ -1436,7 +1436,7 @@
}; };
c3_chart_internal_fn.isMultipleX = function () { c3_chart_internal_fn.isMultipleX = function () {
var $$ = this, config = $$.config; 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) { c3_chart_internal_fn.addName = function (data) {
var $$ = this, name; var $$ = this, name;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -48,7 +48,7 @@ c3_chart_internal_fn.hasMultipleX = function (xs) { ...@@ -48,7 +48,7 @@ c3_chart_internal_fn.hasMultipleX = function (xs) {
}; };
c3_chart_internal_fn.isMultipleX = function () { c3_chart_internal_fn.isMultipleX = function () {
var $$ = this, config = $$.config; 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) { c3_chart_internal_fn.addName = function (data) {
var $$ = this, name; var $$ = this, name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment