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
|
@@ -253,9 +253,7 @@ seriesType('timeline', 'line',
|
|
|
253
253
|
dataLabel.targetPosition = {};
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
return
|
|
257
|
-
point.drawConnector() :
|
|
258
|
-
point.alignConnector();
|
|
256
|
+
return point.drawConnector();
|
|
259
257
|
}
|
|
260
258
|
});
|
|
261
259
|
});
|
|
@@ -524,7 +522,8 @@ seriesType('timeline', 'line',
|
|
|
524
522
|
y2: isNumber(targetDLPos.y) ? targetDLPos.y : dl.y
|
|
525
523
|
},
|
|
526
524
|
negativeDistance = (
|
|
527
|
-
dl.alignAttr[direction[0]] <
|
|
525
|
+
(dl.alignAttr || dl)[direction[0]] <
|
|
526
|
+
point.series.yAxis.len / 2
|
|
528
527
|
),
|
|
529
528
|
path;
|
|
530
529
|
|
|
@@ -546,7 +545,7 @@ seriesType('timeline', 'line',
|
|
|
546
545
|
|
|
547
546
|
// Change coordinates so that they will be relative to data label.
|
|
548
547
|
H.objectEach(coords, function (_coord, i) {
|
|
549
|
-
coords[i] -= dl.alignAttr[i[0]];
|
|
548
|
+
coords[i] -= (dl.alignAttr || dl)[i[0]];
|
|
550
549
|
});
|
|
551
550
|
|
|
552
551
|
path = chart.renderer.crispLine([
|
|
@@ -564,14 +563,20 @@ seriesType('timeline', 'line',
|
|
|
564
563
|
var point = this,
|
|
565
564
|
series = point.series;
|
|
566
565
|
|
|
567
|
-
point.connector
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
566
|
+
if (!point.connector) {
|
|
567
|
+
point.connector = series.chart.renderer
|
|
568
|
+
.path(point.getConnectorPath())
|
|
569
|
+
.attr({
|
|
570
|
+
zIndex: -1
|
|
571
|
+
})
|
|
572
|
+
.add(point.dataLabel);
|
|
573
|
+
}
|
|
573
574
|
|
|
574
|
-
point.
|
|
575
|
+
if (point.series.chart.isInsidePlot( // #10507
|
|
576
|
+
point.dataLabel.x, point.dataLabel.y
|
|
577
|
+
)) {
|
|
578
|
+
point.alignConnector();
|
|
579
|
+
}
|
|
575
580
|
},
|
|
576
581
|
alignConnector: function () {
|
|
577
582
|
var point = this,
|
|
@@ -1711,12 +1711,12 @@ seriesType(
|
|
|
1711
1711
|
},
|
|
1712
1712
|
|
|
1713
1713
|
/**
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1714
|
+
* Workaround for `inactive` state. Since `series.opacity` option is
|
|
1715
|
+
* already reserved, don't use that state at all by disabling
|
|
1716
|
+
* `inactiveOtherPoints` and not inheriting states by points.
|
|
1717
|
+
*
|
|
1718
|
+
* @private
|
|
1719
|
+
*/
|
|
1720
1720
|
setState: function (state) {
|
|
1721
1721
|
this.options.inactiveOtherPoints = true;
|
|
1722
1722
|
Series.prototype.setState.call(this, state, false);
|
|
@@ -26,33 +26,33 @@ var addEvent = H.addEvent,
|
|
|
26
26
|
seriesType('variwide', 'column'
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
*/
|
|
46
|
-
, {
|
|
47
|
-
/**
|
|
48
|
-
* In a variwide chart, the point padding is 0 in order to express the
|
|
49
|
-
* horizontal stacking of items.
|
|
29
|
+
* A variwide chart (related to marimekko chart) is a column chart with a
|
|
30
|
+
* variable width expressing a third dimension.
|
|
31
|
+
*
|
|
32
|
+
* @sample {highcharts} highcharts/demo/variwide/
|
|
33
|
+
* Variwide chart
|
|
34
|
+
* @sample {highcharts} highcharts/series-variwide/inverted/
|
|
35
|
+
* Inverted variwide chart
|
|
36
|
+
* @sample {highcharts} highcharts/series-variwide/datetime/
|
|
37
|
+
* Variwide columns on a datetime axis
|
|
38
|
+
*
|
|
39
|
+
* @extends plotOptions.column
|
|
40
|
+
* @since 6.0.0
|
|
41
|
+
* @product highcharts
|
|
42
|
+
* @excluding boostThreshold, crisp, depth, edgeColor, edgeWidth,
|
|
43
|
+
* groupZPadding
|
|
44
|
+
* @optionparent plotOptions.variwide
|
|
50
45
|
*/
|
|
46
|
+
, {
|
|
47
|
+
/**
|
|
48
|
+
* In a variwide chart, the point padding is 0 in order to express the
|
|
49
|
+
* horizontal stacking of items.
|
|
50
|
+
*/
|
|
51
51
|
pointPadding: 0,
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
* In a variwide chart, the group padding is 0 in order to express the
|
|
54
|
+
* horizontal stacking of items.
|
|
55
|
+
*/
|
|
56
56
|
groupPadding: 0
|
|
57
57
|
}, {
|
|
58
58
|
pointArrayMap: ['y', 'z'],
|
|
@@ -79,21 +79,21 @@ seriesType('variwide', 'column'
|
|
|
79
79
|
},
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
82
|
+
* Translate an x value inside a given category index into the distorted
|
|
83
|
+
* axis translation.
|
|
84
|
+
*
|
|
85
|
+
* @private
|
|
86
|
+
* @function Highcharts.Series#postTranslate
|
|
87
|
+
*
|
|
88
|
+
* @param {number} index
|
|
89
|
+
* The category index
|
|
90
|
+
*
|
|
91
|
+
* @param {number} x
|
|
92
|
+
* The X pixel position in undistorted axis pixels
|
|
93
|
+
*
|
|
94
|
+
* @return {number}
|
|
95
|
+
* Distorted X position
|
|
96
|
+
*/
|
|
97
97
|
postTranslate: function (index, x, point) {
|
|
98
98
|
|
|
99
99
|
var axis = this.xAxis,
|
|
@@ -24,43 +24,43 @@ var seriesType = H.seriesType;
|
|
|
24
24
|
seriesType('vector', 'scatter'
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
* A vector plot is a type of cartesian chart where each point has an X and
|
|
28
|
+
* Y position, a length and a direction. Vectors are drawn as arrows.
|
|
29
|
+
*
|
|
30
|
+
* @sample {highcharts|highstock} highcharts/demo/vector-plot/
|
|
31
|
+
* Vector pot
|
|
32
|
+
*
|
|
33
|
+
* @since 6.0.0
|
|
34
|
+
* @extends plotOptions.scatter
|
|
35
|
+
* @excluding boostThreshold, marker, connectEnds, connectNulls,
|
|
36
|
+
* cropThreshold, dashStyle, gapSize, gapUnit, dataGrouping,
|
|
37
|
+
* linecap, shadow, stacking, step, jitter
|
|
38
|
+
* @product highcharts highstock
|
|
39
|
+
* @optionparent plotOptions.vector
|
|
40
|
+
*/
|
|
41
41
|
, {
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
* The line width for each vector arrow.
|
|
45
|
+
*/
|
|
46
46
|
lineWidth: 2,
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
* @ignore
|
|
50
|
+
*/
|
|
51
51
|
marker: null,
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
54
|
+
* What part of the vector it should be rotated around. Can be one of
|
|
55
|
+
* `start`, `center` and `end`. When `start`, the vectors will start
|
|
56
|
+
* from the given [x, y] position, and when `end` the vectors will end
|
|
57
|
+
* in the [x, y] position.
|
|
58
|
+
*
|
|
59
|
+
* @sample highcharts/plotoptions/vector-rotationorigin-start/
|
|
60
|
+
* Rotate from start
|
|
61
|
+
*
|
|
62
|
+
* @validvalue ["start", "center", "end"]
|
|
63
|
+
*/
|
|
64
64
|
rotationOrigin: 'center',
|
|
65
65
|
|
|
66
66
|
states: {
|
|
@@ -68,8 +68,9 @@ seriesType('vector', 'scatter'
|
|
|
68
68
|
hover: {
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
* Additonal line width for the vector errors when they are
|
|
72
|
+
* hovered.
|
|
73
|
+
*/
|
|
73
74
|
lineWidthPlus: 1
|
|
74
75
|
}
|
|
75
76
|
},
|
|
@@ -77,15 +78,15 @@ seriesType('vector', 'scatter'
|
|
|
77
78
|
tooltip: {
|
|
78
79
|
|
|
79
80
|
/**
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
* @default [{point.x}, {point.y}] Length: {point.length} Direction: {point.direction}°
|
|
82
|
+
*/
|
|
82
83
|
pointFormat: '<b>[{point.x}, {point.y}]</b><br/>Length: <b>{point.length}</b><br/>Direction: <b>{point.direction}\u00B0</b><br/>'
|
|
83
84
|
},
|
|
84
85
|
|
|
85
86
|
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
* Maximum length of the arrows in the vector plot. The individual arrow
|
|
88
|
+
* length is computed between 0 and this value.
|
|
89
|
+
*/
|
|
89
90
|
vectorLength: 20
|
|
90
91
|
|
|
91
92
|
}, {
|
|
@@ -94,17 +95,17 @@ seriesType('vector', 'scatter'
|
|
|
94
95
|
parallelArrays: ['x', 'y', 'length', 'direction'],
|
|
95
96
|
|
|
96
97
|
/**
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
* Get presentational attributes.
|
|
99
|
+
*
|
|
100
|
+
* @private
|
|
101
|
+
* @function Highcharts.seriesTypes.vector#pointAttribs
|
|
102
|
+
*
|
|
103
|
+
* @param {Highcharts.Point} point
|
|
104
|
+
*
|
|
105
|
+
* @param {string} state
|
|
106
|
+
*
|
|
107
|
+
* @return {*}
|
|
108
|
+
*/
|
|
108
109
|
pointAttribs: function (point, state) {
|
|
109
110
|
var options = this.options,
|
|
110
111
|
stroke = point.color || this.color,
|
|
@@ -124,30 +125,30 @@ seriesType('vector', 'scatter'
|
|
|
124
125
|
},
|
|
125
126
|
|
|
126
127
|
/**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
* @ignore
|
|
129
|
+
* @deprecated
|
|
130
|
+
* @function Highcharts.seriesTypes.vector#markerAttribs
|
|
131
|
+
*/
|
|
131
132
|
markerAttribs: H.noop,
|
|
132
133
|
|
|
133
134
|
/**
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
* @ignore
|
|
136
|
+
* @deprecated
|
|
137
|
+
* @function Highcharts.seriesTypes.vector#getSymbol
|
|
138
|
+
*/
|
|
138
139
|
getSymbol: H.noop,
|
|
139
140
|
|
|
140
141
|
/**
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
142
|
+
* Create a single arrow. It is later rotated around the zero
|
|
143
|
+
* centerpoint.
|
|
144
|
+
*
|
|
145
|
+
* @private
|
|
146
|
+
* @function Highcharts.seriesTypes.vector#arrow
|
|
147
|
+
*
|
|
148
|
+
* @param {Highcharts.Point} point
|
|
149
|
+
*
|
|
150
|
+
* @return {Highcharts.SVGPathArray}
|
|
151
|
+
*/
|
|
151
152
|
arrow: function (point) {
|
|
152
153
|
var path,
|
|
153
154
|
fraction = point.length / this.lengthMax,
|
|
@@ -173,9 +174,9 @@ seriesType('vector', 'scatter'
|
|
|
173
174
|
},
|
|
174
175
|
|
|
175
176
|
/**
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
* @private
|
|
178
|
+
* @function Highcharts.seriesTypes.vector#translate
|
|
179
|
+
*/
|
|
179
180
|
translate: function () {
|
|
180
181
|
H.Series.prototype.translate.call(this);
|
|
181
182
|
|
|
@@ -183,9 +184,9 @@ seriesType('vector', 'scatter'
|
|
|
183
184
|
},
|
|
184
185
|
|
|
185
186
|
/**
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
* @private
|
|
188
|
+
* @function Highcharts.seriesTypes.vector#drawPoints
|
|
189
|
+
*/
|
|
189
190
|
drawPoints: function () {
|
|
190
191
|
|
|
191
192
|
var chart = this.chart;
|
|
@@ -221,48 +222,48 @@ seriesType('vector', 'scatter'
|
|
|
221
222
|
},
|
|
222
223
|
|
|
223
224
|
/**
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
225
|
+
* @ignore
|
|
226
|
+
* @deprecated
|
|
227
|
+
* @function Highcharts.seriesTypes.vector#drawGraph
|
|
228
|
+
*/
|
|
228
229
|
drawGraph: H.noop,
|
|
229
230
|
|
|
230
231
|
/*
|
|
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
|
-
|
|
232
|
+
drawLegendSymbol: function (legend, item) {
|
|
233
|
+
var options = legend.options,
|
|
234
|
+
symbolHeight = legend.symbolHeight,
|
|
235
|
+
square = options.squareSymbol,
|
|
236
|
+
symbolWidth = square ? symbolHeight : legend.symbolWidth,
|
|
237
|
+
path = this.arrow.call({
|
|
238
|
+
lengthMax: 1,
|
|
239
|
+
options: {
|
|
240
|
+
vectorLength: symbolWidth
|
|
241
|
+
}
|
|
242
|
+
}, {
|
|
243
|
+
length: 1
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
item.legendLine = this.chart.renderer.path(path)
|
|
247
|
+
.addClass('highcharts-point')
|
|
248
|
+
.attr({
|
|
249
|
+
zIndex: 3,
|
|
250
|
+
translateY: symbolWidth / 2,
|
|
251
|
+
rotation: 270,
|
|
252
|
+
'stroke-width': 1,
|
|
253
|
+
'stroke': 'black'
|
|
254
|
+
}).add(item.legendGroup);
|
|
255
|
+
|
|
256
|
+
},
|
|
257
|
+
*/
|
|
257
258
|
|
|
258
259
|
/**
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
260
|
+
* Fade in the arrows on initializing series.
|
|
261
|
+
*
|
|
262
|
+
* @private
|
|
263
|
+
* @function Highcharts.seriesTypes.vector#animate
|
|
264
|
+
*
|
|
265
|
+
* @param {boolean} [init]
|
|
266
|
+
*/
|
|
266
267
|
animate: function (init) {
|
|
267
268
|
if (init) {
|
|
268
269
|
this.markerGroup.attr({
|
|
@@ -1007,12 +1007,14 @@ var vennSeries = {
|
|
|
1007
1007
|
|
|
1008
1008
|
// Iterate all points and calculate and draw their graphics.
|
|
1009
1009
|
points.forEach(function (point) {
|
|
1010
|
-
var attribs
|
|
1010
|
+
var attribs = {
|
|
1011
|
+
zIndex: isArray(point.sets) ? point.sets.length : 0
|
|
1012
|
+
},
|
|
1011
1013
|
shapeArgs = point.shapeArgs;
|
|
1012
1014
|
|
|
1013
1015
|
// Add point attribs
|
|
1014
1016
|
if (!chart.styledMode) {
|
|
1015
|
-
attribs
|
|
1017
|
+
extend(attribs, series.pointAttribs(point, point.state));
|
|
1016
1018
|
}
|
|
1017
1019
|
// Draw the point graphic.
|
|
1018
1020
|
point.draw({
|
|
@@ -59,21 +59,21 @@ registerApproximation();
|
|
|
59
59
|
seriesType('windbarb', 'column'
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
62
|
+
* Wind barbs are a convenient way to represent wind speed and direction in
|
|
63
|
+
* one graphical form. Wind direction is given by the stem direction, and
|
|
64
|
+
* wind speed by the number and shape of barbs.
|
|
65
|
+
*
|
|
66
|
+
* @sample {highcharts|highstock} highcharts/demo/windbarb-series/
|
|
67
|
+
* Wind barb series
|
|
68
|
+
*
|
|
69
|
+
* @extends plotOptions.column
|
|
70
|
+
* @excluding boostThreshold, marker, connectEnds, connectNulls,
|
|
71
|
+
* cropThreshold, dashStyle, dragDrop, gapSize, gapUnit,
|
|
72
|
+
* linecap, shadow, stacking, step
|
|
73
|
+
* @since 6.0.0
|
|
74
|
+
* @product highcharts highstock
|
|
75
|
+
* @optionparent plotOptions.windbarb
|
|
76
|
+
*/
|
|
77
77
|
, {
|
|
78
78
|
/**
|
|
79
79
|
* Data grouping options for the wind barbs. In Highcharts, this
|
|
@@ -115,15 +115,15 @@ seriesType('windbarb', 'column'
|
|
|
115
115
|
*/
|
|
116
116
|
lineWidth: 2,
|
|
117
117
|
/**
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
118
|
+
* The id of another series in the chart that the wind barbs are
|
|
119
|
+
* projected on. When `null`, the wind symbols are drawn on the X axis,
|
|
120
|
+
* but offset up or down by the `yOffset` setting.
|
|
121
|
+
*
|
|
122
|
+
* @sample {highcharts|highstock} highcharts/plotoptions/windbarb-onseries
|
|
123
|
+
* Projected on area series
|
|
124
|
+
*
|
|
125
|
+
* @type {string|null}
|
|
126
|
+
*/
|
|
127
127
|
onSeries: null,
|
|
128
128
|
states: {
|
|
129
129
|
hover: {
|
|
@@ -131,32 +131,32 @@ seriesType('windbarb', 'column'
|
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
tooltip: {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
/**
|
|
135
|
+
* The default point format for the wind barb tooltip. Note the
|
|
136
|
+
* `point.beaufort` property that refers to the Beaufort wind scale.
|
|
137
|
+
* The names can be internationalized by modifying
|
|
138
|
+
* `Highcharts.seriesTypes.windbarb.prototype.beaufortNames`.
|
|
139
|
+
*/
|
|
140
140
|
pointFormat: '<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.value}</b> ({point.beaufort})<br/>'
|
|
141
141
|
},
|
|
142
142
|
/**
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
* Pixel length of the stems.
|
|
144
|
+
*/
|
|
145
145
|
vectorLength: 20,
|
|
146
146
|
/**
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
* Vertical offset from the cartesian position, in pixels. The default
|
|
148
|
+
* value makes sure the symbols don't overlap the X axis when `onSeries`
|
|
149
|
+
* is `null`, and that they don't overlap the linked series when
|
|
150
|
+
* `onSeries` is given.
|
|
151
|
+
*/
|
|
152
152
|
yOffset: -20,
|
|
153
153
|
/**
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
* Horizontal offset from the cartesian position, in pixels. When the
|
|
155
|
+
* chart is inverted, this option allows translation like
|
|
156
|
+
* [yOffset](#plotOptions.windbarb.yOffset) in non inverted charts.
|
|
157
|
+
*
|
|
158
|
+
* @since 6.1.0
|
|
159
|
+
*/
|
|
160
160
|
xOffset: 0
|
|
161
161
|
}, {
|
|
162
162
|
pointArrayMap: ['value', 'direction'],
|