showLast static method

GraphViewport showLast(
  1. int rows,
  2. double width, {
  3. double rightOffset = 0,
})

The view that shows the last rows rows across width.

Implementation

static GraphViewport showLast(int rows, double width, {double rightOffset = 0}) =>
    GraphViewport(barSpacing: width / math.max(1, rows + rightOffset), rightOffset: rightOffset);