You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// make sure container height and width are set._initAttr.call(this,"_width","width",200);_initAttr.call(this,"_height","height",200);
these lines become unnecessary:
// setup some reasonable defaultschart._width=chart.base.attr("width")||200;chart._height=chart.base.attr("height")||200;
since in either case (svg width/height are already set, or they're not) the initAttr function is assigning a value to this._width and this._height. What am I missing?
The text was updated successfully, but these errors were encountered:
I'm trying to understand the
initAttr
function:It seems like after you use it
these lines become unnecessary:
since in either case (svg width/height are already set, or they're not) the
initAttr
function is assigning a value to this._width and this._height. What am I missing?The text was updated successfully, but these errors were encountered: