DataSource.ItemName

Syntax

ItemName: String;

Description

The ItemName property determines series name by its identifier.

Comments

Use the setItemName method to set the property value and the getItemName method to get the property value. Property value cannot be set from JSON.

The setItemName method has the following parameters: dimAttrId - series identifier, name - series name. The getItemName method has the dimAttrId parameter.

Example

To execute the example, the HTML page must contain the component named bubbleChart (see Example of Creating the BubbleChart ComponentBubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Determine data series names and show name of a series by series identifier:

// Determine series names
var itemsNames = {
    Serie0_Point0: "Ukraine",
    Serie10_Point0: "KievRegion"
}
// Get data source
var dataSource = bubbleChart.getDataSources().ds0;
// Set series names
dataSource.setItemsNames(itemsNames);
//Get and show series name by series identifier
console.log("Name of the series with the Serie0_Point0 identifier: " + dataSource.getItemName("Serie0_Point0"));

After executing the example the data series names are defined, and the browser console displays series name obtained by series identifier:

Name of the series with the Serie0_Point0 identifier: Ukraine

See also:

DataSource