Chart-1.9.4: A library for generating 2D Charts and Plots
Copyright(c) Tim Docker 2008 2014
LicenseBSD-style (see chart/COPYRIGHT)
Safe HaskellNone
LanguageHaskell98

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
       $ def
renderable = toRenderable layout

Documentation

data PieItem Source #

Instances

Instances details
Default PieItem Source # 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Pie

Methods

def :: PieItem #