Skip to content

Instantly share code, notes, and snippets.

@panda01
Last active August 29, 2015 14:27
Show Gist options
  • Save panda01/35232ca7832e46795246 to your computer and use it in GitHub Desktop.
Save panda01/35232ca7832e46795246 to your computer and use it in GitHub Desktop.
function chart() {
this.init();
}
_.assign(chart.prototype, {
xAxis: function(opt) {
if (!val) { return this.state.xAxis; }
this.state.xAxis = _.assign(defaultXAxisOptions, opt);
return this;
}
});
function lineChart() {
chart.apply(this);
}
_.assign(lineChart.prototype, {
init: function() {
return this
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment