|
|
@@ -1,5 +1,5 @@ |
|
|
/** |
|
|
* @license Highcharts JS v6.0.5 (2018-01-31) |
|
|
* @license Highcharts JS v6.0.6 (2018-02-05) |
|
|
* |
|
|
* (c) 2016 Highsoft AS |
|
|
* Authors: Jon Arild Nygard |
|
|
@@ -586,6 +586,14 @@ |
|
|
*/ |
|
|
position: { |
|
|
|
|
|
/** |
|
|
* Vertical alignment of the button. |
|
|
* |
|
|
* @default top |
|
|
* @validvalue ["top", "middle", "bottom"] |
|
|
* @apioption plotOptions.treemap.drillUpButton.position.verticalAlign |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Horizontal alignment of the button. |
|
|
* @validvalue ["left", "center", "right"] |
|
|
@@ -603,14 +611,6 @@ |
|
|
* Vertical offset of the button. |
|
|
*/ |
|
|
y: 10 |
|
|
|
|
|
/** |
|
|
* Vertical alignment of the button. |
|
|
* |
|
|
* @default top |
|
|
* @validvalue ["top", "middle", "bottom"] |
|
|
* @apioption plotOptions.treemap.drillUpButton.position.verticalAlign |
|
|
*/ |
|
|
} |
|
|
}, |
|
|
|
|
|
@@ -2024,83 +2024,7 @@ |
|
|
* @optionparent plotOptions.sunburst |
|
|
*/ |
|
|
var sunburstOptions = { |
|
|
/** |
|
|
* The center of the sunburst chart relative to the plot area. Can be |
|
|
* percentages or pixel values. |
|
|
* |
|
|
* @type {Array<String|Number>} |
|
|
* @sample {highcharts} highcharts/plotoptions/pie-center/ Centered at 100, 100 |
|
|
* @product highcharts |
|
|
*/ |
|
|
center: ['50%', '50%'], |
|
|
colorByPoint: false, |
|
|
/** |
|
|
* @extends plotOptions.series.dataLabels |
|
|
* @excluding align,allowOverlap,staggerLines,step |
|
|
*/ |
|
|
dataLabels: { |
|
|
defer: true, |
|
|
style: { |
|
|
textOverflow: 'ellipsis' |
|
|
}, |
|
|
/** |
|
|
* Decides how the data label will be rotated according to the perimeter |
|
|
* of the sunburst. It can either be parallel or perpendicular to the |
|
|
* perimeter. |
|
|
* `series.rotation` takes precedence over `rotationMode`. |
|
|
* @since 6.0.0 |
|
|
* @validvalue ["perpendicular", "parallel"] |
|
|
*/ |
|
|
rotationMode: 'perpendicular' |
|
|
}, |
|
|
/** |
|
|
* Which point to use as a root in the visualization. |
|
|
* |
|
|
* @type {String|undefined} |
|
|
* @default undefined |
|
|
*/ |
|
|
rootId: undefined, |
|
|
|
|
|
/** |
|
|
* Used together with the levels and `allowDrillToNode` options. When |
|
|
* set to false the first level visible when drilling is considered |
|
|
* to be level one. Otherwise the level will be the same as the tree |
|
|
* structure. |
|
|
*/ |
|
|
levelIsConstant: true, |
|
|
/** |
|
|
* Determines the width of the ring per level. |
|
|
* @since 6.0.5 |
|
|
* @sample {highcharts} highcharts/plotoptions/sunburst-levelsize/ Sunburst with various sizes per level |
|
|
*/ |
|
|
levelSize: { |
|
|
/** |
|
|
* The value used for calculating the width of the ring. Its' affect is |
|
|
* determined by `levelSize.unit`. |
|
|
* @sample {highcharts} highcharts/plotoptions/sunburst-levelsize/ Sunburst with various sizes per level |
|
|
*/ |
|
|
value: 1, |
|
|
/** |
|
|
* How to interpret `levelSize.value`. |
|
|
* `percentage` gives a width relative to result of outer radius minus |
|
|
* inner radius. |
|
|
* `pixels` gives the ring a fixed width in pixels. |
|
|
* `weight` takes the remaining width after percentage and pixels, and |
|
|
* distributes it accross all "weighted" levels. The value relative to the |
|
|
* sum of all weights determines the width. |
|
|
* @validvalue ["percentage", "pixels", "weight"] |
|
|
* @sample {highcharts} highcharts/plotoptions/sunburst-levelsize/ Sunburst with various sizes per level |
|
|
*/ |
|
|
unit: 'weight' |
|
|
}, |
|
|
/** |
|
|
* If a point is sliced, moved out from the center, how many pixels |
|
|
* should it be moved?. |
|
|
* |
|
|
* @since 6.0.4 |
|
|
* @sample highcharts/plotoptions/sunburst-sliced Sliced sunburst |
|
|
*/ |
|
|
slicedOffset: 10 |
|
|
/** |
|
|
* Set options on specific levels. Takes precedence over series options, |
|
|
* but not point options. |
|
|
@@ -2109,73 +2033,85 @@ |
|
|
* @sample highcharts/demo/sunburst Sunburst chart |
|
|
* @apioption plotOptions.sunburst.levels |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Can set a `borderColor` on all points which lies on the same level. |
|
|
* |
|
|
* @type {Color} |
|
|
* @apioption plotOptions.sunburst.levels.borderColor |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Can set a `borderWidth` on all points which lies on the same level. |
|
|
* |
|
|
* @type {Number} |
|
|
* @apioption plotOptions.sunburst.levels.borderWidth |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Can set a `borderDashStyle` on all points which lies on the same level. |
|
|
* |
|
|
* @type {String} |
|
|
* @apioption plotOptions.sunburst.levels.borderDashStyle |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Can set a `color` on all points which lies on the same level. |
|
|
* |
|
|
* @type {Color} |
|
|
* @apioption plotOptions.sunburst.levels.color |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Can set a `colorVariation` on all points which lies on the same level. |
|
|
* |
|
|
* @type {Object} |
|
|
* @apioption plotOptions.sunburst.levels.colorVariation |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* The key of a color variation. Currently supports `brightness` only. |
|
|
* |
|
|
* @type {String} |
|
|
* @apioption plotOptions.sunburst.levels.colorVariation.key |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* The ending value of a color variation. The last sibling will receive this |
|
|
* value. |
|
|
* |
|
|
* @type {Number} |
|
|
* @apioption plotOptions.sunburst.levels.colorVariation.to |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Can set a `dataLabels` on all points which lies on the same level. |
|
|
* |
|
|
* @type {Object} |
|
|
* @apioption plotOptions.sunburst.levels.dataLabels |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Can set a `levelSize` on all points which lies on the same level. |
|
|
* |
|
|
* @type {Object} |
|
|
* @apioption plotOptions.sunburst.levels.levelSize |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Can set a `rotation` on all points which lies on the same level. |
|
|
* |
|
|
* @type {Number} |
|
|
* @apioption plotOptions.sunburst.levels.rotation |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Can set a `rotationMode` on all points which lies on the same level. |
|
|
* |
|
|
* @type {String} |
|
|
* @apioption plotOptions.sunburst.levels.rotationMode |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* When enabled the user can click on a point which is a parent and |
|
|
* zoom in on its children. |
|
|
@@ -2186,6 +2122,84 @@ |
|
|
* @default false |
|
|
* @apioption plotOptions.sunburst.allowDrillToNode |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* The center of the sunburst chart relative to the plot area. Can be |
|
|
* percentages or pixel values. |
|
|
* |
|
|
* @type {Array<String|Number>} |
|
|
* @sample {highcharts} highcharts/plotoptions/pie-center/ Centered at 100, 100 |
|
|
* @product highcharts |
|
|
*/ |
|
|
center: ['50%', '50%'], |
|
|
colorByPoint: false, |
|
|
/** |
|
|
* @extends plotOptions.series.dataLabels |
|
|
* @excluding align,allowOverlap,staggerLines,step |
|
|
*/ |
|
|
dataLabels: { |
|
|
defer: true, |
|
|
style: { |
|
|
textOverflow: 'ellipsis' |
|
|
}, |
|
|
/** |
|
|
* Decides how the data label will be rotated according to the perimeter |
|
|
* of the sunburst. It can either be parallel or perpendicular to the |
|
|
* perimeter. |
|
|
* `series.rotation` takes precedence over `rotationMode`. |
|
|
* @since 6.0.0 |
|
|
* @validvalue ["perpendicular", "parallel"] |
|
|
*/ |
|
|
rotationMode: 'perpendicular' |
|
|
}, |
|
|
/** |
|
|
* Which point to use as a root in the visualization. |
|
|
* |
|
|
* @type {String|undefined} |
|
|
* @default undefined |
|
|
*/ |
|
|
rootId: undefined, |
|
|
|
|
|
/** |
|
|
* Used together with the levels and `allowDrillToNode` options. When |
|
|
* set to false the first level visible when drilling is considered |
|
|
* to be level one. Otherwise the level will be the same as the tree |
|
|
* structure. |
|
|
*/ |
|
|
levelIsConstant: true, |
|
|
/** |
|
|
* Determines the width of the ring per level. |
|
|
* @since 6.0.5 |
|
|
* @sample {highcharts} highcharts/plotoptions/sunburst-levelsize/ Sunburst with various sizes per level |
|
|
*/ |
|
|
levelSize: { |
|
|
/** |
|
|
* The value used for calculating the width of the ring. Its' affect is |
|
|
* determined by `levelSize.unit`. |
|
|
* @sample {highcharts} highcharts/plotoptions/sunburst-levelsize/ Sunburst with various sizes per level |
|
|
*/ |
|
|
value: 1, |
|
|
/** |
|
|
* How to interpret `levelSize.value`. |
|
|
* `percentage` gives a width relative to result of outer radius minus |
|
|
* inner radius. |
|
|
* `pixels` gives the ring a fixed width in pixels. |
|
|
* `weight` takes the remaining width after percentage and pixels, and |
|
|
* distributes it accross all "weighted" levels. The value relative to the |
|
|
* sum of all weights determines the width. |
|
|
* @validvalue ["percentage", "pixels", "weight"] |
|
|
* @sample {highcharts} highcharts/plotoptions/sunburst-levelsize/ Sunburst with various sizes per level |
|
|
*/ |
|
|
unit: 'weight' |
|
|
}, |
|
|
/** |
|
|
* If a point is sliced, moved out from the center, how many pixels |
|
|
* should it be moved?. |
|
|
* |
|
|
* @since 6.0.4 |
|
|
* @sample highcharts/plotoptions/sunburst-sliced Sliced sunburst |
|
|
*/ |
|
|
slicedOffset: 10 |
|
|
}; |
|
|
|
|
|
/** |
|
|
@@ -2499,7 +2513,7 @@ |
|
|
} |
|
|
}, |
|
|
utils: { |
|
|
calculateLevelSizes, |
|
|
calculateLevelSizes: calculateLevelSizes, |
|
|
range: range |
|
|
} |
|
|
}; |
|
|
|