Hylograph.Components.LinePlot
- Package
- purescript-hylograph-components
- Repository
- afcondon/purescript-hylograph-components
Line plot component.
Single series: the input rows are visited in iteration order, connected
by a straight-segment Path. For multi-series, compose multiple LinePlot
instances in the same container (different Frames) or wait for a
dedicated MultiLine preset.
Rows aren't sorted internally — the user's dataset order is the line's order. Sort before passing in if that matters.
Encoding: x, y (Number), key, tooltip (String). showPoints in
the Config decides whether dots are drawn on top of the line;
coordinated hover is attached to the points, not the line itself.
#AreaFill Source
type AreaFill = { baseline :: Number, opacity :: Number }Fill a closed region under each line down to baseline (in data
space). Nothing on Config.areaFill = a plain line chart. Just _ =
an area chart. The fill colour is always the line's own colour (the
series colour, or theme.markFill for single-series) — opacity
controls intensity. There is no separate AreaChart module by design.
#Config Source
type Config :: Row Type -> Typetype Config r = { annotations :: Array Annotation, areaFill :: Maybe AreaFill, encoding :: Encoding r, highlightGroup :: Maybe String, labels :: AxisLabels, layout :: Layout, lineWidth :: Number, pointRadius :: Number, showPoints :: Boolean, xDomain :: Maybe { max :: Number, min :: Number }, yDomain :: Maybe { max :: Number, min :: Number } }
- 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