chart-svg-0.2.0: Charting library targetting SVGs.
Safe HaskellNone
LanguageHaskell2010

Chart.Reanimate

Description

Integration of reanimate and chart-svg

Synopsis

Documentation

chartSvgTree :: ChartSvg -> Tree Source #

Render a ChartSvg to a Tree

Alters the reanimate default viewbox of 16:9, and simplifies the SVG.

chartSvgTreeDef :: ChartSvg -> Tree Source #

Render a ChartSvg to a Tree with the default viewbox

chartSvgTrees :: ChartSvg -> ([Tree], Rect Double, Point Double) Source #

Render a ChartSvg to Trees, the fitted chart viewbox, and the suggested SVG dimensions

chartSvgTreesDef :: ChartSvg -> [Tree] Source #

Render a ChartSvg to Trees at the standard reanimate viewbox

writeChartSvgTree :: FilePath -> ChartSvg -> IO () Source #

write a ChartSvg to a file via conversion to a reanimate Tree structure.

tree :: Chart Double -> Tree Source #

convert a Chart to a Tree

toPixelRGBA8 :: Colour -> PixelRGBA8 Source #

Convert to reanimate color primitive.