Safe Haskell | None |
---|---|
Language | Haskell98 |
The backend to render charts with cairo.
- data FileFormat
- data FileOptions = FileOptions {
- _fo_size :: (Int, Int)
- _fo_format :: FileFormat
- runBackend :: CEnv -> ChartBackend a -> Render a
- renderableToFile :: FileOptions -> Renderable a -> FilePath -> IO (PickFn a)
- defaultEnv :: AlignmentFns -> CEnv
- fo_size :: Lens' FileOptions (Int, Int)
- fo_format :: Lens' FileOptions FileFormat
- cBackendToFile :: FileOptions -> ChartBackend a -> FilePath -> IO a
- 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
data FileOptions Source
FileOptions | |
|
:: 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.