Chart-cairo-1.8.2: Cairo backend for Charts.

Safe HaskellNone
LanguageHaskell98

Graphics.Rendering.Chart.Backend.Cairo

Description

The backend to render charts with cairo.

Synopsis

Documentation

data FileFormat Source #

Constructors

PNG 
SVG 
PS 
PDF 

data FileOptions Source #

Constructors

FileOptions 

Instances

runBackend Source #

Arguments

:: CEnv

Environment to start rendering with.

-> BackendProgram a

Chart render code.

-> Render a

Cairo render code.

Run this backends renderer.

renderableToFile :: FileOptions -> FilePath -> Renderable a -> IO (PickFn a) Source #

Generate an image file for the given renderable, at the specified path. Size and format are set through the FileOptions parameter.

toFile :: (Default r, ToRenderable r) => FileOptions -> FilePath -> EC r () -> IO () Source #

Generate an image file from from the state content of an EC computation. The state may have any type that is an instance of ToRenderable

defaultEnv :: AlignmentFns -> CEnv Source #

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

cBackendToFile :: FileOptions -> BackendProgram a -> FilePath -> IO a Source #

Generate an image file for the given drawing instructions, at the specified path. Size and format are set through the FileOptions parameter.