LineBrush: PP.SolidColorBrush | String;
The LineBrush property determines data series fill color for positive values.
Use JSON or the setLineBrush method to set the property value and the getLineBrush method to get the property value.
Executing the example requires that the page contains the RatingChart component named ratingChart (see Example of Creating the RatingChart Component). Change background fill color of data series number, data series fill color with positive and negative values:
// Get a first data series serie = ratingChart.getSerie(0); // Disable rating chart redrawing serie.getChart().beginUpdate(); // Set up fill color for data series number serie.setIndexBrush("#008A00"); // Set up fill color for data series on positive values serie.setLineBrush("#00008A"); // Set up fill color for data series on negative values serie.setNegativeLineBrush("#8A0000"); // Redraw a data series serie.draw(); serie.getChart().endUpdate();
After executing the example the background fill color of data series number, the data series fill color with positive and negative values will be changed.
See also: