Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Javascript/Typescript
 QCSPCChart for Javascript/Typescript
 How to retrieve calculated values

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
quinncurtis Posted - 26 Oct 2020 : 10:54:44
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?
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 26 Oct 2020 : 10:55:13
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];

}

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07