Multiple series in one pie chart
I would like to know if it is possible to put multiple series in one pie chart?
The way pie charts seems to work is summarizing one column of categorical data (in the reporting course they use types of trees). You can see how many entries each category has in that one column.
However, I have demographic data (population, employment, ...). These kinds of data are in mutiple columns (population younger than 15yrs, 15 - 20yrs, 20 - 30yrs, ... you get the point).
I can visualize them nicely by making a serie for each column and putting the series in a stacked bar chart. But I'm afraid my client wants pie charts and I cannot figure out how I can put all these columns in a single pie chart.
Is it possible?
-
Wout,
Did you figured it out? I have the same question.
Erik
0 -
Hoi Erik,
No I didn't figure it out. Ended up using the stacked bar chart...
0 -
Would very much like an answer to this as well, if anyone from Latitude sees this
0 -
If you are looking to create a pie chart containing multiple attributes associated with a given feature, you can use the Scripting capability in Geocortex Reporting to do this.
Here are some high-level instructions:
- Add a Chart to the Detail Band
- Add a Pie Chart Series
- Keep both the Argument and Values blank
- Exit the Chart Designer and Save the Report
- Keep the Chart selected and navigate to the Scripting tab
- Add the following script below to the Before Print event for the chart component
private void chart1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) {
chart1.Series[0].Points.Clear();
chart1.Series[0].Points.Add(new SeriesPoint("Field1 Label", new double[] { Convert.ToDouble(GetCurrentColumnValue("Field1Name")) }));
chart1.Series[0].Points.Add(new SeriesPoint("Field2 Label", new double[] { Convert.ToDouble(GetCurrentColumnValue("Field2Name")) }));
}
0
Please sign in to leave a comment.
Comments
4 comments