Browse Source

Remove comment

pull/1/head
Masayuki Tanaka 11 years ago
parent
commit
dc7f69fe6a
  1. 14
      c3.js

14
c3.js

@ -184,9 +184,9 @@
var _x, _y, _y2, _subX; var _x, _y, _y2, _subX;
// update edges // update edges
xMin = __axis_rotated ? 10 : 0; xMin = __axis_rotated ? 10 : 0;
xMax = __axis_rotated ? height : width; // AAA xMax = __axis_rotated ? height : width;
yMin = __axis_rotated ? 0 : height; yMin = __axis_rotated ? 0 : height;
yMax = __axis_rotated ? width : 1; // AAA yMax = __axis_rotated ? width : 1;
// update scales // update scales
_x = getX(xMin, xMax); _x = getX(xMin, xMax);
_y = getY(yMin, yMax); _y = getY(yMin, yMax);
@ -293,7 +293,7 @@
// Define svgs // Define svgs
var svg = d3.select(config.bindto).append("svg") var svg = d3.select(config.bindto).append("svg")
.attr("width", width + margin.left + margin.right) // AAA .attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom); .attr("height", height + margin.top + margin.bottom);
// Define defs // Define defs
@ -303,7 +303,7 @@
.attr("id", clipId) .attr("id", clipId)
.append("rect") .append("rect")
.attr("y", margin.top) .attr("y", margin.top)
.attr("width", width) // AAA .attr("width", width)
.attr("height", height-margin.top); .attr("height", height-margin.top);
defs.append("clipPath") defs.append("clipPath")
@ -311,7 +311,7 @@
.append("rect") .append("rect")
.attr("x", -1) .attr("x", -1)
.attr("y", -1) .attr("y", -1)
.attr("width", width + 2) // AAA .attr("width", width + 2)
.attr("height", 40); .attr("height", 40);
defs.append("clipPath") defs.append("clipPath")
@ -864,7 +864,7 @@
.append('line') .append('line')
.attr('class', 'xgrid-focus') .attr('class', 'xgrid-focus')
.attr("x1", __axis_rotated ? 0 : -10) .attr("x1", __axis_rotated ? 0 : -10)
.attr("x2", __axis_rotated ? width : -10) // AAA update on update .attr("x2", __axis_rotated ? width : -10)
.attr("y1", __axis_rotated ? -10 : margin.top) .attr("y1", __axis_rotated ? -10 : margin.top)
.attr("y2", __axis_rotated ? -10 : height); .attr("y2", __axis_rotated ? -10 : height);
} }
@ -1105,7 +1105,7 @@
if (__axis_y2_show) { if (__axis_y2_show) {
main.append("g") main.append("g")
.attr("class", "y2 axis") .attr("class", "y2 axis")
.attr("transform", "translate(" + (__axis_rotated ? 0 : width) + "," + (__axis_rotated ? 10 : 0) + ")") // AAA .attr("transform", "translate(" + (__axis_rotated ? 0 : width) + "," + (__axis_rotated ? 10 : 0) + ")")
.call(yAxis2); .call(yAxis2);
} }

Loading…
Cancel
Save