dojo.require("esri.tasks.ClassBreaksDefinition")
Description
(Added at v2.6)
Define a class breaks classification scheme used by the
GenerateRendererTask to generate classes. Class breaks renderers symbolize data based on the value of a numeric attribute. Data with similar values for the attribute use the same symbol.
See also
Samples
Search for
samples that use this class.
Class hierarchy
esri/tasks.ClassificationDefinition
|_esri/tasks.ClassBreaksDefinition
Constructors
Properties
Methods
toJson() | Object | Returns an easily serializable object representation of the class breaks definition. |
Constructor Details
Creates a new ClassBreaksDefinition object
Sample:
var classDef = new esri.tasks.ClassBreaksDefinition();
Property Details
Define a default symbol for the classification. If a baseSymbol
is not defined then a default symbol is created based on the geometryType of the layer.
The number of class breaks.
Sample:
classDef.breakCount = 5;
The name of the field used to match values.
Sample:
classDef.classificationField = "POP2007";
The name of the classification method.
Known values: natural-breaks | equal-interval | quantile | standard-deviation | geometrical-interval
Sample:
classDef.classificationMethod = "quantile";
Define a color ramp for the classification. If a <code>colorRamp</code> is not defined then a default color ramp will be used to assign a color to each class.
The name of the field that contains the values used to normalize class breaks when normalizationType
is set to 'field'.
The type of normalization used to normalize class breaks.
Known values: field | log | percent-of-total
The standard deviation interval. When standardDeviationInterval
is specified breakCount
is ignored. Only valid when the classificationMethod
is set to 'standard-deviation'.
Known values: 1 | 0.5 | 0.33 | 0.25
The type of classification definition.
Known values: uniqueValueDef | classBreaksDef
Method Details
Returns an easily serializable object representation of the class breaks definition.