Show:

ia.CategoricClass Class

Extends ia.LegendClass
Module: ia

A ia.CategoricClass consists of a value, style and size.

Constructor

ia.CategoricClass

(
  • data
  • inValue
  • inColor
  • inSize
)

Parameters:

  • data Number

    The data array.

  • inValue String

    The value.

  • inColor String

    The color.

  • inSize Number

    The size.

Methods

contains

(
  • value
)
Boolean

Checks if a value is contained in the class.

Parameters:

  • value String

    The value.

Returns:

Boolean: true / false.

getLabel

() String

Get the label.

Returns:

String: The label.

setLabel

(
  • label
)

Set the label.

Parameters:

  • label String

    The label.

Properties

color

String

The default color.

Default: "#FFFFFF"

formatter

ia.Formatter

The formatter.

index

Number

The position of the class in the thematic.

Default: 0

items

Number

The list of data items contained in this class.

size

Number

The default size applied to data in the layer.

Default: 15

symbol

String

The symbol used for point data.

Default: ia.Shape.SQUARE

value

Number

The value