WebFOCUS Parameters and Attribute Categories for Map Charts

How to:

Reference:

When using chart attribute syntax, each field in the WebFOCUS request must be assigned to the appropriate attribute category. The categories used depend on the chart type.

Syntax: How to Specify the Chart Type for Map Charts

To generate a choropleth chart, specify the following command in your WebFOCUS request:

ON GRAPH SET LOOKGRAPH CHOROPLETH   

To generate a proportional symbol (bubblemap) chart, specify the following command in your WebFOCUS request:

ON GRAPH SET LOOKGRAPH BUBBLEMAP   

where:

CHOROPLETH

Fills specified regions of a map with heat-coded or discrete color values.

BUBBLEMAP

Draws proportional symbols on top of a map.

Reference: Attribute Categories for Map Charts

In order to use the Esri map engine, you must use chart attribute syntax in your WebFOCUS chart request. Leaflet maps also support chart attribute syntax, in addition to traditional chart syntax.

For complete information about WebFOCUS chart attribute syntax, see WebFOCUS Chart Attribute Syntax.

The following table lists the attribute categories required for each type of map chart.

Choropleth

Bubblemap

Description

location

Note:

  • In a choropleth, if the location is represented by a single point instead of a polygon, a bubble marker (circle) is drawn to represent the location. The markers will all be the same size, the default marker size defined in the WebFOCUS StyleSheet. The field assigned to the color category will be used to color the markers.
  • If you are using Reporting Server syntax to generate an Esri map chart, the sort field is assigned in the Esri properties, not in the location attribute category.

location, point, or coordinates

Defines the areas to be colored on a choropleth or for placement of symbols on a bubblemap. These are generally sort fields in the request.

color

color (optional)

The area color on a choropleth or the symbol color on a bubblemap will depend on the field assigned to the color attribute category. If the field is a measure, the color will be visualized as a gradient. If the field is a dimension, the colors will be discrete.

 

size

The size of the symbols on a bubblemap will depend on the value of the measure assigned to the size attribute category.

For example, the following request specifies the latitude and longitude sort fields and the size measure for a bubblemap, and assigns the fields to the appropriate attribute categories:

GRAPH FILE WF_RETAIL_LITE
SUM MIN.CITY_POPULATION
BY STATE_PROV_LATITUDE
BY STATE_PROV_LONGITUDE
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH BUBBLEMAP 
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
TYPE=REPORT, CHART-LOOK=com.esri.map, $
TYPE=DATA, COLUMN=STATE_PROV_LATITUDE, BUCKET=latitude, $
TYPE=DATA, COLUMN=STATE_PROV_LONGITUDE, BUCKET=longitude, $
TYPE=DATA, COLUMN=MIN.CITY_POPULATION, BUCKET=size, $
...

In order to display the symbols and the base map, you need to add map properties to the WebFOCUS StyleSheet, as described in the following sections.

WebFOCUS

Feedback