-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A set of native haskell charts. -- -- readme.lhs @package chart-unit @version 0.1.0.0 module Chart.Types type ChartSvg = QDiagram SVG V2 Double Any type ChartPng = QDiagram Rasterific V2 Double Any fileSvg :: FilePath -> (Double, Double) -> ChartSvg -> IO () filePng :: FilePath -> (Double, Double) -> ChartPng -> IO () rgba :: (Floating a, Ord a) => (a, a, a, a) -> AlphaColour a data Orientation X :: Orientation Y :: Orientation data Placement AxisLeft :: Placement AxisRight :: Placement AxisTop :: Placement AxisBottom :: Placement data TickStyle TickNone :: TickStyle TickLabels :: [Text] -> TickStyle TickNumber :: Int -> TickStyle data AxisConfig AxisConfig :: Orientation -> Placement -> Double -> AlphaColour Double -> Double -> AlphaColour Double -> Double -> Double -> AlphaColour Double -> TickStyle -> Double -> Double -> AxisConfig [_axisOrientation] :: AxisConfig -> Orientation [_axisPlacement] :: AxisConfig -> Placement [_axisHeight] :: AxisConfig -> Double [_axisColor] :: AxisConfig -> AlphaColour Double [_axisMarkSize] :: AxisConfig -> Double [_axisMarkColor] :: AxisConfig -> AlphaColour Double [_axisStrutSize] :: AxisConfig -> Double [_axisTextSize] :: AxisConfig -> Double [_axisTextColor] :: AxisConfig -> AlphaColour Double [_axisTickStyle] :: AxisConfig -> TickStyle [_axisAlignedTextRight] :: AxisConfig -> Double [_axisAlignedTextBottom] :: AxisConfig -> Double axisTickStyle :: Lens' AxisConfig TickStyle axisTextSize :: Lens' AxisConfig Double axisTextColor :: Lens' AxisConfig (AlphaColour Double) axisStrutSize :: Lens' AxisConfig Double axisPlacement :: Lens' AxisConfig Placement axisOrientation :: Lens' AxisConfig Orientation axisMarkSize :: Lens' AxisConfig Double axisMarkColor :: Lens' AxisConfig (AlphaColour Double) axisHeight :: Lens' AxisConfig Double axisColor :: Lens' AxisConfig (AlphaColour Double) axisAlignedTextRight :: Lens' AxisConfig Double axisAlignedTextBottom :: Lens' AxisConfig Double data ChartConfig ChartConfig :: Double -> AlphaColour Double -> [AxisConfig] -> ChartConfig [_chartPad] :: ChartConfig -> Double [_chartColor] :: ChartConfig -> AlphaColour Double [_chartAxes] :: ChartConfig -> [AxisConfig] chartPad :: Lens' ChartConfig Double chartColor :: Lens' ChartConfig (AlphaColour Double) chartAxes :: Lens' ChartConfig [AxisConfig] data ScatterConfig ScatterConfig :: ChartConfig -> Double -> ScatterConfig [_scatterChart] :: ScatterConfig -> ChartConfig [_scatterSize] :: ScatterConfig -> Double scatterSize :: Lens' ScatterConfig Double scatterChart :: Lens' ScatterConfig ChartConfig data BarConfig BarConfig :: ChartConfig -> Double -> BarConfig [_barChart] :: BarConfig -> ChartConfig [_barSep] :: BarConfig -> Double barSep :: Lens' BarConfig Double barChart :: Lens' BarConfig ChartConfig data LineConfig LineConfig :: ChartConfig -> Double -> LineConfig [_lineChart] :: LineConfig -> ChartConfig [_lineSize] :: LineConfig -> Double lineSize :: Lens' LineConfig Double lineChart :: Lens' LineConfig ChartConfig data OneLine OneLine :: AlphaColour Double -> Double -> OneLine [_lColor] :: OneLine -> AlphaColour Double [_lSize] :: OneLine -> Double lSize :: Lens' OneLine Double lColor :: Lens' OneLine (AlphaColour Double) data LinesConfig LinesConfig :: ChartConfig -> [OneLine] -> LinesConfig [_linesChart] :: LinesConfig -> ChartConfig [_linesLines] :: LinesConfig -> [OneLine] linesLines :: Lens' LinesConfig [OneLine] linesChart :: Lens' LinesConfig ChartConfig instance Data.Default.Class.Default Chart.Types.LinesConfig instance Data.Default.Class.Default Chart.Types.OneLine instance Data.Default.Class.Default Chart.Types.LineConfig instance Data.Default.Class.Default Chart.Types.BarConfig instance Data.Default.Class.Default Chart.Types.ScatterConfig instance Data.Default.Class.Default Chart.Types.ChartConfig instance Data.Default.Class.Default Chart.Types.AxisConfig module Chart.Unit range1D :: (Fractional t, Ord t, Foldable f) => f t -> (t, t) range1Ds :: (Fractional t, Ord t, Foldable f, Foldable f') => f' (f t) -> (t, t) unit :: (Fractional b, Functor f, Ord b, Foldable f) => f b -> f b units :: (Fractional b, Functor f, Ord b, Foldable f, Functor f', Foldable f') => f' (f b) -> f' (f b) unitXY :: (Fractional b, Fractional a, Ord b, Ord a) => [(a, b)] -> [(a, b)] unitsXY :: (Fractional a, Ord a, Fractional b, Ord b) => [[(a, b)]] -> [[(a, b)]] chartXY :: (Renderable (Path V2 Double) a, Renderable (Text Double) a) => ChartConfig -> ([(Double, Double)] -> QDiagram a V2 Double Any) -> [(Double, Double)] -> QDiagram a V2 Double Any scatter :: (Typeable (N r), Monoid r, Semigroup r, Transformable r, HasStyle r, HasOrigin r, TrailLike r, V r ~ V2, N r ~ Double) => ScatterConfig -> [(N r, N r)] -> r scatterXY :: (Renderable (Path V2 Double) a, Renderable (Text Double) a) => ScatterConfig -> [(Double, Double)] -> QDiagram a V2 Double Any barRange :: (Renderable (Path V2 Double) a, Renderable (Text Double) a) => BarConfig -> [(Double, Double)] -> QDiagram a V2 Double Any barLabelled :: (Renderable (Path V2 Double) a, Renderable (Text Double) a) => BarConfig -> [Double] -> [Text] -> QDiagram a V2 Double Any bars :: (Renderable (Path V2 Double) a) => BarConfig -> [Double] -> QDiagram a V2 Double Any line :: (Renderable (Path V2 Double) a) => [(Double, Double)] -> QDiagram a V2 Double Any lines :: (Renderable (Path V2 Double) a) => LinesConfig -> [[(Double, Double)]] -> QDiagram a V2 Double Any lineXY :: (Renderable (Path V2 Double) a, Renderable (Text Double) a) => LineConfig -> [(Double, Double)] -> QDiagram a V2 Double Any linesXY :: (Renderable (Text Double) a, Renderable (Path V2 Double) a) => LinesConfig -> [[(Double, Double)]] -> QDiagram a V2 Double Any axisXY :: (Renderable (Text Double) a, Renderable (Path V2 Double) a) => AxisConfig -> (Double, Double) -> QDiagram a V2 Double Any mkTicks :: (Double, Double) -> Int -> [Double] mkTicks' :: (Double, Double) -> Int -> (Double, Double, Int)