Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- scaleCharts :: Rect Double -> [Chart Double] -> (Rect Double, [Chart Double])
- frameChart :: RectStyle -> Double -> [Chart Double] -> [Chart Double]
- padChart :: Double -> [Chart Double] -> [Chart Double]
- getAspect :: SvgAspect -> [Chart Double] -> Double
- getViewbox :: SvgOptions -> [Chart Double] -> Rect Double
- getSize :: SvgOptions -> [Chart Double] -> Point Double
- renderToSvg :: CssOptions -> Point Double -> Rect Double -> [Chart Double] -> Svg ()
- renderChartsWith :: SvgOptions -> [Chart Double] -> Text
- renderCharts :: [Chart Double] -> Text
- renderCharts_ :: CssOptions -> Point Double -> Rect Double -> [Chart Double] -> Text
- writeChartsWith :: FilePath -> SvgOptions -> [Chart Double] -> IO ()
- writeCharts :: FilePath -> [Chart Double] -> IO ()
- writeCharts_ :: FilePath -> CssOptions -> Point Double -> Rect Double -> [Chart Double] -> IO ()
- renderHudChart :: SvgOptions -> [Hud Double] -> [Chart Double] -> Text
- renderHudOptionsChart :: SvgOptions -> HudOptions -> [Hud Double] -> [Chart Double] -> Text
- writeHudOptionsChart :: FilePath -> SvgOptions -> HudOptions -> [Hud Double] -> [Chart Double] -> IO ()
- svg2_ :: Term [Attribute] (s -> t) => s -> t
- cssCrisp :: Svg ()
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
getViewbox :: SvgOptions -> [Chart Double] -> Rect Double Source #
renderChartsWith :: SvgOptions -> [Chart Double] -> Text Source #
render Charts with the supplied options.
renderCharts_ :: CssOptions -> Point Double -> Rect Double -> [Chart Double] -> Text Source #
render Charts with the supplied css options, size and viewbox.
writeChartsWith :: FilePath -> SvgOptions -> [Chart Double] -> IO () Source #
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.
writeHudOptionsChart :: FilePath -> SvgOptions -> HudOptions -> [Hud Double] -> [Chart Double] -> IO () Source #