Skip to content

Instantly share code, notes, and snippets.

@wwqrd
Last active December 22, 2015 00:29
Show Gist options
  • Select an option

  • Save wwqrd/6389845 to your computer and use it in GitHub Desktop.

Select an option

Save wwqrd/6389845 to your computer and use it in GitHub Desktop.
data = [
{
name: series,
points: [ {}, .. ]
}
...
]
axis = new アシ({
ctx: ctx,
dispatcher: dispatcher
});
...
ガ = new ガラパ( data );
ガ.add( axis )
ガ.add( bars )
ガ.add( legend )
ガ.add( tooltip )
ガ.render();
ガラパ = function( data ) {
this.data;
}
ガラパ.prototype = {
add: function( renderer ) {
this.renderers.push( renderer )
},
render: function() {
for( var i in this.renderers ) {
this.renderers[i]( this.data );
}
}
};
@wwqrd

wwqrd commented Aug 30, 2013

Copy link
Copy Markdown
Author

Each element can render to different places!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment