module Simulation.Aivika.Experiment.Chart.Backend.Cairo
(CairoRenderer(..)) where
import Graphics.Rendering.Chart
import Graphics.Rendering.Chart.Backend.Cairo
import Simulation.Aivika.Experiment
import Simulation.Aivika.Experiment.Chart
data CairoRenderer = CairoRenderer FileFormat
instance ChartRendering CairoRenderer where
renderableChartExtension (CairoRenderer PNG) = ".png"
renderableChartExtension (CairoRenderer SVG) = ".svg"
renderableChartExtension (CairoRenderer PS) = ".ps"
renderableChartExtension (CairoRenderer PDF) = ".pdf"
renderChart (CairoRenderer format) size =
renderableToFile (FileOptions size format)