| Safe Haskell | None | 
|---|
Graphics.Rendering.Chart.Plot.Pie
Description
A basic pie chart.
Pie charts are handled different to other plots, in that they have their own layout, and can't be composed with other plots. A pie chart is rendered with code in the following form:
 values :: [PieItem]
 values = [...]
 layout :: PieLayout
 layout = pie_plot ^: pie_data ^= values
        $ defaultPieLayout
 renderable = toRenderable layout
- data PieLayout = PieLayout {}
 - data PieChart = PieChart {}
 - data PieItem = PieItem {}
 - defaultPieLayout :: PieLayout
 - defaultPieChart :: PieChart
 - defaultPieItem :: PieItem
 - pieToRenderable :: PieLayout -> Renderable (PickFn a)
 - pieChartToRenderable :: PieChart -> Renderable (PickFn a)
 - pie_title :: Lens' PieLayout String
 - pie_title_style :: Lens' PieLayout FontStyle
 - pie_plot :: Lens' PieLayout PieChart
 - pie_background :: Lens' PieLayout FillStyle
 - pie_margin :: Lens' PieLayout Double
 - pie_data :: Lens' PieChart [PieItem]
 - pie_colors :: Lens' PieChart [AlphaColour Double]
 - pie_label_style :: Lens' PieChart FontStyle
 - pie_label_line_style :: Lens' PieChart LineStyle
 - pie_start_angle :: Lens' PieChart Double
 - pitem_label :: Lens' PieItem String
 - pitem_offset :: Lens' PieItem Double
 - pitem_value :: Lens' PieItem Double
 
Documentation
Constructors
| PieLayout | |
Fields  | |
Instances
Constructors
| PieChart | |
Fields  | |
Instances
Constructors
| PieItem | |
Fields 
  | |
defaultPieLayout :: PieLayoutSource
Deprecated: Use the according Data.Default instance!
defaultPieChart :: PieChartSource
Deprecated: Use the according Data.Default instance!
defaultPieItem :: PieItemSource
Deprecated: Use the according Data.Default instance!
pieToRenderable :: PieLayout -> Renderable (PickFn a)Source
pieChartToRenderable :: PieChart -> Renderable (PickFn a)Source