pan method

GraphViewport pan(
  1. double dx
)

Dragged by dx pixels (to the right shows older rows).

Implementation

GraphViewport pan(double dx) => GraphViewport(barSpacing: barSpacing, rightOffset: rightOffset - dx / barSpacing);