Skip to content

Instantly share code, notes, and snippets.

@trotter
Created March 23, 2011 21:36
Show Gist options
  • Save trotter/884071 to your computer and use it in GitHub Desktop.
Save trotter/884071 to your computer and use it in GitHub Desktop.
function Chart() {
}
Chart.prototype = {
l_gutter: 120,
l_margin: 20,
r_margin: 20,
r_gutter: 80,
x_bound: 900,
t_gutter: 20,
t_margin: 10,
b_margin: 10,
b_gutter: 80,
y_bound: 500,
tick_length: 8,
tick_offset: 2,
x_label_offset: 38,
y_label_offset: 24,
raphael: function() {
if (this.__raphael) {
return this.__raphael;
}
this.__raphael = Raphael('holder',this.x_bound,this.y_bound);
return this.__raphael;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment