highstock-rails 2.1.10 → 5.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/css/highcharts.css +760 -0
- data/app/assets/javascripts/highstock.js +511 -419
- data/app/assets/javascripts/highstock/highstock.js +472 -0
- data/app/assets/javascripts/highstock/highstock.js.map +8 -0
- data/app/assets/javascripts/highstock/highstock.src.js +28809 -0
- data/app/assets/javascripts/highstock/modules/accessibility.js +48 -0
- data/app/assets/javascripts/highstock/modules/accessibility.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/accessibility.src.js +1131 -0
- data/app/assets/javascripts/highstock/modules/annotations.js +14 -0
- data/app/assets/javascripts/highstock/modules/annotations.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/annotations.src.js +407 -0
- data/app/assets/javascripts/highstock/modules/boost-canvas.js +23 -0
- data/app/assets/javascripts/highstock/modules/boost-canvas.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/boost-canvas.src.js +771 -0
- data/app/assets/javascripts/highstock/modules/boost.js +51 -12
- data/app/assets/javascripts/highstock/modules/boost.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/boost.src.js +2580 -492
- data/app/assets/javascripts/highstock/modules/broken-axis.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/canvasrenderer.experimental.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/data.js +19 -19
- data/app/assets/javascripts/highstock/modules/data.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/data.src.js +974 -950
- data/app/assets/javascripts/highstock/modules/drilldown.js +25 -17
- data/app/assets/javascripts/highstock/modules/drilldown.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/drilldown.src.js +790 -709
- data/app/assets/javascripts/highstock/modules/export-data.js +17 -0
- data/app/assets/javascripts/highstock/modules/export-data.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/export-data.src.js +417 -0
- data/app/assets/javascripts/highstock/modules/exporting.js +21 -18
- data/app/assets/javascripts/highstock/modules/exporting.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/exporting.src.js +1013 -768
- data/app/assets/javascripts/highstock/modules/funnel.js +6 -7
- data/app/assets/javascripts/highstock/modules/funnel.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/funnel.src.js +284 -308
- data/app/assets/javascripts/highstock/modules/gantt.js +24 -0
- data/app/assets/javascripts/highstock/modules/gantt.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/gantt.src.js +793 -0
- data/app/assets/javascripts/highstock/modules/grid-axis.js +19 -0
- data/app/assets/javascripts/highstock/modules/grid-axis.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/grid-axis.src.js +545 -0
- data/app/assets/javascripts/highstock/modules/heatmap.js +20 -18
- data/app/assets/javascripts/highstock/modules/heatmap.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/heatmap.src.js +738 -633
- data/app/assets/javascripts/highstock/modules/map-parser.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/map.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/no-data-to-display.js +5 -5
- data/app/assets/javascripts/highstock/modules/no-data-to-display.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/no-data-to-display.src.js +140 -133
- data/app/assets/javascripts/highstock/modules/offline-exporting.js +12 -7
- data/app/assets/javascripts/highstock/modules/offline-exporting.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/offline-exporting.src.js +543 -270
- data/app/assets/javascripts/highstock/modules/overlapping-datalabels.js +10 -0
- data/app/assets/javascripts/highstock/modules/overlapping-datalabels.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/overlapping-datalabels.src.js +187 -0
- data/app/assets/javascripts/highstock/modules/series-label.js +19 -0
- data/app/assets/javascripts/highstock/modules/series-label.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/series-label.src.js +606 -0
- data/app/assets/javascripts/highstock/modules/solid-gauge.js +9 -8
- data/app/assets/javascripts/highstock/modules/solid-gauge.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/solid-gauge.src.js +334 -266
- data/app/assets/javascripts/highstock/modules/static-scale.js +12 -0
- data/app/assets/javascripts/highstock/modules/static-scale.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/static-scale.src.js +64 -0
- data/app/assets/javascripts/highstock/modules/stock.js +123 -0
- data/app/assets/javascripts/highstock/modules/stock.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/stock.src.js +6247 -0
- data/app/assets/javascripts/highstock/modules/treemap.js +22 -23
- data/app/assets/javascripts/highstock/modules/treemap.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/treemap.src.js +884 -859
- data/app/assets/javascripts/highstock/modules/xrange-series.js +15 -0
- data/app/assets/javascripts/highstock/modules/xrange-series.js.map +8 -0
- data/app/assets/javascripts/highstock/modules/xrange-series.src.js +258 -0
- data/app/assets/javascripts/highstock/themes/dark-blue.js +307 -244
- data/app/assets/javascripts/highstock/themes/dark-green.js +303 -244
- data/app/assets/javascripts/highstock/themes/dark-unica.js +231 -201
- data/app/assets/javascripts/highstock/themes/gray.js +314 -245
- data/app/assets/javascripts/highstock/themes/grid-light.js +91 -66
- data/app/assets/javascripts/highstock/themes/grid.js +124 -96
- data/app/assets/javascripts/highstock/themes/sand-signika.js +119 -94
- data/app/assets/javascripts/highstock/themes/skies.js +108 -85
- data/lib/highstock/rails/version.rb +1 -1
- metadata +54 -11
- data/app/assets/javascripts/highstock/adapters/standalone-framework.js +0 -18
- data/app/assets/javascripts/highstock/adapters/standalone-framework.src.js +0 -635
- data/app/assets/javascripts/highstock/highcharts-3d.js +0 -48
- data/app/assets/javascripts/highstock/highcharts-3d.src.js +0 -1711
- data/app/assets/javascripts/highstock/highcharts-more.js +0 -55
- data/app/assets/javascripts/highstock/highstock-all.js +0 -637
- data/app/assets/javascripts/highstock/modules/canvas-tools.js +0 -133
- data/app/assets/javascripts/highstock/modules/canvas-tools.src.js +0 -3114
@@ -0,0 +1,8 @@
|
|
1
|
+
{
|
2
|
+
"version":3,
|
3
|
+
"file":"",
|
4
|
+
"lineCount":15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,EAF0B,CAGnCiC,EAAIqD,CAAA9D,OAAJS;AAAoB,CAExB,IAAIsE,CAAJ,EAAmB,CAAnB,CAAetE,CAAf,CAGI,IAAA,CAAOA,CAAA,EAAP,CAAA,CACQqD,CAAA,CAAOrD,CAAP,CAAW,CAAX,CAAA0D,EAAJ,CAAsBL,CAAA,CAAOrD,CAAP,CAAA0D,EAAtB,CAAoC,IAAA9B,kBAApC,CAA6D0C,CAA7D,EACIjB,CAAAM,OAAA,CACI3D,CADJ,CACQ,CADR,CAEI,CAFJ,CAEO,CACCuE,OAAQ,CAAA,CADT,CAFP,CAWZ,OAAO,KAAAC,aAAA,CAAkBnB,CAAlB,CArBgC,CAwB3C3E,EAAA,CAAKf,CAAA8G,YAAAC,OAAA5G,UAAL,CAAqC,YAArC,CAAmDI,CAAnD,CACAQ,EAAA,CAAKf,CAAAqB,OAAAlB,UAAL,CAAyB,YAAzB,CAAuCI,CAAvC,CApWS,CAAZ,CAAA,CAsWCR,CAtWD,CADkB,CANtB;",
|
6
|
+
"sources":["Input_0"],
|
7
|
+
"names":["factory","module","exports","Highcharts","H","stripArguments","Array","prototype","slice","call","arguments","drawPointsWrapped","proceed","apply","drawBreaks","xAxis","yAxis","pick","pointArrayMap","wrap","each","extend","isArray","fireEvent","Axis","Series","isInBreak","brk","val","repeat","Infinity","from","length","to","test","inclusive","ret","isInAnyBreak","testKeep","breaks","options","i","inbrk","keep","showPoints","isXAxis","tickPositions","info","newPositions","axis","push","chart","userOptions","ordinal","isBroken","val2lin","axis.val2lin","nval","breakArray","len","lin2val","axis.lin2val","setExtremes","axis.setExtremes","newMin","newMax","redraw","animation","eventArguments","closestPointRange","setAxisTranslation","axis.setAxisTranslation","saveOld","breakArrayT","inBrk","min","userMin","max","userMax","pointRangePadding","start","value","move","size","breakSize","sort","a","b","unitLength","staticScale","transA","minPixelPadding","minPointOffset","series","points","point","connectNulls","nullGap","y","x","splice","data","destroyElements","H.Series.prototype.drawBreaks","keys","threshold","eventName","key","toUp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,QAAQ,CAACC,CAAD,CAAU,CACzBA,CAAA3E,QAAA+B,UAAA,CAA4B4C,CAAAC,QADH,CA9DmB,CAApD,CAjGkB,CAArB,CAAA,CAoKCnF,CApKD,CADkB,CANtB;",
|
6
|
+
"sources":["Input_0"],
|
7
|
+
"names":["factory","module","exports","Highcharts","extend","SVGElement","prototype","init","renderer","nodeName","element","attributes","childNodes","setAttribute","key","value","removeAttribute","appendChild","push","parentNode","insertBefore","newItem","existingItem","splice","indexOf","removeChild","getElementsByTagName","cloneNode","style","dSetter","this.dSetter","join","getBBox","ctx","font","fillStyle","x","y","width","measureText","bBox","innerHTML","height","draw","path","elem","attr","segments","d","forEach","item","length","parseFloat","beginPath","segment","apply","slice","rect","text","fillText","SVGRenderer","container","boxWrapper","createElement","version","canvas","win","doc","getContext","isSVG","box","alignedObjects","defs","add","gradients","cache","setSize","drawElement","Array","call","lineWidth","strokeStyle","stroke","fill","buildText","wrapper","textStr"]
|
8
|
+
}
|
@@ -1,26 +1,26 @@
|
|
1
1
|
/*
|
2
|
-
|
2
|
+
Highcharts JS v5.0.11 (2017-05-04)
|
3
3
|
Data module
|
4
4
|
|
5
|
-
(c) 2012-
|
5
|
+
(c) 2012-2017 Torstein Honsi
|
6
6
|
|
7
7
|
License: www.highcharts.com/license
|
8
8
|
*/
|
9
|
-
(function(
|
10
|
-
this.parseTable(),this.parseGoogleSpreadsheet())},getColumnDistribution:function(){var b=this.chartOptions,a=this.options,
|
11
|
-
"line"].prototype.pointArrayMap||["y"];
|
12
|
-
this.
|
13
|
-
f[a-
|
14
|
-
this,a=this.options,
|
15
|
-
|
16
|
-
f=this.columns,
|
17
|
-
|
9
|
+
(function(p){"object"===typeof module&&module.exports?module.exports=p:p(Highcharts)})(function(p){(function(g){var p=g.win.document,m=g.each,z=g.objectEach,A=g.pick,w=g.inArray,x=g.isNumber,B=g.splat,n,u=function(b,a){this.init(b,a)};g.extend(u.prototype,{init:function(b,a){this.options=b;this.chartOptions=a;this.columns=b.columns||this.rowsToColumns(b.rows)||[];this.firstRowAsNames=A(b.firstRowAsNames,!0);this.decimalRegex=b.decimalPoint&&new RegExp("^(-?[0-9]+)"+b.decimalPoint+"([0-9]+)$");this.rawColumns=
|
10
|
+
[];this.columns.length?this.dataFound():(this.parseCSV(),this.parseTable(),this.parseGoogleSpreadsheet())},getColumnDistribution:function(){var b=this.chartOptions,a=this.options,d=[],f=function(b){return(g.seriesTypes[b||"line"].prototype.pointArrayMap||[0]).length},e=b&&b.chart&&b.chart.type,c=[],k=[],t=0,h;m(b&&b.series||[],function(b){c.push(f(b.type||e))});m(a&&a.seriesMapping||[],function(b){d.push(b.x||0)});0===d.length&&d.push(0);m(a&&a.seriesMapping||[],function(a){var d=new n,C=c[t]||f(e),
|
11
|
+
q=g.seriesTypes[((b&&b.series||[])[t]||{}).type||e||"line"].prototype.pointArrayMap||["y"];d.addColumnReader(a.x,"x");z(a,function(b,a){"x"!==a&&d.addColumnReader(b,a)});for(h=0;h<C;h++)d.hasReader(q[h])||d.addColumnReader(void 0,q[h]);k.push(d);t++});a=g.seriesTypes[e||"line"].prototype.pointArrayMap;void 0===a&&(a=["y"]);this.valueCount={global:f(e),xColumns:d,individual:c,seriesBuilders:k,globalPointArrayMap:a}},dataFound:function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns));
|
12
|
+
this.getColumnDistribution();this.parseTypes();!1!==this.parsed()&&this.complete()},parseCSV:function(){var b=this,a=this.options,d=a.csv,f=this.columns,e=a.startRow||0,c=a.endRow||Number.MAX_VALUE,k=a.startColumn||0,t=a.endColumn||Number.MAX_VALUE,h,g,y=0;d&&(g=d.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split(a.lineDelimiter||"\n"),h=a.itemDelimiter||(-1!==d.indexOf("\t")?"\t":","),m(g,function(a,d){var g=b.trim(a),q=0===g.indexOf("#");d>=e&&d<=c&&!q&&""!==g&&(a=a.split(h),m(a,function(b,a){a>=
|
13
|
+
k&&a<=t&&(f[a-k]||(f[a-k]=[]),f[a-k][y]=b)}),y+=1)}),this.dataFound())},parseTable:function(){var b=this.options,a=b.table,d=this.columns,f=b.startRow||0,e=b.endRow||Number.MAX_VALUE,c=b.startColumn||0,k=b.endColumn||Number.MAX_VALUE;a&&("string"===typeof a&&(a=p.getElementById(a)),m(a.getElementsByTagName("tr"),function(b,a){a>=f&&a<=e&&m(b.children,function(b,e){("TD"===b.tagName||"TH"===b.tagName)&&e>=c&&e<=k&&(d[e-c]||(d[e-c]=[]),d[e-c][a-f]=b.innerHTML)})}),this.dataFound())},parseGoogleSpreadsheet:function(){var b=
|
14
|
+
this,a=this.options,d=a.googleSpreadsheetKey,f=this.columns,e=a.startRow||0,c=a.endRow||Number.MAX_VALUE,k=a.startColumn||0,g=a.endColumn||Number.MAX_VALUE,h,q;d&&jQuery.ajax({dataType:"json",url:"https://spreadsheets.google.com/feeds/cells/"+d+"/"+(a.googleSpreadsheetWorksheet||"od6")+"/public/values?alt\x3djson-in-script\x26callback\x3d?",error:a.error,success:function(a){a=a.feed.entry;var d,t=a.length,r=0,n=0,l;for(l=0;l<t;l++)d=a[l],r=Math.max(r,d.gs$cell.col),n=Math.max(n,d.gs$cell.row);for(l=
|
15
|
+
0;l<r;l++)l>=k&&l<=g&&(f[l-k]=[],f[l-k].length=Math.min(n,c-e));for(l=0;l<t;l++)d=a[l],h=d.gs$cell.row-1,q=d.gs$cell.col-1,q>=k&&q<=g&&h>=e&&h<=c&&(f[q-k][h-e]=d.content.$t);m(f,function(a){for(l=0;l<a.length;l++)void 0===a[l]&&(a[l]=null)});b.dataFound()}})},trim:function(b,a){"string"===typeof b&&(b=b.replace(/^\s+|\s+$/g,""),a&&/^[0-9\s]+$/.test(b)&&(b=b.replace(/\s/g,"")),this.decimalRegex&&(b=b.replace(this.decimalRegex,"$1.$2")));return b},parseTypes:function(){for(var b=this.columns,a=b.length;a--;)this.parseColumn(b[a],
|
16
|
+
a)},parseColumn:function(b,a){var d=this.rawColumns,f=this.columns,e=b.length,c,k,g,h,n=this.firstRowAsNames,m=-1!==w(a,this.valueCount.xColumns),p=[],v=this.chartOptions,r,u=(this.options.columnTypes||[])[a],v=m&&(v&&v.xAxis&&"category"===B(v.xAxis)[0].type||"string"===u);for(d[a]||(d[a]=[]);e--;)c=p[e]||b[e],g=this.trim(c),h=this.trim(c,!0),k=parseFloat(h),void 0===d[a][e]&&(d[a][e]=g),v||0===e&&n?b[e]=g:+h===k?(b[e]=k,31536E6<k&&"float"!==u?b.isDatetime=!0:b.isNumeric=!0,void 0!==b[e+1]&&(r=k>
|
17
|
+
b[e+1])):(k=this.parseDate(c),m&&x(k)&&"float"!==u?(p[e]=c,b[e]=k,b.isDatetime=!0,void 0!==b[e+1]&&(c=k>b[e+1],c!==r&&void 0!==r&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=b.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):b.unsorted=!0),r=c)):(b[e]=""===g?null:g,0!==e&&(b.isDatetime||b.isNumeric)&&(b.mixed=!0)));m&&b.mixed&&(f[a]=d[a]);if(m&&r&&this.options.sort)for(a=0;a<f.length;a++)f[a].reverse(),n&&f[a].unshift(f[a].pop())},dateFormats:{"YYYY-mm-dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{2})[\-\/\.]([0-9]{2})$/,
|
18
18
|
parser:function(b){return Date.UTC(+b[1],b[2]-1,+b[3])}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(b){return Date.UTC(+b[3],b[2]-1,+b[1])},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(b){return Date.UTC(+b[3],b[1]-1,+b[2])}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(b){return Date.UTC(+b[3]+2E3,b[2]-1,+b[1])},alternative:"mm/dd/YY"},
|
19
|
-
"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(b){return Date.UTC(+b[3]+2E3,b[1]-1,+b[2])}}},parseDate:function(b){var a=this.options.parseDate,
|
20
|
-
typeof c
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
19
|
+
"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(b){return Date.UTC(+b[3]+2E3,b[1]-1,+b[2])}}},parseDate:function(b){var a=this.options.parseDate,d,f,e=this.options.dateFormat||this.dateFormat,c;if(a)d=a(b);else if("string"===typeof b){if(e)a=this.dateFormats[e],(c=b.match(a.regex))&&(d=a.parser(c));else for(f in this.dateFormats)if(a=this.dateFormats[f],c=b.match(a.regex)){this.dateFormat=f;this.alternativeFormat=a.alternative;d=a.parser(c);break}c||(c=Date.parse(b),
|
20
|
+
"object"===typeof c&&null!==c&&c.getTime?d=c.getTime()-6E4*c.getTimezoneOffset():x(c)&&(d=c-6E4*(new Date(c)).getTimezoneOffset()))}return d},rowsToColumns:function(b){var a,d,f,e,c;if(b)for(c=[],d=b.length,a=0;a<d;a++)for(e=b[a].length,f=0;f<e;f++)c[f]||(c[f]=[]),c[f][a]=b[a][f];return c},parsed:function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)},getFreeIndexes:function(b,a){var d,f=[],e=[],c;for(d=0;d<b;d+=1)f.push(!0);for(b=0;b<a.length;b+=1)for(c=a[b].getReferencedColumnIndexes(),
|
21
|
+
d=0;d<c.length;d+=1)f[c[d]]=!1;for(d=0;d<f.length;d+=1)f[d]&&e.push(d);return e},complete:function(){var b=this.columns,a,d=this.options,f,e,c,k,g=[],h;if(d.complete||d.afterComplete){for(c=0;c<b.length;c++)this.firstRowAsNames&&(b[c].name=b[c].shift());f=[];e=this.getFreeIndexes(b.length,this.valueCount.seriesBuilders);for(c=0;c<this.valueCount.seriesBuilders.length;c++)h=this.valueCount.seriesBuilders[c],h.populateColumns(e)&&g.push(h);for(;0<e.length;){h=new n;h.addColumnReader(0,"x");c=w(0,e);
|
22
|
+
-1!==c&&e.splice(c,1);for(c=0;c<this.valueCount.global;c++)h.addColumnReader(void 0,this.valueCount.globalPointArrayMap[c]);h.populateColumns(e)&&g.push(h)}0<g.length&&0<g[0].readers.length&&(h=b[g[0].readers[0].columnIndex],void 0!==h&&(h.isDatetime?a="datetime":h.isNumeric||(a="category")));if("category"===a)for(c=0;c<g.length;c++)for(h=g[c],e=0;e<h.readers.length;e++)"x"===h.readers[e].configName&&(h.readers[e].configName="name");for(c=0;c<g.length;c++){h=g[c];e=[];for(k=0;k<b[0].length;k++)e[k]=
|
23
|
+
h.read(b,k);f[c]={data:e};h.name&&(f[c].name=h.name);"category"===a&&(f[c].turboThreshold=0)}b={series:f};a&&(b.xAxis={type:a},"category"===a&&(b.xAxis.uniqueNames=!1));d.complete&&d.complete(b);d.afterComplete&&d.afterComplete(b)}}});g.Data=u;g.data=function(b,a){return new u(b,a)};g.wrap(g.Chart.prototype,"init",function(b,a,d){var f=this;a&&a.data?g.data(g.extend(a.data,{afterComplete:function(e){var c,k;if(a.hasOwnProperty("series"))if("object"===typeof a.series)for(c=Math.max(a.series.length,
|
24
|
+
e.series.length);c--;)k=a.series[c]||{},a.series[c]=g.merge(k,e.series[c]);else delete a.series;a=g.merge(e,a);b.call(f,a,d)}}),a):b.call(f,a,d)});n=function(){this.readers=[];this.pointIsArray=!0};n.prototype.populateColumns=function(b){var a=!0;m(this.readers,function(a){void 0===a.columnIndex&&(a.columnIndex=b.shift())});m(this.readers,function(b){void 0===b.columnIndex&&(a=!1)});return a};n.prototype.read=function(b,a){var d=this.pointIsArray,f=d?[]:{},e;m(this.readers,function(c){var e=b[c.columnIndex][a];
|
25
|
+
d?f.push(e):f[c.configName]=e});void 0===this.name&&2<=this.readers.length&&(e=this.getReferencedColumnIndexes(),2<=e.length&&(e.shift(),e.sort(),this.name=b[e.shift()].name));return f};n.prototype.addColumnReader=function(b,a){this.readers.push({columnIndex:b,configName:a});"x"!==a&&"y"!==a&&void 0!==a&&(this.pointIsArray=!1)};n.prototype.getReferencedColumnIndexes=function(){var b,a=[],d;for(b=0;b<this.readers.length;b+=1)d=this.readers[b],void 0!==d.columnIndex&&a.push(d.columnIndex);return a};
|
26
|
+
n.prototype.hasReader=function(b){var a,d;for(a=0;a<this.readers.length;a+=1)if(d=this.readers[a],d.configName===b)return!0}})(p)});
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{
|
2
|
+
"version":3,
|
3
|
+
"file":"",
|
4
|
+
"lineCount":26,
|
5
|
+
"mappings":"A;;;;;;;;AASC,SAAQ,CAACA,CAAD,CAAU,CACO,QAAtB,GAAI,MAAOC,OAAX,EAAkCA,MAAAC,QAAlC,CACID,MAAAC,QADJ,CACqBF,CADrB,CAGIA,CAAA,CAAQG,UAAR,CAJW,CAAlB,CAAA,CAMC,QAAQ,CAACA,CAAD,CAAa,CAClB,SAAQ,CAACA,CAAD,CAAa,CAAA,IAadC,EADMD,CAAAE,IACAC,SAbQ,CAcdC,EAAOJ,CAAAI,KAdO,CAedC,EAAaL,CAAAK,WAfC,CAgBdC,EAAON,CAAAM,KAhBO,CAiBdC,EAAUP,CAAAO,QAjBI,CAkBdC,EAAWR,CAAAQ,SAlBG,CAmBdC,EAAQT,CAAAS,MAnBM,CAoBdC,CApBc,CAwBdC,EAAOA,QAAQ,CAACC,CAAD,CAAcC,CAAd,CAA4B,CAC3C,IAAAC,KAAA,CAAUF,CAAV,CAAuBC,CAAvB,CAD2C,CAK/Cb,EAAAe,OAAA,CAAkBJ,CAAAK,UAAlB,CAAkC,CAK9BF,KAAMA,QAAQ,CAACG,CAAD,CAAUJ,CAAV,CAAwB,CAClC,IAAAI,QAAA,CAAeA,CACf,KAAAJ,aAAA,CAAoBA,CACpB,KAAAK,QAAA,CAAeD,CAAA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names":["factory","module","exports","Highcharts","doc","win","document","each","objectEach","pick","inArray","isNumber","splat","SeriesBuilder","Data","dataOptions","chartOptions","init","extend","prototype","options","columns","rowsToColumns","rows","firstRowAsNames","decimalRegex","decimalPoint","RegExp","rawColumns","length","dataFound","parseCSV","parseTable","parseGoogleSpreadsheet","getColumnDistribution","xColumns","getValueCount","type","seriesTypes","pointArrayMap","globalType","chart","individualCounts","seriesBuilders","seriesIndex","i","series","push","seriesMapping","mapping","x","builder","numberOfValueColumnsNeeded","addColumnReader","val","name","hasReader","undefined","globalPointArrayMap","valueCount","global","individual","switchRowsAndColumns","parseTypes","parsed","complete","self","csv","startRow","endRow","Number","MAX_VALUE","startColumn","endColumn","itemDelimiter","lines","activeRowNo","replace","split","lineDelimiter","indexOf","line","rowNo","trimmed","trim","isComment","items","item","colNo","table","getElementById","getElementsByTagName","tr","children","tagName","innerHTML","googleSpreadsheetKey","gr","gc","jQuery","ajax","dataType","url","googleSpreadsheetWorksheet","error","success","json","cells","feed","entry","cell","cellCount","colCount","rowCount","Math","max","gs$cell","col","row","min","content","$t","column","str","inside","test","parseColumn","floatVal","trimVal","trimInsideVal","isXColumn","backup","descending","columnType","columnTypes","forceCategory","xAxis","parseFloat","isDatetime","isNumeric","dateVal","parseDate","diff","alternativeFormat","dateFormat","dateFormats","alternative","unsorted","mixed","sort","reverse","unshift","pop","regex","parser","match","Date","UTC","ret","key","format","parse","getTime","getTimezoneOffset","rowsLength","colsLength","call","getFreeIndexes","numberOfColumns","freeIndexes","freeIndexValues","referencedIndexes","s","getReferencedColumnIndexes","data","j","allSeriesBuilders","afterComplete","shift","populateColumns","index","splice","readers","typeCol","columnIndex","r","configName","read","turboThreshold","uniqueNames","Highcharts.data","wrap","Chart","proceed","userOptions","callback","hasOwnProperty","merge","pointIsArray","SeriesBuilder.prototype.populateColumns","enoughColumns","reader","SeriesBuilder.prototype.read","rowIndex","point","columnIndexes","value","SeriesBuilder.prototype.addColumnReader","SeriesBuilder.prototype.getReferencedColumnIndexes","referencedColumnIndexes","columnReader","SeriesBuilder.prototype.hasReader"]
|
8
|
+
}
|
@@ -1,957 +1,981 @@
|
|
1
1
|
/**
|
2
|
-
* @license
|
2
|
+
* @license Highcharts JS v5.0.11 (2017-05-04)
|
3
3
|
* Data module
|
4
4
|
*
|
5
|
-
* (c) 2012-
|
5
|
+
* (c) 2012-2017 Torstein Honsi
|
6
6
|
*
|
7
7
|
* License: www.highcharts.com/license
|
8
8
|
*/
|
9
|
-
|
10
|
-
|
11
|
-
(
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
9
|
+
'use strict';
|
10
|
+
(function(factory) {
|
11
|
+
if (typeof module === 'object' && module.exports) {
|
12
|
+
module.exports = factory;
|
13
|
+
} else {
|
14
|
+
factory(Highcharts);
|
15
|
+
}
|
16
|
+
}(function(Highcharts) {
|
17
|
+
(function(Highcharts) {
|
18
|
+
/**
|
19
|
+
* Data module
|
20
|
+
*
|
21
|
+
* (c) 2012-2017 Torstein Honsi
|
22
|
+
*
|
23
|
+
* License: www.highcharts.com/license
|
24
|
+
*/
|
25
|
+
|
26
|
+
/* global jQuery */
|
27
|
+
|
28
|
+
// Utilities
|
29
|
+
var win = Highcharts.win,
|
30
|
+
doc = win.document,
|
31
|
+
each = Highcharts.each,
|
32
|
+
objectEach = Highcharts.objectEach,
|
33
|
+
pick = Highcharts.pick,
|
34
|
+
inArray = Highcharts.inArray,
|
35
|
+
isNumber = Highcharts.isNumber,
|
36
|
+
splat = Highcharts.splat,
|
37
|
+
SeriesBuilder;
|
38
|
+
|
39
|
+
|
40
|
+
// The Data constructor
|
41
|
+
var Data = function(dataOptions, chartOptions) {
|
42
|
+
this.init(dataOptions, chartOptions);
|
43
|
+
};
|
44
|
+
|
45
|
+
// Set the prototype properties
|
46
|
+
Highcharts.extend(Data.prototype, {
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Initialize the Data object with the given options
|
50
|
+
*/
|
51
|
+
init: function(options, chartOptions) {
|
52
|
+
this.options = options;
|
53
|
+
this.chartOptions = chartOptions;
|
54
|
+
this.columns = options.columns || this.rowsToColumns(options.rows) || [];
|
55
|
+
this.firstRowAsNames = pick(options.firstRowAsNames, true);
|
56
|
+
this.decimalRegex = options.decimalPoint && new RegExp('^(-?[0-9]+)' + options.decimalPoint + '([0-9]+)$');
|
57
|
+
|
58
|
+
// This is a two-dimensional array holding the raw, trimmed string values
|
59
|
+
// with the same organisation as the columns array. It makes it possible
|
60
|
+
// for example to revert from interpreted timestamps to string-based
|
61
|
+
// categories.
|
62
|
+
this.rawColumns = [];
|
63
|
+
|
64
|
+
// No need to parse or interpret anything
|
65
|
+
if (this.columns.length) {
|
66
|
+
this.dataFound();
|
67
|
+
|
68
|
+
// Parse and interpret
|
69
|
+
} else {
|
70
|
+
|
71
|
+
// Parse a CSV string if options.csv is given
|
72
|
+
this.parseCSV();
|
73
|
+
|
74
|
+
// Parse a HTML table if options.table is given
|
75
|
+
this.parseTable();
|
76
|
+
|
77
|
+
// Parse a Google Spreadsheet
|
78
|
+
this.parseGoogleSpreadsheet();
|
79
|
+
}
|
80
|
+
|
81
|
+
},
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Get the column distribution. For example, a line series takes a single column for
|
85
|
+
* Y values. A range series takes two columns for low and high values respectively,
|
86
|
+
* and an OHLC series takes four columns.
|
87
|
+
*/
|
88
|
+
getColumnDistribution: function() {
|
89
|
+
var chartOptions = this.chartOptions,
|
90
|
+
options = this.options,
|
91
|
+
xColumns = [],
|
92
|
+
getValueCount = function(type) {
|
93
|
+
return (Highcharts.seriesTypes[type || 'line'].prototype.pointArrayMap || [0]).length;
|
94
|
+
},
|
95
|
+
getPointArrayMap = function(type) {
|
96
|
+
return Highcharts.seriesTypes[type || 'line'].prototype.pointArrayMap;
|
97
|
+
},
|
98
|
+
globalType = chartOptions && chartOptions.chart && chartOptions.chart.type,
|
99
|
+
individualCounts = [],
|
100
|
+
seriesBuilders = [],
|
101
|
+
seriesIndex = 0,
|
102
|
+
i;
|
103
|
+
|
104
|
+
each((chartOptions && chartOptions.series) || [], function(series) {
|
105
|
+
individualCounts.push(getValueCount(series.type || globalType));
|
106
|
+
});
|
107
|
+
|
108
|
+
// Collect the x-column indexes from seriesMapping
|
109
|
+
each((options && options.seriesMapping) || [], function(mapping) {
|
110
|
+
xColumns.push(mapping.x || 0);
|
111
|
+
});
|
112
|
+
|
113
|
+
// If there are no defined series with x-columns, use the first column as x column
|
114
|
+
if (xColumns.length === 0) {
|
115
|
+
xColumns.push(0);
|
116
|
+
}
|
117
|
+
|
118
|
+
// Loop all seriesMappings and constructs SeriesBuilders from
|
119
|
+
// the mapping options.
|
120
|
+
each((options && options.seriesMapping) || [], function(mapping) {
|
121
|
+
var builder = new SeriesBuilder(),
|
122
|
+
numberOfValueColumnsNeeded = individualCounts[seriesIndex] || getValueCount(globalType),
|
123
|
+
seriesArr = (chartOptions && chartOptions.series) || [],
|
124
|
+
series = seriesArr[seriesIndex] || {},
|
125
|
+
pointArrayMap = getPointArrayMap(series.type || globalType) || ['y'];
|
126
|
+
|
127
|
+
// Add an x reader from the x property or from an undefined column
|
128
|
+
// if the property is not set. It will then be auto populated later.
|
129
|
+
builder.addColumnReader(mapping.x, 'x');
|
130
|
+
|
131
|
+
// Add all column mappings
|
132
|
+
objectEach(mapping, function(val, name) {
|
133
|
+
if (name !== 'x') {
|
134
|
+
builder.addColumnReader(val, name);
|
135
|
+
}
|
136
|
+
});
|
137
|
+
|
138
|
+
// Add missing columns
|
139
|
+
for (i = 0; i < numberOfValueColumnsNeeded; i++) {
|
140
|
+
if (!builder.hasReader(pointArrayMap[i])) {
|
141
|
+
//builder.addNextColumnReader(pointArrayMap[i]);
|
142
|
+
// Create and add a column reader for the next free column index
|
143
|
+
builder.addColumnReader(undefined, pointArrayMap[i]);
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
seriesBuilders.push(builder);
|
148
|
+
seriesIndex++;
|
149
|
+
});
|
150
|
+
|
151
|
+
var globalPointArrayMap = getPointArrayMap(globalType);
|
152
|
+
if (globalPointArrayMap === undefined) {
|
153
|
+
globalPointArrayMap = ['y'];
|
154
|
+
}
|
155
|
+
|
156
|
+
this.valueCount = {
|
157
|
+
global: getValueCount(globalType),
|
158
|
+
xColumns: xColumns,
|
159
|
+
individual: individualCounts,
|
160
|
+
seriesBuilders: seriesBuilders,
|
161
|
+
globalPointArrayMap: globalPointArrayMap
|
162
|
+
};
|
163
|
+
},
|
164
|
+
|
165
|
+
/**
|
166
|
+
* When the data is parsed into columns, either by CSV, table, GS or direct input,
|
167
|
+
* continue with other operations.
|
168
|
+
*/
|
169
|
+
dataFound: function() {
|
170
|
+
|
171
|
+
if (this.options.switchRowsAndColumns) {
|
172
|
+
this.columns = this.rowsToColumns(this.columns);
|
173
|
+
}
|
174
|
+
|
175
|
+
// Interpret the info about series and columns
|
176
|
+
this.getColumnDistribution();
|
177
|
+
|
178
|
+
// Interpret the values into right types
|
179
|
+
this.parseTypes();
|
180
|
+
|
181
|
+
// Handle columns if a handleColumns callback is given
|
182
|
+
if (this.parsed() !== false) {
|
183
|
+
|
184
|
+
// Complete if a complete callback is given
|
185
|
+
this.complete();
|
186
|
+
}
|
187
|
+
|
188
|
+
},
|
189
|
+
|
190
|
+
/**
|
191
|
+
* Parse a CSV input string
|
192
|
+
*/
|
193
|
+
parseCSV: function() {
|
194
|
+
var self = this,
|
195
|
+
options = this.options,
|
196
|
+
csv = options.csv,
|
197
|
+
columns = this.columns,
|
198
|
+
startRow = options.startRow || 0,
|
199
|
+
endRow = options.endRow || Number.MAX_VALUE,
|
200
|
+
startColumn = options.startColumn || 0,
|
201
|
+
endColumn = options.endColumn || Number.MAX_VALUE,
|
202
|
+
itemDelimiter,
|
203
|
+
lines,
|
204
|
+
activeRowNo = 0;
|
205
|
+
|
206
|
+
if (csv) {
|
207
|
+
|
208
|
+
lines = csv
|
209
|
+
.replace(/\r\n/g, '\n') // Unix
|
210
|
+
.replace(/\r/g, '\n') // Mac
|
211
|
+
.split(options.lineDelimiter || '\n');
|
212
|
+
|
213
|
+
itemDelimiter = options.itemDelimiter || (csv.indexOf('\t') !== -1 ? '\t' : ',');
|
214
|
+
|
215
|
+
each(lines, function(line, rowNo) {
|
216
|
+
var trimmed = self.trim(line),
|
217
|
+
isComment = trimmed.indexOf('#') === 0,
|
218
|
+
isBlank = trimmed === '',
|
219
|
+
items;
|
220
|
+
|
221
|
+
if (rowNo >= startRow && rowNo <= endRow && !isComment && !isBlank) {
|
222
|
+
items = line.split(itemDelimiter);
|
223
|
+
each(items, function(item, colNo) {
|
224
|
+
if (colNo >= startColumn && colNo <= endColumn) {
|
225
|
+
if (!columns[colNo - startColumn]) {
|
226
|
+
columns[colNo - startColumn] = [];
|
227
|
+
}
|
228
|
+
|
229
|
+
columns[colNo - startColumn][activeRowNo] = item;
|
230
|
+
}
|
231
|
+
});
|
232
|
+
activeRowNo += 1;
|
233
|
+
}
|
234
|
+
});
|
235
|
+
|
236
|
+
this.dataFound();
|
237
|
+
}
|
238
|
+
},
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Parse a HTML table
|
242
|
+
*/
|
243
|
+
parseTable: function() {
|
244
|
+
var options = this.options,
|
245
|
+
table = options.table,
|
246
|
+
columns = this.columns,
|
247
|
+
startRow = options.startRow || 0,
|
248
|
+
endRow = options.endRow || Number.MAX_VALUE,
|
249
|
+
startColumn = options.startColumn || 0,
|
250
|
+
endColumn = options.endColumn || Number.MAX_VALUE;
|
251
|
+
|
252
|
+
if (table) {
|
253
|
+
|
254
|
+
if (typeof table === 'string') {
|
255
|
+
table = doc.getElementById(table);
|
256
|
+
}
|
257
|
+
|
258
|
+
each(table.getElementsByTagName('tr'), function(tr, rowNo) {
|
259
|
+
if (rowNo >= startRow && rowNo <= endRow) {
|
260
|
+
each(tr.children, function(item, colNo) {
|
261
|
+
if ((item.tagName === 'TD' || item.tagName === 'TH') && colNo >= startColumn && colNo <= endColumn) {
|
262
|
+
if (!columns[colNo - startColumn]) {
|
263
|
+
columns[colNo - startColumn] = [];
|
264
|
+
}
|
265
|
+
|
266
|
+
columns[colNo - startColumn][rowNo - startRow] = item.innerHTML;
|
267
|
+
}
|
268
|
+
});
|
269
|
+
}
|
270
|
+
});
|
271
|
+
|
272
|
+
this.dataFound(); // continue
|
273
|
+
}
|
274
|
+
},
|
275
|
+
|
276
|
+
/**
|
277
|
+
*/
|
278
|
+
parseGoogleSpreadsheet: function() {
|
279
|
+
var self = this,
|
280
|
+
options = this.options,
|
281
|
+
googleSpreadsheetKey = options.googleSpreadsheetKey,
|
282
|
+
columns = this.columns,
|
283
|
+
startRow = options.startRow || 0,
|
284
|
+
endRow = options.endRow || Number.MAX_VALUE,
|
285
|
+
startColumn = options.startColumn || 0,
|
286
|
+
endColumn = options.endColumn || Number.MAX_VALUE,
|
287
|
+
gr, // google row
|
288
|
+
gc; // google column
|
289
|
+
|
290
|
+
if (googleSpreadsheetKey) {
|
291
|
+
jQuery.ajax({
|
292
|
+
dataType: 'json',
|
293
|
+
url: 'https://spreadsheets.google.com/feeds/cells/' +
|
294
|
+
googleSpreadsheetKey + '/' + (options.googleSpreadsheetWorksheet || 'od6') +
|
295
|
+
'/public/values?alt=json-in-script&callback=?',
|
296
|
+
error: options.error,
|
297
|
+
success: function(json) {
|
298
|
+
// Prepare the data from the spreadsheat
|
299
|
+
var cells = json.feed.entry,
|
300
|
+
cell,
|
301
|
+
cellCount = cells.length,
|
302
|
+
colCount = 0,
|
303
|
+
rowCount = 0,
|
304
|
+
i;
|
305
|
+
|
306
|
+
// First, find the total number of columns and rows that
|
307
|
+
// are actually filled with data
|
308
|
+
for (i = 0; i < cellCount; i++) {
|
309
|
+
cell = cells[i];
|
310
|
+
colCount = Math.max(colCount, cell.gs$cell.col);
|
311
|
+
rowCount = Math.max(rowCount, cell.gs$cell.row);
|
312
|
+
}
|
313
|
+
|
314
|
+
// Set up arrays containing the column data
|
315
|
+
for (i = 0; i < colCount; i++) {
|
316
|
+
if (i >= startColumn && i <= endColumn) {
|
317
|
+
// Create new columns with the length of either end-start or rowCount
|
318
|
+
columns[i - startColumn] = [];
|
319
|
+
|
320
|
+
// Setting the length to avoid jslint warning
|
321
|
+
columns[i - startColumn].length = Math.min(rowCount, endRow - startRow);
|
322
|
+
}
|
323
|
+
}
|
324
|
+
|
325
|
+
// Loop over the cells and assign the value to the right
|
326
|
+
// place in the column arrays
|
327
|
+
for (i = 0; i < cellCount; i++) {
|
328
|
+
cell = cells[i];
|
329
|
+
gr = cell.gs$cell.row - 1; // rows start at 1
|
330
|
+
gc = cell.gs$cell.col - 1; // columns start at 1
|
331
|
+
|
332
|
+
// If both row and col falls inside start and end
|
333
|
+
// set the transposed cell value in the newly created columns
|
334
|
+
if (gc >= startColumn && gc <= endColumn &&
|
335
|
+
gr >= startRow && gr <= endRow) {
|
336
|
+
columns[gc - startColumn][gr - startRow] = cell.content.$t;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
|
340
|
+
// Insert null for empty spreadsheet cells (#5298)
|
341
|
+
each(columns, function(column) {
|
342
|
+
for (i = 0; i < column.length; i++) {
|
343
|
+
if (column[i] === undefined) {
|
344
|
+
column[i] = null;
|
345
|
+
}
|
346
|
+
}
|
347
|
+
});
|
348
|
+
|
349
|
+
self.dataFound();
|
350
|
+
}
|
351
|
+
});
|
352
|
+
}
|
353
|
+
},
|
354
|
+
|
355
|
+
/**
|
356
|
+
* Trim a string from whitespace
|
357
|
+
*/
|
358
|
+
trim: function(str, inside) {
|
359
|
+
if (typeof str === 'string') {
|
360
|
+
str = str.replace(/^\s+|\s+$/g, '');
|
361
|
+
|
362
|
+
// Clear white space insdie the string, like thousands separators
|
363
|
+
if (inside && /^[0-9\s]+$/.test(str)) {
|
364
|
+
str = str.replace(/\s/g, '');
|
365
|
+
}
|
366
|
+
|
367
|
+
if (this.decimalRegex) {
|
368
|
+
str = str.replace(this.decimalRegex, '$1.$2');
|
369
|
+
}
|
370
|
+
}
|
371
|
+
return str;
|
372
|
+
},
|
373
|
+
|
374
|
+
/**
|
375
|
+
* Parse numeric cells in to number types and date types in to true dates.
|
376
|
+
*/
|
377
|
+
parseTypes: function() {
|
378
|
+
var columns = this.columns,
|
379
|
+
col = columns.length;
|
380
|
+
|
381
|
+
while (col--) {
|
382
|
+
this.parseColumn(columns[col], col);
|
383
|
+
}
|
384
|
+
|
385
|
+
},
|
386
|
+
|
387
|
+
/**
|
388
|
+
* Parse a single column. Set properties like .isDatetime and .isNumeric.
|
389
|
+
*/
|
390
|
+
parseColumn: function(column, col) {
|
391
|
+
var rawColumns = this.rawColumns,
|
392
|
+
columns = this.columns,
|
393
|
+
row = column.length,
|
394
|
+
val,
|
395
|
+
floatVal,
|
396
|
+
trimVal,
|
397
|
+
trimInsideVal,
|
398
|
+
firstRowAsNames = this.firstRowAsNames,
|
399
|
+
isXColumn = inArray(col, this.valueCount.xColumns) !== -1,
|
400
|
+
dateVal,
|
401
|
+
backup = [],
|
402
|
+
diff,
|
403
|
+
chartOptions = this.chartOptions,
|
404
|
+
descending,
|
405
|
+
columnTypes = this.options.columnTypes || [],
|
406
|
+
columnType = columnTypes[col],
|
407
|
+
forceCategory = isXColumn && ((chartOptions && chartOptions.xAxis && splat(chartOptions.xAxis)[0].type === 'category') || columnType === 'string');
|
408
|
+
|
409
|
+
if (!rawColumns[col]) {
|
410
|
+
rawColumns[col] = [];
|
411
|
+
}
|
412
|
+
while (row--) {
|
413
|
+
val = backup[row] || column[row];
|
414
|
+
|
415
|
+
trimVal = this.trim(val);
|
416
|
+
trimInsideVal = this.trim(val, true);
|
417
|
+
floatVal = parseFloat(trimInsideVal);
|
418
|
+
|
419
|
+
// Set it the first time
|
420
|
+
if (rawColumns[col][row] === undefined) {
|
421
|
+
rawColumns[col][row] = trimVal;
|
422
|
+
}
|
423
|
+
|
424
|
+
// Disable number or date parsing by setting the X axis type to category
|
425
|
+
if (forceCategory || (row === 0 && firstRowAsNames)) {
|
426
|
+
column[row] = trimVal;
|
427
|
+
|
428
|
+
} else if (+trimInsideVal === floatVal) { // is numeric
|
429
|
+
|
430
|
+
column[row] = floatVal;
|
431
|
+
|
432
|
+
// If the number is greater than milliseconds in a year, assume datetime
|
433
|
+
if (floatVal > 365 * 24 * 3600 * 1000 && columnType !== 'float') {
|
434
|
+
column.isDatetime = true;
|
435
|
+
} else {
|
436
|
+
column.isNumeric = true;
|
437
|
+
}
|
438
|
+
|
439
|
+
if (column[row + 1] !== undefined) {
|
440
|
+
descending = floatVal > column[row + 1];
|
441
|
+
}
|
442
|
+
|
443
|
+
// String, continue to determine if it is a date string or really a string
|
444
|
+
} else {
|
445
|
+
dateVal = this.parseDate(val);
|
446
|
+
// Only allow parsing of dates if this column is an x-column
|
447
|
+
if (isXColumn && isNumber(dateVal) && columnType !== 'float') { // is date
|
448
|
+
backup[row] = val;
|
449
|
+
column[row] = dateVal;
|
450
|
+
column.isDatetime = true;
|
451
|
+
|
452
|
+
// Check if the dates are uniformly descending or ascending. If they
|
453
|
+
// are not, chances are that they are a different time format, so check
|
454
|
+
// for alternative.
|
455
|
+
if (column[row + 1] !== undefined) {
|
456
|
+
diff = dateVal > column[row + 1];
|
457
|
+
if (diff !== descending && descending !== undefined) {
|
458
|
+
if (this.alternativeFormat) {
|
459
|
+
this.dateFormat = this.alternativeFormat;
|
460
|
+
row = column.length;
|
461
|
+
this.alternativeFormat = this.dateFormats[this.dateFormat].alternative;
|
462
|
+
} else {
|
463
|
+
column.unsorted = true;
|
464
|
+
}
|
465
|
+
}
|
466
|
+
descending = diff;
|
467
|
+
}
|
468
|
+
|
469
|
+
} else { // string
|
470
|
+
column[row] = trimVal === '' ? null : trimVal;
|
471
|
+
if (row !== 0 && (column.isDatetime || column.isNumeric)) {
|
472
|
+
column.mixed = true;
|
473
|
+
}
|
474
|
+
}
|
475
|
+
}
|
476
|
+
}
|
477
|
+
|
478
|
+
// If strings are intermixed with numbers or dates in a parsed column, it is an indication
|
479
|
+
// that parsing went wrong or the data was not intended to display as numbers or dates and
|
480
|
+
// parsing is too aggressive. Fall back to categories. Demonstrated in the
|
481
|
+
// highcharts/demo/column-drilldown sample.
|
482
|
+
if (isXColumn && column.mixed) {
|
483
|
+
columns[col] = rawColumns[col];
|
484
|
+
}
|
485
|
+
|
486
|
+
// If the 0 column is date or number and descending, reverse all columns.
|
487
|
+
if (isXColumn && descending && this.options.sort) {
|
488
|
+
for (col = 0; col < columns.length; col++) {
|
489
|
+
columns[col].reverse();
|
490
|
+
if (firstRowAsNames) {
|
491
|
+
columns[col].unshift(columns[col].pop());
|
492
|
+
}
|
493
|
+
}
|
494
|
+
}
|
495
|
+
},
|
496
|
+
|
497
|
+
/**
|
498
|
+
* A collection of available date formats, extendable from the outside to support
|
499
|
+
* custom date formats.
|
500
|
+
*/
|
501
|
+
dateFormats: {
|
502
|
+
'YYYY-mm-dd': {
|
503
|
+
regex: /^([0-9]{4})[\-\/\.]([0-9]{2})[\-\/\.]([0-9]{2})$/,
|
504
|
+
parser: function(match) {
|
505
|
+
return Date.UTC(+match[1], match[2] - 1, +match[3]);
|
506
|
+
}
|
507
|
+
},
|
508
|
+
'dd/mm/YYYY': {
|
509
|
+
regex: /^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,
|
510
|
+
parser: function(match) {
|
511
|
+
return Date.UTC(+match[3], match[2] - 1, +match[1]);
|
512
|
+
},
|
513
|
+
alternative: 'mm/dd/YYYY' // different format with the same regex
|
514
|
+
},
|
515
|
+
'mm/dd/YYYY': {
|
516
|
+
regex: /^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,
|
517
|
+
parser: function(match) {
|
518
|
+
return Date.UTC(+match[3], match[1] - 1, +match[2]);
|
519
|
+
}
|
520
|
+
},
|
521
|
+
'dd/mm/YY': {
|
522
|
+
regex: /^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,
|
523
|
+
parser: function(match) {
|
524
|
+
return Date.UTC(+match[3] + 2000, match[2] - 1, +match[1]);
|
525
|
+
},
|
526
|
+
alternative: 'mm/dd/YY' // different format with the same regex
|
527
|
+
},
|
528
|
+
'mm/dd/YY': {
|
529
|
+
regex: /^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,
|
530
|
+
parser: function(match) {
|
531
|
+
return Date.UTC(+match[3] + 2000, match[1] - 1, +match[2]);
|
532
|
+
}
|
533
|
+
}
|
534
|
+
},
|
535
|
+
|
536
|
+
/**
|
537
|
+
* Parse a date and return it as a number. Overridable through options.parseDate.
|
538
|
+
*/
|
539
|
+
parseDate: function(val) {
|
540
|
+
var parseDate = this.options.parseDate,
|
541
|
+
ret,
|
542
|
+
key,
|
543
|
+
format,
|
544
|
+
dateFormat = this.options.dateFormat || this.dateFormat,
|
545
|
+
match;
|
546
|
+
|
547
|
+
if (parseDate) {
|
548
|
+
ret = parseDate(val);
|
549
|
+
|
550
|
+
} else if (typeof val === 'string') {
|
551
|
+
// Auto-detect the date format the first time
|
552
|
+
if (!dateFormat) {
|
553
|
+
for (key in this.dateFormats) {
|
554
|
+
format = this.dateFormats[key];
|
555
|
+
match = val.match(format.regex);
|
556
|
+
if (match) {
|
557
|
+
this.dateFormat = dateFormat = key;
|
558
|
+
this.alternativeFormat = format.alternative;
|
559
|
+
ret = format.parser(match);
|
560
|
+
break;
|
561
|
+
}
|
562
|
+
}
|
563
|
+
// Next time, use the one previously found
|
564
|
+
} else {
|
565
|
+
format = this.dateFormats[dateFormat];
|
566
|
+
match = val.match(format.regex);
|
567
|
+
if (match) {
|
568
|
+
ret = format.parser(match);
|
569
|
+
}
|
570
|
+
}
|
571
|
+
// Fall back to Date.parse
|
572
|
+
if (!match) {
|
573
|
+
match = Date.parse(val);
|
574
|
+
// External tools like Date.js and MooTools extend Date object and
|
575
|
+
// returns a date.
|
576
|
+
if (typeof match === 'object' && match !== null && match.getTime) {
|
577
|
+
ret = match.getTime() - match.getTimezoneOffset() * 60000;
|
578
|
+
|
579
|
+
// Timestamp
|
580
|
+
} else if (isNumber(match)) {
|
581
|
+
ret = match - (new Date(match)).getTimezoneOffset() * 60000;
|
582
|
+
}
|
583
|
+
}
|
584
|
+
}
|
585
|
+
return ret;
|
586
|
+
},
|
587
|
+
|
588
|
+
/**
|
589
|
+
* Reorganize rows into columns
|
590
|
+
*/
|
591
|
+
rowsToColumns: function(rows) {
|
592
|
+
var row,
|
593
|
+
rowsLength,
|
594
|
+
col,
|
595
|
+
colsLength,
|
596
|
+
columns;
|
597
|
+
|
598
|
+
if (rows) {
|
599
|
+
columns = [];
|
600
|
+
rowsLength = rows.length;
|
601
|
+
for (row = 0; row < rowsLength; row++) {
|
602
|
+
colsLength = rows[row].length;
|
603
|
+
for (col = 0; col < colsLength; col++) {
|
604
|
+
if (!columns[col]) {
|
605
|
+
columns[col] = [];
|
606
|
+
}
|
607
|
+
columns[col][row] = rows[row][col];
|
608
|
+
}
|
609
|
+
}
|
610
|
+
}
|
611
|
+
return columns;
|
612
|
+
},
|
613
|
+
|
614
|
+
/**
|
615
|
+
* A hook for working directly on the parsed columns
|
616
|
+
*/
|
617
|
+
parsed: function() {
|
618
|
+
if (this.options.parsed) {
|
619
|
+
return this.options.parsed.call(this, this.columns);
|
620
|
+
}
|
621
|
+
},
|
622
|
+
|
623
|
+
getFreeIndexes: function(numberOfColumns, seriesBuilders) {
|
624
|
+
var s,
|
625
|
+
i,
|
626
|
+
freeIndexes = [],
|
627
|
+
freeIndexValues = [],
|
628
|
+
referencedIndexes;
|
629
|
+
|
630
|
+
// Add all columns as free
|
631
|
+
for (i = 0; i < numberOfColumns; i = i + 1) {
|
632
|
+
freeIndexes.push(true);
|
633
|
+
}
|
634
|
+
|
635
|
+
// Loop all defined builders and remove their referenced columns
|
636
|
+
for (s = 0; s < seriesBuilders.length; s = s + 1) {
|
637
|
+
referencedIndexes = seriesBuilders[s].getReferencedColumnIndexes();
|
638
|
+
|
639
|
+
for (i = 0; i < referencedIndexes.length; i = i + 1) {
|
640
|
+
freeIndexes[referencedIndexes[i]] = false;
|
641
|
+
}
|
642
|
+
}
|
643
|
+
|
644
|
+
// Collect the values for the free indexes
|
645
|
+
for (i = 0; i < freeIndexes.length; i = i + 1) {
|
646
|
+
if (freeIndexes[i]) {
|
647
|
+
freeIndexValues.push(i);
|
648
|
+
}
|
649
|
+
}
|
650
|
+
|
651
|
+
return freeIndexValues;
|
652
|
+
},
|
653
|
+
|
654
|
+
/**
|
655
|
+
* If a complete callback function is provided in the options, interpret the
|
656
|
+
* columns into a Highcharts options object.
|
657
|
+
*/
|
658
|
+
complete: function() {
|
659
|
+
|
660
|
+
var columns = this.columns,
|
661
|
+
xColumns = [],
|
662
|
+
type,
|
663
|
+
options = this.options,
|
664
|
+
series,
|
665
|
+
data,
|
666
|
+
i,
|
667
|
+
j,
|
668
|
+
r,
|
669
|
+
seriesIndex,
|
670
|
+
chartOptions,
|
671
|
+
allSeriesBuilders = [],
|
672
|
+
builder,
|
673
|
+
freeIndexes,
|
674
|
+
typeCol,
|
675
|
+
index;
|
676
|
+
|
677
|
+
xColumns.length = columns.length;
|
678
|
+
if (options.complete || options.afterComplete) {
|
679
|
+
|
680
|
+
// Get the names and shift the top row
|
681
|
+
for (i = 0; i < columns.length; i++) {
|
682
|
+
if (this.firstRowAsNames) {
|
683
|
+
columns[i].name = columns[i].shift();
|
684
|
+
}
|
685
|
+
}
|
686
|
+
|
687
|
+
// Use the next columns for series
|
688
|
+
series = [];
|
689
|
+
freeIndexes = this.getFreeIndexes(columns.length, this.valueCount.seriesBuilders);
|
690
|
+
|
691
|
+
// Populate defined series
|
692
|
+
for (seriesIndex = 0; seriesIndex < this.valueCount.seriesBuilders.length; seriesIndex++) {
|
693
|
+
builder = this.valueCount.seriesBuilders[seriesIndex];
|
694
|
+
|
695
|
+
// If the builder can be populated with remaining columns, then add it to allBuilders
|
696
|
+
if (builder.populateColumns(freeIndexes)) {
|
697
|
+
allSeriesBuilders.push(builder);
|
698
|
+
}
|
699
|
+
}
|
700
|
+
|
701
|
+
// Populate dynamic series
|
702
|
+
while (freeIndexes.length > 0) {
|
703
|
+
builder = new SeriesBuilder();
|
704
|
+
builder.addColumnReader(0, 'x');
|
705
|
+
|
706
|
+
// Mark index as used (not free)
|
707
|
+
index = inArray(0, freeIndexes);
|
708
|
+
if (index !== -1) {
|
709
|
+
freeIndexes.splice(index, 1);
|
710
|
+
}
|
711
|
+
|
712
|
+
for (i = 0; i < this.valueCount.global; i++) {
|
713
|
+
// Create and add a column reader for the next free column index
|
714
|
+
builder.addColumnReader(undefined, this.valueCount.globalPointArrayMap[i]);
|
715
|
+
}
|
716
|
+
|
717
|
+
// If the builder can be populated with remaining columns, then add it to allBuilders
|
718
|
+
if (builder.populateColumns(freeIndexes)) {
|
719
|
+
allSeriesBuilders.push(builder);
|
720
|
+
}
|
721
|
+
}
|
722
|
+
|
723
|
+
// Get the data-type from the first series x column
|
724
|
+
if (allSeriesBuilders.length > 0 && allSeriesBuilders[0].readers.length > 0) {
|
725
|
+
typeCol = columns[allSeriesBuilders[0].readers[0].columnIndex];
|
726
|
+
if (typeCol !== undefined) {
|
727
|
+
if (typeCol.isDatetime) {
|
728
|
+
type = 'datetime';
|
729
|
+
} else if (!typeCol.isNumeric) {
|
730
|
+
type = 'category';
|
731
|
+
}
|
732
|
+
}
|
733
|
+
}
|
734
|
+
// Axis type is category, then the "x" column should be called "name"
|
735
|
+
if (type === 'category') {
|
736
|
+
for (seriesIndex = 0; seriesIndex < allSeriesBuilders.length; seriesIndex++) {
|
737
|
+
builder = allSeriesBuilders[seriesIndex];
|
738
|
+
for (r = 0; r < builder.readers.length; r++) {
|
739
|
+
if (builder.readers[r].configName === 'x') {
|
740
|
+
builder.readers[r].configName = 'name';
|
741
|
+
}
|
742
|
+
}
|
743
|
+
}
|
744
|
+
}
|
745
|
+
|
746
|
+
// Read data for all builders
|
747
|
+
for (seriesIndex = 0; seriesIndex < allSeriesBuilders.length; seriesIndex++) {
|
748
|
+
builder = allSeriesBuilders[seriesIndex];
|
749
|
+
|
750
|
+
// Iterate down the cells of each column and add data to the series
|
751
|
+
data = [];
|
752
|
+
for (j = 0; j < columns[0].length; j++) {
|
753
|
+
data[j] = builder.read(columns, j);
|
754
|
+
}
|
755
|
+
|
756
|
+
// Add the series
|
757
|
+
series[seriesIndex] = {
|
758
|
+
data: data
|
759
|
+
};
|
760
|
+
if (builder.name) {
|
761
|
+
series[seriesIndex].name = builder.name;
|
762
|
+
}
|
763
|
+
if (type === 'category') {
|
764
|
+
series[seriesIndex].turboThreshold = 0;
|
765
|
+
}
|
766
|
+
}
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
// Do the callback
|
771
|
+
chartOptions = {
|
772
|
+
series: series
|
773
|
+
};
|
774
|
+
if (type) {
|
775
|
+
chartOptions.xAxis = {
|
776
|
+
type: type
|
777
|
+
};
|
778
|
+
if (type === 'category') {
|
779
|
+
chartOptions.xAxis.uniqueNames = false;
|
780
|
+
}
|
781
|
+
}
|
782
|
+
|
783
|
+
if (options.complete) {
|
784
|
+
options.complete(chartOptions);
|
785
|
+
}
|
786
|
+
|
787
|
+
// The afterComplete hook is used internally to avoid conflict with the externally
|
788
|
+
// available complete option.
|
789
|
+
if (options.afterComplete) {
|
790
|
+
options.afterComplete(chartOptions);
|
791
|
+
}
|
792
|
+
}
|
793
|
+
}
|
794
|
+
});
|
795
|
+
|
796
|
+
// Register the Data prototype and data function on Highcharts
|
797
|
+
Highcharts.Data = Data;
|
798
|
+
Highcharts.data = function(options, chartOptions) {
|
799
|
+
return new Data(options, chartOptions);
|
800
|
+
};
|
801
|
+
|
802
|
+
// Extend Chart.init so that the Chart constructor accepts a new configuration
|
803
|
+
// option group, data.
|
804
|
+
Highcharts.wrap(Highcharts.Chart.prototype, 'init', function(proceed, userOptions, callback) {
|
805
|
+
var chart = this;
|
806
|
+
|
807
|
+
if (userOptions && userOptions.data) {
|
808
|
+
Highcharts.data(Highcharts.extend(userOptions.data, {
|
809
|
+
|
810
|
+
afterComplete: function(dataOptions) {
|
811
|
+
var i, series;
|
812
|
+
|
813
|
+
// Merge series configs
|
814
|
+
if (userOptions.hasOwnProperty('series')) {
|
815
|
+
if (typeof userOptions.series === 'object') {
|
816
|
+
i = Math.max(userOptions.series.length, dataOptions.series.length);
|
817
|
+
while (i--) {
|
818
|
+
series = userOptions.series[i] || {};
|
819
|
+
userOptions.series[i] = Highcharts.merge(series, dataOptions.series[i]);
|
820
|
+
}
|
821
|
+
} else { // Allow merging in dataOptions.series (#2856)
|
822
|
+
delete userOptions.series;
|
823
|
+
}
|
824
|
+
}
|
825
|
+
|
826
|
+
// Do the merge
|
827
|
+
userOptions = Highcharts.merge(dataOptions, userOptions);
|
828
|
+
|
829
|
+
proceed.call(chart, userOptions, callback);
|
830
|
+
}
|
831
|
+
}), userOptions);
|
832
|
+
} else {
|
833
|
+
proceed.call(chart, userOptions, callback);
|
834
|
+
}
|
835
|
+
});
|
836
|
+
|
837
|
+
/**
|
838
|
+
* Creates a new SeriesBuilder. A SeriesBuilder consists of a number
|
839
|
+
* of ColumnReaders that reads columns and give them a name.
|
840
|
+
* Ex: A series builder can be constructed to read column 3 as 'x' and
|
841
|
+
* column 7 and 8 as 'y1' and 'y2'.
|
842
|
+
* The output would then be points/rows of the form {x: 11, y1: 22, y2: 33}
|
843
|
+
*
|
844
|
+
* The name of the builder is taken from the second column. In the above
|
845
|
+
* example it would be the column with index 7.
|
846
|
+
* @constructor
|
847
|
+
*/
|
848
|
+
SeriesBuilder = function() {
|
849
|
+
this.readers = [];
|
850
|
+
this.pointIsArray = true;
|
851
|
+
};
|
852
|
+
|
853
|
+
/**
|
854
|
+
* Populates readers with column indexes. A reader can be added without
|
855
|
+
* a specific index and for those readers the index is taken sequentially
|
856
|
+
* from the free columns (this is handled by the ColumnCursor instance).
|
857
|
+
* @returns {boolean}
|
858
|
+
*/
|
859
|
+
SeriesBuilder.prototype.populateColumns = function(freeIndexes) {
|
860
|
+
var builder = this,
|
861
|
+
enoughColumns = true;
|
862
|
+
|
863
|
+
// Loop each reader and give it an index if its missing.
|
864
|
+
// The freeIndexes.shift() will return undefined if there
|
865
|
+
// are no more columns.
|
866
|
+
each(builder.readers, function(reader) {
|
867
|
+
if (reader.columnIndex === undefined) {
|
868
|
+
reader.columnIndex = freeIndexes.shift();
|
869
|
+
}
|
870
|
+
});
|
871
|
+
|
872
|
+
// Now, all readers should have columns mapped. If not
|
873
|
+
// then return false to signal that this series should
|
874
|
+
// not be added.
|
875
|
+
each(builder.readers, function(reader) {
|
876
|
+
if (reader.columnIndex === undefined) {
|
877
|
+
enoughColumns = false;
|
878
|
+
}
|
879
|
+
});
|
880
|
+
|
881
|
+
return enoughColumns;
|
882
|
+
};
|
883
|
+
|
884
|
+
/**
|
885
|
+
* Reads a row from the dataset and returns a point or array depending
|
886
|
+
* on the names of the readers.
|
887
|
+
* @param columns
|
888
|
+
* @param rowIndex
|
889
|
+
* @returns {Array | Object}
|
890
|
+
*/
|
891
|
+
SeriesBuilder.prototype.read = function(columns, rowIndex) {
|
892
|
+
var builder = this,
|
893
|
+
pointIsArray = builder.pointIsArray,
|
894
|
+
point = pointIsArray ? [] : {},
|
895
|
+
columnIndexes;
|
896
|
+
|
897
|
+
// Loop each reader and ask it to read its value.
|
898
|
+
// Then, build an array or point based on the readers names.
|
899
|
+
each(builder.readers, function(reader) {
|
900
|
+
var value = columns[reader.columnIndex][rowIndex];
|
901
|
+
if (pointIsArray) {
|
902
|
+
point.push(value);
|
903
|
+
} else {
|
904
|
+
point[reader.configName] = value;
|
905
|
+
}
|
906
|
+
});
|
907
|
+
|
908
|
+
// The name comes from the first column (excluding the x column)
|
909
|
+
if (this.name === undefined && builder.readers.length >= 2) {
|
910
|
+
columnIndexes = builder.getReferencedColumnIndexes();
|
911
|
+
if (columnIndexes.length >= 2) {
|
912
|
+
// remove the first one (x col)
|
913
|
+
columnIndexes.shift();
|
914
|
+
|
915
|
+
// Sort the remaining
|
916
|
+
columnIndexes.sort();
|
917
|
+
|
918
|
+
// Now use the lowest index as name column
|
919
|
+
this.name = columns[columnIndexes.shift()].name;
|
920
|
+
}
|
921
|
+
}
|
922
|
+
|
923
|
+
return point;
|
924
|
+
};
|
925
|
+
|
926
|
+
/**
|
927
|
+
* Creates and adds ColumnReader from the given columnIndex and configName.
|
928
|
+
* ColumnIndex can be undefined and in that case the reader will be given
|
929
|
+
* an index when columns are populated.
|
930
|
+
* @param columnIndex {Number | undefined}
|
931
|
+
* @param configName
|
932
|
+
*/
|
933
|
+
SeriesBuilder.prototype.addColumnReader = function(columnIndex, configName) {
|
934
|
+
this.readers.push({
|
935
|
+
columnIndex: columnIndex,
|
936
|
+
configName: configName
|
937
|
+
});
|
938
|
+
|
939
|
+
if (!(configName === 'x' || configName === 'y' || configName === undefined)) {
|
940
|
+
this.pointIsArray = false;
|
941
|
+
}
|
942
|
+
};
|
943
|
+
|
944
|
+
/**
|
945
|
+
* Returns an array of column indexes that the builder will use when
|
946
|
+
* reading data.
|
947
|
+
* @returns {Array}
|
948
|
+
*/
|
949
|
+
SeriesBuilder.prototype.getReferencedColumnIndexes = function() {
|
950
|
+
var i,
|
951
|
+
referencedColumnIndexes = [],
|
952
|
+
columnReader;
|
953
|
+
|
954
|
+
for (i = 0; i < this.readers.length; i = i + 1) {
|
955
|
+
columnReader = this.readers[i];
|
956
|
+
if (columnReader.columnIndex !== undefined) {
|
957
|
+
referencedColumnIndexes.push(columnReader.columnIndex);
|
958
|
+
}
|
959
|
+
}
|
960
|
+
|
961
|
+
return referencedColumnIndexes;
|
962
|
+
};
|
963
|
+
|
964
|
+
/**
|
965
|
+
* Returns true if the builder has a reader for the given configName.
|
966
|
+
* @param configName
|
967
|
+
* @returns {boolean}
|
968
|
+
*/
|
969
|
+
SeriesBuilder.prototype.hasReader = function(configName) {
|
970
|
+
var i, columnReader;
|
971
|
+
for (i = 0; i < this.readers.length; i = i + 1) {
|
972
|
+
columnReader = this.readers[i];
|
973
|
+
if (columnReader.configName === configName) {
|
974
|
+
return true;
|
975
|
+
}
|
976
|
+
}
|
977
|
+
// Else return undefined
|
978
|
+
};
|
979
|
+
|
980
|
+
}(Highcharts));
|
957
981
|
}));
|