Chart-1.1: A library for generating 2D Charts and Plots

Safe HaskellNone

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

Synopsis

Documentation

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!