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.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/css/highcharts.css +760 -0
  3. data/app/assets/javascripts/highstock.js +511 -419
  4. data/app/assets/javascripts/highstock/highstock.js +472 -0
  5. data/app/assets/javascripts/highstock/highstock.js.map +8 -0
  6. data/app/assets/javascripts/highstock/highstock.src.js +28809 -0
  7. data/app/assets/javascripts/highstock/modules/accessibility.js +48 -0
  8. data/app/assets/javascripts/highstock/modules/accessibility.js.map +8 -0
  9. data/app/assets/javascripts/highstock/modules/accessibility.src.js +1131 -0
  10. data/app/assets/javascripts/highstock/modules/annotations.js +14 -0
  11. data/app/assets/javascripts/highstock/modules/annotations.js.map +8 -0
  12. data/app/assets/javascripts/highstock/modules/annotations.src.js +407 -0
  13. data/app/assets/javascripts/highstock/modules/boost-canvas.js +23 -0
  14. data/app/assets/javascripts/highstock/modules/boost-canvas.js.map +8 -0
  15. data/app/assets/javascripts/highstock/modules/boost-canvas.src.js +771 -0
  16. data/app/assets/javascripts/highstock/modules/boost.js +51 -12
  17. data/app/assets/javascripts/highstock/modules/boost.js.map +8 -0
  18. data/app/assets/javascripts/highstock/modules/boost.src.js +2580 -492
  19. data/app/assets/javascripts/highstock/modules/broken-axis.js.map +8 -0
  20. data/app/assets/javascripts/highstock/modules/canvasrenderer.experimental.js.map +8 -0
  21. data/app/assets/javascripts/highstock/modules/data.js +19 -19
  22. data/app/assets/javascripts/highstock/modules/data.js.map +8 -0
  23. data/app/assets/javascripts/highstock/modules/data.src.js +974 -950
  24. data/app/assets/javascripts/highstock/modules/drilldown.js +25 -17
  25. data/app/assets/javascripts/highstock/modules/drilldown.js.map +8 -0
  26. data/app/assets/javascripts/highstock/modules/drilldown.src.js +790 -709
  27. data/app/assets/javascripts/highstock/modules/export-data.js +17 -0
  28. data/app/assets/javascripts/highstock/modules/export-data.js.map +8 -0
  29. data/app/assets/javascripts/highstock/modules/export-data.src.js +417 -0
  30. data/app/assets/javascripts/highstock/modules/exporting.js +21 -18
  31. data/app/assets/javascripts/highstock/modules/exporting.js.map +8 -0
  32. data/app/assets/javascripts/highstock/modules/exporting.src.js +1013 -768
  33. data/app/assets/javascripts/highstock/modules/funnel.js +6 -7
  34. data/app/assets/javascripts/highstock/modules/funnel.js.map +8 -0
  35. data/app/assets/javascripts/highstock/modules/funnel.src.js +284 -308
  36. data/app/assets/javascripts/highstock/modules/gantt.js +24 -0
  37. data/app/assets/javascripts/highstock/modules/gantt.js.map +8 -0
  38. data/app/assets/javascripts/highstock/modules/gantt.src.js +793 -0
  39. data/app/assets/javascripts/highstock/modules/grid-axis.js +19 -0
  40. data/app/assets/javascripts/highstock/modules/grid-axis.js.map +8 -0
  41. data/app/assets/javascripts/highstock/modules/grid-axis.src.js +545 -0
  42. data/app/assets/javascripts/highstock/modules/heatmap.js +20 -18
  43. data/app/assets/javascripts/highstock/modules/heatmap.js.map +8 -0
  44. data/app/assets/javascripts/highstock/modules/heatmap.src.js +738 -633
  45. data/app/assets/javascripts/highstock/modules/map-parser.js.map +8 -0
  46. data/app/assets/javascripts/highstock/modules/map.js.map +8 -0
  47. data/app/assets/javascripts/highstock/modules/no-data-to-display.js +5 -5
  48. data/app/assets/javascripts/highstock/modules/no-data-to-display.js.map +8 -0
  49. data/app/assets/javascripts/highstock/modules/no-data-to-display.src.js +140 -133
  50. data/app/assets/javascripts/highstock/modules/offline-exporting.js +12 -7
  51. data/app/assets/javascripts/highstock/modules/offline-exporting.js.map +8 -0
  52. data/app/assets/javascripts/highstock/modules/offline-exporting.src.js +543 -270
  53. data/app/assets/javascripts/highstock/modules/overlapping-datalabels.js +10 -0
  54. data/app/assets/javascripts/highstock/modules/overlapping-datalabels.js.map +8 -0
  55. data/app/assets/javascripts/highstock/modules/overlapping-datalabels.src.js +187 -0
  56. data/app/assets/javascripts/highstock/modules/series-label.js +19 -0
  57. data/app/assets/javascripts/highstock/modules/series-label.js.map +8 -0
  58. data/app/assets/javascripts/highstock/modules/series-label.src.js +606 -0
  59. data/app/assets/javascripts/highstock/modules/solid-gauge.js +9 -8
  60. data/app/assets/javascripts/highstock/modules/solid-gauge.js.map +8 -0
  61. data/app/assets/javascripts/highstock/modules/solid-gauge.src.js +334 -266
  62. data/app/assets/javascripts/highstock/modules/static-scale.js +12 -0
  63. data/app/assets/javascripts/highstock/modules/static-scale.js.map +8 -0
  64. data/app/assets/javascripts/highstock/modules/static-scale.src.js +64 -0
  65. data/app/assets/javascripts/highstock/modules/stock.js +123 -0
  66. data/app/assets/javascripts/highstock/modules/stock.js.map +8 -0
  67. data/app/assets/javascripts/highstock/modules/stock.src.js +6247 -0
  68. data/app/assets/javascripts/highstock/modules/treemap.js +22 -23
  69. data/app/assets/javascripts/highstock/modules/treemap.js.map +8 -0
  70. data/app/assets/javascripts/highstock/modules/treemap.src.js +884 -859
  71. data/app/assets/javascripts/highstock/modules/xrange-series.js +15 -0
  72. data/app/assets/javascripts/highstock/modules/xrange-series.js.map +8 -0
  73. data/app/assets/javascripts/highstock/modules/xrange-series.src.js +258 -0
  74. data/app/assets/javascripts/highstock/themes/dark-blue.js +307 -244
  75. data/app/assets/javascripts/highstock/themes/dark-green.js +303 -244
  76. data/app/assets/javascripts/highstock/themes/dark-unica.js +231 -201
  77. data/app/assets/javascripts/highstock/themes/gray.js +314 -245
  78. data/app/assets/javascripts/highstock/themes/grid-light.js +91 -66
  79. data/app/assets/javascripts/highstock/themes/grid.js +124 -96
  80. data/app/assets/javascripts/highstock/themes/sand-signika.js +119 -94
  81. data/app/assets/javascripts/highstock/themes/skies.js +108 -85
  82. data/lib/highstock/rails/version.rb +1 -1
  83. metadata +54 -11
  84. data/app/assets/javascripts/highstock/adapters/standalone-framework.js +0 -18
  85. data/app/assets/javascripts/highstock/adapters/standalone-framework.src.js +0 -635
  86. data/app/assets/javascripts/highstock/highcharts-3d.js +0 -48
  87. data/app/assets/javascripts/highstock/highcharts-3d.src.js +0 -1711
  88. data/app/assets/javascripts/highstock/highcharts-more.js +0 -55
  89. data/app/assets/javascripts/highstock/highstock-all.js +0 -637
  90. data/app/assets/javascripts/highstock/modules/canvas-tools.js +0 -133
  91. data/app/assets/javascripts/highstock/modules/canvas-tools.src.js +0 -3114
