- if( !this.graphs[instance] ) {
- this.graphs[instance] = new Graph(
- this.container, instance, this.options, this.transform
+ var gid = instance || 'livegraph';
+ if( !this.graphs[gid] ) {
+ this.graphs[gid] = new Graph(
+ this.container, gid, this.options, this.transform, this.legend