Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Javascript/Typescript
 QCSPCChart for Javascript/Typescript
 How to retrieve calculated values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

quinncurtis

1585 Posts

Posted - 26 Oct 2020 :  10:54:44  Show Profile  Reply with Quote
Is there a possible way for me to extract the calculated data (Mean, Range & Sum) which is shown in the tooltip for each point in the chart?

quinncurtis

1585 Posts

Posted - 26 Oct 2020 :  10:55:13  Show Profile  Reply with Quote
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];

}
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07