Safe Haskell | None |
---|
Graphics.Rendering.Chart.Backend.Cairo
Description
The backend to render charts with cairo.
- data CairoBackend
- runBackend :: CEnv -> ChartBackend a -> Render a
- renderToFile :: ChartBackend a -> CairoBackend -> Int -> Int -> FilePath -> IO ()
- defaultEnv :: AlignmentFns -> CEnv
- renderableToPNGFile :: Renderable a -> Int -> Int -> FilePath -> IO (PickFn a)
- renderableToPDFFile :: Renderable a -> Int -> Int -> FilePath -> IO ()
- renderableToPSFile :: Renderable a -> Int -> Int -> FilePath -> IO ()
- renderableToSVGFile :: Renderable a -> Int -> Int -> FilePath -> IO ()
- sparkLineToPDF :: FilePath -> SparkLine -> IO ()
- sparkLineToPNG :: FilePath -> SparkLine -> IO (PickFn ())
Documentation
Arguments
:: CEnv | Environment to start rendering with. |
-> ChartBackend a | Chart render code. |
-> Render a | Cairo render code. |
Run this backends renderer.
renderToFile :: ChartBackend a -> CairoBackend -> Int -> Int -> FilePath -> IO ()Source
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.