aivika-experiment-chart-4.2: Simulation experiments with charting for the Aivika library

CopyrightCopyright (c) 2012-2015, David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

Simulation.Aivika.Experiment.Chart.Types

Description

Tested with: GHC 7.10.1

The module defines a type class for rendering charts.

Synopsis

Documentation

class ChartRendering r where Source

A type class of chart renderers.

Methods

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.