highcharts 7.1.1 → 7.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/annotations/popup.css +3 -3
- package/css/annotations/popup.scss +1 -1
- package/css/stocktools/gui.css +5 -5
- package/css/stocktools/gui.scss +1 -1
- package/es-modules/annotations/ControlPoint.js +1 -1
- package/es-modules/annotations/MockPoint.js +45 -12
- package/es-modules/annotations/annotations.src.js +203 -166
- package/es-modules/annotations/controllable/ControllableCircle.js +2 -10
- package/es-modules/annotations/controllable/ControllableImage.js +2 -10
- package/es-modules/annotations/controllable/ControllableLabel.js +54 -9
- package/es-modules/annotations/controllable/ControllableRect.js +2 -10
- package/es-modules/annotations/controllable/controllableMixin.js +32 -4
- package/es-modules/annotations/controllable/markerMixin.js +1 -0
- package/es-modules/annotations/eventEmitterMixin.js +1 -0
- package/es-modules/annotations/navigationBindings.js +15 -11
- package/es-modules/annotations/popup.js +59 -81
- package/es-modules/annotations/types/CrookedLine.js +19 -7
- package/es-modules/annotations/types/ElliottWave.js +7 -6
- package/es-modules/annotations/types/Fibonacci.js +14 -14
- package/es-modules/annotations/types/InfinityLine.js +4 -4
- package/es-modules/annotations/types/Measure.js +41 -41
- package/es-modules/annotations/types/Pitchfork.js +5 -4
- package/es-modules/annotations/types/VerticalLine.js +6 -5
- package/es-modules/error-messages.js +6 -1
- package/es-modules/indicators/indicators.src.js +5 -3
- package/es-modules/mixins/nodes.js +16 -8
- package/es-modules/modules/accessibility/AccessibilityComponent.js +4 -4
- package/es-modules/modules/accessibility/KeyboardNavigation.js +17 -4
- package/es-modules/modules/accessibility/components/RangeSelectorComponent.js +3 -2
- package/es-modules/modules/accessibility/components/SeriesComponent.js +110 -2
- package/es-modules/modules/accessibility/components/ZoomComponent.js +1 -1
- package/es-modules/modules/accessibility/options.js +2 -1
- package/es-modules/modules/bellcurve.src.js +27 -29
- package/es-modules/modules/boost/boost-init.js +14 -0
- package/es-modules/modules/boost/boost-overrides.js +13 -3
- package/es-modules/modules/boost/wgl-renderer.js +30 -15
- package/es-modules/modules/boost/wgl-shader.js +33 -16
- package/es-modules/modules/boost/wgl-vbuffer.js +8 -4
- package/es-modules/modules/broken-axis.src.js +1 -1
- package/es-modules/modules/bullet.src.js +68 -68
- package/es-modules/modules/cylinder.src.js +3 -1
- package/es-modules/modules/data.src.js +9 -5
- package/es-modules/modules/draggable-points.src.js +1 -1
- package/es-modules/modules/drilldown.src.js +1 -1
- package/es-modules/modules/export-data.src.js +7 -8
- package/es-modules/modules/exporting.src.js +9 -1
- package/es-modules/modules/full-screen.src.js +1 -1
- package/es-modules/modules/funnel3d.src.js +10 -3
- package/es-modules/modules/histogram.src.js +162 -164
- package/es-modules/modules/item-series.src.js +10 -10
- package/es-modules/modules/networkgraph/layouts.js +16 -12
- package/es-modules/modules/networkgraph/networkgraph.src.js +147 -51
- package/es-modules/modules/offline-exporting.src.js +15 -2
- package/es-modules/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/modules/organization.src.js +65 -20
- package/es-modules/modules/pareto.src.js +52 -51
- package/es-modules/modules/pattern-fill.src.js +1 -1
- package/es-modules/modules/price-indicator.src.js +1 -1
- package/es-modules/modules/pyramid3d.src.js +1 -1
- package/es-modules/modules/sankey.src.js +22 -10
- package/es-modules/modules/series-label.src.js +16 -8
- package/es-modules/modules/solid-gauge.src.js +128 -79
- package/es-modules/modules/static-scale.src.js +8 -1
- package/es-modules/modules/stock-tools-gui.js +1 -1
- package/es-modules/modules/streamgraph.src.js +11 -11
- package/es-modules/modules/sunburst.src.js +23 -2
- package/es-modules/modules/tilemap.src.js +58 -57
- package/es-modules/modules/timeline.src.js +17 -12
- package/es-modules/modules/treemap.src.js +6 -6
- package/es-modules/modules/variwide.src.js +39 -39
- package/es-modules/modules/vector.src.js +108 -107
- package/es-modules/modules/venn.src.js +4 -2
- package/es-modules/modules/windbarb.src.js +43 -43
- package/es-modules/modules/wordcloud.src.js +1 -0
- package/es-modules/modules/xrange.src.js +112 -104
- package/es-modules/parts/AreaSeries.js +4 -1
- package/es-modules/parts/Axis.js +809 -1870
- package/es-modules/parts/Chart.js +254 -743
- package/es-modules/parts/Color.js +160 -113
- package/es-modules/parts/ColumnSeries.js +9 -3
- package/es-modules/parts/DataLabels.js +31 -2
- package/es-modules/parts/Dynamics.js +73 -26
- package/es-modules/parts/FlagsSeries.js +6 -4
- package/es-modules/parts/Globals.js +20 -36
- package/es-modules/parts/Html.js +116 -235
- package/es-modules/parts/Interaction.js +17 -7
- package/es-modules/parts/Legend.js +277 -632
- package/es-modules/parts/MSPointer.js +62 -106
- package/es-modules/parts/Options.js +128 -367
- package/es-modules/parts/OrdinalAxis.js +12 -0
- package/es-modules/parts/PieSeries.js +61 -44
- package/es-modules/parts/PlotLineOrBand.js +38 -3
- package/es-modules/parts/Point.js +117 -227
- package/es-modules/parts/Pointer.js +273 -558
- package/es-modules/parts/RangeSelector.js +5 -3
- package/es-modules/parts/Responsive.js +8 -4
- package/es-modules/parts/ScrollablePlotArea.js +215 -81
- package/es-modules/parts/Scrollbar.js +38 -23
- package/es-modules/parts/Series.js +151 -47
- package/es-modules/parts/Stacking.js +8 -3
- package/es-modules/parts/StockChart.js +42 -29
- package/es-modules/parts/SvgRenderer.js +1080 -2100
- package/es-modules/parts/Tick.js +11 -4
- package/es-modules/parts/Time.js +179 -363
- package/es-modules/parts/Tooltip.js +23 -12
- package/es-modules/parts/TouchPointer.js +69 -187
- package/es-modules/parts/Utilities.js +593 -846
- package/es-modules/parts-3d/Axis.js +2 -2
- package/es-modules/parts-3d/Column.js +18 -8
- package/es-modules/parts-gantt/GanttSeries.js +17 -21
- package/es-modules/parts-gantt/GridAxis.js +183 -101
- package/es-modules/parts-gantt/PathfinderAlgorithms.js +2 -2
- package/es-modules/parts-gantt/TreeGrid.js +53 -36
- package/es-modules/parts-map/ColorAxis.js +35 -14
- package/es-modules/parts-map/MapBubbleSeries.js +2 -1
- package/es-modules/parts-map/MapSeries.js +29 -18
- package/es-modules/parts-more/AreaRangeSeries.js +13 -12
- package/es-modules/parts-more/ColumnRangeSeries.js +8 -2
- package/es-modules/parts-more/GaugeSeries.js +9 -9
- package/es-modules/parts-more/PackedBubbleSeries.js +152 -115
- package/es-modules/parts-more/RadialAxis.js +102 -8
- package/es-modules/parts-more/WaterfallSeries.js +148 -35
- package/highcharts-3d.js +68 -67
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +21 -11
- package/highcharts-gantt.d.ts +5 -3
- package/highcharts-gantt.js +618 -610
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.d.ts +5 -3
- package/highcharts-gantt.src.js +5185 -8892
- package/highcharts-more.js +144 -140
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +449 -194
- package/highcharts.d.ts +3943 -5236
- package/highcharts.js +454 -449
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +3943 -5236
- package/highcharts.src.js +4767 -8601
- package/highmaps.d.ts +5 -3
- package/highmaps.js +498 -494
- package/highmaps.js.map +1 -1
- package/highmaps.src.d.ts +5 -3
- package/highmaps.src.js +4547 -8507
- package/highstock.d.ts +5 -3
- package/highstock.js +597 -590
- package/highstock.js.map +1 -1
- package/highstock.src.d.ts +5 -3
- package/highstock.src.js +4871 -8661
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -1
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +1 -1
- package/indicators/ao.src.js +1 -1
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +1 -1
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.src.js +1 -1
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ema.js +1 -1
- package/indicators/ema.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +105 -105
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +6 -4
- package/indicators/indicators.js +9 -9
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +6 -4
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/macd.js +1 -1
- package/indicators/macd.src.js +1 -1
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.src.js +1 -1
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.src.js +1 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +1 -1
- package/indicators/supertrend.src.js +1 -1
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +1 -1
- package/indicators/volume-by-price.src.js +1 -1
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +92 -89
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +138 -15
- package/modules/annotations-advanced.js +128 -127
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +514 -396
- package/modules/annotations.d.ts +36 -0
- package/modules/annotations.js +81 -81
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.d.ts +36 -0
- package/modules/annotations.src.js +418 -315
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +1 -1
- package/modules/boost-canvas.src.js +1 -1
- package/modules/boost.js +63 -63
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +99 -39
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.src.js +2 -2
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +69 -69
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +4 -2
- package/modules/data.js +4 -4
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +10 -6
- package/modules/datagrouping.js +1 -1
- package/modules/datagrouping.src.js +1 -1
- package/modules/debugger.js +4 -4
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +7 -2
- package/modules/dependency-wheel.js +1 -1
- package/modules/dependency-wheel.src.js +1 -1
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +1 -1
- package/modules/draggable-points.src.js +2 -2
- package/modules/drilldown.js +1 -1
- package/modules/drilldown.src.js +2 -2
- package/modules/export-data.js +2 -2
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +8 -9
- package/modules/exporting.js +25 -25
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +11 -3
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +2 -2
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +11 -4
- package/modules/gantt.js +166 -164
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +422 -295
- package/modules/grid-axis.js +18 -16
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +184 -102
- package/modules/heatmap.js +22 -22
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +36 -15
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +186 -183
- package/modules/item-series.js +1 -1
- package/modules/item-series.src.js +11 -11
- package/modules/map-parser.js +1 -1
- package/modules/map-parser.src.js +1 -1
- package/modules/map.js +83 -83
- package/modules/map.js.map +1 -1
- package/modules/map.src.js +67 -34
- package/modules/networkgraph.js +10 -9
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +180 -72
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/offline-exporting.js +15 -15
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +17 -4
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +2 -2
- package/modules/oldie.js +2 -2
- package/modules/oldie.src.js +2 -2
- package/modules/organization.js +1 -1
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +66 -21
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.src.js +1 -1
- package/modules/pareto.js +1 -1
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +53 -52
- package/modules/pathfinder.js +3 -3
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +3 -3
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.src.js +2 -2
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +2 -2
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +2 -2
- package/modules/sankey.js +14 -14
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +39 -19
- package/modules/series-label.js +16 -16
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +17 -9
- package/modules/solid-gauge.js +5 -5
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +129 -80
- package/modules/sonification.js +1 -1
- package/modules/sonification.src.js +1 -1
- package/modules/static-scale.js +4 -4
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +9 -2
- package/modules/stock-tools.js +2 -2
- package/modules/stock-tools.src.js +3 -3
- package/modules/stock.js +146 -145
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +105 -61
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +12 -12
- package/modules/sunburst.js +40 -40
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +30 -9
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +59 -58
- package/modules/timeline.js +12 -11
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +18 -13
- package/modules/treegrid.js +45 -43
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +238 -139
- package/modules/treemap.js +1 -1
- package/modules/treemap.src.js +7 -7
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.src.js +40 -40
- package/modules/vector.js +1 -1
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +109 -108
- package/modules/venn.js +23 -23
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +5 -3
- package/modules/windbarb.js +1 -1
- package/modules/windbarb.src.js +44 -44
- package/modules/wordcloud.js +10 -10
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +2 -1
- package/modules/xrange.js +12 -12
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +113 -105
- package/package.json +1 -1
- package/themes/avocado.js +21 -37
- package/themes/avocado.src.js +1 -1
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +21 -37
- package/themes/sunset.src.js +1 -1
- package/.DS_Store +0 -0
- package/es-modules/.DS_Store +0 -0
- package/es-modules/modules/annotations-legacy.src.js +0 -1977
- package/js/.DS_Store +0 -0
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
/**
|
|
10
10
|
* Formatter callback function.
|
|
11
11
|
*
|
|
12
|
-
* @callback Highcharts.
|
|
12
|
+
* @callback Highcharts.SeriesNetworkDataLabelsFormatterCallbackFunction
|
|
13
13
|
*
|
|
14
|
-
* @param {Highcharts.
|
|
14
|
+
* @param {Highcharts.SeriesNetworkDataLabelsFormatterContextObject|Highcharts.DataLabelsFormatterContextObject} this
|
|
15
15
|
* Data label context to format
|
|
16
16
|
*
|
|
17
17
|
* @return {string}
|
|
@@ -21,24 +21,24 @@
|
|
|
21
21
|
/**
|
|
22
22
|
* Context for the formatter function.
|
|
23
23
|
*
|
|
24
|
-
* @interface Highcharts.
|
|
24
|
+
* @interface Highcharts.SeriesNetworkDataLabelsFormatterContextObject
|
|
25
25
|
* @extends Highcharts.DataLabelsFormatterContextObject
|
|
26
26
|
* @since 7.0.0
|
|
27
27
|
*//**
|
|
28
28
|
* The color of the node.
|
|
29
|
-
* @name Highcharts.
|
|
29
|
+
* @name Highcharts.SeriesNetworkDataLabelsFormatterContextObject#color
|
|
30
30
|
* @type {Highcharts.ColorString}
|
|
31
31
|
* @since 7.0.0
|
|
32
32
|
*//**
|
|
33
33
|
* The point (node) object. The node name, if defined, is available through
|
|
34
34
|
* `this.point.name`. Arrays: `this.point.linksFrom` and `this.point.linksTo`
|
|
35
35
|
* contains all nodes connected to this point.
|
|
36
|
-
* @name Highcharts.
|
|
36
|
+
* @name Highcharts.SeriesNetworkDataLabelsFormatterContextObject#point
|
|
37
37
|
* @type {Highcharts.Point}
|
|
38
38
|
* @since 7.0.0
|
|
39
39
|
*//**
|
|
40
40
|
* The ID of the node.
|
|
41
|
-
* @name Highcharts.
|
|
41
|
+
* @name Highcharts.SeriesNetworkDataLabelsFormatterContextObject#key
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @since 7.0.0
|
|
44
44
|
*/
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
/**
|
|
47
47
|
* Data labels options
|
|
48
48
|
*
|
|
49
|
-
* @interface Highcharts.
|
|
49
|
+
* @interface Highcharts.SeriesNetworkDataLabelsOptionsObject
|
|
50
50
|
* @extends Highcharts.DataLabelsOptionsObject
|
|
51
51
|
* @since 7.0.0
|
|
52
52
|
*//**
|
|
@@ -54,63 +54,38 @@
|
|
|
54
54
|
* [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)
|
|
55
55
|
* specifying what to show for _node_ in the networkgraph. In v7.0 defaults to
|
|
56
56
|
* `{key}`, since v7.1 defaults to `undefined` and `formatter` is used instead.
|
|
57
|
-
* @name Highcharts.
|
|
57
|
+
* @name Highcharts.SeriesNetworkDataLabelsOptionsObject#format
|
|
58
58
|
* @type {string}
|
|
59
59
|
* @since 7.0.0
|
|
60
60
|
*//**
|
|
61
61
|
* Callback JavaScript function to format the data label for a node. Note that
|
|
62
62
|
* if a `format` is defined, the format takes precedence and the formatter is
|
|
63
63
|
* ignored.
|
|
64
|
-
* @name Highcharts.
|
|
65
|
-
* @type {Highcharts.
|
|
64
|
+
* @name Highcharts.SeriesNetworkDataLabelsOptionsObject#formatter
|
|
65
|
+
* @type {Highcharts.SeriesNetworkDataLabelsFormatterCallbackFunction|undefined}
|
|
66
66
|
* @since 7.0.0
|
|
67
67
|
*//**
|
|
68
68
|
* The
|
|
69
69
|
* [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)
|
|
70
70
|
* specifying what to show for _links_ in the networkgraph. (Default:
|
|
71
71
|
* `undefined`)
|
|
72
|
-
* @name Highcharts.
|
|
72
|
+
* @name Highcharts.SeriesNetworkDataLabelsOptionsObject#linkFormat
|
|
73
73
|
* @type {string}
|
|
74
74
|
* @since 7.1.0
|
|
75
75
|
*//**
|
|
76
76
|
* Callback to format data labels for _links_ in the sankey diagram. The
|
|
77
77
|
* `linkFormat` option takes precedence over the `linkFormatter`.
|
|
78
|
-
* @name Highcharts.
|
|
79
|
-
* @type {Highcharts.
|
|
78
|
+
* @name Highcharts.SeriesNetworkDataLabelsOptionsObject#linkFormatter
|
|
79
|
+
* @type {Highcharts.SeriesNetworkDataLabelsFormatterCallbackFunction|undefined}
|
|
80
80
|
* @since 7.1.0
|
|
81
81
|
*//**
|
|
82
|
-
* Options for a _link_ label text which should follow link connection.
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* @
|
|
87
|
-
* @
|
|
88
|
-
|
|
89
|
-
* Options for a _node_ label text which should follow marker's shape.
|
|
90
|
-
* **Note:** Only SVG-based renderer supports this option.
|
|
91
|
-
* @see {@link Highcharts.PlotNetworkDataLabelsTextPath#linkTextPath}
|
|
92
|
-
* @name Highcharts.PlotNetworkDataLabelsOptionsObject#textPath
|
|
93
|
-
* @type {Highcharts.PlotNetworkDataLabelsTextPath}
|
|
94
|
-
* @since 7.1.0
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* **Note:** Only SVG-based renderer supports this option.
|
|
99
|
-
*
|
|
100
|
-
* @see {@link Highcharts.PlotNetworkDataLabelsTextPath#linkTextPath}
|
|
101
|
-
* @see {@link Highcharts.PlotNetworkDataLabelsTextPath#textPath}
|
|
102
|
-
*
|
|
103
|
-
* @interface Highcharts.PlotNetworkDataLabelsTextPath
|
|
104
|
-
* @since 7.1.0
|
|
105
|
-
*//**
|
|
106
|
-
* Presentation attributes for the text path.
|
|
107
|
-
* @name Highcharts.PlotNetworkDataLabelsTextPath#attributes
|
|
108
|
-
* @type {Highcharts.SVGAttributes}
|
|
109
|
-
* @since 7.1.0
|
|
110
|
-
*//**
|
|
111
|
-
* Enable or disable `textPath` option for link's or marker's data labels.
|
|
112
|
-
* @name Highcharts.PlotNetworkDataLabelsTextPath#enabled
|
|
113
|
-
* @type {boolean|undefined}
|
|
82
|
+
* Options for a _link_ label text which should follow link connection. Border
|
|
83
|
+
* and background are disabled for a label that follows a path.
|
|
84
|
+
* **Note:** Only SVG-based renderer supports this option. Setting `useHTML` to
|
|
85
|
+
* true will disable this option.
|
|
86
|
+
* @see {@link Highcharts.SeriesNetworkDataLabelsTextPath#textPath}
|
|
87
|
+
* @name Highcharts.SeriesNetworkDataLabelsOptionsObject#linkTextPath
|
|
88
|
+
* @type {Highcharts.DataLabelsTextPath|undefined}
|
|
114
89
|
* @since 7.1.0
|
|
115
90
|
*/
|
|
116
91
|
|
|
@@ -163,7 +138,10 @@ seriesType(
|
|
|
163
138
|
{
|
|
164
139
|
stickyTracking: false,
|
|
165
140
|
|
|
166
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* @ignore-option
|
|
143
|
+
* @private
|
|
144
|
+
*/
|
|
167
145
|
inactiveOtherPoints: true,
|
|
168
146
|
|
|
169
147
|
marker: {
|
|
@@ -224,7 +202,9 @@ seriesType(
|
|
|
224
202
|
* @sample highcharts/series-networkgraph/link-datalabels
|
|
225
203
|
* Data labels moved under the links
|
|
226
204
|
*
|
|
227
|
-
* @type
|
|
205
|
+
* @type {Highcharts.SeriesNetworkDataLabelsOptionsObject|Array<Highcharts.SeriesNetworkDataLabelsOptionsObject>}
|
|
206
|
+
* @default {"formatter": function () { return this.key; }, "linkFormatter": function () { return this.point.fromNode.name + "<br>" + this.point.toNode.name; }, "linkTextPath": {"enabled": true}, "textPath": {"enabled": false}}
|
|
207
|
+
*
|
|
228
208
|
* @private
|
|
229
209
|
*/
|
|
230
210
|
dataLabels: {
|
|
@@ -328,7 +308,7 @@ seriesType(
|
|
|
328
308
|
* Numerical values
|
|
329
309
|
*
|
|
330
310
|
* @type {number}
|
|
331
|
-
* @apioption
|
|
311
|
+
* @apioption plotOptions.networkgraph.layoutAlgorithm.linkLength
|
|
332
312
|
*/
|
|
333
313
|
|
|
334
314
|
/**
|
|
@@ -485,7 +465,6 @@ seriesType(
|
|
|
485
465
|
* @private
|
|
486
466
|
*/
|
|
487
467
|
createNode: H.NodesMixin.createNode,
|
|
488
|
-
setData: H.NodesMixin.setData,
|
|
489
468
|
destroy: H.NodesMixin.destroy,
|
|
490
469
|
|
|
491
470
|
/**
|
|
@@ -512,6 +491,9 @@ seriesType(
|
|
|
512
491
|
* @private
|
|
513
492
|
*/
|
|
514
493
|
generatePoints: function () {
|
|
494
|
+
var node,
|
|
495
|
+
i;
|
|
496
|
+
|
|
515
497
|
H.NodesMixin.generatePoints.apply(this, arguments);
|
|
516
498
|
|
|
517
499
|
// In networkgraph, it's fine to define stanalone nodes, create
|
|
@@ -528,9 +510,19 @@ seriesType(
|
|
|
528
510
|
);
|
|
529
511
|
}
|
|
530
512
|
|
|
531
|
-
this.nodes.
|
|
513
|
+
for (i = this.nodes.length - 1; i >= 0; i--) {
|
|
514
|
+
node = this.nodes[i];
|
|
515
|
+
|
|
532
516
|
node.degree = node.getDegree();
|
|
533
|
-
|
|
517
|
+
|
|
518
|
+
// If node exists, but it's not available in nodeLookup,
|
|
519
|
+
// then it's leftover from previous runs (e.g. setData)
|
|
520
|
+
if (!this.nodeLookup[node.id]) {
|
|
521
|
+
node.remove();
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
|
|
534
526
|
this.data.forEach(function (link) {
|
|
535
527
|
link.formatPrefix = 'link';
|
|
536
528
|
});
|
|
@@ -947,6 +939,105 @@ seriesType(
|
|
|
947
939
|
return !this.isNode || defined(this.id);
|
|
948
940
|
},
|
|
949
941
|
|
|
942
|
+
/**
|
|
943
|
+
* Common method for removing points and nodes in networkgraph. To
|
|
944
|
+
* remove `link`, use `series.data[index].remove()`. To remove `node`
|
|
945
|
+
* with all connections, use `series.nodes[index].remove()`.
|
|
946
|
+
* @private
|
|
947
|
+
* @param {boolean} [redraw=true]
|
|
948
|
+
* Whether to redraw the chart or wait for an explicit call. When
|
|
949
|
+
* doing more operations on the chart, for example running
|
|
950
|
+
* `point.remove()` in a loop, it is best practice to set
|
|
951
|
+
* `redraw` to false and call `chart.redraw()` after.
|
|
952
|
+
* @param {boolean|Highcharts.AnimationOptionsObject} [animation=false]
|
|
953
|
+
* Whether to apply animation, and optionally animation
|
|
954
|
+
* configuration.
|
|
955
|
+
* @return {void}
|
|
956
|
+
*/
|
|
957
|
+
remove: function (redraw, animation) {
|
|
958
|
+
var point = this,
|
|
959
|
+
series = point.series,
|
|
960
|
+
nodesOptions = series.options.nodes || [],
|
|
961
|
+
index,
|
|
962
|
+
i = nodesOptions.length;
|
|
963
|
+
|
|
964
|
+
// For nodes, remove all connected links:
|
|
965
|
+
if (point.isNode) {
|
|
966
|
+
// Temporary disable series.points array, because
|
|
967
|
+
// Series.removePoint() modifies it
|
|
968
|
+
series.points = [];
|
|
969
|
+
|
|
970
|
+
// Remove link from all nodes collections:
|
|
971
|
+
[].concat(point.linksFrom)
|
|
972
|
+
.concat(point.linksTo)
|
|
973
|
+
.forEach(
|
|
974
|
+
function (linkFromTo) {
|
|
975
|
+
// Incoming links
|
|
976
|
+
index = linkFromTo.fromNode.linksFrom.indexOf(
|
|
977
|
+
linkFromTo
|
|
978
|
+
);
|
|
979
|
+
if (index > -1) {
|
|
980
|
+
linkFromTo.fromNode.linksFrom.splice(
|
|
981
|
+
index,
|
|
982
|
+
1
|
|
983
|
+
);
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
// Outcoming links
|
|
987
|
+
index = linkFromTo.toNode.linksTo.indexOf(
|
|
988
|
+
linkFromTo
|
|
989
|
+
);
|
|
990
|
+
if (index > -1) {
|
|
991
|
+
linkFromTo.toNode.linksTo.splice(
|
|
992
|
+
index,
|
|
993
|
+
1
|
|
994
|
+
);
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
// Remove link from data/points collections
|
|
998
|
+
Series.prototype.removePoint.call(
|
|
999
|
+
series,
|
|
1000
|
+
series.data.indexOf(linkFromTo),
|
|
1001
|
+
false,
|
|
1002
|
+
false
|
|
1003
|
+
);
|
|
1004
|
+
}
|
|
1005
|
+
);
|
|
1006
|
+
|
|
1007
|
+
// Restore points array, after links are removed
|
|
1008
|
+
series.points = series.data.slice();
|
|
1009
|
+
|
|
1010
|
+
// Proceed with removing node. It's similar to
|
|
1011
|
+
// Series.removePoint() method, but doesn't modify other arrays
|
|
1012
|
+
series.nodes.splice(series.nodes.indexOf(point), 1);
|
|
1013
|
+
|
|
1014
|
+
// Remove node options from config
|
|
1015
|
+
while (i--) {
|
|
1016
|
+
if (nodesOptions[i].id === point.options.id) {
|
|
1017
|
+
series.options.nodes.splice(i, 1);
|
|
1018
|
+
break;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
if (point) {
|
|
1023
|
+
point.destroy();
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
// Run redraw if requested
|
|
1027
|
+
series.isDirty = true;
|
|
1028
|
+
series.isDirtyData = true;
|
|
1029
|
+
if (redraw) {
|
|
1030
|
+
series.chart.redraw(redraw);
|
|
1031
|
+
}
|
|
1032
|
+
} else {
|
|
1033
|
+
series.removePoint(
|
|
1034
|
+
series.data.indexOf(point),
|
|
1035
|
+
redraw,
|
|
1036
|
+
animation
|
|
1037
|
+
);
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
|
|
950
1041
|
/**
|
|
951
1042
|
* Destroy point. If it's a node, remove all links coming out of this
|
|
952
1043
|
* node. Then remove point from the layout.
|
|
@@ -1021,6 +1112,11 @@ seriesType(
|
|
|
1021
1112
|
* @apioption series.networkgraph.data
|
|
1022
1113
|
*/
|
|
1023
1114
|
|
|
1115
|
+
/**
|
|
1116
|
+
* @type {Highcharts.SeriesNetworkDataLabelsOptionsObject|Array<Highcharts.SeriesNetworkDataLabelsOptionsObject>}
|
|
1117
|
+
* @product highcharts
|
|
1118
|
+
* @apioption series.networkgraph.data.dataLabels
|
|
1119
|
+
*/
|
|
1024
1120
|
|
|
1025
1121
|
/**
|
|
1026
1122
|
* The node that the link runs from.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/* *
|
|
2
2
|
* Client side exporting module
|
|
3
3
|
*
|
|
4
4
|
* (c) 2015 Torstein Honsi / Oystein Moseng
|
|
@@ -614,6 +614,19 @@ Highcharts.Chart.prototype.exportChartLocal = function (
|
|
|
614
614
|
fallbackToExportServer
|
|
615
615
|
);
|
|
616
616
|
}
|
|
617
|
+
},
|
|
618
|
+
|
|
619
|
+
// Return true if the SVG contains images with external data. With the
|
|
620
|
+
// boost module there are `image` elements with encoded PNGs, these are
|
|
621
|
+
// supported by svg2pdf and should pass (#10243).
|
|
622
|
+
hasExternalImages = function () {
|
|
623
|
+
return [].some.call(
|
|
624
|
+
chart.container.getElementsByTagName('image'),
|
|
625
|
+
function (image) {
|
|
626
|
+
var href = image.getAttribute('href');
|
|
627
|
+
return href !== '' && href.indexOf('data:') !== 0;
|
|
628
|
+
}
|
|
629
|
+
);
|
|
617
630
|
};
|
|
618
631
|
|
|
619
632
|
// If we are on IE and in styled mode, add a whitelist to the renderer for
|
|
@@ -665,7 +678,7 @@ Highcharts.Chart.prototype.exportChartLocal = function (
|
|
|
665
678
|
)
|
|
666
679
|
) || (
|
|
667
680
|
options.type === 'application/pdf' &&
|
|
668
|
-
|
|
681
|
+
hasExternalImages()
|
|
669
682
|
)
|
|
670
683
|
) {
|
|
671
684
|
fallbackToExportServer(
|
|
@@ -14,6 +14,29 @@
|
|
|
14
14
|
* @typedef {"normal"|"hanging"} Highcharts.SeriesOrganizationNodesLayoutValue
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @interface Highcharts.SeriesOrganizationDataLabelsOptionsObject
|
|
19
|
+
* @extends Highcharts.SeriesSankeyDataLabelsOptionsObject
|
|
20
|
+
*//**
|
|
21
|
+
* A callback for defining the format for _nodes_ in the
|
|
22
|
+
* organization chart. The `nodeFormat` option takes precedence over
|
|
23
|
+
* `nodeFormatter`.
|
|
24
|
+
*
|
|
25
|
+
* In an organization chart, the `nodeFormatter` is a quite complex
|
|
26
|
+
* function of the available options, striving for a good default
|
|
27
|
+
* layout of cards with or without images. In organization chart,
|
|
28
|
+
* the data labels come with `useHTML` set to true, meaning they
|
|
29
|
+
* will be rendered as true HTML above the SVG.
|
|
30
|
+
*
|
|
31
|
+
* @sample highcharts/series-organization/datalabels-nodeformatter
|
|
32
|
+
* Modify the default label format output
|
|
33
|
+
*
|
|
34
|
+
* @name Highcharts.SeriesOrganizationDataLabelsOptionsObject#nodeFormatter
|
|
35
|
+
* @type {Highcharts.FormatterCallbackFunction<Highcharts.SankeyNodeObject>|undefined}
|
|
36
|
+
* @default function () { return this.point.name; }
|
|
37
|
+
* @since 6.0.2
|
|
38
|
+
*/
|
|
39
|
+
|
|
17
40
|
'use strict';
|
|
18
41
|
|
|
19
42
|
import H from '../parts/Globals.js';
|
|
@@ -54,11 +77,15 @@ H.seriesType(
|
|
|
54
77
|
{
|
|
55
78
|
/**
|
|
56
79
|
* The border color of the node cards.
|
|
80
|
+
*
|
|
57
81
|
* @type {Highcharts.ColorString}
|
|
82
|
+
* @private
|
|
58
83
|
*/
|
|
59
84
|
borderColor: '#666666',
|
|
60
85
|
/**
|
|
61
86
|
* The border radius of the node cards.
|
|
87
|
+
*
|
|
88
|
+
* @private
|
|
62
89
|
*/
|
|
63
90
|
borderRadius: 3,
|
|
64
91
|
/**
|
|
@@ -66,24 +93,17 @@ H.seriesType(
|
|
|
66
93
|
*
|
|
67
94
|
* @sample highcharts/series-organization/link-options
|
|
68
95
|
* Square links
|
|
96
|
+
*
|
|
97
|
+
* @private
|
|
69
98
|
*/
|
|
70
99
|
linkRadius: 10,
|
|
71
100
|
borderWidth: 1,
|
|
101
|
+
/**
|
|
102
|
+
* @type {Highcharts.SeriesOrganizationDataLabelsOptionsObject|Array<Highcharts.SeriesOrganizationDataLabelsOptionsObject>}
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
72
105
|
dataLabels: {
|
|
73
|
-
/**
|
|
74
|
-
* A callback for defining the format for _nodes_ in the
|
|
75
|
-
* organization chart. The `nodeFormat` option takes precedence over
|
|
76
|
-
* `nodeFormatter`.
|
|
77
|
-
*
|
|
78
|
-
* In an organization chart, the `nodeFormatter` is a quite complex
|
|
79
|
-
* function of the available options, striving for a good default
|
|
80
|
-
* layout of cards with or without images. In organization chart,
|
|
81
|
-
* the data labels come with `useHTML` set to true, meaning they
|
|
82
|
-
* will be rendered as true HTML above the SVG.
|
|
83
|
-
*
|
|
84
|
-
* @sample highcharts/series-organization/datalabels-nodeformatter
|
|
85
|
-
* Modify the default label format output
|
|
86
|
-
*/
|
|
106
|
+
/** @ignore-option */
|
|
87
107
|
nodeFormatter: function () {
|
|
88
108
|
|
|
89
109
|
var outerStyle = {
|
|
@@ -163,20 +183,26 @@ H.seriesType(
|
|
|
163
183
|
'</div>';
|
|
164
184
|
return html;
|
|
165
185
|
},
|
|
186
|
+
/** @ignore-option */
|
|
166
187
|
style: {
|
|
167
188
|
fontWeight: 'normal',
|
|
168
189
|
fontSize: '13px'
|
|
169
190
|
},
|
|
191
|
+
/** @ignore-option */
|
|
170
192
|
useHTML: true
|
|
171
193
|
},
|
|
172
194
|
/**
|
|
173
195
|
* The indentation in pixels of hanging nodes, nodes which parent has
|
|
174
196
|
* [layout](#series.organization.nodes.layout) set to `hanging`.
|
|
197
|
+
*
|
|
198
|
+
* @private
|
|
175
199
|
*/
|
|
176
200
|
hangingIndent: 20,
|
|
177
201
|
/**
|
|
178
202
|
* The color of the links between nodes.
|
|
203
|
+
*
|
|
179
204
|
* @type {Highcharts.ColorString}
|
|
205
|
+
* @private
|
|
180
206
|
*/
|
|
181
207
|
linkColor: '#666666',
|
|
182
208
|
/**
|
|
@@ -184,12 +210,16 @@ H.seriesType(
|
|
|
184
210
|
*
|
|
185
211
|
* @sample highcharts/series-organization/link-options
|
|
186
212
|
* Square links
|
|
213
|
+
*
|
|
214
|
+
* @private
|
|
187
215
|
*/
|
|
188
216
|
linkLineWidth: 1,
|
|
189
217
|
/**
|
|
190
218
|
* In a horizontal chart, the width of the nodes in pixels. Node that
|
|
191
219
|
* most organization charts are vertical, so the name of this option
|
|
192
220
|
* is counterintuitive.
|
|
221
|
+
*
|
|
222
|
+
* @private
|
|
193
223
|
*/
|
|
194
224
|
nodeWidth: 50,
|
|
195
225
|
tooltip: {
|
|
@@ -463,9 +493,16 @@ H.seriesType(
|
|
|
463
493
|
* not specified, it is inherited from [chart.type](#chart.type).
|
|
464
494
|
*
|
|
465
495
|
* @extends series,plotOptions.organization
|
|
496
|
+
* @product highcharts
|
|
466
497
|
* @apioption series.organization
|
|
467
498
|
*/
|
|
468
499
|
|
|
500
|
+
/**
|
|
501
|
+
* @type {Highcharts.SeriesOrganizationDataLabelsOptionsObject|Array<Highcharts.SeriesOrganizationDataLabelsOptionsObject>}
|
|
502
|
+
* @product highcharts
|
|
503
|
+
* @apioption series.organization.data.dataLabels
|
|
504
|
+
*/
|
|
505
|
+
|
|
469
506
|
/**
|
|
470
507
|
* A collection of options for the individual nodes. The nodes in an org chart
|
|
471
508
|
* are auto-generated instances of `Highcharts.Point`, but options can be
|
|
@@ -473,6 +510,7 @@ H.seriesType(
|
|
|
473
510
|
*
|
|
474
511
|
* @extends series.sankey.nodes
|
|
475
512
|
* @type {Array<*>}
|
|
513
|
+
* @product highcharts
|
|
476
514
|
* @apioption series.organization.nodes
|
|
477
515
|
*/
|
|
478
516
|
|
|
@@ -480,9 +518,11 @@ H.seriesType(
|
|
|
480
518
|
* The job description for the node card, will be inserted by the default
|
|
481
519
|
* `dataLabel.nodeFormatter`.
|
|
482
520
|
*
|
|
521
|
+
* @sample highcharts/demo/organization-chart
|
|
522
|
+
* Org chart with job descriptions
|
|
523
|
+
*
|
|
483
524
|
* @type {string}
|
|
484
|
-
* @
|
|
485
|
-
* Org chart with job descriptions
|
|
525
|
+
* @product highcharts
|
|
486
526
|
* @apioption series.organization.nodes.description
|
|
487
527
|
*/
|
|
488
528
|
|
|
@@ -490,9 +530,11 @@ H.seriesType(
|
|
|
490
530
|
* An image for the node card, will be inserted by the default
|
|
491
531
|
* `dataLabel.nodeFormatter`.
|
|
492
532
|
*
|
|
533
|
+
* @sample highcharts/demo/organization-chart
|
|
534
|
+
* Org chart with images
|
|
535
|
+
*
|
|
493
536
|
* @type {string}
|
|
494
|
-
* @
|
|
495
|
-
* Org chart with images
|
|
537
|
+
* @product highcharts
|
|
496
538
|
* @apioption series.organization.nodes.image
|
|
497
539
|
*/
|
|
498
540
|
|
|
@@ -505,6 +547,7 @@ H.seriesType(
|
|
|
505
547
|
*
|
|
506
548
|
* @type {Highcharts.SeriesOrganizationNodesLayoutValue}
|
|
507
549
|
* @default normal
|
|
550
|
+
* @product highcharts
|
|
508
551
|
* @apioption series.organization.nodes.layout
|
|
509
552
|
*/
|
|
510
553
|
|
|
@@ -512,9 +555,11 @@ H.seriesType(
|
|
|
512
555
|
* The job title for the node card, will be inserted by the default
|
|
513
556
|
* `dataLabel.nodeFormatter`.
|
|
514
557
|
*
|
|
558
|
+
* @sample highcharts/demo/organization-chart
|
|
559
|
+
* Org chart with job titles
|
|
560
|
+
*
|
|
515
561
|
* @type {string}
|
|
516
|
-
* @
|
|
517
|
-
* Org chart with job titles
|
|
562
|
+
* @product highcharts
|
|
518
563
|
* @apioption series.organization.nodes.title
|
|
519
564
|
*/
|
|
520
565
|
|
|
@@ -28,40 +28,41 @@ var correctFloat = H.correctFloat,
|
|
|
28
28
|
seriesType('pareto', 'line'
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
*
|
|
35
|
-
* @sample {highcharts} highcharts/demo/pareto/
|
|
36
|
-
* Pareto diagram
|
|
37
|
-
*
|
|
38
|
-
* @extends plotOptions.line
|
|
39
|
-
* @since 6.0.0
|
|
40
|
-
* @product highcharts
|
|
41
|
-
* @excluding allAreas, boostThreshold, borderColor, borderRadius,
|
|
42
|
-
* borderWidth, crisp, colorAxis, depth, data, edgeColor,
|
|
43
|
-
* edgeWidth, findNearestPointBy, gapSize, gapUnit, grouping,
|
|
44
|
-
* groupPadding, groupZPadding, maxPointWidth, keys,
|
|
45
|
-
* negativeColor, pointInterval, pointIntervalUnit, pointPadding,
|
|
46
|
-
* pointPlacement, pointRange, pointStart, pointWidth, shadow,
|
|
47
|
-
* step, softThreshold, stacking, threshold, zoneAxis, zones
|
|
48
|
-
* @optionparent plotOptions.pareto
|
|
49
|
-
*/
|
|
50
|
-
, {
|
|
51
|
-
/**
|
|
52
|
-
* Higher zIndex than column series to draw line above shapes.
|
|
53
|
-
*/
|
|
54
|
-
zIndex: 3
|
|
55
|
-
}, merge(derivedSeriesMixin, {
|
|
56
|
-
/**
|
|
57
|
-
* Calculate sum and return percent points.
|
|
31
|
+
* A pareto diagram is a type of chart that contains both bars and a line
|
|
32
|
+
* graph, where individual values are represented in descending order by
|
|
33
|
+
* bars, and the cumulative total is represented by the line.
|
|
58
34
|
*
|
|
59
|
-
* @
|
|
60
|
-
*
|
|
35
|
+
* @sample {highcharts} highcharts/demo/pareto/
|
|
36
|
+
* Pareto diagram
|
|
61
37
|
*
|
|
62
|
-
* @
|
|
63
|
-
*
|
|
38
|
+
* @extends plotOptions.line
|
|
39
|
+
* @since 6.0.0
|
|
40
|
+
* @product highcharts
|
|
41
|
+
* @excluding allAreas, boostThreshold, borderColor, borderRadius,
|
|
42
|
+
* borderWidth, crisp, colorAxis, depth, data, edgeColor,
|
|
43
|
+
* edgeWidth, findNearestPointBy, gapSize, gapUnit, grouping,
|
|
44
|
+
* groupPadding, groupZPadding, maxPointWidth, keys,
|
|
45
|
+
* negativeColor, pointInterval, pointIntervalUnit,
|
|
46
|
+
* pointPadding, pointPlacement, pointRange, pointStart,
|
|
47
|
+
* pointWidth, shadow, step, softThreshold, stacking,
|
|
48
|
+
* threshold, zoneAxis, zones
|
|
49
|
+
* @optionparent plotOptions.pareto
|
|
64
50
|
*/
|
|
51
|
+
, {
|
|
52
|
+
/**
|
|
53
|
+
* Higher zIndex than column series to draw line above shapes.
|
|
54
|
+
*/
|
|
55
|
+
zIndex: 3
|
|
56
|
+
}, merge(derivedSeriesMixin, {
|
|
57
|
+
/**
|
|
58
|
+
* Calculate sum and return percent points.
|
|
59
|
+
*
|
|
60
|
+
* @private
|
|
61
|
+
* @function Highcharts.Series#setDerivedData
|
|
62
|
+
*
|
|
63
|
+
* @return {Array<Array<number,number>>}
|
|
64
|
+
* Returns array of points [x,y]
|
|
65
|
+
*/
|
|
65
66
|
setDerivedData: function () {
|
|
66
67
|
if (this.baseSeries.yData.length > 1) {
|
|
67
68
|
var xValues = this.baseSeries.xData,
|
|
@@ -75,26 +76,26 @@ seriesType('pareto', 'line'
|
|
|
75
76
|
}
|
|
76
77
|
},
|
|
77
78
|
/**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
79
|
+
* Calculate y sum and each percent point.
|
|
80
|
+
*
|
|
81
|
+
* @private
|
|
82
|
+
* @function Highcharts.Series#sumPointsPercents
|
|
83
|
+
*
|
|
84
|
+
* @param {Array<number>} yValues
|
|
85
|
+
* Y values
|
|
86
|
+
*
|
|
87
|
+
* @param {Array<number>} xValues
|
|
88
|
+
* X values
|
|
89
|
+
*
|
|
90
|
+
* @param {number} sum
|
|
91
|
+
* Sum of all y values
|
|
92
|
+
*
|
|
93
|
+
* @param {boolean} [isSum]
|
|
94
|
+
* Declares if calculate sum of all points
|
|
95
|
+
*
|
|
96
|
+
* @return {number|Array<number,number>}
|
|
97
|
+
* Returns sum of points or array of points [x,sum]
|
|
98
|
+
*/
|
|
98
99
|
sumPointsPercents: function (yValues, xValues, sum, isSum) {
|
|
99
100
|
var sumY = 0,
|
|
100
101
|
sumPercent = 0,
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* is 32px. Note that automatic resizing of image patterns to fill a bounding
|
|
22
22
|
* box dynamically is only supported for patterns with an automatically
|
|
23
23
|
* calculated ID.
|
|
24
|
-
* @name Highcharts.PatternOptionsObject#
|
|
24
|
+
* @name Highcharts.PatternOptionsObject#width
|
|
25
25
|
* @type {number}
|
|
26
26
|
*//**
|
|
27
27
|
* Analogous to pattern.width.
|