An optional title to display at the top of the chart.
type
pie
The type of chart to display:
pie - a pie chart, good for showing ratios
line - a line chart, good for showing changes over time
bar - a bar chart, good for showing related data sets
area - an area chart (line chart with filled areas)
There are also a number of "x/y" plots which have numerical X and Y axes. You can optionally make these time based (see timeSeries parameter).
xyArea - An "x/y" area chart
xyBar - An "x/y" bar chart
xyLine - An "x/y" line chart
xyStep - An "x/y" step chart
xyStepArea - An "x/y" step area chart
scatter - A scatter plot
timeSeries - A time series chart
dateFormat
A mask that defines the format of dates when using type=timeSeries charts (see Date Formats tab above).
timePeroid
Day
Specify the time period for the type=timeSeries charts:
Millisecond - 1/1000th of a second
Second - 1/60th of a minute
Minute - 1/60th of an hour
Hour - 1/24th of a day
Day - 1/7th of a week
Week - 7 days
Month - a calendar month
Quarter - 3 calendar months
Year - 12 calendar months
timeSeries
false
If set to true, the X values in an "x/y" plot will be treated as a time series and as such will be subject to the settings defined by the dateFormat and timePeriod parameters.
3D
false
If set to true then a pie, line or bar chart will be shown with 3D perspective.
orientation
vertical
By default the line, bar and area charts are shown vertically unless you set this parameter to horizontal.
stacked
false
If set to true then a bar or area chart will be shown as stacked.
width
300
The width of the chart in pixels.
height
300
The height of the chart in pixels.
dataDisplay
false
If set to true the table containing the raw data will be shown beneath the chart.
dataOrientation
horizontal
By default, the data table contains chart data in columns from left to right. If you set this parameter to vertical, however, the chart will take it's data in rows from top to bottom.
xlabel
The label to show on the x axis.
ylabel
The label to show on the y axis.
legend
true
By default a legend is shown for a chart, unless you set this parameter to false (reccommended for pie charts).
bgColor
white
The background colour of the chart panel. The colour can be specified by a hexidecimal colour code or a colour name: blue, cyan, gray, green, maroon, navy, purple, red, silver, teal, violet, white, yellow.
borderColor
gray
By default, the chart panel does not have a border. If you would like a border, specify it's color. The colour can be specified by a hexidecimal colour code or a colour name: blue, cyan, gray, green, maroon, navy, purple, red, silver, teal, violet, white, yellow.
opacity
Dependant on cart type
A number between 0 (transparent) and 100 (opaque) defining the transparency of areas, bars or lines in the chart. Defaults vary depending on the type of chart:
75 for 3D charts
50 for non-stacked area charts
100 for all other charts
Note: The "dataDisplay" parameter used to be called "displayData" prior to version 1.2 of this plugin.
Examples:
Pie Chart
To create a simple pie chart, use the following format:
In example #3, it wasn't immediately clear what the chart related to or what the actual values were. To convey such information you can add a custom title, axis labels and/or show the raw data with the chart:
{chart:type=line|title=Effect of Car Clamping|ylabel=Vehicles
on Road|xlabel=Day|displayData=true}
|| ||Monday||Tuesday||Wednesday||
||Cars|52|33|24|
||Busses|10|18|46|
{chart}
Which results in:
Monday
Tuesday
Wednesday
Cars
52
33
24
Busses
10
18
46
Beautification
In our last example, things were starting to look a little messy, so here's some tips on improving the display:
Only use headings and axis labels where they are required (eg. there is no point in labelling the x-axis because its meaning is obvious already)
Use a heading style to improve the look of the title
Use the center macro to center the chart, table and heading on the page
Adjust the width and height to provide the optimum dimensions for the chart data being used
Set the background colour to match the rest of the page
{center}h3. Effect of Car Clamping
{chart:type=line|displayData=true|width=400|height=250|bgColor=#F9F9F7|ylabel=Vehicles on Road}
|| ||Monday||Tuesday||Wednesday||
||Cars|52|33|24|
||Busses|10|18|46|
{chart}{center}
The result:
Effect of Car Clamping
Monday
Tuesday
Wednesday
Cars
52
33
24
Busses
10
18
46
3D Charts and Opacity
You can easily apply a 3D effect to charts as follows:
3D charts are 75% opaque by default - in other words, they are 25% transparent. You can change the opacity of charts using the opacity parameter - for example, to set 50% opacity use the following:
For an example of when this is useful, see our rate-table macro tutorial.
Examples of various "x/y" plots will be added at a later date.
Time Series Chart
Time series charts plot one or more series of data against time. The date/time format of the X axis is set by the dateFormat parameter and the display units of time are set by the timePeriod parameter as shown below:
I would like to create a graph with some data points missing, either in the midd...
I would like to create a graph with some data points missing, either in the middle of other data, or at the end. Is there any way to treat "blank" cells as missing data rather than zero values? In the case of a line graph, lines should only be drawn between non-blank values.
That's not currently possible as far as I am aware. Please post a feature reques...
That's not currently possible as far as I am aware. Please post a feature request in the issue tracker (see link in Issue Tracking tab at top of this page)
Has the issue listed above on Nov 29 2006 with regard to having a graph with bla...
Has the issue listed above on Nov 29 2006 with regard to having a graph with blank values being treated as zero values been sorted yet. I am setting up a number of 12 month graphs in advance that pull their values in via metadata held in a single page so that I don't have to edit all the graphs every month but they are visually being spoiled by the line drop after the current month as it drops to zero.
I tried to check the issues tracker for this but it is showing an error : Error: Circular redirect to 'http://developer.atlassian.com:80/jira/secure/IssueNavigator.jspa'
class org.apache.commons.httpclient.CircularRedirectException
Comments (6)
Nov 29, 2006
Anonymous says:
I would like to create a graph with some data points missing, either in the midd...I would like to create a graph with some data points missing, either in the middle of other data, or at the end. Is there any way to treat "blank" cells as missing data rather than zero values? In the case of a line graph, lines should only be drawn between non-blank values.
Nov 29, 2006
Guy Fraser says:
That's not currently possible as far as I am aware. Please post a feature reques...That's not currently possible as far as I am aware. Please post a feature request in the issue tracker (see link in Issue Tracking tab at top of this page)
Aug 17, 2010
James Lowry says:
User neveux sent me the following answer to this question: The answer is to use...User neveux sent me the following answer to this question:
Feb 13, 2007
Anonymous says:
is it possible to pull data from external sources? either from a document attach...is it possible to pull data from external sources? either from a document attached or db query? that would be wicked.
Feb 16, 2007
Anonymous says:
YesYes
May 26, 2009
Mark Daysh says:
Has the issue listed above on Nov 29 2006 with regard to having a graph with bla...Has the issue listed above on Nov 29 2006 with regard to having a graph with blank values being treated as zero values been sorted yet. I am setting up a number of 12 month graphs in advance that pull their values in via metadata held in a single page so that I don't have to edit all the graphs every month but they are visually being spoiled by the line drop after the current month as it drops to zero.
I tried to check the issues tracker for this but it is showing an error : Error: Circular redirect to 'http://developer.atlassian.com:80/jira/secure/IssueNavigator.jspa'
class org.apache.commons.httpclient.CircularRedirectException
Thanks