Module
Hylograph.Components.Axis
- Package
- purescript-hylograph-components
- Repository
- afcondon/purescript-hylograph-components
Axis rendering, factored out of BarChart so every chart preset can share it. Two kinds of axis, two functions:
continuousAxis— numeric, with ticks generated byHylograph.Scale.categoricalAxis— one label per band, centered; no ticks.
Both render in their own local frame with the axis origin at (0,0).
The caller wraps in a Group with a transform: translate(...) to place
the axis at its final position in the chart.
Only Left (y) and Bottom (x) are honored in v1 — Top and Right
fall through to empty. Add them when something needs them.
#continuousAxis Source
continuousAxis :: ContinuousAxis -> Theme -> Tree#categoricalAxis Source
categoricalAxis :: CategoricalAxis -> Theme -> TreebandWidth is the pixel length per band along the axis direction:
horizontal (Bottom) axes use it as the width per label; vertical (Left)
axes use it as the height per label.
- Modules
- Hylograph.
Components. Annotation - Hylograph.
Components. Axis - Hylograph.
Components. BarChart - Hylograph.
Components. Binning - Hylograph.
Components. BoxPlot - Hylograph.
Components. Frame - Hylograph.
Components. Heatmap - Hylograph.
Components. Layout - Hylograph.
Components. Legend - Hylograph.
Components. LinePlot - Hylograph.
Components. LineStyle - Hylograph.
Components. Mark - Hylograph.
Components. PieChart - Hylograph.
Components. ScatterPlot - Hylograph.
Components. Series - Hylograph.
Components. Theme - Hylograph.
Components. Treemap