Safe Haskell | None |
---|---|
Language | Haskell2010 |
Various common chart patterns.
Synopsis
- xify :: [Double] -> [Point Double]
- xify' :: [Double] -> [XY Double]
- yify :: [Double] -> [Point Double]
- yify' :: [Double] -> [XY Double]
- addLineX :: Double -> LineStyle -> [Chart Double] -> [Chart Double]
- addLineY :: Double -> LineStyle -> [Chart Double] -> [Chart Double]
- stdLineChart :: Double -> [Colour] -> [[Double]] -> [Chart Double]
- stdLines :: Double -> [LineStyle]
- lineLegend :: Double -> [Text] -> [Colour] -> (LegendOptions, [(Annotation, Text)])
- tsAxes :: [UTCTime] -> [AxisOptions]
- titlesHud :: Text -> Text -> Text -> HudOptions
- gpalette :: [(GlyphShape, Double)]
- gpaletteStyle :: Double -> [GlyphStyle]
- blendMidLineStyles :: Int -> Double -> (Colour, Colour) -> [LineStyle]
- quantileChart :: Text -> [Text] -> [LineStyle] -> [AxisOptions] -> [[Double]] -> ChartSvg
- digitChart :: Text -> [UTCTime] -> [Double] -> ChartSvg
- scatterChart :: [[Point Double]] -> [Chart Double]
- histChart :: Text -> Maybe [Text] -> Range Double -> Int -> [Double] -> ChartSvg
- quantileHistChart :: Text -> Maybe [Text] -> [Double] -> [Double] -> ChartSvg
- digitSurfaceChart :: SurfaceStyle -> SurfaceLegendOptions -> (Text, Text, Text) -> [Text] -> [(Int, Int)] -> [Chart Double]
- tableChart :: [[Text]] -> [Chart Double]
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..]
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.
histChart :: Text -> Maybe [Text] -> Range Double -> Int -> [Double] -> ChartSvg Source #
histogram chart
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