From 7c50877957407b6cb1e6c608a56d6e4dea452baf Mon Sep 17 00:00:00 2001 From: Roshan Ragel Date: Sat, 16 Nov 2024 13:30:32 +0800 Subject: [PATCH] Create average.js --- 2023/js/average.js | 118 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 2023/js/average.js diff --git a/2023/js/average.js b/2023/js/average.js new file mode 100644 index 0000000..cc308af --- /dev/null +++ b/2023/js/average.js @@ -0,0 +1,118 @@ +var averageFind = { + count : function(rankid,gpaid,fieldid,N){ + + //console.log(rankid); + //console.log(gpaid); + //console.log(fieldid); + + var fields = Object.keys(fullAllocation); + + //GPA average data + var gpaData = {'Chem':{'count':0,'sum':0},'Civil':{'count':0,'sum':0},'Comp':{'count':0,'sum':0},'Elect':{'count':0,'sum':0},'Mech':{'count':0,'sum':0},'Manufac':{'count':0,'sum':0}}; + + //iterate throught all the elements upto N + for(var i=1;i{point.key}', + pointFormat: '' + + '', + footerFormat: '
{series.name}: {point.y.toFixed(2)} mm
', + shared: true, + useHTML: true + + } + }, + series: series + }); + }); + } + + + +};