chart-svg-0.0.3: Charts in SVG

Safe HaskellNone
LanguageHaskell2010

Chart.Svg

Synopsis

Documentation

svg :: Chart Double -> Svg () Source #

convert a Chart to svg

svgt :: Chart Double -> (TextStyle, Text) -> Svg () Source #

add a tooltip to a chart

chartDef :: Chart a -> [Svg ()] Source #

chartDefs :: [Chart a] -> Svg () Source #

get chart definitions

styleBox :: Chart Double -> Maybe (Rect Double) Source #

the geometric dimensions of a Chart inclusive of style geometry

styleBoxes :: [Chart Double] -> Maybe (Rect Double) Source #

the extra geometric dimensions of a [Chart]

styleBoxText :: TextStyle -> Text -> Point Double -> Rect Double Source #

the extra area from text styling

styleBoxGlyph :: GlyphStyle -> Rect Double Source #

the extra area from glyph styling