Browse Source

Offset x axis by 50

pull/789/head
JakeSidSmith 11 years ago
parent
commit
16dd1acd8b
  1. 2
      c3.js

2
c3.js

@ -354,7 +354,7 @@
yAxis = (transitions && transitions.axisY) ? transitions.axisY : main.select('.' + CLASS.axisY).transition().duration(duration), yAxis = (transitions && transitions.axisY) ? transitions.axisY : main.select('.' + CLASS.axisY).transition().duration(duration),
y2Axis = (transitions && transitions.axisYs) ? transitions.axisY2 : main.select('.' + CLASS.axisY2).transition().duration(duration); y2Axis = (transitions && transitions.axisYs) ? transitions.axisY2 : main.select('.' + CLASS.axisY2).transition().duration(duration);
main.attr("transform", translate.main); main.attr("transform", translate.main);
xAxis.attr("transform", translate.x); xAxis.attr("transform", 50);
yAxis.attr("transform", translate.y); yAxis.attr("transform", translate.y);
y2Axis.attr("transform", translate.y2); y2Axis.attr("transform", translate.y2);
main.select('.' + CLASS.chartArcs).attr("transform", translate.arc); main.select('.' + CLASS.chartArcs).attr("transform", translate.arc);

Loading…
Cancel
Save