mirror of https://github.com/masayuki0812/c3.git
Quite good looking graph derived from d3.js
http://c3js.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
514 B
16 lines
514 B
c3_chart_internal_fn.hasCaches = function (ids) { |
|
for (var i = 0; i < ids.length; i++) { |
|
if (! (ids[i] in this.cache)) { return false; } |
|
} |
|
return true; |
|
}; |
|
c3_chart_internal_fn.addCache = function (id, target) { |
|
this.cache[id] = this.cloneTarget(target); |
|
}; |
|
c3_chart_internal_fn.getCaches = function (ids) { |
|
var targets = [], i; |
|
for (i = 0; i < ids.length; i++) { |
|
if (ids[i] in this.cache) { targets.push(this.cloneTarget(this.cache[ids[i]])); } |
|
} |
|
return targets; |
|
};
|
|
|