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
|
@@ -960,6 +960,18 @@ addEvent(Axis, 'foundExtremes', function () {
|
|
|
960
960
|
}
|
|
961
961
|
});
|
|
962
962
|
|
|
963
|
+
// For ordinal axis, that loads data async, redraw axis after data is loaded.
|
|
964
|
+
// If we don't do that, axis will have the same extremes as previously, but
|
|
965
|
+
// ordinal positions won't be calculated. See #10290
|
|
966
|
+
addEvent(Axis, 'afterSetScale', function () {
|
|
967
|
+
var axis = this;
|
|
968
|
+
|
|
969
|
+
if (axis.horiz && !axis.isDirty) {
|
|
970
|
+
axis.isDirty = axis.isOrdinal &&
|
|
971
|
+
axis.chart.navigator &&
|
|
972
|
+
!axis.chart.navigator.adaptToUpdatedData;
|
|
973
|
+
}
|
|
974
|
+
});
|
|
963
975
|
/* ************************************************************************** *
|
|
964
976
|
* End ordinal axis logic *
|
|
965
977
|
* ************************************************************************** */
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/series-datalabels|Highcharts-Demo:}
|
|
21
21
|
* Style mode example
|
|
22
22
|
*
|
|
23
|
-
* @interface Highcharts.
|
|
23
|
+
* @interface Highcharts.SeriesPieDataLabelsOptionsObject
|
|
24
24
|
* @extends Highcharts.DataLabelsOptionsObject
|
|
25
25
|
*//**
|
|
26
26
|
* Alignment method for data labels. Possible values are:
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-alignto-plotedges/|Highcharts-Demo:}
|
|
38
38
|
* alignTo: plotEdges
|
|
39
39
|
*
|
|
40
|
-
* @name Highcharts.
|
|
40
|
+
* @name Highcharts.SeriesPieDataLabelsOptionsObject#alignTo
|
|
41
41
|
* @type {string|undefined}
|
|
42
42
|
* @since 7.0.0
|
|
43
43
|
* @product highcharts
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/pie-point/|Highcharts-Demo:}
|
|
54
54
|
* Styled connectors
|
|
55
55
|
*
|
|
56
|
-
* @name Highcharts.
|
|
56
|
+
* @name Highcharts.SeriesPieDataLabelsOptionsObject#connectorColor
|
|
57
57
|
* @type {Highcharts.ColorString|undefined}
|
|
58
58
|
* @since 2.1
|
|
59
59
|
* @product highcharts
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-connectorpadding/|Highcharts-Demo:}
|
|
66
66
|
* No padding
|
|
67
67
|
*
|
|
68
|
-
* @name Highcharts.
|
|
68
|
+
* @name Highcharts.SeriesPieDataLabelsOptionsObject#connectorPadding
|
|
69
69
|
* @type {number|undefined}
|
|
70
70
|
* @default 5
|
|
71
71
|
* @since 2.1
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-connectorshape-function/|Highcharts-Demo:}
|
|
101
101
|
* connectorShape is a function
|
|
102
102
|
*
|
|
103
|
-
* @name Highcharts.
|
|
103
|
+
* @name Highcharts.SeriesPieDataLabelsOptionsObject#connectorShape
|
|
104
104
|
* @type {string|Function|undefined}
|
|
105
105
|
* @default fixedOffset
|
|
106
106
|
* @since 7.0.0
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/pie-point/|Highcharts-Demo:}
|
|
119
119
|
* Styled connectors
|
|
120
120
|
*
|
|
121
|
-
* @name Highcharts.
|
|
121
|
+
* @name Highcharts.SeriesPieDataLabelsOptionsObject#connectorWidth
|
|
122
122
|
* @type {number|undefined}
|
|
123
123
|
* @default 1
|
|
124
124
|
* @since 2.1
|
|
@@ -131,20 +131,20 @@
|
|
|
131
131
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-crookdistance/|Highcharts-Demo:}
|
|
132
132
|
* crookDistance set to 90%
|
|
133
133
|
*
|
|
134
|
-
* @name Highcharts.
|
|
134
|
+
* @name Highcharts.SeriesPieDataLabelsOptionsObject#crookDistance
|
|
135
135
|
* @type {string|undefined}
|
|
136
136
|
* @default 70%
|
|
137
137
|
* @since 7.0.0
|
|
138
138
|
* @product highcharts
|
|
139
139
|
*//**
|
|
140
140
|
* The distance of the data label from the pie's edge. Negative numbers put the
|
|
141
|
-
* data label on top of the pie slices.
|
|
142
|
-
* labels outside the pie.
|
|
141
|
+
* data label on top of the pie slices. Can also be defined as a percentage of
|
|
142
|
+
* pie's radius. Connectors are only shown for data labels outside the pie.
|
|
143
143
|
*
|
|
144
144
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-distance/|Highcharts-Demo:}
|
|
145
145
|
* Data labels on top of the pie
|
|
146
146
|
*
|
|
147
|
-
* @name Highcharts.
|
|
147
|
+
* @name Highcharts.SeriesPieDataLabelsOptionsObject#distance
|
|
148
148
|
* @type {number|undefined}
|
|
149
149
|
* @default 30
|
|
150
150
|
* @since 2.1
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-softconnector-false/|Highcharts-Demo:}
|
|
159
159
|
* Non soft
|
|
160
160
|
*
|
|
161
|
-
* @name Highcharts.
|
|
161
|
+
* @name Highcharts.SeriesPieDataLabelsOptionsObject#softConnector
|
|
162
162
|
* @type {number|undefined}
|
|
163
163
|
* @default true
|
|
164
164
|
* @since 2.1.7
|
|
@@ -244,6 +244,22 @@ seriesType(
|
|
|
244
244
|
* @apioption plotOptions.pie.events.checkboxClick
|
|
245
245
|
*/
|
|
246
246
|
|
|
247
|
+
/**
|
|
248
|
+
* Fires when the legend item belonging to the pie point (slice) is
|
|
249
|
+
* clicked. The `this` keyword refers to the point itself. One
|
|
250
|
+
* parameter, `event`, is passed to the function, containing common
|
|
251
|
+
* event information. The default action is to toggle the visibility of
|
|
252
|
+
* the point. This can be prevented by calling `event.preventDefault()`.
|
|
253
|
+
*
|
|
254
|
+
* @sample {highcharts} highcharts/plotoptions/pie-point-events-legenditemclick/
|
|
255
|
+
* Confirm toggle visibility
|
|
256
|
+
*
|
|
257
|
+
* @type {Highcharts.PointLegendItemClickCallbackFunction}
|
|
258
|
+
* @since 1.2.0
|
|
259
|
+
* @product highcharts
|
|
260
|
+
* @apioption plotOptions.pie.point.events.legendItemClick
|
|
261
|
+
*/
|
|
262
|
+
|
|
247
263
|
/**
|
|
248
264
|
* The center of the pie chart relative to the plot area. Can be
|
|
249
265
|
* percentages or pixel values. The default behaviour (as of 3.0) is to
|
|
@@ -291,7 +307,8 @@ seriesType(
|
|
|
291
307
|
*/
|
|
292
308
|
|
|
293
309
|
/**
|
|
294
|
-
* @type
|
|
310
|
+
* @type {Highcharts.SeriesPieDataLabelsOptionsObject|Array<Highcharts.SeriesPieDataLabelsOptionsObject>}
|
|
311
|
+
* @default {"allowOverlap": true, "connectorPadding": 5, "distance": 30, "enabled": true, "formatter": function () { return this.point.name; }, "softConnector": true, "x": 0, "connectorShape": "fixedOffset", "crookDistance": "70%"}
|
|
295
312
|
*
|
|
296
313
|
* @private
|
|
297
314
|
*/
|
|
@@ -349,7 +366,11 @@ seriesType(
|
|
|
349
366
|
*/
|
|
350
367
|
ignoreHiddenPoint: true,
|
|
351
368
|
|
|
352
|
-
/**
|
|
369
|
+
/**
|
|
370
|
+
* @ignore-option
|
|
371
|
+
*
|
|
372
|
+
* @private
|
|
373
|
+
*/
|
|
353
374
|
inactiveOtherPoints: true,
|
|
354
375
|
|
|
355
376
|
/**
|
|
@@ -739,21 +760,6 @@ seriesType(
|
|
|
739
760
|
|
|
740
761
|
point = points[i];
|
|
741
762
|
|
|
742
|
-
// Used for distance calculation for specific point.
|
|
743
|
-
point.labelDistance = pick(
|
|
744
|
-
(
|
|
745
|
-
point.options.dataLabels &&
|
|
746
|
-
point.options.dataLabels.distance
|
|
747
|
-
),
|
|
748
|
-
labelDistance
|
|
749
|
-
);
|
|
750
|
-
|
|
751
|
-
// Saved for later dataLabels distance calculation.
|
|
752
|
-
series.maxLabelDistance = Math.max(
|
|
753
|
-
series.maxLabelDistance || 0,
|
|
754
|
-
point.labelDistance
|
|
755
|
-
);
|
|
756
|
-
|
|
757
763
|
// set start and end angle
|
|
758
764
|
start = startAngleRad + (cumulative * circ);
|
|
759
765
|
if (!ignoreHiddenPoint || point.visible) {
|
|
@@ -772,6 +778,26 @@ seriesType(
|
|
|
772
778
|
end: Math.round(end * precision) / precision
|
|
773
779
|
};
|
|
774
780
|
|
|
781
|
+
// Used for distance calculation for specific point.
|
|
782
|
+
point.labelDistance = pick(
|
|
783
|
+
(
|
|
784
|
+
point.options.dataLabels &&
|
|
785
|
+
point.options.dataLabels.distance
|
|
786
|
+
),
|
|
787
|
+
labelDistance
|
|
788
|
+
);
|
|
789
|
+
|
|
790
|
+
// Compute point.labelDistance if it's defined as percentage
|
|
791
|
+
// of slice radius (#8854)
|
|
792
|
+
point.labelDistance =
|
|
793
|
+
H.relativeLength(point.labelDistance, point.shapeArgs.r);
|
|
794
|
+
|
|
795
|
+
// Saved for later dataLabels distance calculation.
|
|
796
|
+
series.maxLabelDistance = Math.max(
|
|
797
|
+
series.maxLabelDistance || 0,
|
|
798
|
+
point.labelDistance
|
|
799
|
+
);
|
|
800
|
+
|
|
775
801
|
// The angle must stay within -90 and 270 (#2645)
|
|
776
802
|
angle = (end + start) / 2;
|
|
777
803
|
if (angle > 1.5 * Math.PI) {
|
|
@@ -929,7 +955,7 @@ seriesType(
|
|
|
929
955
|
.shadow(shadow, shadowGroup);
|
|
930
956
|
}
|
|
931
957
|
|
|
932
|
-
point.
|
|
958
|
+
point.delayedRendering = false;
|
|
933
959
|
}
|
|
934
960
|
|
|
935
961
|
graphic.attr({
|
|
@@ -1360,27 +1386,17 @@ seriesType(
|
|
|
1360
1386
|
*/
|
|
1361
1387
|
|
|
1362
1388
|
/**
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1365
|
-
* @type {number}
|
|
1389
|
+
* @type {Highcharts.SeriesPieDataLabelsOptionsObject|Array<Highcharts.SeriesPieDataLabelsOptionsObject>}
|
|
1366
1390
|
* @product highcharts
|
|
1367
|
-
* @apioption series.pie.data.
|
|
1391
|
+
* @apioption series.pie.data.dataLabels
|
|
1368
1392
|
*/
|
|
1369
1393
|
|
|
1370
1394
|
/**
|
|
1371
|
-
*
|
|
1372
|
-
* clicked. The `this` keyword refers to the point itself. One parameter,
|
|
1373
|
-
* `event`, is passed to the function, containing common event information. The
|
|
1374
|
-
* default action is to toggle the visibility of the point. This can be
|
|
1375
|
-
* prevented by calling `event.preventDefault()`.
|
|
1376
|
-
*
|
|
1377
|
-
* @sample {highcharts} highcharts/plotoptions/pie-point-events-legenditemclick/
|
|
1378
|
-
* Confirm toggle visibility
|
|
1395
|
+
* The sequential index of the data point in the legend.
|
|
1379
1396
|
*
|
|
1380
|
-
* @type {
|
|
1381
|
-
* @since 1.2.0
|
|
1397
|
+
* @type {number}
|
|
1382
1398
|
* @product highcharts
|
|
1383
|
-
* @apioption
|
|
1399
|
+
* @apioption series.pie.data.legendIndex
|
|
1384
1400
|
*/
|
|
1385
1401
|
|
|
1386
1402
|
/**
|
|
@@ -1396,5 +1412,6 @@ seriesType(
|
|
|
1396
1412
|
|
|
1397
1413
|
/**
|
|
1398
1414
|
* @excluding legendItemClick
|
|
1415
|
+
* @product highcharts
|
|
1399
1416
|
* @apioption series.pie.events
|
|
1400
1417
|
*/
|
|
@@ -157,7 +157,11 @@ H.PlotLineOrBand.prototype = {
|
|
|
157
157
|
|
|
158
158
|
// Set the path or return
|
|
159
159
|
if (isLine) {
|
|
160
|
-
path = axis.getPlotLinePath(
|
|
160
|
+
path = axis.getPlotLinePath({
|
|
161
|
+
value: value,
|
|
162
|
+
lineWidth: svgElem.strokeWidth(),
|
|
163
|
+
acrossPanes: options.acrossPanes
|
|
164
|
+
});
|
|
161
165
|
} else if (isBand) { // plot band
|
|
162
166
|
path = axis.getPlotBandPath(from, to, options);
|
|
163
167
|
} else {
|
|
@@ -325,6 +329,16 @@ H.extend(Axis.prototype, /** @lends Highcharts.Axis.prototype */ {
|
|
|
325
329
|
* @apioption xAxis.plotBands
|
|
326
330
|
*/
|
|
327
331
|
|
|
332
|
+
/**
|
|
333
|
+
* Flag to decide if plotBand should be rendered across all panes.
|
|
334
|
+
*
|
|
335
|
+
* @since 7.1.2
|
|
336
|
+
* @product highstock
|
|
337
|
+
* @type {boolean}
|
|
338
|
+
* @default true
|
|
339
|
+
* @apioption xAxis.plotBands.acrossPanes
|
|
340
|
+
*/
|
|
341
|
+
|
|
328
342
|
/**
|
|
329
343
|
* Border color for the plot band. Also requires `borderWidth` to be set.
|
|
330
344
|
*
|
|
@@ -566,6 +580,19 @@ H.extend(Axis.prototype, /** @lends Highcharts.Axis.prototype */ {
|
|
|
566
580
|
* @apioption xAxis.plotLines
|
|
567
581
|
*/
|
|
568
582
|
|
|
583
|
+
/**
|
|
584
|
+
* Flag to decide if plotLine should be rendered across all panes.
|
|
585
|
+
*
|
|
586
|
+
* @sample {highstock} stock/xaxis/plotlines-acrosspanes/
|
|
587
|
+
* Plot lines on different panes
|
|
588
|
+
*
|
|
589
|
+
* @since 7.1.2
|
|
590
|
+
* @product highstock
|
|
591
|
+
* @type {boolean}
|
|
592
|
+
* @default true
|
|
593
|
+
* @apioption xAxis.plotLines.acrossPanes
|
|
594
|
+
*/
|
|
595
|
+
|
|
569
596
|
/**
|
|
570
597
|
* A custom class name, in addition to the default `highcharts-plot-line`,
|
|
571
598
|
* to apply to each individual line.
|
|
@@ -864,8 +891,16 @@ H.extend(Axis.prototype, /** @lends Highcharts.Axis.prototype */ {
|
|
|
864
891
|
* The SVG path definition in array form.
|
|
865
892
|
*/
|
|
866
893
|
getPlotBandPath: function (from, to) {
|
|
867
|
-
var toPath = this.getPlotLinePath(
|
|
868
|
-
|
|
894
|
+
var toPath = this.getPlotLinePath({
|
|
895
|
+
value: to,
|
|
896
|
+
force: true,
|
|
897
|
+
acrossPanes: this.options.acrossPanes
|
|
898
|
+
}),
|
|
899
|
+
path = this.getPlotLinePath({
|
|
900
|
+
value: from,
|
|
901
|
+
force: true,
|
|
902
|
+
acrossPanes: this.options.acrossPanes
|
|
903
|
+
}),
|
|
869
904
|
result = [],
|
|
870
905
|
i,
|
|
871
906
|
// #4964 check if chart is inverted or plotband is on yAxis
|