packages feed

Chart 1.3.1 → 1.3.2

raw patch · 5 files changed

+41/−5 lines, 5 filesdep ~lensPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: lens

API changes (from Hackage documentation)

+ Graphics.Rendering.Chart.Easy: setShapes :: [PointShape] -> EC l ()
+ Graphics.Rendering.Chart.Layout: instance Ord x => ToRenderable (StackedLayouts x)
- Graphics.Rendering.Chart.Axis.Floating: la_labelf :: Lens (LinearAxisParams a_akqP) (LinearAxisParams a_allF) (a_akqP -> String) (a_allF -> String)
+ Graphics.Rendering.Chart.Axis.Floating: la_labelf :: Lens (LinearAxisParams a_akon) (LinearAxisParams a_aljd) (a_akon -> String) (a_aljd -> String)
- Graphics.Rendering.Chart.Axis.Floating: la_nLabels :: Lens' (LinearAxisParams a_akqP) Int
+ Graphics.Rendering.Chart.Axis.Floating: la_nLabels :: Lens' (LinearAxisParams a_akon) Int
- Graphics.Rendering.Chart.Axis.Floating: la_nTicks :: Lens' (LinearAxisParams a_akqP) Int
+ Graphics.Rendering.Chart.Axis.Floating: la_nTicks :: Lens' (LinearAxisParams a_akon) Int
- Graphics.Rendering.Chart.Axis.Floating: loga_labelf :: Iso (LogAxisParams a_akqO) (LogAxisParams a_alnp) (a_akqO -> String) (a_alnp -> String)
+ Graphics.Rendering.Chart.Axis.Floating: loga_labelf :: Iso (LogAxisParams a_akom) (LogAxisParams a_alkX) (a_akom -> String) (a_alkX -> String)
- Graphics.Rendering.Chart.Axis.Types: axis_grid :: Lens' (AxisData x_agWP) [x_agWP]
+ Graphics.Rendering.Chart.Axis.Types: axis_grid :: Lens' (AxisData x_agUf) [x_agUf]
- Graphics.Rendering.Chart.Axis.Types: axis_labels :: Lens' (AxisData x_agWP) [[(x_agWP, String)]]
+ Graphics.Rendering.Chart.Axis.Types: axis_labels :: Lens' (AxisData x_agUf) [[(x_agUf, String)]]
- Graphics.Rendering.Chart.Axis.Types: axis_ticks :: Lens' (AxisData x_agWP) [(x_agWP, Double)]
+ Graphics.Rendering.Chart.Axis.Types: axis_ticks :: Lens' (AxisData x_agUf) [(x_agUf, Double)]
- Graphics.Rendering.Chart.Axis.Types: axis_tropweiv :: Lens' (AxisData x_agWP) (Range -> Double -> x_agWP)
+ Graphics.Rendering.Chart.Axis.Types: axis_tropweiv :: Lens' (AxisData x_agUf) (Range -> Double -> x_agUf)
- Graphics.Rendering.Chart.Axis.Types: axis_viewport :: Lens' (AxisData x_agWP) (Range -> x_agWP -> Double)
+ Graphics.Rendering.Chart.Axis.Types: axis_viewport :: Lens' (AxisData x_agUf) (Range -> x_agUf -> Double)
- Graphics.Rendering.Chart.Axis.Types: axis_visibility :: Lens' (AxisData x_agWP) AxisVisibility
+ Graphics.Rendering.Chart.Axis.Types: axis_visibility :: Lens' (AxisData x_agUf) AxisVisibility
- Graphics.Rendering.Chart.Layout: laxis_generate :: Lens' (LayoutAxis x_aIUQ) (AxisFn x_aIUQ)
+ Graphics.Rendering.Chart.Layout: laxis_generate :: Lens' (LayoutAxis x_aIUB) (AxisFn x_aIUB)
- Graphics.Rendering.Chart.Layout: laxis_override :: Lens' (LayoutAxis x_aIUQ) (AxisData x_aIUQ -> AxisData x_aIUQ)
+ Graphics.Rendering.Chart.Layout: laxis_override :: Lens' (LayoutAxis x_aIUB) (AxisData x_aIUB -> AxisData x_aIUB)
- Graphics.Rendering.Chart.Layout: laxis_reverse :: Lens' (LayoutAxis x_aIUQ) Bool
+ Graphics.Rendering.Chart.Layout: laxis_reverse :: Lens' (LayoutAxis x_aIUB) Bool
- Graphics.Rendering.Chart.Layout: laxis_style :: Lens' (LayoutAxis x_aIUQ) AxisStyle
+ Graphics.Rendering.Chart.Layout: laxis_style :: Lens' (LayoutAxis x_aIUB) AxisStyle
- Graphics.Rendering.Chart.Layout: laxis_title :: Lens' (LayoutAxis x_aIUQ) String
+ Graphics.Rendering.Chart.Layout: laxis_title :: Lens' (LayoutAxis x_aIUB) String
- Graphics.Rendering.Chart.Layout: laxis_title_style :: Lens' (LayoutAxis x_aIUQ) FontStyle
+ Graphics.Rendering.Chart.Layout: laxis_title_style :: Lens' (LayoutAxis x_aIUB) FontStyle
- Graphics.Rendering.Chart.Layout: layout_background :: Lens' (Layout x_aIUL y_aIUM) FillStyle
+ Graphics.Rendering.Chart.Layout: layout_background :: Lens' (Layout x_aIUw y_aIUx) FillStyle
- Graphics.Rendering.Chart.Layout: layout_bottom_axis_visibility :: Lens' (Layout x_aIUL y_aIUM) AxisVisibility
+ Graphics.Rendering.Chart.Layout: layout_bottom_axis_visibility :: Lens' (Layout x_aIUw y_aIUx) AxisVisibility
- Graphics.Rendering.Chart.Layout: layout_grid_last :: Lens' (Layout x_aIUL y_aIUM) Bool
+ Graphics.Rendering.Chart.Layout: layout_grid_last :: Lens' (Layout x_aIUw y_aIUx) Bool
- Graphics.Rendering.Chart.Layout: layout_left_axis_visibility :: Lens' (Layout x_aIUL y_aIUM) AxisVisibility
+ Graphics.Rendering.Chart.Layout: layout_left_axis_visibility :: Lens' (Layout x_aIUw y_aIUx) AxisVisibility
- Graphics.Rendering.Chart.Layout: layout_legend :: Lens' (Layout x_aIUL y_aIUM) (Maybe LegendStyle)
+ Graphics.Rendering.Chart.Layout: layout_legend :: Lens' (Layout x_aIUw y_aIUx) (Maybe LegendStyle)
- Graphics.Rendering.Chart.Layout: layout_margin :: Lens' (Layout x_aIUL y_aIUM) Double
+ Graphics.Rendering.Chart.Layout: layout_margin :: Lens' (Layout x_aIUw y_aIUx) Double
- Graphics.Rendering.Chart.Layout: layout_plot_background :: Lens' (Layout x_aIUL y_aIUM) (Maybe FillStyle)
+ Graphics.Rendering.Chart.Layout: layout_plot_background :: Lens' (Layout x_aIUw y_aIUx) (Maybe FillStyle)
- Graphics.Rendering.Chart.Layout: layout_plots :: Lens' (Layout x_aIUL y_aIUM) [Plot x_aIUL y_aIUM]
+ Graphics.Rendering.Chart.Layout: layout_plots :: Lens' (Layout x_aIUw y_aIUx) [Plot x_aIUw y_aIUx]
- Graphics.Rendering.Chart.Layout: layout_right_axis_visibility :: Lens' (Layout x_aIUL y_aIUM) AxisVisibility
+ Graphics.Rendering.Chart.Layout: layout_right_axis_visibility :: Lens' (Layout x_aIUw y_aIUx) AxisVisibility
- Graphics.Rendering.Chart.Layout: layout_title :: Lens' (Layout x_aIUL y_aIUM) String
+ Graphics.Rendering.Chart.Layout: layout_title :: Lens' (Layout x_aIUw y_aIUx) String
- Graphics.Rendering.Chart.Layout: layout_title_style :: Lens' (Layout x_aIUL y_aIUM) FontStyle
+ Graphics.Rendering.Chart.Layout: layout_title_style :: Lens' (Layout x_aIUw y_aIUx) FontStyle
- Graphics.Rendering.Chart.Layout: layout_top_axis_visibility :: Lens' (Layout x_aIUL y_aIUM) AxisVisibility
+ Graphics.Rendering.Chart.Layout: layout_top_axis_visibility :: Lens' (Layout x_aIUw y_aIUx) AxisVisibility
- Graphics.Rendering.Chart.Layout: layout_x_axis :: Lens' (Layout x_aIUL y_aIUM) (LayoutAxis x_aIUL)
+ Graphics.Rendering.Chart.Layout: layout_x_axis :: Lens' (Layout x_aIUw y_aIUx) (LayoutAxis x_aIUw)
- Graphics.Rendering.Chart.Layout: layout_y_axis :: Lens' (Layout x_aIUL y_aIUM) (LayoutAxis y_aIUM)
+ Graphics.Rendering.Chart.Layout: layout_y_axis :: Lens' (Layout x_aIUw y_aIUx) (LayoutAxis y_aIUx)
- Graphics.Rendering.Chart.Layout: layoutlr_background :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) FillStyle
+ Graphics.Rendering.Chart.Layout: layoutlr_background :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) FillStyle
- Graphics.Rendering.Chart.Layout: layoutlr_bottom_axis_visibility :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) AxisVisibility
+ Graphics.Rendering.Chart.Layout: layoutlr_bottom_axis_visibility :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) AxisVisibility
- Graphics.Rendering.Chart.Layout: layoutlr_grid_last :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) Bool
+ Graphics.Rendering.Chart.Layout: layoutlr_grid_last :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) Bool
- Graphics.Rendering.Chart.Layout: layoutlr_left_axis :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) (LayoutAxis y1_aISM)
+ Graphics.Rendering.Chart.Layout: layoutlr_left_axis :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) (LayoutAxis y1_aISx)
- Graphics.Rendering.Chart.Layout: layoutlr_left_axis_visibility :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) AxisVisibility
+ Graphics.Rendering.Chart.Layout: layoutlr_left_axis_visibility :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) AxisVisibility
- Graphics.Rendering.Chart.Layout: layoutlr_legend :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) (Maybe LegendStyle)
+ Graphics.Rendering.Chart.Layout: layoutlr_legend :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) (Maybe LegendStyle)
- Graphics.Rendering.Chart.Layout: layoutlr_margin :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) Double
+ Graphics.Rendering.Chart.Layout: layoutlr_margin :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) Double
- Graphics.Rendering.Chart.Layout: layoutlr_plot_background :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) (Maybe FillStyle)
+ Graphics.Rendering.Chart.Layout: layoutlr_plot_background :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) (Maybe FillStyle)
- Graphics.Rendering.Chart.Layout: layoutlr_plots :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) [Either (Plot x_aISL y1_aISM) (Plot x_aISL y2_aISN)]
+ Graphics.Rendering.Chart.Layout: layoutlr_plots :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) [Either (Plot x_aISw y1_aISx) (Plot x_aISw y2_aISy)]
- Graphics.Rendering.Chart.Layout: layoutlr_right_axis :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) (LayoutAxis y2_aISN)
+ Graphics.Rendering.Chart.Layout: layoutlr_right_axis :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) (LayoutAxis y2_aISy)
- Graphics.Rendering.Chart.Layout: layoutlr_right_axis_visibility :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) AxisVisibility
+ Graphics.Rendering.Chart.Layout: layoutlr_right_axis_visibility :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) AxisVisibility
- Graphics.Rendering.Chart.Layout: layoutlr_title :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) String
+ Graphics.Rendering.Chart.Layout: layoutlr_title :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) String
- Graphics.Rendering.Chart.Layout: layoutlr_title_style :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) FontStyle
+ Graphics.Rendering.Chart.Layout: layoutlr_title_style :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) FontStyle
- Graphics.Rendering.Chart.Layout: layoutlr_top_axis_visibility :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) AxisVisibility
+ Graphics.Rendering.Chart.Layout: layoutlr_top_axis_visibility :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) AxisVisibility
- Graphics.Rendering.Chart.Layout: layoutlr_x_axis :: Lens' (LayoutLR x_aISL y1_aISM y2_aISN) (LayoutAxis x_aISL)
+ Graphics.Rendering.Chart.Layout: layoutlr_x_axis :: Lens' (LayoutLR x_aISw y1_aISx y2_aISy) (LayoutAxis x_aISw)
- Graphics.Rendering.Chart.Layout: slayouts_compress_legend :: Lens' (StackedLayouts x_aISG) Bool
+ Graphics.Rendering.Chart.Layout: slayouts_compress_legend :: Lens' (StackedLayouts x_aISr) Bool
- Graphics.Rendering.Chart.Layout: slayouts_layouts :: Lens (StackedLayouts x_aISG) (StackedLayouts x_aKmB) [StackedLayout x_aISG] [StackedLayout x_aKmB]
+ Graphics.Rendering.Chart.Layout: slayouts_layouts :: Lens (StackedLayouts x_aISr) (StackedLayouts x_aKmC) [StackedLayout x_aISr] [StackedLayout x_aKmC]
- Graphics.Rendering.Chart.Plot.Annotation: plot_annotation_angle :: Lens' (PlotAnnotation x_aEMW y_aEMX) Double
+ Graphics.Rendering.Chart.Plot.Annotation: plot_annotation_angle :: Lens' (PlotAnnotation x_aEOB y_aEOC) Double
- Graphics.Rendering.Chart.Plot.Annotation: plot_annotation_hanchor :: Lens' (PlotAnnotation x_aEMW y_aEMX) HTextAnchor
+ Graphics.Rendering.Chart.Plot.Annotation: plot_annotation_hanchor :: Lens' (PlotAnnotation x_aEOB y_aEOC) HTextAnchor
- Graphics.Rendering.Chart.Plot.Annotation: plot_annotation_style :: Lens' (PlotAnnotation x_aEMW y_aEMX) FontStyle
+ Graphics.Rendering.Chart.Plot.Annotation: plot_annotation_style :: Lens' (PlotAnnotation x_aEOB y_aEOC) FontStyle
- Graphics.Rendering.Chart.Plot.Annotation: plot_annotation_values :: Lens (PlotAnnotation x_aEMW y_aEMX) (PlotAnnotation x_aEQ0 y_aEQ1) [(x_aEMW, y_aEMX, String)] [(x_aEQ0, y_aEQ1, String)]
+ Graphics.Rendering.Chart.Plot.Annotation: plot_annotation_values :: Lens (PlotAnnotation x_aEOB y_aEOC) (PlotAnnotation x_aERF y_aERG) [(x_aEOB, y_aEOC, String)] [(x_aERF, y_aERG, String)]
- Graphics.Rendering.Chart.Plot.Annotation: plot_annotation_vanchor :: Lens' (PlotAnnotation x_aEMW y_aEMX) VTextAnchor
+ Graphics.Rendering.Chart.Plot.Annotation: plot_annotation_vanchor :: Lens' (PlotAnnotation x_aEOB y_aEOC) VTextAnchor
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_linethick :: Lens' (AreaSpots4D z_aFdT t_aFdU x_aFdV y_aFdW) Double
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_linethick :: Lens' (AreaSpots4D z_aFfy t_aFfz x_aFfA y_aFfB) Double
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_max_radius :: Lens' (AreaSpots4D z_aFdT t_aFdU x_aFdV y_aFdW) Double
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_max_radius :: Lens' (AreaSpots4D z_aFfy t_aFfz x_aFfA y_aFfB) Double
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_opacity :: Lens' (AreaSpots4D z_aFdT t_aFdU x_aFdV y_aFdW) Double
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_opacity :: Lens' (AreaSpots4D z_aFfy t_aFfz x_aFfA y_aFfB) Double
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_palette :: Lens' (AreaSpots4D z_aFdT t_aFdU x_aFdV y_aFdW) [Colour Double]
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_palette :: Lens' (AreaSpots4D z_aFfy t_aFfz x_aFfA y_aFfB) [Colour Double]
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_title :: Lens' (AreaSpots4D z_aFdT t_aFdU x_aFdV y_aFdW) String
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_title :: Lens' (AreaSpots4D z_aFfy t_aFfz x_aFfA y_aFfB) String
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_values :: Lens (AreaSpots4D z_aFdT t_aFdU x_aFdV y_aFdW) (AreaSpots4D z_aFIO t_aFIP x_aFIQ y_aFIR) [(x_aFdV, y_aFdW, z_aFdT, t_aFdU)] [(x_aFIQ, y_aFIR, z_aFIO, t_aFIP)]
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_4d_values :: Lens (AreaSpots4D z_aFfy t_aFfz x_aFfA y_aFfB) (AreaSpots4D z_aFIF t_aFIG x_aFIH y_aFII) [(x_aFfA, y_aFfB, z_aFfy, t_aFfz)] [(x_aFIH, y_aFII, z_aFIF, t_aFIG)]
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_fillcolour :: Lens' (AreaSpots z_aFdX x_aFdY y_aFdZ) (Colour Double)
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_fillcolour :: Lens' (AreaSpots z_aFfC x_aFfD y_aFfE) (Colour Double)
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_linecolour :: Lens' (AreaSpots z_aFdX x_aFdY y_aFdZ) (AlphaColour Double)
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_linecolour :: Lens' (AreaSpots z_aFfC x_aFfD y_aFfE) (AlphaColour Double)
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_linethick :: Lens' (AreaSpots z_aFdX x_aFdY y_aFdZ) Double
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_linethick :: Lens' (AreaSpots z_aFfC x_aFfD y_aFfE) Double
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_max_radius :: Lens' (AreaSpots z_aFdX x_aFdY y_aFdZ) Double
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_max_radius :: Lens' (AreaSpots z_aFfC x_aFfD y_aFfE) Double
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_opacity :: Lens' (AreaSpots z_aFdX x_aFdY y_aFdZ) Double
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_opacity :: Lens' (AreaSpots z_aFfC x_aFfD y_aFfE) Double
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_title :: Lens' (AreaSpots z_aFdX x_aFdY y_aFdZ) String
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_title :: Lens' (AreaSpots z_aFfC x_aFfD y_aFfE) String
- Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_values :: Lens (AreaSpots z_aFdX x_aFdY y_aFdZ) (AreaSpots z_aFDe x_aFDf y_aFDg) [(x_aFdY, y_aFdZ, z_aFdX)] [(x_aFDf, y_aFDg, z_aFDe)]
+ Graphics.Rendering.Chart.Plot.AreaSpots: area_spots_values :: Lens (AreaSpots z_aFfC x_aFfD y_aFfE) (AreaSpots z_aFD5 x_aFD6 y_aFD7) [(x_aFfD, y_aFfE, z_aFfC)] [(x_aFD6, y_aFD7, z_aFD5)]
- Graphics.Rendering.Chart.Plot.Bars: plot_bars_alignment :: Lens' (PlotBars x_aD2c y_aD2d) PlotBarsAlignment
+ Graphics.Rendering.Chart.Plot.Bars: plot_bars_alignment :: Lens' (PlotBars x_aD3R y_aD3S) PlotBarsAlignment
- Graphics.Rendering.Chart.Plot.Bars: plot_bars_item_styles :: Lens' (PlotBars x_aD2c y_aD2d) [(FillStyle, Maybe LineStyle)]
+ Graphics.Rendering.Chart.Plot.Bars: plot_bars_item_styles :: Lens' (PlotBars x_aD3R y_aD3S) [(FillStyle, Maybe LineStyle)]
- Graphics.Rendering.Chart.Plot.Bars: plot_bars_reference :: Lens' (PlotBars x_aD2c y_aD2d) y_aD2d
+ Graphics.Rendering.Chart.Plot.Bars: plot_bars_reference :: Lens' (PlotBars x_aD3R y_aD3S) y_aD3S
- Graphics.Rendering.Chart.Plot.Bars: plot_bars_singleton_width :: Lens' (PlotBars x_aD2c y_aD2d) Double
+ Graphics.Rendering.Chart.Plot.Bars: plot_bars_singleton_width :: Lens' (PlotBars x_aD3R y_aD3S) Double
- Graphics.Rendering.Chart.Plot.Bars: plot_bars_spacing :: Lens' (PlotBars x_aD2c y_aD2d) PlotBarsSpacing
+ Graphics.Rendering.Chart.Plot.Bars: plot_bars_spacing :: Lens' (PlotBars x_aD3R y_aD3S) PlotBarsSpacing
- Graphics.Rendering.Chart.Plot.Bars: plot_bars_style :: Lens' (PlotBars x_aD2c y_aD2d) PlotBarsStyle
+ Graphics.Rendering.Chart.Plot.Bars: plot_bars_style :: Lens' (PlotBars x_aD3R y_aD3S) PlotBarsStyle
- Graphics.Rendering.Chart.Plot.Bars: plot_bars_titles :: Lens' (PlotBars x_aD2c y_aD2d) [String]
+ Graphics.Rendering.Chart.Plot.Bars: plot_bars_titles :: Lens' (PlotBars x_aD3R y_aD3S) [String]
- Graphics.Rendering.Chart.Plot.Bars: plot_bars_values :: Lens (PlotBars x_aD2c y_aD2d) (PlotBars x_aDfq y_aD2d) [(x_aD2c, [y_aD2d])] [(x_aDfq, [y_aD2d])]
+ Graphics.Rendering.Chart.Plot.Bars: plot_bars_values :: Lens (PlotBars x_aD3R y_aD3S) (PlotBars x_aDh5 y_aD3S) [(x_aD3R, [y_aD3S])] [(x_aDh5, [y_aD3S])]
- Graphics.Rendering.Chart.Plot.Candle: plot_candle_centre :: Lens' (PlotCandle x_aBc7 y_aBc8) Double
+ Graphics.Rendering.Chart.Plot.Candle: plot_candle_centre :: Lens' (PlotCandle x_aBdM y_aBdN) Double
- Graphics.Rendering.Chart.Plot.Candle: plot_candle_fall_fill_style :: Lens' (PlotCandle x_aBc7 y_aBc8) FillStyle
+ Graphics.Rendering.Chart.Plot.Candle: plot_candle_fall_fill_style :: Lens' (PlotCandle x_aBdM y_aBdN) FillStyle
- Graphics.Rendering.Chart.Plot.Candle: plot_candle_fill :: Lens' (PlotCandle x_aBc7 y_aBc8) Bool
+ Graphics.Rendering.Chart.Plot.Candle: plot_candle_fill :: Lens' (PlotCandle x_aBdM y_aBdN) Bool
- Graphics.Rendering.Chart.Plot.Candle: plot_candle_line_style :: Lens' (PlotCandle x_aBc7 y_aBc8) LineStyle
+ Graphics.Rendering.Chart.Plot.Candle: plot_candle_line_style :: Lens' (PlotCandle x_aBdM y_aBdN) LineStyle
- Graphics.Rendering.Chart.Plot.Candle: plot_candle_rise_fill_style :: Lens' (PlotCandle x_aBc7 y_aBc8) FillStyle
+ Graphics.Rendering.Chart.Plot.Candle: plot_candle_rise_fill_style :: Lens' (PlotCandle x_aBdM y_aBdN) FillStyle
- Graphics.Rendering.Chart.Plot.Candle: plot_candle_tick_length :: Lens' (PlotCandle x_aBc7 y_aBc8) Double
+ Graphics.Rendering.Chart.Plot.Candle: plot_candle_tick_length :: Lens' (PlotCandle x_aBdM y_aBdN) Double
- Graphics.Rendering.Chart.Plot.Candle: plot_candle_title :: Lens' (PlotCandle x_aBc7 y_aBc8) String
+ Graphics.Rendering.Chart.Plot.Candle: plot_candle_title :: Lens' (PlotCandle x_aBdM y_aBdN) String
- Graphics.Rendering.Chart.Plot.Candle: plot_candle_values :: Lens (PlotCandle x_aBc7 y_aBc8) (PlotCandle x_aBmS y_aBmT) [Candle x_aBc7 y_aBc8] [Candle x_aBmS y_aBmT]
+ Graphics.Rendering.Chart.Plot.Candle: plot_candle_values :: Lens (PlotCandle x_aBdM y_aBdN) (PlotCandle x_aBox y_aBoy) [Candle x_aBdM y_aBdN] [Candle x_aBox y_aBoy]
- Graphics.Rendering.Chart.Plot.Candle: plot_candle_width :: Lens' (PlotCandle x_aBc7 y_aBc8) Double
+ Graphics.Rendering.Chart.Plot.Candle: plot_candle_width :: Lens' (PlotCandle x_aBdM y_aBdN) Double
- Graphics.Rendering.Chart.Plot.ErrBars: plot_errbars_line_style :: Lens' (PlotErrBars x_azXj y_azXk) LineStyle
+ Graphics.Rendering.Chart.Plot.ErrBars: plot_errbars_line_style :: Lens' (PlotErrBars x_azYY y_azYZ) LineStyle
- Graphics.Rendering.Chart.Plot.ErrBars: plot_errbars_overhang :: Lens' (PlotErrBars x_azXj y_azXk) Double
+ Graphics.Rendering.Chart.Plot.ErrBars: plot_errbars_overhang :: Lens' (PlotErrBars x_azYY y_azYZ) Double
- Graphics.Rendering.Chart.Plot.ErrBars: plot_errbars_tick_length :: Lens' (PlotErrBars x_azXj y_azXk) Double
+ Graphics.Rendering.Chart.Plot.ErrBars: plot_errbars_tick_length :: Lens' (PlotErrBars x_azYY y_azYZ) Double
- Graphics.Rendering.Chart.Plot.ErrBars: plot_errbars_title :: Lens' (PlotErrBars x_azXj y_azXk) String
+ Graphics.Rendering.Chart.Plot.ErrBars: plot_errbars_title :: Lens' (PlotErrBars x_azYY y_azYZ) String
- Graphics.Rendering.Chart.Plot.ErrBars: plot_errbars_values :: Lens (PlotErrBars x_azXj y_azXk) (PlotErrBars x_aA76 y_aA77) [ErrPoint x_azXj y_azXk] [ErrPoint x_aA76 y_aA77]
+ Graphics.Rendering.Chart.Plot.ErrBars: plot_errbars_values :: Lens (PlotErrBars x_azYY y_azYZ) (PlotErrBars x_aA8L y_aA8M) [ErrPoint x_azYY y_azYZ] [ErrPoint x_aA8L y_aA8M]
- Graphics.Rendering.Chart.Plot.FillBetween: plot_fillbetween_style :: Lens' (PlotFillBetween x_azup y_azuq) FillStyle
+ Graphics.Rendering.Chart.Plot.FillBetween: plot_fillbetween_style :: Lens' (PlotFillBetween x_azw4 y_azw5) FillStyle
- Graphics.Rendering.Chart.Plot.FillBetween: plot_fillbetween_title :: Lens' (PlotFillBetween x_azup y_azuq) String
+ Graphics.Rendering.Chart.Plot.FillBetween: plot_fillbetween_title :: Lens' (PlotFillBetween x_azw4 y_azw5) String
- Graphics.Rendering.Chart.Plot.FillBetween: plot_fillbetween_values :: Lens (PlotFillBetween x_azup y_azuq) (PlotFillBetween x_azyp y_azyq) [(x_azup, (y_azuq, y_azuq))] [(x_azyp, (y_azyq, y_azyq))]
+ Graphics.Rendering.Chart.Plot.FillBetween: plot_fillbetween_values :: Lens (PlotFillBetween x_azw4 y_azw5) (PlotFillBetween x_azA4 y_azA5) [(x_azw4, (y_azw5, y_azw5))] [(x_azA4, (y_azA5, y_azA5))]
- Graphics.Rendering.Chart.Plot.Hidden: plot_hidden_x_values :: Lens (PlotHidden x_ax5u y_ax5v) (PlotHidden x_ax6g y_ax5v) [x_ax5u] [x_ax6g]
+ Graphics.Rendering.Chart.Plot.Hidden: plot_hidden_x_values :: Lens (PlotHidden x_ax79 y_ax7a) (PlotHidden x_ax7V y_ax7a) [x_ax79] [x_ax7V]
- Graphics.Rendering.Chart.Plot.Hidden: plot_hidden_y_values :: Lens (PlotHidden x_ax5u y_ax5v) (PlotHidden x_ax5u y_ax6h) [y_ax5v] [y_ax6h]
+ Graphics.Rendering.Chart.Plot.Hidden: plot_hidden_y_values :: Lens (PlotHidden x_ax79 y_ax7a) (PlotHidden x_ax79 y_ax7W) [y_ax7a] [y_ax7W]
- Graphics.Rendering.Chart.Plot.Lines: plot_lines_limit_values :: Lens' (PlotLines x_axd8 y_axd9) [[(Limit x_axd8, Limit y_axd9)]]
+ Graphics.Rendering.Chart.Plot.Lines: plot_lines_limit_values :: Lens' (PlotLines x_axeN y_axeO) [[(Limit x_axeN, Limit y_axeO)]]
- Graphics.Rendering.Chart.Plot.Lines: plot_lines_style :: Lens' (PlotLines x_axd8 y_axd9) LineStyle
+ Graphics.Rendering.Chart.Plot.Lines: plot_lines_style :: Lens' (PlotLines x_axeN y_axeO) LineStyle
- Graphics.Rendering.Chart.Plot.Lines: plot_lines_title :: Lens' (PlotLines x_axd8 y_axd9) String
+ Graphics.Rendering.Chart.Plot.Lines: plot_lines_title :: Lens' (PlotLines x_axeN y_axeO) String
- Graphics.Rendering.Chart.Plot.Lines: plot_lines_values :: Lens' (PlotLines x_axd8 y_axd9) [[(x_axd8, y_axd9)]]
+ Graphics.Rendering.Chart.Plot.Lines: plot_lines_values :: Lens' (PlotLines x_axeN y_axeO) [[(x_axeN, y_axeO)]]
- Graphics.Rendering.Chart.Plot.Points: plot_points_style :: Lens' (PlotPoints x_azaP y_azaQ) PointStyle
+ Graphics.Rendering.Chart.Plot.Points: plot_points_style :: Lens' (PlotPoints x_azcu y_azcv) PointStyle
- Graphics.Rendering.Chart.Plot.Points: plot_points_title :: Lens' (PlotPoints x_azaP y_azaQ) String
+ Graphics.Rendering.Chart.Plot.Points: plot_points_title :: Lens' (PlotPoints x_azcu y_azcv) String
- Graphics.Rendering.Chart.Plot.Points: plot_points_values :: Lens (PlotPoints x_azaP y_azaQ) (PlotPoints x_azdP y_azdQ) [(x_azaP, y_azaQ)] [(x_azdP, y_azdQ)]
+ Graphics.Rendering.Chart.Plot.Points: plot_points_values :: Lens (PlotPoints x_azcu y_azcv) (PlotPoints x_azfu y_azfv) [(x_azcu, y_azcv)] [(x_azfu, y_azfv)]
- Graphics.Rendering.Chart.Plot.Types: plot_all_points :: Lens' (Plot x_awR4 y_awR5) ([x_awR4], [y_awR5])
+ Graphics.Rendering.Chart.Plot.Types: plot_all_points :: Lens' (Plot x_awSJ y_awSK) ([x_awSJ], [y_awSK])
- Graphics.Rendering.Chart.Plot.Types: plot_legend :: Lens' (Plot x_awR4 y_awR5) [(String, Rect -> ChartBackend ())]
+ Graphics.Rendering.Chart.Plot.Types: plot_legend :: Lens' (Plot x_awSJ y_awSK) [(String, Rect -> ChartBackend ())]
- Graphics.Rendering.Chart.Plot.Types: plot_render :: Lens' (Plot x_awR4 y_awR5) (PointMapFn x_awR4 y_awR5 -> ChartBackend ())
+ Graphics.Rendering.Chart.Plot.Types: plot_render :: Lens' (Plot x_awSJ y_awSK) (PointMapFn x_awSJ y_awSK -> ChartBackend ())
- Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_grid :: Lens' (PlotVectors x_axM5 y_axM6) [(x_axM5, y_axM6)]
+ Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_grid :: Lens' (PlotVectors x_axNK y_axNL) [(x_axNK, y_axNL)]
- Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_mapf :: Lens' (PlotVectors x_axM5 y_axM6) ((x_axM5, y_axM6) -> (x_axM5, y_axM6))
+ Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_mapf :: Lens' (PlotVectors x_axNK y_axNL) ((x_axNK, y_axNL) -> (x_axNK, y_axNL))
- Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_scale :: Lens' (PlotVectors x_axM5 y_axM6) Double
+ Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_scale :: Lens' (PlotVectors x_axNK y_axNL) Double
- Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_style :: Lens' (PlotVectors x_axM5 y_axM6) VectorStyle
+ Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_style :: Lens' (PlotVectors x_axNK y_axNL) VectorStyle
- Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_title :: Lens' (PlotVectors x_axM5 y_axM6) String
+ Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_title :: Lens' (PlotVectors x_axNK y_axNL) String
- Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_values :: Lens' (PlotVectors x_axM5 y_axM6) [((x_axM5, y_axM6), (x_axM5, y_axM6))]
+ Graphics.Rendering.Chart.Plot.Vectors: plot_vectors_values :: Lens' (PlotVectors x_axNK y_axNL) [((x_axNK, y_axNL), (x_axNK, y_axNL))]

