You can extract the both the most recent (current) value for each statistic, or the value at any sample interval.
var chartdata = xbarrchart.ChartData; . . // Input and process data . if (chartdata) { // current calculated values var mean = chartdata.getCalculatedValueRecord(0).CalculatedValue; var range = chartdata.getCalculatedValueRecord(1).CalculatedValue; var sum = chartdata.getCalculatedValueRecord(2).CalculatedValue;
// calculated values for a given sample interval var interval = 22; mean = chartdata.getCalculatedValueRecord(0).CalculatedValues[interval]; range = chartdata.getCalculatedValueRecord(1).CalculatedValues[interval]; sum = chartdata.getCalculatedValueRecord(2).CalculatedValues[interval];