setScaleViewport method

void setScaleViewport(
  1. OrdinalViewport viewport
)

Implementation

void setScaleViewport(OrdinalViewport viewport) {
  autoViewport = false;
  (scale! as OrdinalScale)
      .setViewport(viewport.dataSize, viewport.startingDomain);
}