PCObject Constructor

Syntax

PP.Ui.PCObject(settings);

Parameters

settings. JSON object that contains values of component properties.

Description

The PCObject constructor creates a chart item.

Comments

Executing this example requires the ParallelCoordinates component named coord (see Example of Creating the ParallelCoordinates Component). Create a new chart element and get title of the chart's first data source:

// Create an object
var obj = new PP.Ui.PCObject({
    Chart: coord
});
// Get title of the chart's first data source
console.log(Title of the chart's first data source: " + obj.getName());

After this title of the chart's first data source is displayed in the console:

Title of the chart's first data source: DataSource with custom attributes

See also:

PCObject