ParallelCoordinates.ChartArea

Syntax

ChartArea: PP.Ui.PCArea;

Description

The ChartArea property determines chart plot area.

Comments

Use JSON to set the property value and the getChartArea method to get the property value.

Example

Executing the example requires the ParallelCoordinates component named coord (see Example of Creating the ParallelCoordinates Component). Clear layers of chart axes, lines and plot area labels, and next draw the first line:

//Clear chart axes layer
coord.getChartArea().getAxesLayer().clear();
// Clear chart lines layer
coord.getChartArea().getLinesLayer().clear();
// Clear chart labels layer
var arr = coord.getChartArea().getLabelsLayer().children;
for (var i = arr.length-1; i >= 0; i--) {
    arr[i].remove();
}
coord.getChartArea().setFooter({ Text: "Axis 2" });
// Draw only the first line
coord.getLines()[0].renderFrame(coord.getChartArea().getPaper());

As a result, only the first line is drawn in the chart:

Hide the first line:

coord.getLines()[0].hide();

As a result, the chart is cleared.

See also:

ParallelCoordinates