Show:

ia.CategoricClassifier Class

Classifies categoric data.

Constructor

ia.CategoricClassifier

(
  • data
)

Parameters:

  • data String

    The data array.

Methods

_buildClasses

() private

Called when the dataChanged flag indicates that the classifier has changed in some way so that the classes have to be rebuilt.

_buildPalettes

() private

Called when the style or one of the legend palettes has changed.

_getUniqueValues

(
  • data
)
String private

Returns a sorted list of unique values for an array.

Parameters:

  • data String

    The data array.

Returns:

String: An array of unique values.

commitChanges

()

Call this to commit any changes.

getClass

(
  • value
)
ia.CategoricClass

Gets the legend class for the given value.

Parameters:

  • value String

    The value.

Returns:

ia.CategoricClass: The legend class that contains the value.

getClasses

(
  • value
)

An array of legend classes contained in the classifier.

Parameters:

getData

() String

Gets the data.

Returns:

String: The data.

setData

(
  • value
)

Sets the data.

Parameters:

  • value String

    The data.

Properties

breaks

Number

A list of breaks used in place of the default values.

colorPalette

ia.ColorPalette

Used to classify colors.

formatter

ia.Formatter

The formatter.

labels

String

A list of labels used in place of the default values.

noClasses

Number

The number of classes.

Default: 0

symbolSize

Number

The symbol size.

Default: 10;

uniqueValues

Number

A list of sorted unique values in the classifier.