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

MaintainerDavid Sorokin <>
Safe HaskellNone



Tested with: GHC 7.6.3

The module defines DeviationChartView that saves the deviation chart in 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.

deviationChartDescription :: String

This is a description used in 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"
deviationChartSeries :: [Either String String]

It contains the labels of data plotted on the chart.

deviationChartPlotTitle :: String

This is a title used in the chart. It may include special variable $TITLE.

An example is

   deviationChartPlotTitle = "$TITLE"
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 may 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 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.

deviationChartBottomAxis :: LayoutAxis Double -> LayoutAxis Double

A transformation of the bottom axis, after title time is added.

deviationChartLayout :: LayoutLR Double Double Double -> LayoutLR Double Double Double

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

defaultDeviationChartView :: DeviationChartViewSource

The default deviation chart view.