setChartDimens method

void setChartDimens(
  1. double width,
  2. double height
)

Sets the width and height of the chart.

@param width @param height

Implementation

void setChartDimens(double width, double height) {
  double offsetLeft = this.offsetLeft();
  double offsetTop = this.offsetTop();
  double offsetRight = this.offsetRight();
  double offsetBottom = this.offsetBottom();

  _chartHeight = height;
  _chartWidth = width;

  restrainViewPort(offsetLeft, offsetTop, offsetRight, offsetBottom);
}