Class: ClassBreaksRendererE-mail This Topic Printable Version Give Us Feedback

Description

Class added v1.4.

A class breaks renderer symbolizes each graphic based on the value of some numeric attribute. For more information about renderers, see Symbolizing graphics with renderers.

Class hierarchy

esri.Renderer
  |_ esri.renderer.ClassBreaksRenderer

Constructor

Constructor Description
esri.renderer.ClassBreaksRenderer(defaultSymbol, attributeField) Creates a new ClassBreaksRenderer object.

Properties

Property Type Description
attributeField String The name of the attribute field the renderer uses to match values against.
breaks Object[] A 2-D array representing defined breaks. The array consists of [minValue,maxValue] pairs.

Methods

Method Return Value Description
addBreak(minValue, maxValue, symbol) none Adds a break. The range of the break is greater than or equal to the minimum value and less than the maximum value. After making changes, you must refresh the graphic.
removeBreak(minValue, maxValue) none Removes a break. After making changes, you must refresh the graphic.
Constructor Detail

esri.renderer.ClassBreaksRenderer(defaultSymbol, attributeField)

Creates a new ClassBreaksRenderer object.
Parameters:
<Symbol> defaultSymbol Required Default symbol for the renderer. This symbol is used for unmatched values.
<String> attributeField Required Attribute field renderer uses to match values.
Properties Detail

<String> attributeField

The name of the attribute field the renderer uses to match values against.

<Object[]> breaks

A 2-D array representing defined breaks. The array consists of [minValue,maxValue] pairs.
Methods Detail

addBreak(minValue, maxValue, symbol)

Adds a break. The range of the break is greater than or equal to the minimum value and less than the maximum value. After making changes, you must refresh the graphic.
Return value: none
Input Parameters:
<Number> minValue Required Minimum value in the break.
<Number> maxValue Required Maximum value in the break.
<Symbol> symbol Required Symbol used for the break.

removeBreak(minValue, maxValue)

Removes a break. After making changes, you must refresh the graphic.
Return value: none
Input Parameters:
<Number> minValue Required Minimum value in the break to remove.
<Number> maxValue Required Maximum value in the break to remove.