Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created Oct 13, 2016
Embed
What would you like to do?
7.md
"#expand click": function() {
this._setChartSetting(this._width *= 2, this._height *= 2);
},
"#shrink click": function() {
this._setChartSetting(this._width /= 2, this._height /= 2);
},
_setChartSetting: function(width, height) {
this._chartController.setChartSetting({
width: width,
height: height
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment