ChartSerie.setColors

Syntax

setColors(color: String);

Parameters

color. Fill color of series bubbles.

Description

The setColors method sets fill color for series bubbles.

Example

To execute this example, the HTML page must contain an instance of the ChartSerie class named serie (see ChartSerie constructor). Set light blue fill color for series bubble:

// Remove the Color dimension
delete serie.getChart().getVisuals().Color;
// Set light blue fill color for bubble chart bubbles
serie.setColors(PP.Color.Colors.lightblue);
// Rerender data series
serie.draw();
// Display values history for this series
serie.getPoints()[0].setIsHistoryOn(true);

After executing the example light blue fill color is set for bubble chart bubbles:

See also:

ChartSerie