Browse Source

Remove useless option when resize

pull/1/head
Masayuki Tanaka 11 years ago
parent
commit
e8dc9a3f29
  1. 2
      c3.js
  2. 2
      c3.min.js

2
c3.js

@ -1507,7 +1507,7 @@
updateLegend(c3.data.targets, {withTransition:false});
}
// Draw with new sizes & scales
redraw({withTransition:false, withUpdateXDomain:false});
redraw({withTransition:false});
}
function updateTargets (targets) {

2
c3.min.js vendored

@ -61,4 +61,4 @@ l.select=function(a,b,c){Z&&h.selectAll(".-shapes").selectAll(".-shape").each(fu
!1),c,e)})};l.toLine=function(a){ib(a,"line");I()};l.toSpline=function(a){ib(a,"spline");I()};l.toBar=function(a){ib(a,"bar");I()};l.groups=function(a){if(s(a))return v;v=a;I();return v};l.regions=function(a){if(s(a))return M;M=a;I();return M};l.regions.add=function(a){if(s(a))return M;M=M.concat(a);I();return M};l.regions.remove=function(a,b){var c=[].concat(a);b=k(b)?b:{};c.forEach(function(a){var c=d3.selectAll("."+a);k(b.duration)&&(c=c.transition().duration(b.duration).style("fill-opacity",0));
c.remove();M=M.filter(function(b){return 0>b.classes.indexOf(a)})});return M};l.data.get=function(a){a=l.data.getAsTarget(a);return k(a)?a.values.map(function(a){return a.value}):void 0};l.data.getAsTarget=function(a){var b=Ra(function(b){return b.id==a});return 0<b.length?b[0]:void 0};if("url"in T.data)d3.csv(T.data.url,function(a,b){lb(b)});else if("rows"in T.data)lb(ua(T.data.rows));else if("columns"in T.data)lb(va(T.data.columns));else throw Error("url or rows or columns is required.");vb.onresize=
function(){Q();U();D.x(z);D.empty()||D.extent(m.domain());pa&&Fa.x(m);d3.select("svg").attr("width",bb).attr("height",oa);d3.select("#"+tb).select("rect").attr("width",r).attr("height",u);d3.select("#xaxis-clip").select("rect").attr("width",r+2);d3.select(".zoom-rect").attr("width",r);h.select(".x.axis").attr("transform",L.x);h.select(".y2.axis").attr("transform",L.y2);la&&(x.select(".x.brush").selectAll("rect").attr("height",da),x.select(".x.brush").call(D),x.attr("transform",L.context),x.select(".x.axis").attr("transform",
L.subx));qa&&(sa.attr("transform",L.legend),Xa(l.data.targets,{withTransition:!1}));I({withTransition:!1,withUpdateXDomain:!1})};return l}})(window);
L.subx));qa&&(sa.attr("transform",L.legend),Xa(l.data.targets,{withTransition:!1}));I({withTransition:!1})};return l}})(window);

Loading…
Cancel
Save