Skip to main content

Multiple series in one pie chart

Comments

4 comments

  • Permanently deleted user

    Wout,

     

    Did you figured it out? I have the same question.

     

    Erik

    0
  • Wout Peters

    Hoi Erik,

     

    No I didn't figure it out. Ended up using the stacked bar chart...

    0
  • Emily Renkema

    Would very much like an answer to this as well, if anyone from Latitude sees this

    0
  • Permanently deleted user

    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:

    1. Add a Chart to the Detail Band
    2. Add a Pie Chart Series
      1. Keep both the Argument and Values blank
      2. Exit the Chart Designer and Save the Report
    3. Keep the Chart selected and navigate to the Scripting tab
    4. 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.