Chart-cairo-1.2.4: 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.

-> ChartBackend a

Chart render code.

-> Render a

Cairo render code.

Run this backends renderer.

renderableToFile :: FileOptions -> Renderable a -> FilePath -> 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.

defaultEnv :: AlignmentFns -> CEnv Source

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

cBackendToFile :: FileOptions -> ChartBackend 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.

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

Deprecated: use renderableToFile

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

Deprecated: use renderableToFile

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

Deprecated: use renderableToFile

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

Deprecated: use renderableToFile

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

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

Deprecated: use renderableToFile

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

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

Deprecated: use renderableToFile

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