Copyright | Copyright (c) 2012-2017 David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Tested with: GHC 8.0.1
The module defines a type class for rendering charts.
Synopsis
- class ChartRendering r where
- renderableChartExtension :: r -> String
- renderChart :: r -> (Int, Int) -> FilePath -> Renderable c -> IO (PickFn c)
- renderingLayoutLR :: r -> LayoutLR Double Double Double -> LayoutLR Double Double Double
- renderingLayout :: r -> Layout Double Double -> Layout Double Double
Documentation
class ChartRendering r where Source #
A type class of chart renderers.
renderableChartExtension :: r -> String Source #
The file extension used when rendering.
renderChart :: r -> (Int, Int) -> FilePath -> Renderable c -> IO (PickFn c) Source #
Generate an image file with the specified path for the given chart. The width and height are passed in the second argument to the function.
renderingLayoutLR :: r -> LayoutLR Double Double Double -> LayoutLR Double Double Double Source #
Return the rendering layout.
renderingLayout :: r -> Layout Double Double -> Layout Double Double Source #
Return the rendering layout.