Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- defaultRender :: SvgOptions -> (HudOptions, [Chart Double]) -> Text
- 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]] -> (HudOptions, [Chart Double])
- digitChart :: Text -> [UTCTime] -> [Double] -> (HudOptions, [Chart Double])
- scatterChart :: [[Point Double]] -> [Chart Double]
- histChart :: Text -> Maybe [Text] -> Range Double -> Int -> [Double] -> (HudOptions, [Chart Double])
- quantileHistChart :: Text -> Maybe [Text] -> [Double] -> [Double] -> (HudOptions, [Chart Double])
- digitPixelChart :: PixelStyle -> PixelLegendOptions -> (Text, Text, Text) -> [Text] -> [(Int, Int)] -> [Chart Double]
- tableChart :: [[Text]] -> [Chart Double]
- scanChart :: (Rate -> Mealy a Double) -> [Rate] -> Int -> [a] -> [Chart Double]
- scanHud :: Double -> Text -> [Double] -> HudOptions
- foldScanChart :: (Rate -> Mealy a b) -> (Rate -> Mealy b Double) -> [Rate] -> [a] -> [Chart Double]
- scannerChart :: Int -> [Double] -> (Double -> [a] -> [Double]) -> [a] -> [Chart Double]
- scannersChart :: Int -> Double -> (Double -> [a] -> [[Double]]) -> [a] -> [Chart Double]
- tsRatesHud :: Text -> [Double] -> [UTCTime] -> HudOptions
- write' :: Text -> IO ()
- tryChart :: Read a => Text -> (a -> Text) -> Either Text Text
chart-svg or chart-various transfers
defaultRender :: SvgOptions -> (HudOptions, [Chart Double]) -> Text Source #
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 [SpotPoint 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 [SpotPoint 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 #
tsAxes :: [UTCTime] -> [AxisOptions] Source #
titlesHud :: Text -> Text -> Text -> HudOptions Source #
common pattern of chart title, x-axis title and y-axis title
gpalette :: [(GlyphShape, Double)] Source #
gpaletteStyle :: Double -> [GlyphStyle] Source #
generic charts
quantileChart :: Text -> [Text] -> [LineStyle] -> [AxisOptions] -> [[Double]] -> (HudOptions, [Chart Double]) Source #
digitChart :: Text -> [UTCTime] -> [Double] -> (HudOptions, [Chart Double]) Source #
a chart showing a time series of digitized values (eg this return was a 30th percentile)
histChart :: Text -> Maybe [Text] -> Range Double -> Int -> [Double] -> (HudOptions, [Chart Double]) Source #
histogram chart
:: Text | |
-> Maybe [Text] | |
-> [Double] | quantiles |
-> [Double] | quantile values |
-> (HudOptions, [Chart Double]) |
a chart drawing a histogram based on quantile information
digitPixelChart :: PixelStyle -> PixelLegendOptions -> (Text, Text, Text) -> [Text] -> [(Int, Int)] -> [Chart Double] Source #
pixel chart of digitized vs digitized counts
scanner charts
scanChart :: (Rate -> Mealy a Double) -> [Rate] -> Int -> [a] -> [Chart Double] Source #
simple scan of a time series through a Mealy using a list of rates, with time dimension of [0..]
scanHud :: Double -> Text -> [Double] -> HudOptions Source #
common line chart hud with rates as a legend
foldScanChart :: (Rate -> Mealy a b) -> (Rate -> Mealy b Double) -> [Rate] -> [a] -> [Chart Double] Source #
fold over a scanned time series by rates
scannerChart :: Int -> [Double] -> (Double -> [a] -> [Double]) -> [a] -> [Chart Double] Source #
take a decaying scanner, a list of decay rates, and create linecharts from an [a]
scannersChart :: Int -> Double -> (Double -> [a] -> [[Double]]) -> [a] -> [Chart Double] Source #
take a multi-decaying scanner, a decay rate, and create linecharts from an [a]
tsRatesHud :: Text -> [Double] -> [UTCTime] -> HudOptions Source #
a Hud for time series with a rates legend