$(function(){
var local_data_new=[];
//selecting the year
var selected_year=" ";
var selected_year_val = " " ;
var years = ["current year" , "last year" , "in last 2 years", "in last 5 years", "in last 10 years" ];
//for testing db
var all_ind=[];
var all_co=[];
var all_dev_id=[];
//master db
var unique_industry = [];
var industry_names=[];
//yearly collection
var selected_ind = " "; //name of ind
var selected_ind_val = 0; // no of that ind
var CL_yearly_avg=[];
var TMP_yearly_avg=[];
var PH_yearly_avg=[];
var first_industry=" ";
var unique_ind_id=[];
var unique_co_id=[];
//--monthly collection
var CL_DataPoints=[];
var PH_DataPoints=[];
var TMP_DataPoints=[];
var CL_monthly_avg = [];
var PH_monthly_avg =[];
var TMP_monthly_avg =[];
var month_names=["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"];
//daily collection
var j = 0;
var selected_sensor = " ";
var myid = " ";
var selected_month_id = 0;
var selected_month = " ";
var CL_DataPoints_daily=[];
var PH_DataPoints_daily=[];
var TMP_DataPoints_daily=[];
var PH_daily_avg = [];
var CL_daily_avg = [];
var TMP_daily_avg = [];
PH_daily_avg.length = 31;
CL_daily_avg .length = 31;
TMP_daily_avg.length = 31;
var counter= [];
var my_date=[];
counter.length = 31;
my_date.length= 31;
var unique_rid = [];
var mycounter=0;
var industry_id = [];
//charts data points
var pieDataPoints = [];
//obtain different industry names and ids from master db
for(var i=0; i<industry_data.rows.length; i++){
if(i == 0){
industry_id.push(industry_data.rows[0].key);
industry_names.push(industry_data.rows[0].value.indusdtry_tag);
}
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!