@@ -0,0 +1,24 @@
1
+ /*
2
+ Highcharts JS v5.0.11 (2017-05-04)
3
+ Gantt series
4
+
5
+ (c) 2016 Lars A. V. Cabrera
6
+
7
+ --- WORK IN PROGRESS ---
8
+
9
+ License: www.highcharts.com/license
10
+ */
11
+ (function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(g){var n=g.dateFormat,r=g.each,t=g.isObject,v=g.pick,m=g.wrap,p=g.Axis,w=g.Chart,u=g.Tick;p.prototype.isOuterAxis=function(){var a=this,e=-1,b=!0;r(this.chart.axes,function(d,f){d.side===a.side&&(d===a?e=f:0<=e&&f>e&&(b=!1))});return b};u.prototype.getLabelWidth=function(){return this.label.getBBox().width};p.prototype.getMaxLabelLength=function(a){var e=this.tickPositions,b=this.ticks,d=0;
12
+ if(!this.maxLabelLength||a)r(e,function(a){(a=b[a])&&a.labelLength>d&&(d=a.labelLength)}),this.maxLabelLength=d;return this.maxLabelLength};p.prototype.addTitle=function(){var a=this.chart.renderer,e=this.axisParent,b=this.horiz,d=this.opposite,f=this.options,c=f.title,l;this.showAxis=l=this.hasData()||v(f.showEmpty,!0);f.title="";this.axisTitle||((f=c.textAlign)||(f=(b?{low:"left",middle:"center",high:"right"}:{low:d?"right":"left",middle:"center",high:d?"left":"right"})[c.align]),this.axisTitle=
13
+ a.text(c.text,0,0,c.useHTML).attr({zIndex:7,rotation:c.rotation||0,align:f}).addClass("highcharts-axis-title").add(e),this.axisTitle.isNew=!0);this.axisTitle[l?"show":"hide"](!0)};g.dateFormats={W:function(a){a=new Date(a);var e=0===a.getUTCDay()?7:a.getUTCDay(),b=a.getTime(),d=new Date(a.getUTCFullYear(),0,1,-6);a.setDate(a.getUTCDate()+4-e);return 1+Math.floor(Math.floor((b-d)/864E5)/7)},E:function(a){return n("%a",a,!0).charAt(0)}};m(u.prototype,"addLabel",function(a){var e=this.axis,b=void 0!==
14
+ e.options.categories,d=e.tickPositions,d=this.pos!==d[d.length-1];(!e.options.grid||b||d)&&a.apply(this)});m(u.prototype,"getLabelPosition",function(a,e,b,d){var f=a.apply(this,Array.prototype.slice.call(arguments,1)),c=this.axis,l=c.options,h=l.tickInterval||1,q,k;l.grid&&(q=l.labels.style.fontSize,k=c.chart.renderer.fontMetrics(q,d),q=k.b,k=k.h,c.horiz&&void 0===l.categories?(l=c.axisGroup.getBBox().height,h=this.pos+h/2,f.x=c.translate(h)+c.left,h=l/2+k/2-Math.abs(k-q),f.y=0===c.side?b-h:b+h):
15
+ (void 0===l.categories&&(h=this.pos+h/2,f.y=c.translate(h)+c.top+q/2),h=this.getLabelWidth()/2-c.maxLabelLength/2,f.x=3===c.side?f.x+h:f.x-h));return f});m(p.prototype,"tickSize",function(a){var e=a.apply(this,Array.prototype.slice.call(arguments,1)),b;this.options.grid&&!this.horiz&&(b=2*Math.abs(this.defaultLeftAxisOptions.labels.x),this.maxLabelLength||(this.maxLabelLength=this.getMaxLabelLength()),b=this.maxLabelLength+b,e[0]=b);return e});m(p.prototype,"getOffset",function(a){var e=this.chart.axisOffset,
16
+ b=this.side,d,f,c=this.options,l=c.title,h=l&&l.text&&!1!==l.enabled;this.options.grid&&t(this.options.title)?(f=this.tickSize("tick")[0],e[b]&&f&&(d=e[b]+f),h&&this.addTitle(),a.apply(this,Array.prototype.slice.call(arguments,1)),e[b]=v(d,e[b]),c.title=l):a.apply(this,Array.prototype.slice.call(arguments,1))});m(p.prototype,"renderUnsquish",function(a){this.options.grid&&(this.labelRotation=0,this.options.labels.rotation=0);a.apply(this)});m(p.prototype,"setOptions",function(a,e){e.grid&&this.horiz&&
17
+ (e.startOnTick=!0,e.minPadding=0,e.endOnTick=!0);a.apply(this,Array.prototype.slice.call(arguments,1))});m(p.prototype,"render",function(a){var e=this.options,b,d,f,c,l,h,q=this.chart.renderer;if(e.grid){if(b=2*Math.abs(this.defaultLeftAxisOptions.labels.x),b=this.maxLabelLength+b,d=e.lineWidth,this.rightWall&&this.rightWall.destroy(),a.apply(this),a=this.axisGroup.getBBox(),this.horiz&&(this.rightWall=q.path(["M",a.x+this.width+1,a.y,"L",a.x+this.width+1,a.y+a.height]).attr({stroke:e.tickColor||
18
+ "#ccd6eb","stroke-width":e.tickWidth||1,zIndex:7,class:"grid-wall"}).add(this.axisGroup)),this.isOuterAxis()&&this.axisLine&&(this.horiz&&(b=a.height-1),d)){a=this.getLinePath(d);l=a.indexOf("M")+1;h=a.indexOf("L")+1;f=a.indexOf("M")+2;c=a.indexOf("L")+2;if(0===this.side||3===this.side)b=-b;this.horiz?(a[f]+=b,a[c]+=b):(a[l]+=b,a[h]+=b);this.axisLineExtra?this.axisLineExtra.animate({d:a}):this.axisLineExtra=q.path(a).attr({stroke:e.lineColor,"stroke-width":d,zIndex:7}).add(this.axisGroup);this.axisLine[this.showAxis?
19
+ "show":"hide"](!0)}}else a.apply(this)});m(w.prototype,"render",function(a){var e=25/11,b,d;r(this.axes,function(a){var c=a.options;c.grid&&(d=c.labels.style.fontSize,b=a.chart.renderer.fontMetrics(d),"datetime"===c.type&&(c.units=[["millisecond",[1]],["second",[1]],["minute",[1]],["hour",[1]],["day",[1]],["week",[1]],["month",[1]],["year",null]]),a.horiz?c.tickLength=c.cellHeight||b.h*e:(c.tickWidth=1,c.lineWidth||(c.lineWidth=1)))});a.apply(this)})})(n);(function(g){var n=g.getOptions().plotOptions,
20
+ r=g.seriesTypes.column,t=g.each,v=g.extendClass,m=g.isNumber,p=g.isObject,w=g.merge,u=g.pick,a=g.seriesTypes,e=g.wrap,b=g.Axis,d=g.Point,f=g.Series;n.xrange=w(n.column,{tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.yCategory}\x3c/b\x3e\x3cbr/\x3e'}});a.xrange=v(r,{pointClass:v(d,{getLabelConfig:function(){var a=d.prototype.getLabelConfig.call(this);a.x2=this.x2;a.yCategory=this.yCategory=this.series.yAxis.categories&&this.series.yAxis.categories[this.y];
21
+ return a}}),type:"xrange",forceDL:!0,parallelArrays:["x","x2","y"],requireSorting:!1,animate:a.line.prototype.animate,getColumnMetrics:function(){function a(){t(e.series,function(a){var c=a.xAxis;a.xAxis=a.yAxis;a.yAxis=c})}var b,e=this.chart;a();this.yAxis.closestPointRange=1;b=r.prototype.getColumnMetrics.call(this);a();return b},cropData:function(a,b,e,d){b=f.prototype.cropData.call(this,this.x2Data,b,e,d);b.xData=a.slice(b.start,b.end);return b},translate:function(){r.prototype.translate.apply(this,
22
+ arguments);var a=this.xAxis,b=this.columnMetrics,e=this.options.minPointLength||0;t(this.points,function(c){var k=c.plotX,d=u(c.x2,c.x+(c.len||0)),d=a.toPixels(d,!0),f=d-k,h;e&&(h=e-f,0>h&&(h=0),k-=h/2,d+=h/2);k=Math.max(k,-10);d=Math.min(Math.max(d,-10),a.len+10);d<k&&(d=k);c.shapeArgs={x:k,y:c.plotY+b.offset,width:d-k,height:b.width};c.tooltipPos[0]+=f/2;c.tooltipPos[1]-=b.width/2;if(d=c.partialFill)p(d)&&(d=d.amount),m(d)||(d=0),k=c.shapeArgs,c.partShapeArgs={x:k.x,y:k.y+1,width:k.width*d,height:k.height-
23
+ 2}})},drawPoints:function(){var a=this,b=this.chart,d=b.renderer,e=b.pointCount<(a.options.animationLimit||250)?"animate":"attr";t(a.points,function(b){var c=b.graphic,f=b.shapeType,h=b.shapeArgs,g=b.partShapeArgs;if(m(b.plotY)&&null!==b.y)if(c){if(b.graphicOriginal[e](w(h)),g)b.graphicOverlay[e](w(g))}else b.graphic=c=d.g("point").attr({"class":b.getClassName()}).add(b.group||a.group),b.graphicOriginal=d[f](h).addClass("highcharts-partfill-original").add(c),g&&(b.graphicOverlay=d[f](g).addClass("highcharts-partfill-overlay").add(c));
24
+ else c&&(b.graphic=c.destroy())})}});e(b.prototype,"getSeriesExtremes",function(a){var b=this.series,c,d;a.call(this);this.isXAxis&&"xrange"===b.type&&(c=u(this.dataMax,Number.MIN_VALUE),t(this.series,function(a){t(a.x2Data||[],function(a){a>c&&(c=a,d=!0)})}),d&&(this.dataMax=c))})})(n)});
@@ -0,0 +1,8 @@
1
+ {
2
+ "version":3,
3
+ "file":"",
4
+ "lineCount":24,
5
+ "mappings":"A;;;;;;;;;;AAWC,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,CAACC,CAAD,CAAI,CAAA,IAQLC,EAAaD,CAAAC,WARR,CASLC,EAAOF,CAAAE,KATF,CAULC,EAAWH,CAAAG,SAVN,CAWLC,EAAOJ,CAAAI,KAXF,CAYLC,EAAOL,CAAAK,KAZF,CAaLC,EAAON,CAAAM,KAbF,CAcLC,EAAQP,CAAAO,MAdH,CAeLC,EAAOR,CAAAQ,KA4BXF,EAAAG,UAAAC,YAAA,CAA6BC,QAAQ,EAAG,CAAA,IAChCC,EAAO,IADyB,CAEhCC,EAAa,EAFmB,CAGhCC,EAAU,CAAA,CAEdZ,EAAA,CAAK,IAAAa,MAAAC,KAAL,CAAsB,QAAQ,CAACC,CAAD,CAAYC,CAAZ,CAAmB,CACzCD,CAAAE,KAAJ,GAAuBP,CAAAO,KAAvB,GACQF,CAAJ,GAAkBL,CAAlB,CAEIC,CAFJ,CAEgBK,CAFhB,CAMwB,CANxB,EAMWL,CANX,EAM6BK,CAN7B,CAMqCL,CANrC,GASIC,CATJ,CASc,CAAA,CATd,CADJ,CAD6C,CAAjD,CAkBA,OAAOA,EAvB6B,CA+BxCN,EAAAC,UAAAW,cAAA,CAA+BC,QAAQ,EAAG,CACtC,MAAO,KAAAC,MAAA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BkB,CANtB;",
6
+ "sources":["Input_0"],
7
+ "names":["factory","module","exports","Highcharts","H","dateFormat","each","isObject","pick","wrap","Axis","Chart","Tick","prototype","isOuterAxis","Axis.prototype.isOuterAxis","axis","thisIndex","isOuter","chart","axes","otherAxis","index","side","getLabelWidth","Tick.prototype.getLabelWidth","label","getBBox","width","getMaxLabelLength","Axis.prototype.getMaxLabelLength","force","tickPositions","ticks","maxLabelLength","tick","labelLength","addTitle","Axis.prototype.addTitle","renderer","axisParent","horiz","opposite","options","axisTitleOptions","title","showAxis","hasData","showEmpty","axisTitle","textAlign","low","middle","high","align","text","useHTML","attr","zIndex","rotation","addClass","add","isNew","dateFormats","W","timestamp","date","Date","day","getUTCDay","time","getTime","startOfYear","getUTCFullYear","setDate","getUTCDate","Math","floor","dayNumber","E","charAt","proceed","isCategoryAxis","undefined","categories","isLastTick","pos","lastTick","length","grid","apply","x","y","retVal","Array","slice","call","arguments","tickInterval","fontSize","labelMetrics","labels","style","fontMetrics","lblB","b","lblH","h","axisHeight","axisGroup","height","newPos","translate","left","labelCenter","abs","top","newX","labelPadding","defaultLeftAxisOptions","distance","axisOffset","tickSize","enabled","labelRotation","userOptions","startOnTick","minPadding","endOnTick","lineWidth","yStartIndex","yEndIndex","xStartIndex","xEndIndex","rightWall","destroy","axisGroupBox","path","stroke","tickColor","tickWidth","class","axisLine","linePath","getLinePath","indexOf","axisLineExtra","animate","d","lineColor","fontSizeToCellHeightRatio","type","units","tickLength","cellHeight","defaultPlotOptions","getOptions","plotOptions","columnType","seriesTypes","column","extendClass","isNumber","merge","Point","Series","xrange","tooltip","pointFormat","pointClass","getLabelConfig","cfg","x2","yCategory","series","yAxis","forceDL","parallelArrays","requireSorting","line","getColumnMetrics","swapAxes","s","xAxis","metrics","closestPointRange","cropData","xData","yData","min","max","crop","x2Data","start","end","columnMetrics","minPointLength","points","point","plotX","posX","len","plotX2","toPixels","widthDifference","shapeArgs","plotY","offset","tooltipPos","partialFill","amount","partShapeArgs","drawPoints","verb","pointCount","animationLimit","graphic","shapeType","graphicOriginal","graphicOverlay","g","getClassName","group","dataMax","modMax","isXAxis","Number","MIN_VALUE","val"]
8
+ }
@@ -0,0 +1,793 @@
1
+ /**
2
+ * @license Highcharts JS v5.0.11 (2017-05-04)
3
+ * Gantt series
4
+ *
5
+ * (c) 2016 Lars A. V. Cabrera
6
+ *
7
+ * --- WORK IN PROGRESS ---
8
+ *
9
+ * License: www.highcharts.com/license
10
+ */
11
+ 'use strict';
12
+ (function(factory) {
13
+ if (typeof module === 'object' && module.exports) {
14
+ module.exports = factory;
15
+ } else {
16
+ factory(Highcharts);
17
+ }
18
+ }(function(Highcharts) {
19
+ (function(H) {
20
+ /**
21
+ * (c) 2016 Highsoft AS
22
+ * Authors: Lars A. V. Cabrera
23
+ *
24
+ * License: www.highcharts.com/license
25
+ */
26
+
27
+ var dateFormat = H.dateFormat,
28
+ each = H.each,
29
+ isObject = H.isObject,
30
+ pick = H.pick,
31
+ wrap = H.wrap,
32
+ Axis = H.Axis,
33
+ Chart = H.Chart,
34
+ Tick = H.Tick;
35
+
36
+
37
+ // Enum for which side the axis is on.
38
+ // Maps to axis.side
39
+ var axisSide = {
40
+ top: 0,
41
+ right: 1,
42
+ bottom: 2,
43
+ left: 3,
44
+ 0: 'top',
45
+ 1: 'right',
46
+ 2: 'bottom',
47
+ 3: 'left'
48
+ };
49
+
50
+ /**
51
+ * Checks if an axis is the outer axis in its dimension. Since
52
+ * axes are placed outwards in order, the axis with the highest
53
+ * index is the outermost axis.
54
+ *
55
+ * Example: If there are multiple x-axes at the top of the chart,
56
+ * this function returns true if the axis supplied is the last
57
+ * of the x-axes.
58
+ *
59
+ * @return true if the axis is the outermost axis in its dimension;
60
+ * false if not
61
+ */
62
+ Axis.prototype.isOuterAxis = function() {
63
+ var axis = this,
64
+ thisIndex = -1,
65
+ isOuter = true;
66
+
67
+ each(this.chart.axes, function(otherAxis, index) {
68
+ if (otherAxis.side === axis.side) {
69
+ if (otherAxis === axis) {
70
+ // Get the index of the axis in question
71
+ thisIndex = index;
72
+
73
+ // Check thisIndex >= 0 in case thisIndex has
74
+ // not been found yet
75
+ } else if (thisIndex >= 0 && index > thisIndex) {
76
+ // There was an axis on the same side with a
77
+ // higher index. Exit the loop.
78
+ isOuter = false;
79
+ return;
80
+ }
81
+ }
82
+ });
83
+ // There were either no other axes on the same side,
84
+ // or the other axes were not farther from the chart
85
+ return isOuter;
86
+ };
87
+
88
+ /**
89
+ * Shortcut function to Tick.label.getBBox().width.
90
+ *
91
+ * @return {number} width - the width of the tick label
92
+ */
93
+ Tick.prototype.getLabelWidth = function() {
94
+ return this.label.getBBox().width;
95
+ };
96
+
97
+ /**
98
+ * Get the maximum label length.
99
+ * This function can be used in states where the axis.maxLabelLength has not
100
+ * been set.
101
+ *
102
+ * @param {boolean} force - Optional parameter to force a new calculation, even
103
+ * if a value has already been set
104
+ * @return {number} maxLabelLength - the maximum label length of the axis
105
+ */
106
+ Axis.prototype.getMaxLabelLength = function(force) {
107
+ var tickPositions = this.tickPositions,
108
+ ticks = this.ticks,
109
+ maxLabelLength = 0;
110
+
111
+ if (!this.maxLabelLength || force) {
112
+ each(tickPositions, function(tick) {
113
+ tick = ticks[tick];
114
+ if (tick && tick.labelLength > maxLabelLength) {
115
+ maxLabelLength = tick.labelLength;
116
+ }
117
+ });
118
+ this.maxLabelLength = maxLabelLength;
119
+ }
120
+ return this.maxLabelLength;
121
+ };
122
+
123
+ /**
124
+ * Adds the axis defined in axis.options.title
125
+ */
126
+ Axis.prototype.addTitle = function() {
127
+ var axis = this,
128
+ renderer = axis.chart.renderer,
129
+ axisParent = axis.axisParent,
130
+ horiz = axis.horiz,
131
+ opposite = axis.opposite,
132
+ options = axis.options,
133
+ axisTitleOptions = options.title,
134
+ hasData,
135
+ showAxis,
136
+ textAlign;
137
+
138
+ // For reuse in Axis.render
139
+ hasData = axis.hasData();
140
+ axis.showAxis = showAxis = hasData || pick(options.showEmpty, true);
141
+
142
+ // Disregard title generation in original Axis.getOffset()
143
+ options.title = '';
144
+
145
+ if (!axis.axisTitle) {
146
+ textAlign = axisTitleOptions.textAlign;
147
+ if (!textAlign) {
148
+ textAlign = (horiz ? {
149
+ low: 'left',
150
+ middle: 'center',
151
+ high: 'right'
152
+ } : {
153
+ low: opposite ? 'right' : 'left',
154
+ middle: 'center',
155
+ high: opposite ? 'left' : 'right'
156
+ })[axisTitleOptions.align];
157
+ }
158
+ axis.axisTitle = renderer.text(
159
+ axisTitleOptions.text,
160
+ 0,
161
+ 0,
162
+ axisTitleOptions.useHTML
163
+ )
164
+ .attr({
165
+ zIndex: 7,
166
+ rotation: axisTitleOptions.rotation || 0,
167
+ align: textAlign
168
+ })
169
+ .addClass('highcharts-axis-title')
170
+
171
+ // Add to axisParent instead of axisGroup, to ignore the space
172
+ // it takes
173
+ .add(axisParent);
174
+ axis.axisTitle.isNew = true;
175
+ }
176
+
177
+
178
+ // hide or show the title depending on whether showEmpty is set
179
+ axis.axisTitle[showAxis ? 'show' : 'hide'](true);
180
+ };
181
+
182
+ /**
183
+ * Add custom date formats
184
+ */
185
+ H.dateFormats = {
186
+ // Week number
187
+ W: function(timestamp) {
188
+ var date = new Date(timestamp),
189
+ day = date.getUTCDay() === 0 ? 7 : date.getUTCDay(),
190
+ time = date.getTime(),
191
+ startOfYear = new Date(date.getUTCFullYear(), 0, 1, -6),
192
+ dayNumber;
193
+ date.setDate(date.getUTCDate() + 4 - day);
194
+ dayNumber = Math.floor((time - startOfYear) / 86400000);
195
+ return 1 + Math.floor(dayNumber / 7);
196
+ },
197
+ // First letter of the day of the week, e.g. 'M' for 'Monday'.
198
+ E: function(timestamp) {
199
+ return dateFormat('%a', timestamp, true).charAt(0);
200
+ }
201
+ };
202
+
203
+ /**
204
+ * Prevents adding the last tick label if the axis is not a category axis.
205
+ *
206
+ * Since numeric labels are normally placed at starts and ends of a range of
207
+ * value, and this module makes the label point at the value, an "extra" label
208
+ * would appear.
209
+ *
210
+ * @param {function} proceed - the original function
211
+ */
212
+ wrap(Tick.prototype, 'addLabel', function(proceed) {
213
+ var axis = this.axis,
214
+ isCategoryAxis = axis.options.categories !== undefined,
215
+ tickPositions = axis.tickPositions,
216
+ lastTick = tickPositions[tickPositions.length - 1],
217
+ isLastTick = this.pos !== lastTick;
218
+
219
+ if (!axis.options.grid || isCategoryAxis || isLastTick) {
220
+ proceed.apply(this);
221
+ }
222
+ });
223
+
224
+ /**
225
+ * Center tick labels vertically and horizontally between ticks
226
+ *
227
+ * @param {function} proceed - the original function
228
+ *
229
+ * @return {object} object - an object containing x and y positions
230
+ * for the tick
231
+ */
232
+ wrap(Tick.prototype, 'getLabelPosition', function(proceed, x, y, label) {
233
+ var retVal = proceed.apply(this, Array.prototype.slice.call(arguments, 1)),
234
+ axis = this.axis,
235
+ options = axis.options,
236
+ tickInterval = options.tickInterval || 1,
237
+ newX,
238
+ newPos,
239
+ axisHeight,
240
+ fontSize,
241
+ labelMetrics,
242
+ lblB,
243
+ lblH,
244
+ labelCenter;
245
+
246
+ // Only center tick labels if axis has option grid: true
247
+ if (options.grid) {
248
+ fontSize = options.labels.style.fontSize;
249
+ labelMetrics = axis.chart.renderer.fontMetrics(fontSize, label);
250
+ lblB = labelMetrics.b;
251
+ lblH = labelMetrics.h;
252
+
253
+ if (axis.horiz && options.categories === undefined) {
254
+ // Center x position
255
+ axisHeight = axis.axisGroup.getBBox().height;
256
+ newPos = this.pos + tickInterval / 2;
257
+ retVal.x = axis.translate(newPos) + axis.left;
258
+ labelCenter = (axisHeight / 2) + (lblH / 2) - Math.abs(lblH - lblB);
259
+
260
+ // Center y position
261
+ if (axis.side === axisSide.top) {
262
+ retVal.y = y - labelCenter;
263
+ } else {
264
+ retVal.y = y + labelCenter;
265
+ }
266
+ } else {
267
+ // Center y position
268
+ if (options.categories === undefined) {
269
+ newPos = this.pos + (tickInterval / 2);
270
+ retVal.y = axis.translate(newPos) + axis.top + (lblB / 2);
271
+ }
272
+
273
+ // Center x position
274
+ newX = (this.getLabelWidth() / 2) - (axis.maxLabelLength / 2);
275
+ if (axis.side === axisSide.left) {
276
+ retVal.x += newX;
277
+ } else {
278
+ retVal.x -= newX;
279
+ }
280
+ }
281
+ }
282
+ return retVal;
283
+ });
284
+
285
+
286
+ /**
287
+ * Draw vertical ticks extra long to create cell floors and roofs.
288
+ * Overrides the tickLength for vertical axes.
289
+ *
290
+ * @param {function} proceed - the original function
291
+ * @returns {array} retVal -
292
+ */
293
+ wrap(Axis.prototype, 'tickSize', function(proceed) {
294
+ var axis = this,
295
+ retVal = proceed.apply(axis, Array.prototype.slice.call(arguments, 1)),
296
+ labelPadding,
297
+ distance;
298
+
299
+ if (axis.options.grid && !axis.horiz) {
300
+ labelPadding = (Math.abs(axis.defaultLeftAxisOptions.labels.x) * 2);
301
+ if (!axis.maxLabelLength) {
302
+ axis.maxLabelLength = axis.getMaxLabelLength();
303
+ }
304
+ distance = axis.maxLabelLength + labelPadding;
305
+
306
+ retVal[0] = distance;
307
+ }
308
+ return retVal;
309
+ });
310
+
311
+ /**
312
+ * Disregards space required by axisTitle, by adding axisTitle to axisParent
313
+ * instead of axisGroup, and disregarding margins and offsets related to
314
+ * axisTitle.
315
+ *
316
+ * @param {function} proceed - the original function
317
+ */
318
+ wrap(Axis.prototype, 'getOffset', function(proceed) {
319
+ var axis = this,
320
+ axisOffset = axis.chart.axisOffset,
321
+ side = axis.side,
322
+ axisHeight,
323
+ tickSize,
324
+ options = axis.options,
325
+ axisTitleOptions = options.title,
326
+ addTitle = axisTitleOptions &&
327
+ axisTitleOptions.text &&
328
+ axisTitleOptions.enabled !== false;
329
+
330
+ if (axis.options.grid && isObject(axis.options.title)) {
331
+
332
+ tickSize = axis.tickSize('tick')[0];
333
+ if (axisOffset[side] && tickSize) {
334
+ axisHeight = axisOffset[side] + tickSize;
335
+ }
336
+
337
+ if (addTitle) {
338
+ // Use the custom addTitle() to add it, while preventing making room
339
+ // for it
340
+ axis.addTitle();
341
+ }
342
+
343
+ proceed.apply(axis, Array.prototype.slice.call(arguments, 1));
344
+
345
+ axisOffset[side] = pick(axisHeight, axisOffset[side]);
346
+
347
+
348
+ // Put axis options back after original Axis.getOffset() has been called
349
+ options.title = axisTitleOptions;
350
+
351
+ } else {
352
+ proceed.apply(axis, Array.prototype.slice.call(arguments, 1));
353
+ }
354
+ });
355
+
356
+ /**
357
+ * Prevents rotation of labels when squished, as rotating them would not
358
+ * help.
359
+ *
360
+ * @param {function} proceed - the original function
361
+ */
362
+ wrap(Axis.prototype, 'renderUnsquish', function(proceed) {
363
+ if (this.options.grid) {
364
+ this.labelRotation = 0;
365
+ this.options.labels.rotation = 0;
366
+ }
367
+ proceed.apply(this);
368
+ });
369
+
370
+ /**
371
+ * Places leftmost tick at the start of the axis, to create a left wall.
372
+ *
373
+ * @param {function} proceed - the original function
374
+ */
375
+ wrap(Axis.prototype, 'setOptions', function(proceed, userOptions) {
376
+ var axis = this;
377
+ if (userOptions.grid && axis.horiz) {
378
+ userOptions.startOnTick = true;
379
+ userOptions.minPadding = 0;
380
+ userOptions.endOnTick = true;
381
+ }
382
+ proceed.apply(this, Array.prototype.slice.call(arguments, 1));
383
+ });
384
+
385
+ /**
386
+ * Draw an extra line on the far side of the the axisLine,
387
+ * creating cell roofs of a grid.
388
+ *
389
+ * @param {function} proceed - the original function
390
+ */
391
+ wrap(Axis.prototype, 'render', function(proceed) {
392
+ var axis = this,
393
+ options = axis.options,
394
+ labelPadding,
395
+ distance,
396
+ lineWidth,
397
+ linePath,
398
+ yStartIndex,
399
+ yEndIndex,
400
+ xStartIndex,
401
+ xEndIndex,
402
+ renderer = axis.chart.renderer,
403
+ axisGroupBox;
404
+
405
+ if (options.grid) {
406
+ labelPadding = (Math.abs(axis.defaultLeftAxisOptions.labels.x) * 2);
407
+ distance = axis.maxLabelLength + labelPadding;
408
+ lineWidth = options.lineWidth;
409
+
410
+ // Remove right wall before rendering
411
+ if (axis.rightWall) {
412
+ axis.rightWall.destroy();
413
+ }
414
+
415
+ // Call original Axis.render() to obtain axis.axisLine and
416
+ // axis.axisGroup
417
+ proceed.apply(axis);
418
+
419
+ axisGroupBox = axis.axisGroup.getBBox();
420
+
421
+ // Add right wall on horizontal axes
422
+ if (axis.horiz) {
423
+ axis.rightWall = renderer.path([
424
+ 'M',
425
+ axisGroupBox.x + axis.width + 1, // account for left wall
426
+ axisGroupBox.y,
427
+ 'L',
428
+ axisGroupBox.x + axis.width + 1, // account for left wall
429
+ axisGroupBox.y + axisGroupBox.height
430
+ ])
431
+ .attr({
432
+ stroke: options.tickColor || '#ccd6eb',
433
+ 'stroke-width': options.tickWidth || 1,
434
+ zIndex: 7,
435
+ class: 'grid-wall'
436
+ })
437
+ .add(axis.axisGroup);
438
+ }
439
+
440
+ if (axis.isOuterAxis() && axis.axisLine) {
441
+ if (axis.horiz) {
442
+ // -1 to avoid adding distance each time the chart updates
443
+ distance = axisGroupBox.height - 1;
444
+ }
445
+
446
+ if (lineWidth) {
447
+ linePath = axis.getLinePath(lineWidth);
448
+ xStartIndex = linePath.indexOf('M') + 1;
449
+ xEndIndex = linePath.indexOf('L') + 1;
450
+ yStartIndex = linePath.indexOf('M') + 2;
451
+ yEndIndex = linePath.indexOf('L') + 2;
452
+
453
+ // Negate distance if top or left axis
454
+ if (axis.side === axisSide.top || axis.side === axisSide.left) {
455
+ distance = -distance;
456
+ }
457
+
458
+ // If axis is horizontal, reposition line path vertically
459
+ if (axis.horiz) {
460
+ linePath[yStartIndex] = linePath[yStartIndex] + distance;
461
+ linePath[yEndIndex] = linePath[yEndIndex] + distance;
462
+ } else {
463
+ // If axis is vertical, reposition line path horizontally
464
+ linePath[xStartIndex] = linePath[xStartIndex] + distance;
465
+ linePath[xEndIndex] = linePath[xEndIndex] + distance;
466
+ }
467
+
468
+ if (!axis.axisLineExtra) {
469
+ axis.axisLineExtra = renderer.path(linePath)
470
+ .attr({
471
+ stroke: options.lineColor,
472
+ 'stroke-width': lineWidth,
473
+ zIndex: 7
474
+ })
475
+ .add(axis.axisGroup);
476
+ } else {
477
+ axis.axisLineExtra.animate({
478
+ d: linePath
479
+ });
480
+ }
481
+
482
+ // show or hide the line depending on options.showEmpty
483
+ axis.axisLine[axis.showAxis ? 'show' : 'hide'](true);
484
+ }
485
+ }
486
+ } else {
487
+ proceed.apply(axis);
488
+ }
489
+ });
490
+
491
+ /**
492
+ * Wraps chart rendering with the following customizations:
493
+ * 1. Prohibit timespans of multitudes of a time unit
494
+ * 2. Draw cell walls on vertical axes
495
+ *
496
+ * @param {function} proceed - the original function
497
+ */
498
+ wrap(Chart.prototype, 'render', function(proceed) {
499
+ // 25 is optimal height for default fontSize (11px)
500
+ // 25 / 11 ≈ 2.28
501
+ var fontSizeToCellHeightRatio = 25 / 11,
502
+ fontMetrics,
503
+ fontSize;
504
+
505
+ each(this.axes, function(axis) {
506
+ var options = axis.options;
507
+ if (options.grid) {
508
+ fontSize = options.labels.style.fontSize;
509
+ fontMetrics = axis.chart.renderer.fontMetrics(fontSize);
510
+
511
+ // Prohibit timespans of multitudes of a time unit,
512
+ // e.g. two days, three weeks, etc.
513
+ if (options.type === 'datetime') {
514
+ options.units = [
515
+ ['millisecond', [1]],
516
+ ['second', [1]],
517
+ ['minute', [1]],
518
+ ['hour', [1]],
519
+ ['day', [1]],
520
+ ['week', [1]],
521
+ ['month', [1]],
522
+ ['year', null]
523
+ ];
524
+ }
525
+
526
+ // Make tick marks taller, creating cell walls of a grid.
527
+ // Use cellHeight axis option if set
528
+ if (axis.horiz) {
529
+ options.tickLength = options.cellHeight ||
530
+ fontMetrics.h * fontSizeToCellHeightRatio;
531
+ } else {
532
+ options.tickWidth = 1;
533
+ if (!options.lineWidth) {
534
+ options.lineWidth = 1;
535
+ }
536
+ }
537
+ }
538
+ });
539
+
540
+ // Call original Chart.render()
541
+ proceed.apply(this);
542
+ });
543
+
544
+ }(Highcharts));
545
+ (function(H) {
546
+ /**
547
+ * (c) 2014-2017 Highsoft AS
548
+ * Authors: Torstein Honsi, Lars A. V. Cabrera
549
+ *
550
+ * License: www.highcharts.com/license
551
+ */
552
+
553
+ var defaultPlotOptions = H.getOptions().plotOptions,
554
+ color = H.Color,
555
+ columnType = H.seriesTypes.column,
556
+ each = H.each,
557
+ extendClass = H.extendClass,
558
+ isNumber = H.isNumber,
559
+ isObject = H.isObject,
560
+ merge = H.merge,
561
+ pick = H.pick,
562
+ seriesTypes = H.seriesTypes,
563
+ wrap = H.wrap,
564
+ Axis = H.Axis,
565
+ Point = H.Point,
566
+ Series = H.Series,
567
+ pointFormat = '<span style="color:{point.color}">' +
568
+ '\u25CF' +
569
+ '</span> {series.name}: <b>{point.yCategory}</b><br/>',
570
+ xrange = 'xrange';
571
+
572
+ defaultPlotOptions.xrange = merge(defaultPlotOptions.column, {
573
+ tooltip: {
574
+ pointFormat: pointFormat
575
+ }
576
+ });
577
+ seriesTypes.xrange = extendClass(columnType, {
578
+ pointClass: extendClass(Point, {
579
+ // Add x2 and yCategory to the available properties for tooltip formats
580
+ getLabelConfig: function() {
581
+ var cfg = Point.prototype.getLabelConfig.call(this);
582
+
583
+ cfg.x2 = this.x2;
584
+ cfg.yCategory = this.yCategory = this.series.yAxis.categories && this.series.yAxis.categories[this.y];
585
+ return cfg;
586
+ }
587
+ }),
588
+ type: xrange,
589
+ forceDL: true,
590
+ parallelArrays: ['x', 'x2', 'y'],
591
+ requireSorting: false,
592
+ animate: seriesTypes.line.prototype.animate,
593
+
594
+ /**
595
+ * Borrow the column series metrics, but with swapped axes. This gives free access
596
+ * to features like groupPadding, grouping, pointWidth etc.
597
+ */
598
+ getColumnMetrics: function() {
599
+ var metrics,
600
+ chart = this.chart;
601
+
602
+ function swapAxes() {
603
+ each(chart.series, function(s) {
604
+ var xAxis = s.xAxis;
605
+ s.xAxis = s.yAxis;
606
+ s.yAxis = xAxis;
607
+ });
608
+ }
609
+
610
+ swapAxes();
611
+
612
+ this.yAxis.closestPointRange = 1;
613
+ metrics = columnType.prototype.getColumnMetrics.call(this);
614
+
615
+ swapAxes();
616
+
617
+ return metrics;
618
+ },
619
+
620
+ /**
621
+ * Override cropData to show a point where x is outside visible range
622
+ * but x2 is outside.
623
+ */
624
+ cropData: function(xData, yData, min, max) {
625
+
626
+ // Replace xData with x2Data to find the appropriate cropStart
627
+ var cropData = Series.prototype.cropData,
628
+ crop = cropData.call(this, this.x2Data, yData, min, max);
629
+
630
+ // Re-insert the cropped xData
631
+ crop.xData = xData.slice(crop.start, crop.end);
632
+
633
+ return crop;
634
+ },
635
+
636
+ translate: function() {
637
+ columnType.prototype.translate.apply(this, arguments);
638
+ var series = this,
639
+ xAxis = series.xAxis,
640
+ metrics = series.columnMetrics,
641
+ minPointLength = series.options.minPointLength || 0;
642
+
643
+ each(series.points, function(point) {
644
+ var plotX = point.plotX,
645
+ posX = pick(point.x2, point.x + (point.len || 0)),
646
+ plotX2 = xAxis.toPixels(posX, true),
647
+ width = plotX2 - plotX,
648
+ widthDifference,
649
+ shapeArgs,
650
+ partialFill;
651
+
652
+ if (minPointLength) {
653
+ widthDifference = minPointLength - width;
654
+ if (widthDifference < 0) {
655
+ widthDifference = 0;
656
+ }
657
+ plotX -= widthDifference / 2;
658
+ plotX2 += widthDifference / 2;
659
+ }
660
+
661
+ plotX = Math.max(plotX, -10);
662
+ plotX2 = Math.min(Math.max(plotX2, -10), xAxis.len + 10);
663
+
664
+ if (plotX2 < plotX) { // #6107
665
+ plotX2 = plotX;
666
+ }
667
+
668
+ point.shapeArgs = {
669
+ x: plotX,
670
+ y: point.plotY + metrics.offset,
671
+ width: plotX2 - plotX,
672
+ height: metrics.width
673
+ };
674
+ point.tooltipPos[0] += width / 2;
675
+ point.tooltipPos[1] -= metrics.width / 2;
676
+
677
+ // Add a partShapeArgs to the point, based on the shapeArgs property
678
+ partialFill = point.partialFill;
679
+ if (partialFill) {
680
+ // Get the partial fill amount
681
+ if (isObject(partialFill)) {
682
+ partialFill = partialFill.amount;
683
+ }
684
+ // If it was not a number, assume 0
685
+ if (!isNumber(partialFill)) {
686
+ partialFill = 0;
687
+ }
688
+ shapeArgs = point.shapeArgs;
689
+ point.partShapeArgs = {
690
+ x: shapeArgs.x,
691
+ y: shapeArgs.y + 1,
692
+ width: shapeArgs.width * partialFill,
693
+ height: shapeArgs.height - 2
694
+ };
695
+ }
696
+ });
697
+ },
698
+
699
+ drawPoints: function() {
700
+ var series = this,
701
+ chart = this.chart,
702
+ options = series.options,
703
+ renderer = chart.renderer,
704
+ animationLimit = options.animationLimit || 250,
705
+ verb = chart.pointCount < animationLimit ? 'animate' : 'attr';
706
+
707
+ // draw the columns
708
+ each(series.points, function(point) {
709
+ var plotY = point.plotY,
710
+ graphic = point.graphic,
711
+ type = point.shapeType,
712
+ shapeArgs = point.shapeArgs,
713
+ partShapeArgs = point.partShapeArgs,
714
+ seriesOpts = series.options,
715
+ pfOptions = point.partialFill,
716
+ fill,
717
+ state = point.selected && 'select',
718
+ cutOff = options.stacking && !options.borderRadius;
719
+
720
+ if (isNumber(plotY) && point.y !== null) {
721
+ if (graphic) { // update
722
+ point.graphicOriginal[verb](
723
+ merge(shapeArgs)
724
+ );
725
+ if (partShapeArgs) {
726
+ point.graphicOverlay[verb](
727
+ merge(partShapeArgs)
728
+ );
729
+ }
730
+
731
+ } else {
732
+ point.graphic = graphic = renderer.g('point')
733
+ .attr({
734
+ 'class': point.getClassName()
735
+ })
736
+ .add(point.group || series.group);
737
+
738
+ point.graphicOriginal = renderer[type](shapeArgs)
739
+ .addClass('highcharts-partfill-original')
740
+ .add(graphic);
741
+ if (partShapeArgs) {
742
+ point.graphicOverlay = renderer[type](partShapeArgs)
743
+ .addClass('highcharts-partfill-overlay')
744
+ .add(graphic);
745
+ }
746
+ }
747
+
748
+
749
+
750
+ } else if (graphic) {
751
+ point.graphic = graphic.destroy(); // #1269
752
+ }
753
+ });
754
+ }
755
+ });
756
+
757
+ /**
758
+ * Max x2 should be considered in xAxis extremes
759
+ */
760
+ wrap(Axis.prototype, 'getSeriesExtremes', function(proceed) {
761
+ var axis = this,
762
+ series = axis.series,
763
+ dataMax,
764
+ modMax;
765
+
766
+ proceed.call(this);
767
+ if (axis.isXAxis && series.type === xrange) {
768
+ dataMax = pick(axis.dataMax, Number.MIN_VALUE);
769
+ each(this.series, function(series) {
770
+ each(series.x2Data || [], function(val) {
771
+ if (val > dataMax) {
772
+ dataMax = val;
773
+ modMax = true;
774
+ }
775
+ });
776
+ });
777
+ if (modMax) {
778
+ axis.dataMax = dataMax;
779
+ }
780
+ }
781
+ });
782
+
783
+ }(Highcharts));
784
+ (function(H) {
785
+ /**
786
+ * (c) 2016 Highsoft AS
787
+ * Authors: Lars A. V. Cabrera
788
+ *
789
+ * License: www.highcharts.com/license
790
+ */
791
+ //
792
+ }(Highcharts));
793
+ }));