RatingChart.Header

Syntax

Header: PP.Ui.RatingChartHeader;

Description

The Header method determines rating chart header row.

Comments

Use JSON or the setHeader method to set the property value and the getHeader 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). Get width of rating chart column headers, enable the last column to overlay the next column if there is no sufficient place and redraw the header row:

// Get header string
header = ratingChart.getHeader();
// Get header width of column with data series numbers
header.getVisibleIndexColumnWidth();
// Get header width of column for data series position change
header.getVisibleMoveColumnWidth();
// Get header width of column with data series names
header.getVisibleNameColumnWidth();
// Get header width of the first column with data series values
header.getVisibleDataColumnWidth(0);
// Get header width of the second column with data series values
header.getVisibleDataColumnWidth(1);
// Disable temporarily rating chart redrawing
header.getChart().beginUpdate();
// Enable the last column with text to overlap the next column if there is not enough space
header.setExpandLastColumn(true);
// Redraw header row
header.draw();
// Refresh rating chart
header.getChart().endUpdate();

After executing the example the last column with text will overlay the next column if there is no sufficient place, the console displays width of column headers, header row will be redrawn.

See also:

RatingChart