Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes



top mg_gc_piechart

result = mg_gc_piechart(slices [, dimensions=lonarr] [, /threed] [, title=string or strarr] [, label=strarr] [, color=lonarr] [, url=string])

Create an image of a pie chart using the Google Charts API.

Return value

bytarr(3, xsize, ysize)


slices in required type=fltarr

vector of values of slices


dimensions in optional type=lonarr default=[200, 100]

size of output image

threed in optional type=boolean

set to create a 3D pie chart; default is a 2D pie chart

title in optional type=string or strarr

title of the chart

label in optional type=strarr

labels for pie slices

color in optional type=lonarr

colors of the slices

url out optional type=string

URL used by Google Charts API


Running the main-level example at the end of this file:

IDL> .run mg_gc_piechart

Other attributes


IDL 6.4

File attributes

Modification date: Wed May 14 15:07:15 2014
Lines: 32
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.