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
@@ -1,30 +1,29 @@
|
|
1
1
|
/*
|
2
|
-
|
2
|
+
Highcharts JS v5.0.11 (2017-05-04)
|
3
3
|
|
4
4
|
(c) 2014 Highsoft AS
|
5
5
|
Authors: Jon Arild Nygard / Oystein Moseng
|
6
6
|
|
7
7
|
License: www.highcharts.com/license
|
8
8
|
*/
|
9
|
-
(function(
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
this.elArr
|
19
|
-
this.
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
a);this.colorAxis?this.translateColors():this.options.colorByPoint||this.setColorRecursive(this.tree
|
24
|
-
|
25
|
-
|
26
|
-
a
|
27
|
-
|
28
|
-
this.
|
29
|
-
|
30
|
-
dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};m.prototype.bindAxes.call(this);f.extend(this.yAxis.options,a);f.extend(this.xAxis.options,a)}}))});
|
9
|
+
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(f){var n=f.seriesType,q=f.seriesTypes,E=f.map,v=f.merge,y=f.extend,z=f.noop,m=f.each,x=f.grep,F=f.isNumber,A=f.isString,k=f.pick,u=f.Series,G=f.stableSort,H=function(a,b,c){c=c||this;f.objectEach(a,function(e,d){b.call(c,e,d,a)})},B=function(a,b,c,e){e=e||this;a=a||[];m(a,function(d,g){c=b.call(e,c,d,g,a)});return c},w=function(a,b,c){c=c||this;a=b.call(c,a);!1!==a&&w(a,b,c)};n("treemap","scatter",
|
10
|
+
{showInLegend:!1,marker:!1,dataLabels:{enabled:!0,defer:!1,verticalAlign:"middle",formatter:function(){return this.point.name||this.point.id},inside:!0},tooltip:{headerFormat:"",pointFormat:"\x3cb\x3e{point.name}\x3c/b\x3e: {point.value}\x3c/b\x3e\x3cbr/\x3e"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}}},{pointArrayMap:["value"],axisTypes:q.heatmap?["xAxis",
|
11
|
+
"yAxis","colorAxis"]:["xAxis","yAxis"],optionalAxis:"colorAxis",getSymbol:z,parallelArrays:["x","y","value","colorValue"],colorKey:"colorValue",translateColors:q.heatmap&&q.heatmap.prototype.translateColors,trackerGroups:["group","dataLabelsGroup"],getListOfParents:function(a,b){a=B(a,function(a,b,d){b=k(b.parent,"");void 0===a[b]&&(a[b]=[]);a[b].push(d);return a},{});H(a,function(a,e,d){""!==e&&-1===f.inArray(e,b)&&(m(a,function(a){d[""].push(a)}),delete d[e])});return a},getTree:function(){var a=
|
12
|
+
E(this.data,function(a){return a.id}),a=this.getListOfParents(this.data,a);this.nodeMap=[];return this.buildNode("",-1,0,a,null)},init:function(a,b){u.prototype.init.call(this,a,b);this.options.allowDrillToNode&&f.addEvent(this,"click",this.onClickDrillToNode)},buildNode:function(a,b,c,e,d){var g=this,h=[],C=g.points[b],D;m(e[a]||[],function(b){D=g.buildNode(g.points[b].id,b,c+1,e,a);h.push(D)});b={id:a,i:b,children:h,level:c,parent:d,visible:!1};g.nodeMap[b.id]=b;C&&(C.node=b);return b},setTreeValues:function(a){var b=
|
13
|
+
this,c=b.options,e=0,d=[],g,h=b.points[a.i];w(b.nodeMap[b.rootNode],function(a){var c=!1,d=a.parent;a.visible=!0;if(d||""===d)c=b.nodeMap[d];return c});w(b.nodeMap[b.rootNode].children,function(a){var b=!1;m(a,function(a){a.visible=!0;a.children.length&&(b=(b||[]).concat(a.children))});return b});m(a.children,function(a){a=b.setTreeValues(a);d.push(a);a.ignore?w(a.children,function(a){var b=!1;m(a,function(a){y(a,{ignore:!0,isLeaf:!1,visible:!1});a.children.length&&(b=(b||[]).concat(a.children))});
|
14
|
+
return b}):e+=a.val});G(d,function(a,b){return a.sortIndex-b.sortIndex});g=k(h&&h.options.value,e);h&&(h.value=g);y(a,{children:d,childrenTotal:e,ignore:!(k(h&&h.visible,!0)&&0<g),isLeaf:a.visible&&!e,levelDynamic:c.levelIsConstant?a.level:a.level-b.nodeMap[b.rootNode].level,name:k(h&&h.name,""),sortIndex:k(h&&h.sortIndex,-g),val:g});return a},calculateChildrenAreas:function(a,b){var c=this,e=c.options,d=this.levelMap[a.levelDynamic+1],g=k(c[d&&d.layoutAlgorithm]&&d.layoutAlgorithm,e.layoutAlgorithm),
|
15
|
+
h=e.alternateStartingDirection,f=[];a=x(a.children,function(a){return!a.ignore});d&&d.layoutStartingDirection&&(b.direction="vertical"===d.layoutStartingDirection?0:1);f=c[g](b,a);m(a,function(a,d){d=f[d];a.values=v(d,{val:a.childrenTotal,direction:h?1-b.direction:b.direction});a.pointValues=v(d,{x:d.x/c.axisRatio,width:d.width/c.axisRatio});a.children.length&&c.calculateChildrenAreas(a,a.values)})},setPointValues:function(){var a=this.xAxis,b=this.yAxis;m(this.points,function(c){var e=c.node,d=e.pointValues,
|
16
|
+
g,h;d&&e.visible?(e=Math.round(a.translate(d.x,0,0,0,1))-0,g=Math.round(a.translate(d.x+d.width,0,0,0,1))-0,h=Math.round(b.translate(d.y,0,0,0,1))-0,d=Math.round(b.translate(d.y+d.height,0,0,0,1))-0,c.shapeType="rect",c.shapeArgs={x:Math.min(e,g),y:Math.min(h,d),width:Math.abs(g-e),height:Math.abs(d-h)},c.plotX=c.shapeArgs.x+c.shapeArgs.width/2,c.plotY=c.shapeArgs.y+c.shapeArgs.height/2):(delete c.plotX,delete c.plotY)})},setColorRecursive:function(a,b,c){var e=this,d,g;a&&(d=e.points[a.i],g=e.levelMap[a.levelDynamic],
|
17
|
+
b=k(d&&d.options.color,g&&g.color,b,e.color),c=k(d&&d.options.colorIndex,g&&g.colorIndex,c,e.colorIndex),d&&(d.color=b,d.colorIndex=c),a.children.length&&m(a.children,function(a){e.setColorRecursive(a,b,c)}))},algorithmGroup:function(a,b,c,e){this.height=a;this.width=b;this.plot=e;this.startDirection=this.direction=c;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,b){return Math.max(a/b,b/a)}};this.addElement=function(a){this.lP.total=
|
18
|
+
this.elArr[this.elArr.length-1];this.total+=a;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a)};
|
19
|
+
this.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0}},algorithmCalcPoints:function(a,b,c,e){var d,g,h,f,k=c.lW,p=c.lH,l=c.plot,n,r=0,t=c.elArr.length-1;b?(k=c.nW,p=c.nH):n=c.elArr[c.elArr.length-1];m(c.elArr,function(a){if(b||r<t)0===c.direction?(d=l.x,g=l.y,h=k,f=a/h):(d=l.x,g=l.y,f=p,h=a/f),e.push({x:d,y:g,width:h,height:f}),0===c.direction?l.y+=f:l.x+=h;r+=1});c.reset();0===c.direction?c.width-=k:c.height-=p;l.y=l.parent.y+(l.parent.height-c.height);l.x=l.parent.x+(l.parent.width-
|
20
|
+
c.width);a&&(c.direction=1-c.direction);b||c.addElement(n)},algorithmLowAspectRatio:function(a,b,c){var e=[],d=this,g,h={x:b.x,y:b.y,parent:b},f=0,k=c.length-1,p=new this.algorithmGroup(b.height,b.width,b.direction,h);m(c,function(c){g=c.val/b.val*b.height*b.width;p.addElement(g);p.lP.nR>p.lP.lR&&d.algorithmCalcPoints(a,!1,p,e,h);f===k&&d.algorithmCalcPoints(a,!0,p,e,h);f+=1});return e},algorithmFill:function(a,b,c){var e=[],d,g=b.direction,f=b.x,k=b.y,n=b.width,p=b.height,l,q,r,t;m(c,function(c){d=
|
21
|
+
c.val/b.val*b.height*b.width;l=f;q=k;0===g?(t=p,r=d/t,n-=r,f+=r):(r=n,t=d/r,p-=t,k+=t);e.push({x:l,y:q,width:r,height:t});a&&(g=1-g)});return e},strip:function(a,b){return this.algorithmLowAspectRatio(!1,a,b)},squarified:function(a,b){return this.algorithmLowAspectRatio(!0,a,b)},sliceAndDice:function(a,b){return this.algorithmFill(!0,a,b)},stripes:function(a,b){return this.algorithmFill(!1,a,b)},translate:function(){var a=this.rootNode=k(this.rootNode,this.options.rootId,""),b,c;u.prototype.translate.call(this);
|
22
|
+
this.levelMap=B(this.options.levels,function(a,b){a[b.level]=b;return a},{});c=this.tree=this.getTree();b=this.nodeMap[a];""===a||b&&b.children.length||(this.drillToNode("",!1),a=this.rootNode,b=this.nodeMap[a]);this.setTreeValues(c);this.axisRatio=this.xAxis.len/this.yAxis.len;this.nodeMap[""].pointValues=a={x:0,y:0,width:100,height:100};this.nodeMap[""].values=a=v(a,{width:a.width*this.axisRatio,direction:"vertical"===this.options.layoutStartingDirection?0:1,val:c.val});this.calculateChildrenAreas(c,
|
23
|
+
a);this.colorAxis?this.translateColors():this.options.colorByPoint||this.setColorRecursive(this.tree);this.options.allowDrillToNode&&(b=b.pointValues,this.xAxis.setExtremes(b.x,b.x+b.width,!1),this.yAxis.setExtremes(b.y,b.y+b.height,!1),this.xAxis.setScale(),this.yAxis.setScale());this.setPointValues()},drawDataLabels:function(){var a=this,b=x(a.points,function(a){return a.node.visible}),c,e;m(b,function(b){e=a.levelMap[b.node.levelDynamic];c={style:{}};b.node.isLeaf||(c.enabled=!1);e&&e.dataLabels&&
|
24
|
+
(c=v(c,e.dataLabels),a._hasPointLabels=!0);b.shapeArgs&&(c.style.width=b.shapeArgs.width,b.dataLabel&&b.dataLabel.css({width:b.shapeArgs.width+"px"}));b.dlOptions=v(c,b.options.dataLabels)});u.prototype.drawDataLabels.call(this)},alignDataLabel:function(a){q.column.prototype.alignDataLabel.apply(this,arguments);a.dataLabel&&a.dataLabel.attr({zIndex:a.node.zIndex+1})},drawPoints:function(){var a=this,b=x(a.points,function(a){return a.node.visible});m(b,function(b){var c="levelGroup-"+b.node.levelDynamic;
|
25
|
+
a[c]||(a[c]=a.chart.renderer.g(c).attr({zIndex:1E3-b.node.levelDynamic}).add(a.group));b.group=a[c]});q.column.prototype.drawPoints.call(this);a.options.allowDrillToNode&&m(b,function(b){b.graphic&&(b.drillId=a.options.interactByLeaf?a.drillToByLeaf(b):a.drillToByGroup(b))})},onClickDrillToNode:function(a){var b=(a=a.point)&&a.drillId;A(b)&&(a.setState(""),this.drillToNode(b))},drillToByGroup:function(a){var b=!1;1!==a.node.level-this.nodeMap[this.rootNode].level||a.node.isLeaf||(b=a.id);return b},
|
26
|
+
drillToByLeaf:function(a){var b=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!b;)a=this.nodeMap[a.parent],a.parent===this.rootNode&&(b=a.id);return b},drillUp:function(){var a=this.nodeMap[this.rootNode];a&&A(a.parent)&&this.drillToNode(a.parent)},drillToNode:function(a,b){var c=this.nodeMap[a];this.rootNode=a;""===a?this.drillUpButton=this.drillUpButton.destroy():this.showDrillUpButton(c&&c.name||a);this.isDirty=!0;k(b,!0)&&this.chart.redraw()},showDrillUpButton:function(a){var b=
|
27
|
+
this;a=a||"\x3c Back";var c=b.options.drillUpButton,e,d;c.text&&(a=c.text);this.drillUpButton?this.drillUpButton.attr({text:a}).align():(d=(e=c.theme)&&e.states,this.drillUpButton=this.chart.renderer.button(a,null,null,function(){b.drillUp()},e,d&&d.hover,d&&d.select).attr({align:c.position.align,zIndex:7}).add().align(c.position,!1,c.relativeTo||"plotBox"))},buildKDTree:z,drawLegendSymbol:f.LegendSymbolMixin.drawRectangle,getExtremes:function(){u.prototype.getExtremes.call(this,this.colorValueData);
|
28
|
+
this.valueMin=this.dataMin;this.valueMax=this.dataMax;u.prototype.getExtremes.call(this)},getExtremesFromAll:!0,bindAxes:function(){var a={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,dataMin:0,minPadding:0,max:100,dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};u.prototype.bindAxes.call(this);f.extend(this.yAxis.options,a);f.extend(this.xAxis.options,a)}},{getClassName:function(){var a=f.Point.prototype.getClassName.call(this),b=this.series,c=b.options;this.node.level<=b.nodeMap[b.rootNode].level?
|
29
|
+
a+=" highcharts-above-level":this.node.isLeaf||k(c.interactByLeaf,!c.allowDrillToNode)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive";return a},isValid:function(){return F(this.value)},setState:function(a){f.Point.prototype.setState.call(this,a);this.graphic&&this.graphic.attr({zIndex:"hover"===a?1:0})},setVisible:q.pie.prototype.pointClass.prototype.setVisible})})(n)});
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{
|
2
|
+
"version":3,
|
3
|
+
"file":"",
|
4
|
+
"lineCount":29,
|
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,CAACC,CAAD,CAAI,CAAA,IAQLC,EAAaD,CAAAC,WARR,CASLC,EAAcF,CAAAE,YATT,CAULC,EAAMH,CAAAG,IAVD,CAWLC,EAAQJ,CAAAI,MAXH,CAYLC,EAASL,CAAAK,OAZJ,CAaLC,EAAON,CAAAM,KAbF,CAcLC,EAAOP,CAAAO,KAdF,CAeLC,EAAOR,CAAAQ,KAfF,CAgBLC,EAAWT,CAAAS,SAhBN,CAiBLC,EAAWV,CAAAU,SAjBN,CAkBLC,EAAOX,CAAAW,KAlBF,CAmBLC,EAASZ,CAAAY,OAnBJ,CAoBLC,EAAab,CAAAa,WApBR,CAsBLC,EAAaA,QAAQ,CAACC,CAAD,CAAOC,CAAP,CAAaC,CAAb,CAAsB,CACvCA,CAAA,CAAU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CADS,CAlBrB,CAqBC6G,SAAUA,QAAQ,CAACyC,CAAD,CAAQ,CACtB/P,CAAA6P,MAAA/L,UAAAwJ,SAAAjM,KAAA,CAAgC,IAAhC,CAAsC0O,CAAtC,CAGI,KAAA/C,QAAJ,EACI,IAAAA,QAAAP,KAAA,CAAkB,CACdC,OAAkB,OAAV,GAAAqD,CAAA,CAAoB,CAApB,CAAwB,CADlB,CAAlB,CALkB,CArB3B,CA+BCC,WAAY9P,CAAA+P,IAAAnM,UAAAoM,WAAApM,UAAAkM,WA/Bb,CAzxBH,CAhDS,CAAZ,CAAA,CA22BCjQ,CA32BD,CADkB,CANtB;",
|
6
|
+
"sources":["Input_0"],
|
7
|
+
"names":["factory","module","exports","Highcharts","H","seriesType","seriesTypes","map","merge","extend","noop","each","grep","isNumber","isString","pick","Series","stableSort","eachObject","list","func","context","objectEach","val","key","call","reduce","arr","previous","current","i","recursive","item","next","showInLegend","marker","dataLabels","enabled","defer","verticalAlign","formatter","point","name","id","inside","tooltip","headerFormat","pointFormat","ignoreHiddenPoint","layoutAlgorithm","layoutStartingDirection","alternateStartingDirection","levelIsConstant","drillUpButton","position","align","x","y","pointArrayMap","axisTypes","heatmap","optionalAxis","getSymbol","parallelArrays","colorKey","translateColors","prototype","trackerGroups","getListOfParents","data","ids","listOfParents","prev","curr","parent","undefined","push","children","inArray","child","getTree","allIds","d","parentList","series","nodeMap","buildNode","init","chart","options","allowDrillToNode","addEvent","onClickDrillToNode","level","points","node","visible","setTreeValues","tree","childrenTotal","rootNode","p","length","concat","ignore","isLeaf","a","b","sortIndex","value","levelDynamic","calculateChildrenAreas","area","levelMap","algorithm","alternate","childrenValues","n","direction","index","values","pointValues","axisRatio","width","setPointValues","xAxis","yAxis","x2","y1","x1","Math","round","translate","crispCorr","y2","height","shapeType","shapeArgs","min","abs","plotX","plotY","setColorRecursive","color","colorIndex","algorithmGroup","h","w","plot","startDirection","lH","nH","lW","nW","total","elArr","lP","nR","lR","aspectRatio","max","addElement","this.addElement","el","reset","this.reset","algorithmCalcPoints","directionChange","last","group","childrenArea","pX","pY","pW","pH","gW","gH","keep","end","algorithmLowAspectRatio","pTot","algorithmFill","strip","squarified","sliceAndDice","stripes","rootId","levels","drillToNode","len","seriesArea","colorAxis","colorByPoint","setExtremes","setScale","drawDataLabels","style","_hasPointLabels","dataLabel","css","dlOptions","alignDataLabel","column","apply","arguments","attr","zIndex","drawPoints","groupKey","renderer","g","add","graphic","drillId","interactByLeaf","drillToByLeaf","drillToByGroup","event","setState","nodeParent","drillUp","redraw","destroy","showDrillUpButton","isDirty","backText","buttonOptions","states","text","theme","button","hover","select","relativeTo","buildKDTree","drawLegendSymbol","LegendSymbolMixin","drawRectangle","getExtremes","colorValueData","valueMin","dataMin","valueMax","dataMax","getExtremesFromAll","bindAxes","treeAxis","endOnTick","gridLineWidth","lineWidth","minPadding","maxPadding","startOnTick","title","tickPositions","getClassName","className","Point","isValid","state","setVisible","pie","pointClass"]
|
8
|
+
}
|
@@ -1,868 +1,893 @@
|
|
1
1
|
/**
|
2
|
-
* @license
|
2
|
+
* @license Highcharts JS v5.0.11 (2017-05-04)
|
3
3
|
*
|
4
4
|
* (c) 2014 Highsoft AS
|
5
5
|
* Authors: Jon Arild Nygard / Oystein Moseng
|
6
6
|
*
|
7
7
|
* License: www.highcharts.com/license
|
8
8
|
*/
|
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(H) {
|
18
|
+
/**
|
19
|
+
* (c) 2014 Highsoft AS
|
20
|
+
* Authors: Jon Arild Nygard / Oystein Moseng
|
21
|
+
*
|
22
|
+
* License: www.highcharts.com/license
|
23
|
+
*/
|
9
24
|
|
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
|
-
|
25
|
+
var seriesType = H.seriesType,
|
26
|
+
seriesTypes = H.seriesTypes,
|
27
|
+
map = H.map,
|
28
|
+
merge = H.merge,
|
29
|
+
extend = H.extend,
|
30
|
+
noop = H.noop,
|
31
|
+
each = H.each,
|
32
|
+
grep = H.grep,
|
33
|
+
isNumber = H.isNumber,
|
34
|
+
isString = H.isString,
|
35
|
+
pick = H.pick,
|
36
|
+
Series = H.Series,
|
37
|
+
stableSort = H.stableSort,
|
38
|
+
color = H.Color,
|
39
|
+
eachObject = function(list, func, context) {
|
40
|
+
context = context || this;
|
41
|
+
H.objectEach(list, function(val, key) {
|
42
|
+
func.call(context, val, key, list);
|
43
|
+
});
|
44
|
+
},
|
45
|
+
reduce = function(arr, func, previous, context) {
|
46
|
+
context = context || this;
|
47
|
+
arr = arr || []; // @note should each be able to handle empty values automatically?
|
48
|
+
each(arr, function(current, i) {
|
49
|
+
previous = func.call(context, previous, current, i, arr);
|
50
|
+
});
|
51
|
+
return previous;
|
52
|
+
},
|
53
|
+
// @todo find correct name for this function.
|
54
|
+
// @todo Similar to reduce, this function is likely redundant
|
55
|
+
recursive = function(item, func, context) {
|
56
|
+
var next;
|
57
|
+
context = context || this;
|
58
|
+
next = func.call(context, item);
|
59
|
+
if (next !== false) {
|
60
|
+
recursive(next, func, context);
|
61
|
+
}
|
62
|
+
};
|
63
|
+
|
64
|
+
// The Treemap series type
|
65
|
+
seriesType('treemap', 'scatter', {
|
66
|
+
showInLegend: false,
|
67
|
+
marker: false,
|
68
|
+
dataLabels: {
|
69
|
+
enabled: true,
|
70
|
+
defer: false,
|
71
|
+
verticalAlign: 'middle',
|
72
|
+
formatter: function() { // #2945
|
73
|
+
return this.point.name || this.point.id;
|
74
|
+
},
|
75
|
+
inside: true
|
76
|
+
},
|
77
|
+
tooltip: {
|
78
|
+
headerFormat: '',
|
79
|
+
pointFormat: '<b>{point.name}</b>: {point.value}</b><br/>'
|
80
|
+
},
|
81
|
+
ignoreHiddenPoint: true,
|
82
|
+
layoutAlgorithm: 'sliceAndDice',
|
83
|
+
layoutStartingDirection: 'vertical',
|
84
|
+
alternateStartingDirection: false,
|
85
|
+
levelIsConstant: true,
|
86
|
+
drillUpButton: {
|
87
|
+
position: {
|
88
|
+
align: 'right',
|
89
|
+
x: -10,
|
90
|
+
y: 10
|
91
|
+
}
|
92
|
+
},
|
93
|
+
|
94
|
+
|
95
|
+
// Prototype members
|
96
|
+
}, {
|
97
|
+
pointArrayMap: ['value'],
|
98
|
+
axisTypes: seriesTypes.heatmap ? ['xAxis', 'yAxis', 'colorAxis'] : ['xAxis', 'yAxis'],
|
99
|
+
optionalAxis: 'colorAxis',
|
100
|
+
getSymbol: noop,
|
101
|
+
parallelArrays: ['x', 'y', 'value', 'colorValue'],
|
102
|
+
colorKey: 'colorValue', // Point color option key
|
103
|
+
translateColors: seriesTypes.heatmap && seriesTypes.heatmap.prototype.translateColors,
|
104
|
+
trackerGroups: ['group', 'dataLabelsGroup'],
|
105
|
+
/**
|
106
|
+
* Creates an object map from parent id to childrens index.
|
107
|
+
* @param {Array} data List of points set in options.
|
108
|
+
* @param {string} data[].parent Parent id of point.
|
109
|
+
* @param {Array} ids List of all point ids.
|
110
|
+
* @return {Object} Map from parent id to children index in data.
|
111
|
+
*/
|
112
|
+
getListOfParents: function(data, ids) {
|
113
|
+
var listOfParents = reduce(data, function(prev, curr, i) {
|
114
|
+
var parent = pick(curr.parent, '');
|
115
|
+
if (prev[parent] === undefined) {
|
116
|
+
prev[parent] = [];
|
117
|
+
}
|
118
|
+
prev[parent].push(i);
|
119
|
+
return prev;
|
120
|
+
}, {});
|
121
|
+
|
122
|
+
// If parent does not exist, hoist parent to root of tree.
|
123
|
+
eachObject(listOfParents, function(children, parent, list) {
|
124
|
+
if ((parent !== '') && (H.inArray(parent, ids) === -1)) {
|
125
|
+
each(children, function(child) {
|
126
|
+
list[''].push(child);
|
127
|
+
});
|
128
|
+
delete list[parent];
|
129
|
+
}
|
130
|
+
});
|
131
|
+
return listOfParents;
|
132
|
+
},
|
133
|
+
/**
|
134
|
+
* Creates a tree structured object from the series points
|
135
|
+
*/
|
136
|
+
getTree: function() {
|
137
|
+
var series = this,
|
138
|
+
allIds = map(this.data, function(d) {
|
139
|
+
return d.id;
|
140
|
+
}),
|
141
|
+
parentList = series.getListOfParents(this.data, allIds);
|
142
|
+
|
143
|
+
series.nodeMap = [];
|
144
|
+
return series.buildNode('', -1, 0, parentList, null);
|
145
|
+
},
|
146
|
+
init: function(chart, options) {
|
147
|
+
var series = this;
|
148
|
+
Series.prototype.init.call(series, chart, options);
|
149
|
+
if (series.options.allowDrillToNode) {
|
150
|
+
H.addEvent(series, 'click', series.onClickDrillToNode);
|
151
|
+
}
|
152
|
+
},
|
153
|
+
buildNode: function(id, i, level, list, parent) {
|
154
|
+
var series = this,
|
155
|
+
children = [],
|
156
|
+
point = series.points[i],
|
157
|
+
node,
|
158
|
+
child;
|
159
|
+
|
160
|
+
// Actions
|
161
|
+
each((list[id] || []), function(i) {
|
162
|
+
child = series.buildNode(series.points[i].id, i, (level + 1), list, id);
|
163
|
+
children.push(child);
|
164
|
+
});
|
165
|
+
node = {
|
166
|
+
id: id,
|
167
|
+
i: i,
|
168
|
+
children: children,
|
169
|
+
level: level,
|
170
|
+
parent: parent,
|
171
|
+
visible: false // @todo move this to better location
|
172
|
+
};
|
173
|
+
series.nodeMap[node.id] = node;
|
174
|
+
if (point) {
|
175
|
+
point.node = node;
|
176
|
+
}
|
177
|
+
return node;
|
178
|
+
},
|
179
|
+
setTreeValues: function(tree) {
|
180
|
+
var series = this,
|
181
|
+
options = series.options,
|
182
|
+
childrenTotal = 0,
|
183
|
+
children = [],
|
184
|
+
val,
|
185
|
+
point = series.points[tree.i];
|
186
|
+
// Parents of the root node is by default visible
|
187
|
+
recursive(series.nodeMap[series.rootNode], function(node) {
|
188
|
+
var next = false,
|
189
|
+
p = node.parent;
|
190
|
+
node.visible = true;
|
191
|
+
if (p || p === '') {
|
192
|
+
next = series.nodeMap[p];
|
193
|
+
}
|
194
|
+
return next;
|
195
|
+
});
|
196
|
+
// Children of the root node is by default visible
|
197
|
+
recursive(series.nodeMap[series.rootNode].children, function(children) {
|
198
|
+
var next = false;
|
199
|
+
each(children, function(child) {
|
200
|
+
child.visible = true;
|
201
|
+
if (child.children.length) {
|
202
|
+
next = (next || []).concat(child.children);
|
203
|
+
}
|
204
|
+
});
|
205
|
+
return next;
|
206
|
+
});
|
207
|
+
|
208
|
+
// First give the children some values
|
209
|
+
each(tree.children, function(child) {
|
210
|
+
child = series.setTreeValues(child);
|
211
|
+
children.push(child);
|
212
|
+
|
213
|
+
if (!child.ignore) {
|
214
|
+
childrenTotal += child.val;
|
215
|
+
} else {
|
216
|
+
// @todo Add predicate to avoid looping already ignored children
|
217
|
+
recursive(child.children, function(children) {
|
218
|
+
var next = false;
|
219
|
+
each(children, function(node) {
|
220
|
+
extend(node, {
|
221
|
+
ignore: true,
|
222
|
+
isLeaf: false,
|
223
|
+
visible: false
|
224
|
+
});
|
225
|
+
if (node.children.length) {
|
226
|
+
next = (next || []).concat(node.children);
|
227
|
+
}
|
228
|
+
});
|
229
|
+
return next;
|
230
|
+
});
|
231
|
+
}
|
232
|
+
});
|
233
|
+
// Sort the children
|
234
|
+
stableSort(children, function(a, b) {
|
235
|
+
return a.sortIndex - b.sortIndex;
|
236
|
+
});
|
237
|
+
// Set the values
|
238
|
+
val = pick(point && point.options.value, childrenTotal);
|
239
|
+
if (point) {
|
240
|
+
point.value = val;
|
241
|
+
}
|
242
|
+
extend(tree, {
|
243
|
+
children: children,
|
244
|
+
childrenTotal: childrenTotal,
|
245
|
+
// Ignore this node if point is not visible
|
246
|
+
ignore: !(pick(point && point.visible, true) && (val > 0)),
|
247
|
+
isLeaf: tree.visible && !childrenTotal,
|
248
|
+
levelDynamic: (options.levelIsConstant ? tree.level : (tree.level - series.nodeMap[series.rootNode].level)),
|
249
|
+
name: pick(point && point.name, ''),
|
250
|
+
sortIndex: pick(point && point.sortIndex, -val),
|
251
|
+
val: val
|
252
|
+
});
|
253
|
+
return tree;
|
254
|
+
},
|
255
|
+
/**
|
256
|
+
* Recursive function which calculates the area for all children of a node.
|
257
|
+
* @param {Object} node The node which is parent to the children.
|
258
|
+
* @param {Object} area The rectangular area of the parent.
|
259
|
+
*/
|
260
|
+
calculateChildrenAreas: function(parent, area) {
|
261
|
+
var series = this,
|
262
|
+
options = series.options,
|
263
|
+
level = this.levelMap[parent.levelDynamic + 1],
|
264
|
+
algorithm = pick((series[level && level.layoutAlgorithm] && level.layoutAlgorithm), options.layoutAlgorithm),
|
265
|
+
alternate = options.alternateStartingDirection,
|
266
|
+
childrenValues = [],
|
267
|
+
children;
|
268
|
+
|
269
|
+
// Collect all children which should be included
|
270
|
+
children = grep(parent.children, function(n) {
|
271
|
+
return !n.ignore;
|
272
|
+
});
|
273
|
+
|
274
|
+
if (level && level.layoutStartingDirection) {
|
275
|
+
area.direction = level.layoutStartingDirection === 'vertical' ? 0 : 1;
|
276
|
+
}
|
277
|
+
childrenValues = series[algorithm](area, children);
|
278
|
+
each(children, function(child, index) {
|
279
|
+
var values = childrenValues[index];
|
280
|
+
child.values = merge(values, {
|
281
|
+
val: child.childrenTotal,
|
282
|
+
direction: (alternate ? 1 - area.direction : area.direction)
|
283
|
+
});
|
284
|
+
child.pointValues = merge(values, {
|
285
|
+
x: (values.x / series.axisRatio),
|
286
|
+
width: (values.width / series.axisRatio)
|
287
|
+
});
|
288
|
+
// If node has children, then call method recursively
|
289
|
+
if (child.children.length) {
|
290
|
+
series.calculateChildrenAreas(child, child.values);
|
291
|
+
}
|
292
|
+
});
|
293
|
+
},
|
294
|
+
setPointValues: function() {
|
295
|
+
var series = this,
|
296
|
+
xAxis = series.xAxis,
|
297
|
+
yAxis = series.yAxis;
|
298
|
+
each(series.points, function(point) {
|
299
|
+
var node = point.node,
|
300
|
+
values = node.pointValues,
|
301
|
+
x1,
|
302
|
+
x2,
|
303
|
+
y1,
|
304
|
+
y2,
|
305
|
+
crispCorr = 0;
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
// Points which is ignored, have no values.
|
310
|
+
if (values && node.visible) {
|
311
|
+
x1 = Math.round(xAxis.translate(values.x, 0, 0, 0, 1)) - crispCorr;
|
312
|
+
x2 = Math.round(xAxis.translate(values.x + values.width, 0, 0, 0, 1)) - crispCorr;
|
313
|
+
y1 = Math.round(yAxis.translate(values.y, 0, 0, 0, 1)) - crispCorr;
|
314
|
+
y2 = Math.round(yAxis.translate(values.y + values.height, 0, 0, 0, 1)) - crispCorr;
|
315
|
+
// Set point values
|
316
|
+
point.shapeType = 'rect';
|
317
|
+
point.shapeArgs = {
|
318
|
+
x: Math.min(x1, x2),
|
319
|
+
y: Math.min(y1, y2),
|
320
|
+
width: Math.abs(x2 - x1),
|
321
|
+
height: Math.abs(y2 - y1)
|
322
|
+
};
|
323
|
+
point.plotX = point.shapeArgs.x + (point.shapeArgs.width / 2);
|
324
|
+
point.plotY = point.shapeArgs.y + (point.shapeArgs.height / 2);
|
325
|
+
} else {
|
326
|
+
// Reset visibility
|
327
|
+
delete point.plotX;
|
328
|
+
delete point.plotY;
|
329
|
+
}
|
330
|
+
});
|
331
|
+
},
|
332
|
+
setColorRecursive: function(node, color, colorIndex) {
|
333
|
+
var series = this,
|
334
|
+
point,
|
335
|
+
level;
|
336
|
+
if (node) {
|
337
|
+
point = series.points[node.i];
|
338
|
+
level = series.levelMap[node.levelDynamic];
|
339
|
+
// Select either point color, level color or inherited color.
|
340
|
+
color = pick(
|
341
|
+
point && point.options.color,
|
342
|
+
level && level.color,
|
343
|
+
color,
|
344
|
+
series.color
|
345
|
+
);
|
346
|
+
colorIndex = pick(
|
347
|
+
point && point.options.colorIndex,
|
348
|
+
level && level.colorIndex,
|
349
|
+
colorIndex,
|
350
|
+
series.colorIndex
|
351
|
+
);
|
352
|
+
|
353
|
+
if (point) {
|
354
|
+
point.color = color;
|
355
|
+
point.colorIndex = colorIndex;
|
356
|
+
}
|
357
|
+
|
358
|
+
// Do it all again with the children
|
359
|
+
if (node.children.length) {
|
360
|
+
each(node.children, function(child) {
|
361
|
+
series.setColorRecursive(child, color, colorIndex);
|
362
|
+
});
|
363
|
+
}
|
364
|
+
}
|
365
|
+
},
|
366
|
+
algorithmGroup: function(h, w, d, p) {
|
367
|
+
this.height = h;
|
368
|
+
this.width = w;
|
369
|
+
this.plot = p;
|
370
|
+
this.direction = d;
|
371
|
+
this.startDirection = d;
|
372
|
+
this.total = 0;
|
373
|
+
this.nW = 0;
|
374
|
+
this.lW = 0;
|
375
|
+
this.nH = 0;
|
376
|
+
this.lH = 0;
|
377
|
+
this.elArr = [];
|
378
|
+
this.lP = {
|
379
|
+
total: 0,
|
380
|
+
lH: 0,
|
381
|
+
nH: 0,
|
382
|
+
lW: 0,
|
383
|
+
nW: 0,
|
384
|
+
nR: 0,
|
385
|
+
lR: 0,
|
386
|
+
aspectRatio: function(w, h) {
|
387
|
+
return Math.max((w / h), (h / w));
|
388
|
+
}
|
389
|
+
};
|
390
|
+
this.addElement = function(el) {
|
391
|
+
this.lP.total = this.elArr[this.elArr.length - 1];
|
392
|
+
this.total = this.total + el;
|
393
|
+
if (this.direction === 0) {
|
394
|
+
// Calculate last point old aspect ratio
|
395
|
+
this.lW = this.nW;
|
396
|
+
this.lP.lH = this.lP.total / this.lW;
|
397
|
+
this.lP.lR = this.lP.aspectRatio(this.lW, this.lP.lH);
|
398
|
+
// Calculate last point new aspect ratio
|
399
|
+
this.nW = this.total / this.height;
|
400
|
+
this.lP.nH = this.lP.total / this.nW;
|
401
|
+
this.lP.nR = this.lP.aspectRatio(this.nW, this.lP.nH);
|
402
|
+
} else {
|
403
|
+
// Calculate last point old aspect ratio
|
404
|
+
this.lH = this.nH;
|
405
|
+
this.lP.lW = this.lP.total / this.lH;
|
406
|
+
this.lP.lR = this.lP.aspectRatio(this.lP.lW, this.lH);
|
407
|
+
// Calculate last point new aspect ratio
|
408
|
+
this.nH = this.total / this.width;
|
409
|
+
this.lP.nW = this.lP.total / this.nH;
|
410
|
+
this.lP.nR = this.lP.aspectRatio(this.lP.nW, this.nH);
|
411
|
+
}
|
412
|
+
this.elArr.push(el);
|
413
|
+
};
|
414
|
+
this.reset = function() {
|
415
|
+
this.nW = 0;
|
416
|
+
this.lW = 0;
|
417
|
+
this.elArr = [];
|
418
|
+
this.total = 0;
|
419
|
+
};
|
420
|
+
},
|
421
|
+
algorithmCalcPoints: function(directionChange, last, group, childrenArea) {
|
422
|
+
var pX,
|
423
|
+
pY,
|
424
|
+
pW,
|
425
|
+
pH,
|
426
|
+
gW = group.lW,
|
427
|
+
gH = group.lH,
|
428
|
+
plot = group.plot,
|
429
|
+
keep,
|
430
|
+
i = 0,
|
431
|
+
end = group.elArr.length - 1;
|
432
|
+
if (last) {
|
433
|
+
gW = group.nW;
|
434
|
+
gH = group.nH;
|
435
|
+
} else {
|
436
|
+
keep = group.elArr[group.elArr.length - 1];
|
437
|
+
}
|
438
|
+
each(group.elArr, function(p) {
|
439
|
+
if (last || (i < end)) {
|
440
|
+
if (group.direction === 0) {
|
441
|
+
pX = plot.x;
|
442
|
+
pY = plot.y;
|
443
|
+
pW = gW;
|
444
|
+
pH = p / pW;
|
445
|
+
} else {
|
446
|
+
pX = plot.x;
|
447
|
+
pY = plot.y;
|
448
|
+
pH = gH;
|
449
|
+
pW = p / pH;
|
450
|
+
}
|
451
|
+
childrenArea.push({
|
452
|
+
x: pX,
|
453
|
+
y: pY,
|
454
|
+
width: pW,
|
455
|
+
height: pH
|
456
|
+
});
|
457
|
+
if (group.direction === 0) {
|
458
|
+
plot.y = plot.y + pH;
|
459
|
+
} else {
|
460
|
+
plot.x = plot.x + pW;
|
461
|
+
}
|
462
|
+
}
|
463
|
+
i = i + 1;
|
464
|
+
});
|
465
|
+
// Reset variables
|
466
|
+
group.reset();
|
467
|
+
if (group.direction === 0) {
|
468
|
+
group.width = group.width - gW;
|
469
|
+
} else {
|
470
|
+
group.height = group.height - gH;
|
471
|
+
}
|
472
|
+
plot.y = plot.parent.y + (plot.parent.height - group.height);
|
473
|
+
plot.x = plot.parent.x + (plot.parent.width - group.width);
|
474
|
+
if (directionChange) {
|
475
|
+
group.direction = 1 - group.direction;
|
476
|
+
}
|
477
|
+
// If not last, then add uncalculated element
|
478
|
+
if (!last) {
|
479
|
+
group.addElement(keep);
|
480
|
+
}
|
481
|
+
},
|
482
|
+
algorithmLowAspectRatio: function(directionChange, parent, children) {
|
483
|
+
var childrenArea = [],
|
484
|
+
series = this,
|
485
|
+
pTot,
|
486
|
+
plot = {
|
487
|
+
x: parent.x,
|
488
|
+
y: parent.y,
|
489
|
+
parent: parent
|
490
|
+
},
|
491
|
+
direction = parent.direction,
|
492
|
+
i = 0,
|
493
|
+
end = children.length - 1,
|
494
|
+
group = new this.algorithmGroup(parent.height, parent.width, direction, plot); // eslint-disable-line new-cap
|
495
|
+
// Loop through and calculate all areas
|
496
|
+
each(children, function(child) {
|
497
|
+
pTot = (parent.width * parent.height) * (child.val / parent.val);
|
498
|
+
group.addElement(pTot);
|
499
|
+
if (group.lP.nR > group.lP.lR) {
|
500
|
+
series.algorithmCalcPoints(directionChange, false, group, childrenArea, plot);
|
501
|
+
}
|
502
|
+
// If last child, then calculate all remaining areas
|
503
|
+
if (i === end) {
|
504
|
+
series.algorithmCalcPoints(directionChange, true, group, childrenArea, plot);
|
505
|
+
}
|
506
|
+
i = i + 1;
|
507
|
+
});
|
508
|
+
return childrenArea;
|
509
|
+
},
|
510
|
+
algorithmFill: function(directionChange, parent, children) {
|
511
|
+
var childrenArea = [],
|
512
|
+
pTot,
|
513
|
+
direction = parent.direction,
|
514
|
+
x = parent.x,
|
515
|
+
y = parent.y,
|
516
|
+
width = parent.width,
|
517
|
+
height = parent.height,
|
518
|
+
pX,
|
519
|
+
pY,
|
520
|
+
pW,
|
521
|
+
pH;
|
522
|
+
each(children, function(child) {
|
523
|
+
pTot = (parent.width * parent.height) * (child.val / parent.val);
|
524
|
+
pX = x;
|
525
|
+
pY = y;
|
526
|
+
if (direction === 0) {
|
527
|
+
pH = height;
|
528
|
+
pW = pTot / pH;
|
529
|
+
width = width - pW;
|
530
|
+
x = x + pW;
|
531
|
+
} else {
|
532
|
+
pW = width;
|
533
|
+
pH = pTot / pW;
|
534
|
+
height = height - pH;
|
535
|
+
y = y + pH;
|
536
|
+
}
|
537
|
+
childrenArea.push({
|
538
|
+
x: pX,
|
539
|
+
y: pY,
|
540
|
+
width: pW,
|
541
|
+
height: pH
|
542
|
+
});
|
543
|
+
if (directionChange) {
|
544
|
+
direction = 1 - direction;
|
545
|
+
}
|
546
|
+
});
|
547
|
+
return childrenArea;
|
548
|
+
},
|
549
|
+
strip: function(parent, children) {
|
550
|
+
return this.algorithmLowAspectRatio(false, parent, children);
|
551
|
+
},
|
552
|
+
squarified: function(parent, children) {
|
553
|
+
return this.algorithmLowAspectRatio(true, parent, children);
|
554
|
+
},
|
555
|
+
sliceAndDice: function(parent, children) {
|
556
|
+
return this.algorithmFill(true, parent, children);
|
557
|
+
},
|
558
|
+
stripes: function(parent, children) {
|
559
|
+
return this.algorithmFill(false, parent, children);
|
560
|
+
},
|
561
|
+
translate: function() {
|
562
|
+
var series = this,
|
563
|
+
rootId = series.rootNode = pick(series.rootNode, series.options.rootId, ''),
|
564
|
+
rootNode,
|
565
|
+
pointValues,
|
566
|
+
seriesArea,
|
567
|
+
tree,
|
568
|
+
val;
|
569
|
+
|
570
|
+
// Call prototype function
|
571
|
+
Series.prototype.translate.call(series);
|
572
|
+
// Create a object map from level to options
|
573
|
+
series.levelMap = reduce(series.options.levels, function(arr, item) {
|
574
|
+
arr[item.level] = item;
|
575
|
+
return arr;
|
576
|
+
}, {});
|
577
|
+
tree = series.tree = series.getTree(); // @todo Only if series.isDirtyData is true
|
578
|
+
rootNode = series.nodeMap[rootId];
|
579
|
+
if (
|
580
|
+
rootId !== '' &&
|
581
|
+
(!rootNode || !rootNode.children.length)
|
582
|
+
) {
|
583
|
+
series.drillToNode('', false);
|
584
|
+
rootId = series.rootNode;
|
585
|
+
rootNode = series.nodeMap[rootId];
|
586
|
+
}
|
587
|
+
series.setTreeValues(tree);
|
588
|
+
|
589
|
+
// Calculate plotting values.
|
590
|
+
series.axisRatio = (series.xAxis.len / series.yAxis.len);
|
591
|
+
series.nodeMap[''].pointValues = pointValues = {
|
592
|
+
x: 0,
|
593
|
+
y: 0,
|
594
|
+
width: 100,
|
595
|
+
height: 100
|
596
|
+
};
|
597
|
+
series.nodeMap[''].values = seriesArea = merge(pointValues, {
|
598
|
+
width: (pointValues.width * series.axisRatio),
|
599
|
+
direction: (series.options.layoutStartingDirection === 'vertical' ? 0 : 1),
|
600
|
+
val: tree.val
|
601
|
+
});
|
602
|
+
series.calculateChildrenAreas(tree, seriesArea);
|
603
|
+
|
604
|
+
// Logic for point colors
|
605
|
+
if (series.colorAxis) {
|
606
|
+
series.translateColors();
|
607
|
+
} else if (!series.options.colorByPoint) {
|
608
|
+
series.setColorRecursive(series.tree);
|
609
|
+
}
|
610
|
+
|
611
|
+
// Update axis extremes according to the root node.
|
612
|
+
if (series.options.allowDrillToNode) {
|
613
|
+
val = rootNode.pointValues;
|
614
|
+
series.xAxis.setExtremes(val.x, val.x + val.width, false);
|
615
|
+
series.yAxis.setExtremes(val.y, val.y + val.height, false);
|
616
|
+
series.xAxis.setScale();
|
617
|
+
series.yAxis.setScale();
|
618
|
+
}
|
619
|
+
|
620
|
+
// Assign values to points.
|
621
|
+
series.setPointValues();
|
622
|
+
},
|
623
|
+
/**
|
624
|
+
* Extend drawDataLabels with logic to handle custom options related to the treemap series:
|
625
|
+
* - Points which is not a leaf node, has dataLabels disabled by default.
|
626
|
+
* - Options set on series.levels is merged in.
|
627
|
+
* - Width of the dataLabel is set to match the width of the point shape.
|
628
|
+
*/
|
629
|
+
drawDataLabels: function() {
|
630
|
+
var series = this,
|
631
|
+
points = grep(series.points, function(n) {
|
632
|
+
return n.node.visible;
|
633
|
+
}),
|
634
|
+
options,
|
635
|
+
level;
|
636
|
+
each(points, function(point) {
|
637
|
+
level = series.levelMap[point.node.levelDynamic];
|
638
|
+
// Set options to new object to avoid problems with scope
|
639
|
+
options = {
|
640
|
+
style: {}
|
641
|
+
};
|
642
|
+
|
643
|
+
// If not a leaf, then label should be disabled as default
|
644
|
+
if (!point.node.isLeaf) {
|
645
|
+
options.enabled = false;
|
646
|
+
}
|
647
|
+
|
648
|
+
// If options for level exists, include them as well
|
649
|
+
if (level && level.dataLabels) {
|
650
|
+
options = merge(options, level.dataLabels);
|
651
|
+
series._hasPointLabels = true;
|
652
|
+
}
|
653
|
+
|
654
|
+
// Set dataLabel width to the width of the point shape.
|
655
|
+
if (point.shapeArgs) {
|
656
|
+
options.style.width = point.shapeArgs.width;
|
657
|
+
if (point.dataLabel) {
|
658
|
+
point.dataLabel.css({
|
659
|
+
width: point.shapeArgs.width + 'px'
|
660
|
+
});
|
661
|
+
}
|
662
|
+
}
|
663
|
+
|
664
|
+
// Merge custom options with point options
|
665
|
+
point.dlOptions = merge(options, point.options.dataLabels);
|
666
|
+
});
|
667
|
+
Series.prototype.drawDataLabels.call(this);
|
668
|
+
},
|
669
|
+
|
670
|
+
/**
|
671
|
+
* Over the alignment method by setting z index
|
672
|
+
*/
|
673
|
+
alignDataLabel: function(point) {
|
674
|
+
seriesTypes.column.prototype.alignDataLabel.apply(this, arguments);
|
675
|
+
if (point.dataLabel) {
|
676
|
+
point.dataLabel.attr({
|
677
|
+
zIndex: point.node.zIndex + 1
|
678
|
+
});
|
679
|
+
}
|
680
|
+
},
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
/**
|
685
|
+
* Extending ColumnSeries drawPoints
|
686
|
+
*/
|
687
|
+
drawPoints: function() {
|
688
|
+
var series = this,
|
689
|
+
points = grep(series.points, function(n) {
|
690
|
+
return n.node.visible;
|
691
|
+
});
|
692
|
+
|
693
|
+
each(points, function(point) {
|
694
|
+
var groupKey = 'levelGroup-' + point.node.levelDynamic;
|
695
|
+
if (!series[groupKey]) {
|
696
|
+
series[groupKey] = series.chart.renderer.g(groupKey)
|
697
|
+
.attr({
|
698
|
+
zIndex: 1000 - point.node.levelDynamic // @todo Set the zIndex based upon the number of levels, instead of using 1000
|
699
|
+
})
|
700
|
+
.add(series.group);
|
701
|
+
}
|
702
|
+
point.group = series[groupKey];
|
703
|
+
|
704
|
+
});
|
705
|
+
// Call standard drawPoints
|
706
|
+
seriesTypes.column.prototype.drawPoints.call(this);
|
707
|
+
|
708
|
+
// If drillToNode is allowed, set a point cursor on clickables & add drillId to point
|
709
|
+
if (series.options.allowDrillToNode) {
|
710
|
+
each(points, function(point) {
|
711
|
+
if (point.graphic) {
|
712
|
+
point.drillId = series.options.interactByLeaf ? series.drillToByLeaf(point) : series.drillToByGroup(point);
|
713
|
+
}
|
714
|
+
});
|
715
|
+
}
|
716
|
+
},
|
717
|
+
/**
|
718
|
+
* Add drilling on the suitable points
|
719
|
+
*/
|
720
|
+
onClickDrillToNode: function(event) {
|
721
|
+
var series = this,
|
722
|
+
point = event.point,
|
723
|
+
drillId = point && point.drillId;
|
724
|
+
// If a drill id is returned, add click event and cursor.
|
725
|
+
if (isString(drillId)) {
|
726
|
+
point.setState(''); // Remove hover
|
727
|
+
series.drillToNode(drillId);
|
728
|
+
}
|
729
|
+
},
|
730
|
+
/**
|
731
|
+
* Finds the drill id for a parent node.
|
732
|
+
* Returns false if point should not have a click event
|
733
|
+
* @param {Object} point
|
734
|
+
* @return {string || boolean} Drill to id or false when point should not have a click event
|
735
|
+
*/
|
736
|
+
drillToByGroup: function(point) {
|
737
|
+
var series = this,
|
738
|
+
drillId = false;
|
739
|
+
if ((point.node.level - series.nodeMap[series.rootNode].level) === 1 && !point.node.isLeaf) {
|
740
|
+
drillId = point.id;
|
741
|
+
}
|
742
|
+
return drillId;
|
743
|
+
},
|
744
|
+
/**
|
745
|
+
* Finds the drill id for a leaf node.
|
746
|
+
* Returns false if point should not have a click event
|
747
|
+
* @param {Object} point
|
748
|
+
* @return {string || boolean} Drill to id or false when point should not have a click event
|
749
|
+
*/
|
750
|
+
drillToByLeaf: function(point) {
|
751
|
+
var series = this,
|
752
|
+
drillId = false,
|
753
|
+
nodeParent;
|
754
|
+
if ((point.node.parent !== series.rootNode) && (point.node.isLeaf)) {
|
755
|
+
nodeParent = point.node;
|
756
|
+
while (!drillId) {
|
757
|
+
nodeParent = series.nodeMap[nodeParent.parent];
|
758
|
+
if (nodeParent.parent === series.rootNode) {
|
759
|
+
drillId = nodeParent.id;
|
760
|
+
}
|
761
|
+
}
|
762
|
+
}
|
763
|
+
return drillId;
|
764
|
+
},
|
765
|
+
drillUp: function() {
|
766
|
+
var series = this,
|
767
|
+
node = series.nodeMap[series.rootNode];
|
768
|
+
if (node && isString(node.parent)) {
|
769
|
+
series.drillToNode(node.parent);
|
770
|
+
}
|
771
|
+
},
|
772
|
+
drillToNode: function(id, redraw) {
|
773
|
+
var series = this,
|
774
|
+
nodeMap = series.nodeMap,
|
775
|
+
node = nodeMap[id];
|
776
|
+
series.rootNode = id;
|
777
|
+
if (id === '') {
|
778
|
+
series.drillUpButton = series.drillUpButton.destroy();
|
779
|
+
} else {
|
780
|
+
series.showDrillUpButton((node && node.name || id));
|
781
|
+
}
|
782
|
+
this.isDirty = true; // Force redraw
|
783
|
+
if (pick(redraw, true)) {
|
784
|
+
this.chart.redraw();
|
785
|
+
}
|
786
|
+
},
|
787
|
+
showDrillUpButton: function(name) {
|
788
|
+
var series = this,
|
789
|
+
backText = (name || '< Back'),
|
790
|
+
buttonOptions = series.options.drillUpButton,
|
791
|
+
attr,
|
792
|
+
states;
|
793
|
+
|
794
|
+
if (buttonOptions.text) {
|
795
|
+
backText = buttonOptions.text;
|
796
|
+
}
|
797
|
+
if (!this.drillUpButton) {
|
798
|
+
attr = buttonOptions.theme;
|
799
|
+
states = attr && attr.states;
|
800
|
+
|
801
|
+
this.drillUpButton = this.chart.renderer.button(
|
802
|
+
backText,
|
803
|
+
null,
|
804
|
+
null,
|
805
|
+
function() {
|
806
|
+
series.drillUp();
|
807
|
+
},
|
808
|
+
attr,
|
809
|
+
states && states.hover,
|
810
|
+
states && states.select
|
811
|
+
)
|
812
|
+
.attr({
|
813
|
+
align: buttonOptions.position.align,
|
814
|
+
zIndex: 7
|
815
|
+
})
|
816
|
+
.add()
|
817
|
+
.align(buttonOptions.position, false, buttonOptions.relativeTo || 'plotBox');
|
818
|
+
} else {
|
819
|
+
this.drillUpButton.attr({
|
820
|
+
text: backText
|
821
|
+
})
|
822
|
+
.align();
|
823
|
+
}
|
824
|
+
},
|
825
|
+
buildKDTree: noop,
|
826
|
+
drawLegendSymbol: H.LegendSymbolMixin.drawRectangle,
|
827
|
+
getExtremes: function() {
|
828
|
+
// Get the extremes from the value data
|
829
|
+
Series.prototype.getExtremes.call(this, this.colorValueData);
|
830
|
+
this.valueMin = this.dataMin;
|
831
|
+
this.valueMax = this.dataMax;
|
832
|
+
|
833
|
+
// Get the extremes from the y data
|
834
|
+
Series.prototype.getExtremes.call(this);
|
835
|
+
},
|
836
|
+
getExtremesFromAll: true,
|
837
|
+
bindAxes: function() {
|
838
|
+
var treeAxis = {
|
839
|
+
endOnTick: false,
|
840
|
+
gridLineWidth: 0,
|
841
|
+
lineWidth: 0,
|
842
|
+
min: 0,
|
843
|
+
dataMin: 0,
|
844
|
+
minPadding: 0,
|
845
|
+
max: 100,
|
846
|
+
dataMax: 100,
|
847
|
+
maxPadding: 0,
|
848
|
+
startOnTick: false,
|
849
|
+
title: null,
|
850
|
+
tickPositions: []
|
851
|
+
};
|
852
|
+
Series.prototype.bindAxes.call(this);
|
853
|
+
H.extend(this.yAxis.options, treeAxis);
|
854
|
+
H.extend(this.xAxis.options, treeAxis);
|
855
|
+
}
|
856
|
+
|
857
|
+
// Point class
|
858
|
+
}, {
|
859
|
+
getClassName: function() {
|
860
|
+
var className = H.Point.prototype.getClassName.call(this),
|
861
|
+
series = this.series,
|
862
|
+
options = series.options;
|
863
|
+
|
864
|
+
// Above the current level
|
865
|
+
if (this.node.level <= series.nodeMap[series.rootNode].level) {
|
866
|
+
className += ' highcharts-above-level';
|
867
|
+
|
868
|
+
} else if (!this.node.isLeaf && !pick(options.interactByLeaf, !options.allowDrillToNode)) {
|
869
|
+
className += ' highcharts-internal-node-interactive';
|
870
|
+
|
871
|
+
} else if (!this.node.isLeaf) {
|
872
|
+
className += ' highcharts-internal-node';
|
873
|
+
}
|
874
|
+
return className;
|
875
|
+
},
|
876
|
+
isValid: function() {
|
877
|
+
return isNumber(this.value);
|
878
|
+
},
|
879
|
+
setState: function(state) {
|
880
|
+
H.Point.prototype.setState.call(this, state);
|
881
|
+
|
882
|
+
// Graphic does not exist when point is not visible.
|
883
|
+
if (this.graphic) {
|
884
|
+
this.graphic.attr({
|
885
|
+
zIndex: state === 'hover' ? 1 : 0
|
886
|
+
});
|
887
|
+
}
|
888
|
+
},
|
889
|
+
setVisible: seriesTypes.pie.prototype.pointClass.prototype.setVisible
|
890
|
+
});
|
891
|
+
|
892
|
+
}(Highcharts));
|
868
893
|
}));
|