ChartHistory Constructor

Syntax

PP.Ui.ChartHistory(settings);

Parameters

settings. JSON object that contains values of component properties.

Description

The ChartHistory constructor creates an instance of the ChartHistory class.

Example

To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Display values history for the first point in the first data series of the bubble chart:

// Get series array of bubble chart
var series = bubbleChart.getSeries();
// Get a series with the 0 index
var serie = series[0];
// Get the first series point
var chartSeriePoint = serie.getPoints()[0];
// Create an object for displaying values history of this series
var history = new PP.Ui.ChartHistory({
    Chart: bubbleChart, // bubble chart
    IsVisible: true // Make values history visible
});
// Specify the point, for which display values history
history.setPoint(chartSeriePoint);
// render history on the bubble chart
history.draw(bubbleChart.getChartArea().getHistoryLayer());

After executing the example values history for the first point of the first data series is displayed in the bubble chart:

See also:

ChartHistory