chart-svg-0.2.3: Charting library targetting SVGs.
Safe HaskellNone
LanguageHaskell2010

Chart.Various

Description

Various common chart patterns.

Synopsis

sub-chart patterns

xify :: [Double] -> [Point Double] Source #

convert from [a] to [Point a], by adding the index as the x axis

xify' :: [Double] -> [XY Double] Source #

convert from [a] to [XY a], by adding the index as the x axis

yify :: [Double] -> [Point Double] Source #

convert from [a] to [Point a], by adding the index as the y axis

yify' :: [Double] -> [XY Double] Source #

convert from [a] to [XY a], by adding the index as the y axis

addLineX :: Double -> LineStyle -> [Chart Double] -> [Chart Double] Source #

add a horizontal line at y

addLineY :: Double -> LineStyle -> [Chart Double] -> [Chart Double] Source #

add a verticle line at x

stdLineChart :: Double -> [Colour] -> [[Double]] -> [Chart Double] Source #

interpret a [[Double]] as a series of lines with x coordinates of [0..]

stdLines :: Double -> [LineStyle] Source #

Can of the main palette

lineLegend :: Double -> [Text] -> [Colour] -> (LegendOptions, [(Annotation, Text)]) Source #

Legend template for a line chart.

tsAxes :: [UTCTime] -> [AxisOptions] Source #

Create a hud that has time as the x-axis, based on supplied days, and a rounded yaxis.

titlesHud :: Text -> Text -> Text -> HudOptions Source #

common pattern of chart title, x-axis title and y-axis title

gpalette :: [(GlyphShape, Double)] Source #

Glyph palette

gpaletteStyle :: Double -> [GlyphStyle] Source #

GlyphStyle palette

blendMidLineStyles :: Int -> Double -> (Colour, Colour) -> [LineStyle] Source #

blendMidLineStyle n w produces n lines of width w interpolated between two colors.

chart patterns

quantileChart :: Text -> [Text] -> [LineStyle] -> [AxisOptions] -> [[Double]] -> ChartSvg Source #

Chart template for quantiles.

digitChart :: Text -> [UTCTime] -> [Double] -> ChartSvg Source #

No idea what this is really.

scatterChart :: [[Point Double]] -> [Chart Double] Source #

scatter chart

histChart :: Text -> Maybe [Text] -> Range Double -> Int -> [Double] -> ChartSvg Source #

histogram chart

quantileHistChart Source #

Arguments

:: Text 
-> Maybe [Text] 
-> [Double]

quantiles

-> [Double]

quantile values

-> ChartSvg 

a chart drawing a histogram based on quantile information

digitSurfaceChart :: SurfaceStyle -> SurfaceLegendOptions -> (Text, Text, Text) -> [Text] -> [(Int, Int)] -> [Chart Double] Source #

pixel chart of digitized vs digitized counts

tableChart :: [[Text]] -> [Chart Double] Source #

Chart for double list of Text.