Commit 0516616d authored by Masayuki Tanaka's avatar Masayuki Tanaka

Modularize event rect

parent f2f75452
......@@ -27,6 +27,7 @@ module.exports = (grunt) ->
'src/data.convert.js',
'src/data.load.js',
'src/category.js',
'src/interaction.js',
'src/size.js',
'src/shape.js',
'src/shape.line.js',
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -38,8 +38,12 @@ c3_chart_internal_fn.addXs = function (xs) {
$$.config[__data_xs][id] = xs[id];
});
};
c3_chart_internal_fn.isSingleX = function (xs) {
return this.d3.set(Object.keys(xs).map(function (id) { return xs[id]; })).size() === 1;
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 () {
var $$ = this, config = $$.config;
return notEmpty(config[__data_xs]) && $$.hasMultipleX(config[__data_xs]);
};
c3_chart_internal_fn.addName = function (data) {
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