This canvas is 300×100 pixels, with no border. The canvas is specified using an explicit DOM reference. The height is specified as a property, while the width is inferred from the DOM. Clicking on the panel makes it darker.
This canvas is 30×10 pixels, with no border. The canvas is specified using an explicit DOM reference. The height is specified as a property, while the width is inferred from the DOM. The root panel has an associated 10-element array of data, so ten root panels are generated, making the total width 300×10; however, since a canvas property was specified, the panels are generated overlapping in a single SVG element, rather than creating multiple canvases. Clicking on the panel should increment the displayed click count.