Module

Hylograph.Components.Layout

Package
purescript-hylograph-components
Repository
afcondon/purescript-hylograph-components

Shared layout types for every chart component.

A Layout is just the canvas: outer width/height plus a Margin around the plot area. Chart-specific knobs (bar padding, point radius, line width, inner radius on a donut) live on the chart's own Config, not here.

defaultLayout has Swiss-ish proportions (640×400, generous left for numeric y-axis labels, extra bottom for a rotated-free x-axis label).

#Margin Source

type Margin = { bottom :: Number, left :: Number, right :: Number, top :: Number }

#Layout Source

type Layout = { height :: Number, margin :: Margin, width :: Number }

#defaultMargin Source

#defaultLayout Source

#innerHeight Source