chart-unit-0.6.3.0: Native haskell charts.

Safe HaskellNone
LanguageHaskell2010

Chart.Svg

Contents

Description

Svg rendering

Synopsis

Documentation

data SvgOptions Source #

ToDo: Mathjax capability would be awesome but the html that mathjax generates is not valid svg unless it is wrapped in foreignObject instead of text. foreignObject also cant be a sub-element of a text element. This means extensive digging into Diagrams innards etc

https://stackoverflow.com/questions/15962325/mathjax-inside-svg

Svg options

Constructors

SvgOptions 

toText :: SvgOptions -> Chart SVG -> Text Source #

render svg to text

toFile :: FilePath -> Element -> IO () Source #

write an svg to file

fileSvg :: FilePath -> SvgOptions -> Chart SVG -> IO () Source #

write a chart to an svg file

scratch pad

scratch :: Chart SVG -> IO () Source #

a scratch pad