Chart-cairo-1.0: Cairo backend for Charts.

Safe HaskellNone

Graphics.Rendering.Chart.Backend.Cairo

Description

The backend to render charts with cairo.

Synopsis

Documentation

runBackendSource

Arguments

:: CEnv

Environment to start rendering with.

-> ChartBackend a

Chart render code.

-> Render a

Cairo render code.

Run this backends renderer.

defaultEnv :: AlignmentFns -> CEnvSource

Produce a environment with no transformation and clipping. It will use the default styles.

renderableToPNGFile :: Renderable a -> Int -> Int -> FilePath -> IO (PickFn a)Source

Output the given renderable to a PNG file of the specifed size (in pixels), to the specified file.

renderableToPDFFile :: Renderable a -> Int -> Int -> FilePath -> IO ()Source

Output the given renderable to a PDF file of the specifed size (in points), to the specified file.

renderableToPSFile :: Renderable a -> Int -> Int -> FilePath -> IO ()Source

Output the given renderable to a postscript file of the specifed size (in points), to the specified file.

renderableToSVGFile :: Renderable a -> Int -> Int -> FilePath -> IO ()Source

Output the given renderable to an SVG file of the specifed size (in points), to the specified file.

sparkLineToPDF :: FilePath -> SparkLine -> IO ()Source

Generate a PDF for the sparkline, using its natural size.

sparkLineToPNG :: FilePath -> SparkLine -> IO (PickFn ())Source

Generate a PNG for the sparkline, using its natural size.