new Formatter(options)
Creates a new style Formatter.
Parameters:
| Name | Type | Description | 
|---|---|---|
| options | object | The options parameter is a JSON object containing several optional 
 | 
Methods
- 
    getNumClasses()
- 
    
    Gets the desired classes or buckets for dividing the data item values. 
- 
    getScale()
- 
    
    gets the scale (such as linear or logarithmic) used to classify data item 
 values.
- 
    getStyle()
- 
    
    Gets the original style for which this Formatter might be affecting one 
 of its visual attributes.
- 
    resolve(itemValue, column, feature)
- 
    
    The main function of a Formatter. It computes and returns a style attribute 
 value based on the specified data item value and the set of all possible
 data item values (captured as a Column).Parameters:Name Type Description itemValueobject the value of a specific data item, against 
 which the optimal style attribute value (such as fill color or marker size)
 is determined.columnobject the OM.Column instance that contains the set of 
 all possible data items. itemValue is the value of one of the data items
 from the column.featureobject the feature object being resolved. Returns:the determined style attribute value - Type
- object