chart-svg-various-0.0.2: See readme.md

Safe HaskellNone
LanguageHaskell2010

Chart.Various

Contents

Synopsis

chart-svg or chart-various transfers

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..]

stdLines :: Double -> [LineStyle] Source #

Can of the main palette

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

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

generic charts

digitChart :: Text -> [UTCTime] -> [Double] -> (HudOptions, [Chart Double]) Source #

a chart showing a time series of digitized values (eg this return was a 30th percentile)

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

scatter chart

histChart :: Text -> Maybe [Text] -> Range Double -> Int -> [Double] -> (HudOptions, [Chart Double]) Source #

histogram chart

quantileHistChart Source #

Arguments

:: 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

chartAny

write' :: Text -> IO () Source #

tryChart :: Read a => Text -> (a -> Text) -> Either Text Text Source #