         width: @width,
         height: @height
 
+  # Resizes the svg element in response to a 'option:width' or 'option:height' event.
+  dimensionsChanged: ->
+    super()
+    @svg.attr('width', @width).attr('height', @height)
+
 # Base Class for all Canvas based charts.
 class Epoch.Chart.Canvas extends Epoch.Chart.Base
   # Initializes the chart and places the rendering canvas in the specified

      d3.min(@data, (layer) -> d3.min(layer.values, cmp)),
      d3.max(@data, (layer) -> d3.max(layer.values, cmp))
    ]


# Base class for all SVG charts (via d3).

    else
      @width = defaults.width unless @width?
      @height = defaults.height unless @height?

    @onAll optionListeners

  # @return [Object] A copy of this charts options.
  _getAllOptions: ->
