CHARTSYMBOL

Used in

CONFIG  REQUEST  RESPONSE  

Servers

Image  Feature  

Parent elements

EXACT  OTHER  RANGE  SIMPLELABELRENDERER 

Syntax

<CHARTSYMBOLAttribute 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]
     width="number"
>

     (r)(m)<CHARTVALUE... />

</CHARTSYMBOL >
(r): Attribute or child element is required.
(m):  Child element can be used multiple times.

Description

Symbolizes features with bar or pie diagrams.

Although chart symbols draw on the map, no information about the chart symbols is displayed in the legend. ArcIMS 9 does not support displaying chart values in the legend.

Restrictions


Notes


Attribute Descriptions for CHARTSYMBOL

AttributeUsage
antialiasingUsed 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.
maxsizeMaximum size of chart if size or sizefield is not used.
maxvalueMaximum value that corresponds to the maximum chart size in maxsize.
minsizeMinimum size of chart if size or sizefield is not used.
minvalueMinimum value that corresponds to the minimum chart size in minsize.
modeType of chart: pie or bar.
outlineOutline color of charts using RGB values.
shadowShadow color using RGB values.
sizeSize of charts. All charts are the same size.
sizefieldThe field in the database containing the size of the chart. The field can be in the layer table or in a joined table. Performance is generally better if the field name is all upper case.
  • For shapefiles with no joined tables, the field can be referenced using the short format.
    sizefield="AREA"
  • For shapefiles with joined tables, the name of the joined table must be included along with the field.
    sizefield="JOINEDTABLE.AREA"
  • For ArcSDE layers without joined tables, the field can be referenced using the short format.
    sizefield="AREA"
    The fully qualified name can also be used.
    sizefield="ARCSDENAME.TABLE.AREA"
  • For ArcSDE layers with joined tables, joined fields must be referenced using the fully qualified format.
    sizefield="ARCSDENAME.TABLE.AREA"
Works only with Image Services. Does not work with Feature Services.
transparencyValue to set percentage of transparency. 1.0 is 0 percent transparent. 0.0 is 100 percent transparent.
widthThe width represents a fixed width of for bars in a bar chart and a fixed diameter in pie charts. Units are pixels.
Back to top 

Examples for CHARTSYMBOL

Example 1: Using minsize, minvalue, maxsize, and maxvalue attributes.
<?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" />
      <FILTERCOORDSYS id="4326" />
      <FEATURECOORDSYS id="4326"/>
    </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.
<?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" />
      <FILTERCOORDSYS id="4326" />
      <FEATURECOORDSYS id="4326"/>
      </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.
<?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" />
      <FILTERCOORDSYS id="4326" />
      <FEATURECOORDSYS id="4326"/>
    </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>

Back to top