Still have questions?
Contact support
You are looking at an outdated 7.10.0 version of this document. Switch to the 7.13.0 version to see the up to date information.

Statistics

Overview

AnyChart Charts provide you an ability to access different statistical data calculated by chart engine.

Statistics Methods

To obtain statistical data from chart use getStat() method with field name as a parameter, available field names can be found in anychart.enums.Statistics, you can use them by name or by their string representation:

var bubbleMaxSize = chart.getStat("dataPlotBubbleMaxSize");
var pointsCount = chart.getStat(anychart.enums.Statistics.DATA_PLOT_POINT_COUNT);

Here is a sample chart where maximum bubble size and number of points is obtained using getStat() method:

JsFiddle Playground