Section 13: Configuring a Multiple Pie Chart
When Completed
Your NetCharts Designer perspective will appear like this:
Getting Started
Start by closing any open editors. Go to NetCharts Designer’s File menu and select the Close All option.
Next, create a new project named MultiplePieChartProject.
Create the Dataset
From the toolbar click on the Create a New Dataset wizard. Name your new dataset data, select Hypersonic SQL from the Data Sources list, and click Next.
Enter the following query:
SELECT * FROM PAGEHITTABLE
into the SQL: text box in the SQL Parameters group, click Finish. Select the date format MMM-yy from the Date Format drop down menu in the General group. Four columns of data will be returned:
Create the Multiple Pie Chart
Now that we have created our dataset the next step is to create the Multi‐Pie chart. From the toolbar click on the Create a New Chart icon. Call it MultiPie, select MultiPie Chart for the type
and click Finish. Make the Multi Pie chart 700 pixels high. Select the Layout tree node, and set the Rows spinner to 5.
Bind Data to the Multiple Pie Chart
Now we must bind our data that we created in Step 2 to our Multiple Pie Chart. Select the Data Source Binding tab and under the Data tree control select Pie Slice Values. Choose data.ndx as your Data Source. Click the Select Columns and the Select Rows buttons.
Next select Pie Labels from the Data tree control, choose data.ndx as the Data Source. Select column 0 for the Pie Labels and click the Select Rows button.
Next select Legend Items from the Data tree control, choose data.ndx as the Data Source. Select Row 0 by checking the check box, and click the Select Columns button.
Additional Style
In the Presentation tab under the Multi Pie Chart tree control add a Chart title of Server Hit Distribution by Month, and select MultiPieTitleStyle. In the General group, Select redyellowgradient from the Background Style drop down menu, and select reds from the Default Colors drop down menu.