Section 12: Configuring a Heatmap
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 HeatmapProject..
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 Month, “Server 1 Hits” FROM PAGEHITTABLE
into the SQL: text box in the SQL Parameters group. Select the date format MMM-yy from the Date Format pull down menu in the General group. Two columns of data will be returned:
Create the Heatmap
Now that we have created our dataset the next step is to create the heatmap. From the toolbar click on the New Chart icon. Call it Heatmap, select Heatmap for the type,
Click Finish.
Bind Data to the Heatmap
Now we must bind our data that we created in Step 1 to our heatmap Chart. Select the Data Source Binding tab and under the Data tree control select Heatmap Values. Choose data.ndx as your Data Source. Select Column 1 for the HeatmapValues and click the Select Rows button.
Next select Heatmap Labels from the Data tree control, choose data.ndx as the Data Source. Select column 0 for the Heatmap Labels and click the Select Rows button.
Additional Style
In the Presentation tab under the Heatmap Chart tree control add a Chart title of Server 1 Hits, and create a style named chartTitle with 12 pt Arial Bold. Select the Cell Colors tree node and change the value of Color 1 to green and Color 2 to red. Uncheck the use Default for Min and Max and enter 2000 for the Min value and 8000 for the Max value.