Commit 0ed8a67f authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix trivial

parent 40b1b76a
......@@ -2517,25 +2517,18 @@
var orgAreaOpacity, withoutFadeIn = {};
function init(data) {
var eventRect, grid;
var i;
var eventRect, grid, i;
selectChart = d3.select(__bindto);
if (selectChart.empty()) {
throw new Error('No bind element found. Check the selector specified by "bindto" and existance of that element. Default "bindto" is "#chart".');
} else {
selectChart.html("");
throw new Error('Bind element not found. Check the selector specified by "bindto" and existance of that element. Default "bindto" is "#chart".');
}
// Set class
selectChart.classed("c3", true);
selectChart.html("").classed("c3", true);
// Init data as targets
c3.data.xs = {};
c3.data.targets = convertDataToTargets(data);
// TODO: set names if names not specified
// Init sizes and scales
updateSizes();
updateScales();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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