Files

Chart.cabal view
@@ -1,5 +1,5 @@ Name: Chart-Version: 1.3.1+Version: 1.3.2 License: BSD3 License-file: LICENSE Copyright: Tim Docker, 2006-2014@@ -19,7 +19,7 @@   Build-depends: base >= 3 && < 5                , old-locale                , time, mtl, array-               , lens >= 3.9 && < 4.5+               , lens >= 3.9 && < 4.7                , colour >= 2.2.1 && < 2.4                , data-default-class < 0.1                , mtl >= 2.0 && < 2.3
Graphics/Rendering/Chart/Axis/Int.hs view
@@ -65,8 +65,16 @@      goodness vs          = abs (genericLength vs - nSteps) -    (alt0:alts)          = map (\n -> steps n range) sampleSteps+    (alt0:alts)          = map (\n -> steps n range) sampleSteps' +    -- throw away sampleSteps that are definitely too small as+    -- they takes a long time to process                           +    sampleSteps'         = let rangeMag = ceiling (snd range - fst range)+                               +                               (s1,s2) = span (< (rangeMag `div` nSteps)) sampleSteps+                           in ((reverse . take 5 . reverse) s1) ++ s2++    -- generate all possible step sizes     sampleSteps          = [1,2,5] ++ sampleSteps1     sampleSteps1         = [10,20,25,50] ++ map (*10) sampleSteps1 
Graphics/Rendering/Chart/Axis/LocalTime.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE CPP #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Graphics.Rendering.Chart.Axis.LocalTime@@ -22,9 +24,13 @@     ) where   import Data.Default.Class+#if MIN_VERSION_time(1,5,0)+import Data.Time hiding (months)+#else import Data.Time-import Data.Fixed import System.Locale (defaultTimeLocale)+#endif+import Data.Fixed import Control.Lens  import Graphics.Rendering.Chart.Axis.Types
Graphics/Rendering/Chart/Easy.hs view
@@ -27,10 +27,11 @@   points,   bars,   setColors,-  +  setShapes   ) where  import Control.Lens+import Control.Monad(when) import Data.Default.Class import Data.Colour hiding (over) -- overlaps with lens over function import Data.Colour.Names@@ -42,6 +43,11 @@ setColors :: [AlphaColour Double] -> EC l () setColors cs = liftCState $ colors .= cycle cs +-- | Set the contents of the shape source, for+-- subsequent plots+setShapes :: [PointShape] -> EC l ()+setShapes ps = liftCState $ shapes .= cycle ps+ -- | Constuct a line plot with the given title and -- data, using the next available color. line :: String -> [[(x,y)]]  -> EC l (PlotLines x y)@@ -62,7 +68,17 @@     plot_points_style . point_color .= color     plot_points_style . point_shape .= shape     plot_points_style . point_radius .= 2+    +    -- Show borders for unfilled shapes+    when (not (isFilled shape)) $ do+        plot_points_style . point_border_color .= color+        plot_points_style . point_border_width .= 1 +isFilled :: PointShape -> Bool+isFilled PointShapeCircle = True+isFilled PointShapePolygon{} = True+isFilled _ = False+     -- | Construct a bar chart with the given titles and data, using the -- next available colors     bars :: (PlotValue x, BarsPlotValue y) => [String] -> [(x,[y])] -> EC l (PlotBars x y)
Graphics/Rendering/Chart/Layout.hs view
@@ -492,6 +492,12 @@ instance Default (StackedLayouts x) where   def = StackedLayouts [] True +++instance Ord x => ToRenderable (StackedLayouts x) where+  toRenderable = renderStackedLayouts++ -- | Render several layouts with the same x-axis type and range, --   vertically stacked so that their origins and x-values are aligned. --