processSeries method

void processSeries()

Implementation

void processSeries() {
  var max = series.data
      .reduce((curr, next) => curr.value > next.value ? curr : next);
  verticalScale = outerRect.height / (max.value + max.value * 0.25);
  horizontalScale = outerRect.width / series.data.length;
}