Hylograph.Components.ScatterPlot
- Package
- purescript-hylograph-components
- Repository
- afcondon/purescript-hylograph-components
Scatter plot component.
Second preset in the library. Same contract shape as BarChart: typed
Config record, Foldable-polymorphic data, a pure scatterPlot function
producing a HATS Tree, and a Halogen Frame wrapper in a sibling
module.
Five encoding channels: x, y (Number), key + tooltip (String),
and radius (Number, per-row point size — use \_ -> 5.0 for uniform
dots, or a projection to encode a third dimension).
Axis domains are inferred from data by default; override via
xDomain / yDomain when you want fixed axes or padded ranges.
#ColorBy Source
type ColorBy :: Row Type -> Typetype ColorBy r = { domain :: Maybe { max :: Number, min :: Number }, interpolator :: Number -> String, value :: Record r -> Number }
Continuous colour encoding. When present in Encoding.colorBy, each
point's fill colour is derived by normalising value against domain
and looking the result up in the interpolator (e.g.
Hylograph.Scale.Sequential.interpolateViridis). Takes precedence over
series-based colouring.
domain: Nothing means auto-derive min/max from the dataset.
#Config Source
type Config :: Row Type -> Typetype Config r = { annotations :: Array Annotation, encoding :: Encoding r, highlightGroup :: Maybe String, jitter :: Maybe Jitter, labels :: AxisLabels, layout :: Layout, 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