chart-svg-0.0.3: Charts in SVG

Safe HaskellNone
LanguageHaskell2010

Chart.Render

Synopsis

Documentation

scaleCharts :: Rect Double -> [Chart Double] -> (Rect Double, [Chart Double]) Source #

scale chart data, projecting to the supplied Rect, and expanding the resultant Rect for chart style if necessary.

Note that this modifies the underlying chart data. FIXME: do a divide to make an exact fit

frameChart :: RectStyle -> Double -> [Chart Double] -> [Chart Double] Source #

overlay a frame on some charts with some additive padding between

padChart :: Double -> [Chart Double] -> [Chart Double] Source #

additively pad a [Chart]

renderChartsWith :: SvgOptions -> [Chart Double] -> Text Source #

render Charts with the supplied options.

renderCharts :: [Chart Double] -> Text Source #

render charts with the default options.

renderCharts_ :: CssOptions -> Point Double -> Rect Double -> [Chart Double] -> Text Source #

render Charts with the supplied css options, size and viewbox.

writeCharts_ :: FilePath -> CssOptions -> Point Double -> Rect Double -> [Chart Double] -> IO () Source #

write Charts to a file with the supplied css options, size and viewbox.

renderHudChart :: SvgOptions -> [Hud Double] -> [Chart Double] -> Text Source #

Render some huds and charts.

renderHudOptionsChart :: SvgOptions -> HudOptions -> [Hud Double] -> [Chart Double] -> Text Source #

Render a chart using the supplied svg and hud config.

svg2_ :: Term [Attribute] (s -> t) => s -> t Source #

svg element + svg 2 attributes