resize method

void resize([
  1. num? width,
  2. num? height
])

Resizes the dygraph. If no parameters are specified, resizes to fill the containing div (which has presumably changed size since the dygraph was instantiated. If the width/height are specified, the div will be resized.

This is far more efficient than destroying and re-instantiating a Dygraph, since it doesn't have to reparse the underlying data.

Implementation

external void resize([num? width, num? height]);