RatingChart.LineBrush

Syntax

LineBrush: PP.SolidColorBrush | String;

Description

The LineBrush property determines background fill color for data series with positive values.

Comments

Use JSON or the setLineBrush method to set the property value and the getLineBrush method to get the property value.

Example

Executing the example requires that the page contains the RatingChart component named ratingChart (see Example of Creating the RatingChart Component). Change data series fill color with positive and negative values:

// Disable chart redrawing
ratingChart.beginUpdate();
// Change data series fill color on positive values
lineBrush = ratingChart.getLineBrush();
lineBrush.setColor("#008A00");
// Change data series fill color on negative values
negativeLineBrush = ratingChart.getNegativeLineBrush();
negativeLineBrush.setColor("#8A0000");
// Redraw rating chart
ratingChart.draw();
// Apply made changes and redraw chart
ratingChart.endUpdate();

After executing the example data series fill colors will be changed.

See also:

RatingChart