CHARTSYMBOL | Examples |
<CHARTSYMBOL | Attribute
Description Table |
antialiasing ="true | false" [false]
maxsize ="1 - NNN" maxvalue ="1 - NNN" minsize ="1 - NNN" minvalue ="1 - NNN" mode ="pie | bar" [pie] outline ="0,0,0 - 255,255,255" [none] shadow ="0,0,0 - 255,255,255" size ="1 - NNN" sizefield ="string" transparency ="0.0 - 1.0" [1.0] > (m) <CHARTVALUE... /> </CHARTSYMBOL > | |
Bold: Attribute or child element is
required. (m): Child element can be used multiple times. |
Attribute | Usage | Back to Top |
---|---|---|
antialiasing | Used to make edges of labels and symbols smoother. When set to "true", antialiasing is active. Note that the time to generate a map may significantly increase when antialiasing is turned on. | |
maxsize | Maximum size of chart if size or sizefield is not used. | |
maxvalue | Maximum value that corresponds to the maximum chart size in maxsize. | |
minsize | Minimum size of chart if size or sizefield is not used. | |
minvalue | Minimum value that corresponds to the minimum chart size in minsize. | |
mode | Type of chart: pie or bar. | |
outline | Outline color of charts using RGB values. | |
shadow | Shadow color using RGB values. | |
size | Size of charts. All charts are the same size. | |
sizefield | The field in the database containing
the size of the chart. The field can be in the layer table or in a joined
table.
| |
transparency | Value to set percentage of transparency. 1.0 is 0 percent transparent. 0.0 is 100 percent transparent. |
Example 1: Using minsize, minvalue, maxsize, and maxvalue attributes. | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <CONFIG> <ENVIRONMENT> <LOCALE country="US" language="en" variant="" /> <UIFONT color="0,0,0" name="Arial" size="12" style="regular" /> <SCREEN dpi="96" /> </ENVIRONMENT> <MAP> <PROPERTIES> <ENVELOPE minx="-127.87777503188939" miny="30.378245451392196" maxx="-101.1629831289576" maxy="48.55733555119212" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-0" directory="<path to USA ESRIDATA>" /> </WORKSPACES> <LAYER type="featureclass" name="States" visible="true" id="0"> <DATASET name="states" type="polygon" workspace="shp_ws-0" /> <GROUPRENDERER> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL fillcolor="127,127,27" /> </SIMPLERENDERER> <SIMPLELABELRENDERER field="POP1999 POP1990"> <CHARTSYMBOL minsize="10" minvalue="1000000" maxsize="50" maxvalue="7000000" outline="255,255,255" shadow="0,0,0" transparency="1.0" > <CHARTVALUE lookupfield="POP1990" color="255,0,0" /> <CHARTVALUE lookupfield="POP1999" color="0,0,255" /> </CHARTSYMBOL> </SIMPLELABELRENDERER> </GROUPRENDERER> </LAYER> </MAP> </CONFIG> </ARCXML> |
Example 2: Using an ArcSDE layer and the size attribute. | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <CONFIG> <ENVIRONMENT> <LOCALE country="US" language="en" variant="" /> <UIFONT color="0,0,0" name="Arial" size="12" style="regular" /> <SCREEN dpi="96" /> </ENVIRONMENT> <MAP> <PROPERTIES> <ENVELOPE minx="-127.34083168343714" miny="27.246314948863663" maxx="-97.31362835016226" maxy="50.018623517052" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <WORKSPACES> <SDEWORKSPACE name="sde_ws-4" server="ARCSDENAME" instance="port:5151" user="SDE" encrypted="true" password="OCOBLVWKFCAEHC" /> </WORKSPACES> <LAYER type="featureclass" name="SDE.US_STATES" visible="true" id="0"> <DATASET name="SDE.US_STATES" type="polygon" workspace="sde_ws-4" /> <GROUPRENDERER> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL fillcolor="27,27,227" /> </SIMPLERENDERER> <SIMPLELABELRENDERER field="SDE.US_STATES.POP1999 SDE.US_STATES.POP1990"> <CHARTSYMBOL size="30" > <CHARTVALUE lookupfield="SDE.US_STATES.POP1990" color="255,0,0" /> <CHARTVALUE lookupfield="SDE.US_STATES.POP1999" color="0,0,255" /> </CHARTSYMBOL> </SIMPLELABELRENDERER> </GROUPRENDERER> </LAYER> </MAP> </CONFIG> </ARCXML> |
Example 3: Using sizefield with the field in a joined DBF file. | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <CONFIG> <ENVIRONMENT> <LOCALE country="US" language="en" variant="" /> <UIFONT color="0,0,0" name="Arial" size="12" style="regular" /> <SCREEN dpi="96" /> </ENVIRONMENT> <MAP> <PROPERTIES> <ENVELOPE minx="-127.87777503188939" miny="30.378245451392196" maxx="-101.1629831289576" maxy="48.55733555119212" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-0" directory="<path to USA ESRIDATA>" /> </WORKSPACES> <LAYER type="featureclass" name="States" visible="true" id="0"> <DATASET name="states" type="polygon" workspace="shp_ws-0" /> <SPATIALQUERY where="states.SUB_REGION='Mtn'" joinexpression="To=[states.STATE_FIPS],From=[relatefile.STATE_FIPS],Type=[scan]" jointables="relatefile" /> <GROUPRENDERER> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL fillcolor="127,127,27" /> </SIMPLERENDERER> <SIMPLELABELRENDERER field="POP1990 POP1999 RELATEFILE.CHARTSIZE"> <CHARTSYMBOL mode="bar" sizefield="RELATEFILE.CHARTSIZE" transparency="1.0" > <CHARTVALUE lookupfield="POP1990" color="255,0,0" /> <CHARTVALUE lookupfield="POP1999" color="0,0,255" /> </CHARTSYMBOL> </SIMPLELABELRENDERER> </GROUPRENDERER> </LAYER> </MAP> </CONFIG> </ARCXML> |