mglib

Personal IDL library for M. Galloy

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

vis/googlechart/

mg_gc_barchart.pro

includes main-level program

Routines

top mg_gc_barchart

result = mg_gc_barchart(data [, dimensions=lonarr] [, title=string or strarr] [, /horizontal] [, /vertical] [, label=strarr] [, color=lonarr], bar_width=bar_width, bar_spacing=bar_spacing, group_spacing=group_spacing [, url=string])

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

Return value

bytarr(3, xsize, ysize)

Parameters

data in required type=fltarr

vector of values of slices

Keywords

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

size of output image

title in optional type=string or strarr

title of the chart

horizontal in optional type=boolean default=0

set to create horizontal vars

vertical in optional type=boolean default=1

set to create vertical bars; the default

label in optional type=strarr

labels for pie slices

color in optional type=lonarr

colors of the slices

bar_width
bar_spacing
group_spacing
url out optional type=string

URL used by Google Charts API

Examples

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

IDL> .run mg_gc_barchart
produces:

Other attributes

Requires:

IDL 6.4

File attributes

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