This plugin is part of the ImageGen family.
See the main page for usage, download and installation instructions.

Example 1#

Pie Chart.png

Source#

[{ PieChartPlugin title='Pie Chart' seriespaint='YELLOW,YELLOW,YELLOW'

class, 6 hours
homework, 10hours
meals, (including cooking), 10hours
free time, (including cleaning), 10hours
work, 46hours
travel, 13hours
sleep, 40hours
personal maintance, 33hours
}]

Example 2#

Pie Chart 3D.png

Source#

[{ PieChartPlugin title='Pie Chart 3D' threed='true' imap=true

Written, 60%
Oral, 35%
Electronic, 15%

}]
title
required, the name of the graph, will be used as the root name for the file attachments generated by the plugin.
imap
optional, defaults to 'false', set to 'true' to have an image map generated (assuming the associated library supports it). In that case, node names will be interpreted as wiki page names.
tooltips
optional, defaults to 'false', set to 'true' to have tooltips generated (assuming the associated library supports it).
page
optional, defaults to the current page and is the page to which the generated data files are attached.
output
optional, defaults to 'png'. It indicates the image format generated. It must be a supported output type by the graphical application or library, and it must be displayable using the HTML img tag. In this context, png, jpg, and gif are the most useful.
source
optional, the name of the attachment file that contains the graph data.
_body
required, unless source is specified. The plugin body should contain the graph data, in the appropriate syntax for the specific plugin. It might contain nested plugin invocations; those are evaluated and the resulting data is used. Note that the plugin must return data in the expected graph data syntax, not in HTML. See this example for details.
xaxislabel
optional, label for the horizontal axis.
yaxislabel
optional, label for the vertical axis.
height
optional, height of generated chart in pixels.
width
optional, width of generated chart in pixels.
legend
optional, display chart legend.
threed
optional, render as a three dimensional chart (if supported).
Renderer
basefillpaint
Value: Paint. Sets the base fill paint.
baseitemlabelfont
Value: Font. Sets the base item label font.
baseitemlabelpaint
Value: Paint. Sets the base item label paint.
baseitemlabelsvisible
Value: boolean. Sets the base flag that controls whether or not item labels are visible.
baseoutlinepaint
Value: Paint. Sets the base outline paint.
baseoutlinestroke
Value: Stroke. Sets the base outline stroke.
outlinestroke
Value: Stroke. Sets the outline stroke for ALL series.
basepaint
Value: Paint. Sets the base paint.
baseseriesvisible
Value: boolean. Sets the base visibility.
baseseriesvisibleinlegend
Value: boolean. Sets the base visibility in the legend.
basestroke
Value: Stroke. Sets the base stroke.
fillpaint
Value: Paint. Sets the fill paint for ALL series (optional).
itemlabelfont
Value: Font. Sets the item label font for ALL series. You can set this to null if you prefer to set the font on a per series basis.
itemlabelpaint
Value: Paint. Sets the item label paint for ALL series.
itemlabelsvisible
Value: boolean. Sets the visibility of the item labels for ALL series.
outlinepaint
Value: Paint. Sets the outline paint for ALL series (optional).
outlinestroke
Value: Stroke. Sets the outline stroke for ALL series.
paint
Value: Paint. Sets the paint to be used for ALL series,. If this is null, the renderer will use the paint for the series.
seriesvisible
Value: boolean. Sets the flag that controls the visibility of ALL series. This flag overrides the per series and default settings - you must set it to null if you want the other settings to apply.
stroke
Value: Stroke. Sets the stroke for ALL series.
seriesfillpaint
Value: CSV list of Paint. Set the paint values used for the listed series fill.
seriesoutlinestroke
Value: CSV list of Stroke. Set the outline stroke values used the listed for series.
seriespaint
Value: CSV list of Paint. Set the paint values used for the listed series.
seriesvisible
Value: CSV list of boolean. Set the flag values that control whether the listed series are visible.
seriesvisibleinlegend
Value: CSV list of boolean. Set the flag values that control whether the listed series are visible in the legend.
seriesoutlinepaint
Value: CSV list of Paint. Set the paint values used for the listed series outline.
Pie Plot Parameters
startangle
Value: double. Sets the starting angle. The initial default value is 90 degrees, which corresponds to 12
o'clock. A value of zero corresponds to 3 o'clock... this is the encoding used by Java's Arc2D class.
interiorgap
Value: double. Sets the interior gap. This controls the space between the edges of the pie plot and
the plot area itself (the region where the section labels appear).
circular
Value: boolean. A flag indicating whether the pie chart is circular, or stretched into an
elliptical shape.
ignorenullvalues
Value: boolean. Sets a flag that controls whether null values are ignored. At present, this only affects
whether or not the key is presented in the legend.
ignorezerovalues
Value: boolean. Sets a flag that controls whether zero values are ignored. This only affects whether or
not a label appears for the non-visible pie section.
basesectionpaint
Value: Paint. Sets the base section paint.
sectionoutlinesvisible
Value: boolean. Sets the flag that controls whether or not the outline is drawn for each
pie section,.
basesectionoutlinepaint
Value: Paint. Sets the base section paint.
sectionoutlinestroke
Value: Stroke. Sets the outline stroke for ALL sections in the plot.
basesectionoutlinestroke
Value: Stroke. Sets the base section stroke.
shadowpaint
Value: Paint. Sets the shadow paint.
shadowxoffset
Value: double. Sets the x-offset for the shadow effect.
shadowyoffset
Value: double. Sets the y-offset for the shadow effect.
labelgap
Value: double. Sets the gap between the edge of the pie and the labels (expressed as a
percentage of the plot width).
maximumlabelwidth
Value: double. Sets the maximum label width as a percentage of the plot width.
labellinksvisible
Value: boolean. Sets the flag that controls whether or not label linking lines are visible
. Please take care when hiding the linking lines - depending on the data values, the labels can be displayed some distance away from the corresponding pie section.
labellinkmargin
Value: double. Sets the link margin.
labellinkpaint
Value: Paint. Sets the paint used for the lines that connect pie sections to their
corresponding labels,.
labellinkstroke
Value: Stroke. Sets the link stroke.
labelfont
Value: Font. Sets the section label font.
labelpaint
Value: Paint. Sets the section label paint.
labelbackgroundpaint
Value: Paint. Sets the section label background paint.
labeloutlinepaint
Value: Paint. Sets the section label outline paint.
labeloutlinestroke
Value: Stroke. Sets the section label outline stroke.
labelshadowpaint
Value: Paint. Sets the section label shadow paint.
minimumarcangletodraw
Value: double. Sets the minimum arc angle that will be drawn. Pie sections for an angle
smaller than this are not drawn, to avoid a JDK bug.
sectionoutlinepaint
Value: CSV list of Paint. Sets the paint used to fill sections of the pie.
sectionpaint
Value: CSV list of Paint. Sets the paint used to fill sections of the pie.
explodepercent
Value: CSV list of double. Sets the amount that pie sections should be exploded.

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
 
3D PIE CHART 0.0 kB 1 08-Jul-2009 06:47 222.152.105.59
png
Pie Chart 3D.png 11.4 kB 1 02-Jun-2005 05:18 NascifAbousalhNeto
png
Pie Chart.png 11.0 kB 1 02-Jun-2005 05:18 NascifAbousalhNeto
« This page (revision-12) was last changed on 26-Feb-2011 22:11 by 208.163.34.202