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.
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:
Fills specified regions of a map with heat-coded or discrete color values.
Draws proportional symbols on top of a map.
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:
|
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 |