pixelOverhang method

double pixelOverhang(
  1. ResolvedAxis xAxis
)

Extra horizontal reach of this series' marks beyond their x value, in pixels. A point-like series (a line) reaches 0; a wide mark (a bar) reaches half its width plus any horizontal offset. The chart widens the visible data slice by this much (converted to domain units through the x axis) so an edge mark stays painted while scrolling instead of popping in and out when its anchor crosses the viewport edge.

xAxis is the frame's resolved x axis, so resolution-dependent widths (e.g. a bar sized in x-domain units) can be converted to pixels; the chart calls this once per series per frame. Must be >= 0. Default: 0.

Implementation

double pixelOverhang(ResolvedAxis xAxis) => 0;