Class: Ember.CanvasView

CanvasView provides a responsive container for containing your SVG elements.

A CanvasView containing a SVG ensure that the visualization scales up at a particular aspect ratio, and scales down properly at a minimum width.

To use, wrap around your graph like so:

{{#view Ember.CanvasView}}
  {{view Ember.HistogramView ...}}
{{/view}}

CanvasView provides sane defaults, but you may override the presentation using the following attributes: containerWidth, containerHeight, xMargin, yMargin, and aspectRatio.

Defined in: canvas_view.js.

Instance Methods

Instance Method Detail

didInsertElement
height
preserveAspectRatio
viewBox
width
Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jun 19 2012 23:00:17 GMT-0400 (EDT)