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

MaintainerDavid Sorokin <>
Safe HaskellNone



Tested with: GHC 7.4.1

The module defines DeviationChartView that saves the deviation chart as the PNG file.



data DeviationChartView Source

Defines the View that saves the deviation chart in the PNG file.




deviationChartTitle :: String

This is a title used in HTML and chart.

deviationChartDescription :: String

This is a description in the HTML.

deviationChartWidth :: Int

The width of the chart.

deviationChartHeight :: Int

The height of the chart.

deviationChartFileName :: FileName

It defines the file name for the PNG file. It may include special variable $TITLE.

An example is

   deviationChartFileName = UniqueFileName "$TITLE", ".png"
deviationChartPredicate :: Dynamics Bool

It specifies the predicate that defines when we count data when plotting the chart.

deviationChartSeries :: [Either String String]

It contains the labels of data plotted in the chart.

deviationChartPlotLines :: [PlotLines Double Double -> PlotLines Double Double]

Probably, an infinite sequence of plot transformations based on which the plot is constructed for each series. Generally, it must not coincide with a sequence of labels as one label may denote a whole list or an array of data providers.

Here you can define a colour or style of of the plot lines.

deviationChartPlotFillBetween :: [PlotFillBetween Double Double -> PlotFillBetween Double Double]

Corresponds exactly to deviationChartPlotLines but used for plotting the deviation areas by the rule of 3-sigma, while the former is used for plotting the trends of the random processes.

deviationChartLayout :: Layout1 Double Double -> Layout1 Double Double

A transformation of the plot layout, where you can redefine the axes, for example.

defaultDeviationChartView :: DeviationChartViewSource

The default deviation chart view.