chart-svg-0.6.0.0: Charting library targetting SVGs.
Safe HaskellSafe-Inferred
LanguageGHC2021

Chart.Compound

Description

Combine charts that share a common canvas.

Synopsis

Documentation

runHudCompoundWith Source #

Arguments

:: ChartBox

initial canvas

-> [(DataBox, [Hud], ChartTree)]

databox-huds-chart tuples representing independent chart trees occupying the same canvas space

-> ChartTree

integrated chart tree

Combine a collection of chart trees that share a canvas box.

addHudCompound :: ChartAspect -> [(HudOptions, ChartTree)] -> ChartTree Source #

Decorate a ChartTree with HudOptions, merging the individual hud options.

compoundMerge :: [ChartOptions] -> ChartOptions Source #

Merge a list of ChartOptions, treating each element as charts to be merged. Note that this routine mempties the hud options and converts them to charts.

writeChartOptionsCompound :: FilePath -> [ChartOptions] -> IO () Source #

Write multiple charts to a single file sharing the canvas.

markupChartOptionsCompound :: [ChartOptions] -> Markup Source #

Create Markup representing multiple charts sharing a common canvas.