Safe Haskell | None |
---|---|
Language | Haskell2010 |
Chart.Types
- type Chart a = Renderable (Path V2 Double) a => QDiagram a V2 Double Any
- type Chart' a = (Renderable (Path V2 Double) a, Renderable (Text Double) a) => QDiagram a V2 Double Any
- data Aspect = Aspect {}
- aspect :: Double -> Aspect
- asquare :: Aspect
- sixbyfour :: Aspect
- golden :: Aspect
- widescreen :: Aspect
- data QChart a = QChart {}
- data Orientation
- data Placement
- data TickStyle
- = TickNone
- | TickLabels [Text]
- | TickRound Int
- | TickExact Int
- | TickPlaced [(Double, Text)]
- data Color = Color {}
- color :: Color -> AlphaColour Double
- uncolor :: AlphaColour Double -> Color
- opac :: Double -> Color -> Color
- opacs :: Double -> [Color] -> [Color]
- palette :: [Color]
- data AxisConfig = AxisConfig {
- _axisPad :: Double
- _axisOrientation :: Orientation
- _axisPlacement :: Placement
- _axisHeight :: Double
- _axisColor :: Color
- _axisMarkSize :: Double
- _axisMarkColor :: Color
- _axisInsideStrut :: Double
- _axisLabelStrut :: Double
- _axisTextSize :: Double
- _axisTextColor :: Color
- _axisTickStyle :: TickStyle
- _axisAlignedTextRight :: Double
- _axisAlignedTextBottom :: Double
- axisPad :: Lens' AxisConfig Double
- axisOrientation :: Lens' AxisConfig Orientation
- axisPlacement :: Lens' AxisConfig Placement
- axisHeight :: Lens' AxisConfig Double
- axisColor :: Lens' AxisConfig Color
- axisMarkSize :: Lens' AxisConfig Double
- axisMarkColor :: Lens' AxisConfig Color
- axisInsideStrut :: Lens' AxisConfig Double
- axisLabelStrut :: Lens' AxisConfig Double
- axisTextSize :: Lens' AxisConfig Double
- axisTextColor :: Lens' AxisConfig Color
- axisTickStyle :: Lens' AxisConfig TickStyle
- axisAlignedTextRight :: Lens' AxisConfig Double
- axisAlignedTextBottom :: Lens' AxisConfig Double
- data ChartConfig = ChartConfig {
- _chartPad :: Double
- _chartAxes :: [AxisConfig]
- _chartRange :: Maybe (Rect Double)
- _chartAspect :: Aspect
- _chartCanvasColor :: Color
- chartPad :: Lens' ChartConfig Double
- chartAxes :: Lens' ChartConfig [AxisConfig]
- chartRange :: Lens' ChartConfig (Maybe (Rect Double))
- chartAspect :: Lens' ChartConfig Aspect
- chartCanvasColor :: Lens' ChartConfig Color
- data LineConfig = LineConfig {
- _lineSize :: Double
- _lineColor :: Color
- lineSize :: Lens' LineConfig Double
- lineColor :: Lens' LineConfig Color
- data ScatterConfig = ScatterConfig {}
- scatterSize :: Lens' ScatterConfig Double
- scatterColor :: Lens' ScatterConfig Color
- data RectConfig = RectConfig {}
- rectBorderWidth :: Lens' RectConfig Double
- rectBorderColor :: Lens' RectConfig Color
- rectColor :: Lens' RectConfig Color
- data ArrowConfig a = ArrowConfig {
- _arrowMinHeadSize :: a
- _arrowMaxHeadSize :: a
- _arrowHeadSize :: a
- _arrowMinStaffLength :: a
- _arrowMaxStaffLength :: a
- _arrowStaffLength :: a
- _arrowMinStaffWidth :: a
- _arrowMaxStaffWidth :: a
- _arrowStaffWidth :: a
- _arrowColor :: Color
- arrowMinHeadSize :: forall a. Lens' (ArrowConfig a) a
- arrowMaxHeadSize :: forall a. Lens' (ArrowConfig a) a
- arrowHeadSize :: forall a. Lens' (ArrowConfig a) a
- arrowMinStaffLength :: forall a. Lens' (ArrowConfig a) a
- arrowMaxStaffLength :: forall a. Lens' (ArrowConfig a) a
- arrowStaffLength :: forall a. Lens' (ArrowConfig a) a
- arrowMinStaffWidth :: forall a. Lens' (ArrowConfig a) a
- arrowMaxStaffWidth :: forall a. Lens' (ArrowConfig a) a
- arrowStaffWidth :: forall a. Lens' (ArrowConfig a) a
- arrowColor :: forall a. Lens' (ArrowConfig a) Color
- data PixelConfig = PixelConfig {
- _pixelGradient :: Range Color
- _pixelGrain :: V2 Int
- pixelGradient :: Lens' PixelConfig (Range Color)
- pixelGrain :: Lens' PixelConfig (V2 Int)
- data TextConfig
- textPad :: Lens' TextConfig Double
- textOrientation :: Lens' TextConfig Orientation
- textPlacement :: Lens' TextConfig Placement
- textSize :: Lens' TextConfig Double
- textColor :: Lens' TextConfig Color
- textRight :: Lens' TextConfig Double
- textBottom :: Lens' TextConfig Double
Documentation
type Chart a = Renderable (Path V2 Double) a => QDiagram a V2 Double Any Source #
a Chart has a concrete scale, and combinatory options amount to mappend (on top of) and beside
type Chart' a = (Renderable (Path V2 Double) a, Renderable (Text Double) a) => QDiagram a V2 Double Any Source #
an alternative synonym where text is involved.
the rendering aspect (or plane) of the chart. Wrapped to distinguish this from a plain XY
widescreen :: Aspect Source #
The concrete nature of a QDiagram, and a desire to scale data and hud items naturally, a QChart is mostly a late binding of the Aspect that the chart is to be projected on to and the data.
data Orientation Source #
Constructors
TickNone | |
TickLabels [Text] | |
TickRound Int | |
TickExact Int | |
TickPlaced [(Double, Text)] |
data AxisConfig Source #
Constructors
AxisConfig | |
Fields
|
Instances
data ChartConfig Source #
Constructors
ChartConfig | |
Fields
|
Instances
chartRange :: Lens' ChartConfig (Maybe (Rect Double)) Source #
data LineConfig Source #
Constructors
LineConfig | |
Fields
|
Instances
data ScatterConfig Source #
Constructors
ScatterConfig | |
Fields
|
Instances
data ArrowConfig a Source #
Constructors
ArrowConfig | |
Fields
|
Instances
arrowMinHeadSize :: forall a. Lens' (ArrowConfig a) a Source #
arrowMaxHeadSize :: forall a. Lens' (ArrowConfig a) a Source #
arrowHeadSize :: forall a. Lens' (ArrowConfig a) a Source #
arrowMinStaffLength :: forall a. Lens' (ArrowConfig a) a Source #
arrowMaxStaffLength :: forall a. Lens' (ArrowConfig a) a Source #
arrowStaffLength :: forall a. Lens' (ArrowConfig a) a Source #
arrowMinStaffWidth :: forall a. Lens' (ArrowConfig a) a Source #
arrowMaxStaffWidth :: forall a. Lens' (ArrowConfig a) a Source #
arrowStaffWidth :: forall a. Lens' (ArrowConfig a) a Source #
arrowColor :: forall a. Lens' (ArrowConfig a) Color Source #
data PixelConfig Source #
Constructors
PixelConfig | |
Fields
|
Instances
pixelGrain :: Lens' PixelConfig (V2 Int) Source #
data TextConfig Source #
Instances