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
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
* Popup generator for Stock tools
|
|
1
|
+
/* *
|
|
3
2
|
*
|
|
4
|
-
*
|
|
3
|
+
* Popup generator for Stock tools
|
|
5
4
|
*
|
|
6
|
-
*
|
|
7
|
-
|
|
5
|
+
* (c) 2009-2017 Sebastian Bochan
|
|
6
|
+
*
|
|
7
|
+
* License: www.highcharts.com/license
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
8
10
|
'use strict';
|
|
9
11
|
import H from '../parts/Globals.js';
|
|
10
12
|
|
|
@@ -49,13 +51,11 @@ H.Popup = function (parentDiv) {
|
|
|
49
51
|
};
|
|
50
52
|
|
|
51
53
|
H.Popup.prototype = {
|
|
52
|
-
|
|
54
|
+
/**
|
|
53
55
|
* Initialize the popup. Create base div and add close button.
|
|
54
|
-
*
|
|
56
|
+
* @private
|
|
55
57
|
* @param {HTMLDOMElement} - container where popup should be placed
|
|
56
|
-
*
|
|
57
58
|
* @return {HTMLDOMElement} - return created popup's div
|
|
58
|
-
*
|
|
59
59
|
*/
|
|
60
60
|
init: function (parentDiv) {
|
|
61
61
|
|
|
@@ -69,9 +69,9 @@ H.Popup.prototype = {
|
|
|
69
69
|
// add close button
|
|
70
70
|
this.addCloseBtn();
|
|
71
71
|
},
|
|
72
|
-
|
|
72
|
+
/**
|
|
73
73
|
* Create HTML element and attach click event (close popup).
|
|
74
|
-
*
|
|
74
|
+
* @private
|
|
75
75
|
*/
|
|
76
76
|
addCloseBtn: function () {
|
|
77
77
|
var _self = this,
|
|
@@ -88,13 +88,11 @@ H.Popup.prototype = {
|
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
},
|
|
91
|
-
|
|
91
|
+
/**
|
|
92
92
|
* Create two columns (divs) in HTML.
|
|
93
|
-
*
|
|
93
|
+
* @private
|
|
94
94
|
* @param {HTMLDOMElement} - container of columns
|
|
95
|
-
*
|
|
96
95
|
* @return {Object} - reference to two HTML columns
|
|
97
|
-
*
|
|
98
96
|
*/
|
|
99
97
|
addColsContainer: function (container) {
|
|
100
98
|
var rhsCol,
|
|
@@ -120,15 +118,14 @@ H.Popup.prototype = {
|
|
|
120
118
|
rhsCol: rhsCol
|
|
121
119
|
};
|
|
122
120
|
},
|
|
123
|
-
|
|
121
|
+
/**
|
|
124
122
|
* Create input with label.
|
|
125
|
-
*
|
|
123
|
+
* @private
|
|
126
124
|
* @param {String} - chain of fields i.e params.styles.fontSize
|
|
127
125
|
* @param {String} - indicator type
|
|
128
126
|
* @param {HTMLDOMElement} - container where elements should be added
|
|
129
127
|
* @param {String} - dafault value of input i.e period value is 14,
|
|
130
128
|
* extracted from defaultOptions (ADD mode) or series options (EDIT mode)
|
|
131
|
-
*
|
|
132
129
|
*/
|
|
133
130
|
addInput: function (option, type, parentDiv, value) {
|
|
134
131
|
var optionParamList = option.split('.'),
|
|
@@ -161,15 +158,14 @@ H.Popup.prototype = {
|
|
|
161
158
|
parentDiv
|
|
162
159
|
).setAttribute(PREFIX + 'data-name', option);
|
|
163
160
|
},
|
|
164
|
-
|
|
161
|
+
/**
|
|
165
162
|
* Create button.
|
|
166
|
-
*
|
|
163
|
+
* @private
|
|
167
164
|
* @param {HTMLDOMElement} - container where elements should be added
|
|
168
165
|
* @param {String} - text placed as button label
|
|
169
166
|
* @param {String} - add | edit | remove
|
|
170
167
|
* @param {Function} - on click callback
|
|
171
168
|
* @param {HTMLDOMElement} - container where inputs are generated
|
|
172
|
-
*
|
|
173
169
|
* @return {HTMLDOMElement} - html button
|
|
174
170
|
*/
|
|
175
171
|
addButton: function (parentDiv, label, type, callback, fieldsDiv) {
|
|
@@ -194,12 +190,11 @@ H.Popup.prototype = {
|
|
|
194
190
|
|
|
195
191
|
return button;
|
|
196
192
|
},
|
|
197
|
-
|
|
193
|
+
/**
|
|
198
194
|
* Get values from all inputs and create JSON.
|
|
199
|
-
*
|
|
195
|
+
* @private
|
|
200
196
|
* @param {HTMLDOMElement} - container where inputs are created
|
|
201
197
|
* @param {String} - add | edit | remove
|
|
202
|
-
*
|
|
203
198
|
* @return {Object} - fields
|
|
204
199
|
*/
|
|
205
200
|
getFields: function (parentDiv, type) {
|
|
@@ -241,12 +236,11 @@ H.Popup.prototype = {
|
|
|
241
236
|
|
|
242
237
|
return fieldsOutput;
|
|
243
238
|
},
|
|
244
|
-
|
|
239
|
+
/**
|
|
245
240
|
* Reset content of the current popup and show.
|
|
246
|
-
*
|
|
241
|
+
* @private
|
|
247
242
|
* @param {Chart} - chart
|
|
248
243
|
* @param {Function} - on click callback
|
|
249
|
-
*
|
|
250
244
|
* @return {Object} - fields
|
|
251
245
|
*/
|
|
252
246
|
showPopup: function () {
|
|
@@ -271,21 +265,20 @@ H.Popup.prototype = {
|
|
|
271
265
|
popupDiv.appendChild(popupCloseBtn);
|
|
272
266
|
popupDiv.style.display = 'block';
|
|
273
267
|
},
|
|
274
|
-
|
|
268
|
+
/**
|
|
275
269
|
* Hide popup.
|
|
276
|
-
*
|
|
270
|
+
* @private
|
|
277
271
|
*/
|
|
278
272
|
closePopup: function () {
|
|
279
273
|
this.popup.container.style.display = 'none';
|
|
280
274
|
},
|
|
281
|
-
|
|
275
|
+
/**
|
|
282
276
|
* Create content and show popup.
|
|
283
|
-
*
|
|
277
|
+
* @private
|
|
284
278
|
* @param {String} - type of popup i.e indicators
|
|
285
279
|
* @param {Chart} - chart
|
|
286
280
|
* @param {Object} - options
|
|
287
281
|
* @param {Function} - on click callback
|
|
288
|
-
*
|
|
289
282
|
*/
|
|
290
283
|
showForm: function (type, chart, options, callback) {
|
|
291
284
|
|
|
@@ -314,23 +307,22 @@ H.Popup.prototype = {
|
|
|
314
307
|
this.annotations.addForm.call(this, chart, options, callback, true);
|
|
315
308
|
}
|
|
316
309
|
},
|
|
317
|
-
|
|
310
|
+
/**
|
|
318
311
|
* Return lang definitions for popup.
|
|
319
|
-
*
|
|
312
|
+
* @private
|
|
320
313
|
* @return {Object} - elements translations.
|
|
321
314
|
*/
|
|
322
315
|
getLangpack: function () {
|
|
323
316
|
return H.getOptions().lang.navigation.popup;
|
|
324
317
|
},
|
|
325
318
|
annotations: {
|
|
326
|
-
|
|
319
|
+
/**
|
|
327
320
|
* Create annotation simple form. It contains two buttons
|
|
328
321
|
* (edit / remove) and text label.
|
|
329
|
-
*
|
|
322
|
+
* @private
|
|
330
323
|
* @param {Chart} - chart
|
|
331
324
|
* @param {Object} - options
|
|
332
325
|
* @param {Function} - on click callback
|
|
333
|
-
*
|
|
334
326
|
*/
|
|
335
327
|
addToolbar: function (chart, options, callback) {
|
|
336
328
|
var _self = this,
|
|
@@ -387,15 +379,14 @@ H.Popup.prototype = {
|
|
|
387
379
|
|
|
388
380
|
button.className += ' ' + PREFIX + 'annotation-edit-button';
|
|
389
381
|
},
|
|
390
|
-
|
|
382
|
+
/**
|
|
391
383
|
* Create annotation simple form.
|
|
392
384
|
* It contains fields with param names.
|
|
393
|
-
*
|
|
385
|
+
* @private
|
|
394
386
|
* @param {Chart} - chart
|
|
395
387
|
* @param {Object} - options
|
|
396
388
|
* @param {Function} - on click callback
|
|
397
389
|
* @param {Boolean} - if it is a form declared for init annotation
|
|
398
|
-
*
|
|
399
390
|
*/
|
|
400
391
|
addForm: function (chart, options, callback, isInit) {
|
|
401
392
|
var popupDiv = this.popup.container,
|
|
@@ -438,16 +429,15 @@ H.Popup.prototype = {
|
|
|
438
429
|
popupDiv
|
|
439
430
|
);
|
|
440
431
|
},
|
|
441
|
-
|
|
432
|
+
/**
|
|
442
433
|
* Create annotation's form fields.
|
|
443
|
-
*
|
|
434
|
+
* @private
|
|
444
435
|
* @param {HTMLDOMElement} - div where inputs are placed
|
|
445
436
|
* @param {Chart} - chart
|
|
446
437
|
* @param {String} - name of parent to create chain of names
|
|
447
438
|
* @param {Object} - options
|
|
448
439
|
* @param {Array} - storage - array where all items are stored
|
|
449
440
|
* @param {Boolean} - isRoot - recursive flag for root
|
|
450
|
-
*
|
|
451
441
|
*/
|
|
452
442
|
addFormFields: function (
|
|
453
443
|
parentDiv,
|
|
@@ -527,14 +517,13 @@ H.Popup.prototype = {
|
|
|
527
517
|
}
|
|
528
518
|
},
|
|
529
519
|
indicators: {
|
|
530
|
-
|
|
520
|
+
/**
|
|
531
521
|
* Create indicator's form. It contains two tabs (ADD and EDIT) with
|
|
532
522
|
* content.
|
|
533
|
-
*
|
|
523
|
+
* @private
|
|
534
524
|
* @param {Chart} - chart
|
|
535
525
|
* @param {Object} - options
|
|
536
526
|
* @param {Function} - on click callback
|
|
537
|
-
*
|
|
538
527
|
*/
|
|
539
528
|
addForm: function (chart, options, callback) {
|
|
540
529
|
|
|
@@ -597,14 +586,13 @@ H.Popup.prototype = {
|
|
|
597
586
|
buttonParentDiv
|
|
598
587
|
);
|
|
599
588
|
},
|
|
600
|
-
|
|
589
|
+
/**
|
|
601
590
|
* Create HTML list of all indicators (ADD mode) or added indicators
|
|
602
591
|
* (EDIT mode).
|
|
603
|
-
*
|
|
592
|
+
* @private
|
|
604
593
|
* @param {Chart} - chart
|
|
605
594
|
* @param {HTMLDOMElement} - container where list is added
|
|
606
595
|
* @param {String} - 'edit' or 'add' mode
|
|
607
|
-
*
|
|
608
596
|
*/
|
|
609
597
|
addIndicatorList: function (chart, parentDiv, listType) {
|
|
610
598
|
var _self = this,
|
|
@@ -678,15 +666,13 @@ H.Popup.prototype = {
|
|
|
678
666
|
indicatorList.childNodes[0].click();
|
|
679
667
|
}
|
|
680
668
|
},
|
|
681
|
-
|
|
669
|
+
/**
|
|
682
670
|
* Extract full name and type of requested indicator.
|
|
683
|
-
*
|
|
671
|
+
* @private
|
|
684
672
|
* @param {Series} - series which name is needed.
|
|
685
673
|
* (EDIT mode - defaultOptions.series, ADD mode - indicator series).
|
|
686
674
|
* @param {String} - indicator type like: sma, ema, etc.
|
|
687
|
-
*
|
|
688
675
|
* @return {Object} - series name and type like: sma, ema, etc.
|
|
689
|
-
*
|
|
690
676
|
*/
|
|
691
677
|
getNameType: function (series, type) {
|
|
692
678
|
var options = series.options,
|
|
@@ -707,15 +693,14 @@ H.Popup.prototype = {
|
|
|
707
693
|
type: seriesType
|
|
708
694
|
};
|
|
709
695
|
},
|
|
710
|
-
|
|
696
|
+
/**
|
|
711
697
|
* List all series with unique ID. Its mandatory for indicators to set
|
|
712
698
|
* correct linking.
|
|
713
|
-
*
|
|
699
|
+
* @private
|
|
714
700
|
* @param {String} - indicator type like: sma, ema, etc.
|
|
715
701
|
* @param {String} - type of select i.e series or volume.
|
|
716
702
|
* @param {Chart} - chart
|
|
717
703
|
* @param {HTMLDOMElement} - element where created HTML list is added
|
|
718
|
-
*
|
|
719
704
|
*/
|
|
720
705
|
listAllSeries: function (type, optionName, chart, parentDiv) {
|
|
721
706
|
var selectName = PREFIX + optionName + '-type-' + type,
|
|
@@ -767,18 +752,17 @@ H.Popup.prototype = {
|
|
|
767
752
|
}
|
|
768
753
|
});
|
|
769
754
|
},
|
|
770
|
-
|
|
755
|
+
/**
|
|
771
756
|
* Create typical inputs for chosen indicator. Fields are extracted from
|
|
772
757
|
* defaultOptions (ADD mode) or current indicator (ADD mode). Two extra
|
|
773
758
|
* fields are added:
|
|
774
759
|
* - hidden input - contains indicator type (required for callback)
|
|
775
760
|
* - select - list of series which can be linked with indicator
|
|
776
|
-
*
|
|
761
|
+
* @private
|
|
777
762
|
* @param {Chart} - chart
|
|
778
763
|
* @param {Series} - indicator
|
|
779
764
|
* @param {String} - indicator type like: sma, ema, etc.
|
|
780
765
|
* @param {HTMLDOMElement} - element where created HTML list is added
|
|
781
|
-
*
|
|
782
766
|
*/
|
|
783
767
|
addFormFields: function (chart, series, seriesType, rhsColWrapper) {
|
|
784
768
|
var fields = series.params || series.options.params,
|
|
@@ -839,17 +823,16 @@ H.Popup.prototype = {
|
|
|
839
823
|
rhsColWrapper
|
|
840
824
|
);
|
|
841
825
|
},
|
|
842
|
-
|
|
826
|
+
/**
|
|
843
827
|
* Recurent function which lists all fields, from params object and
|
|
844
828
|
* create them as inputs. Each input has unique `data-name` attribute,
|
|
845
829
|
* which keeps chain of fields i.e params.styles.fontSize.
|
|
846
|
-
*
|
|
830
|
+
* @private
|
|
847
831
|
* @param {Chart} - chart
|
|
848
832
|
* @param {String} - name of parent to create chain of names
|
|
849
833
|
* @param {Series} - fields - params which are based for input create
|
|
850
834
|
* @param {String} - indicator type like: sma, ema, etc.
|
|
851
835
|
* @param {HTMLDOMElement} - element where created HTML list is added
|
|
852
|
-
*
|
|
853
836
|
*/
|
|
854
837
|
addParamInputs: function (chart, parentNode, fields, type, parentDiv) {
|
|
855
838
|
var _self = this,
|
|
@@ -884,9 +867,9 @@ H.Popup.prototype = {
|
|
|
884
867
|
}
|
|
885
868
|
});
|
|
886
869
|
},
|
|
887
|
-
|
|
870
|
+
/**
|
|
888
871
|
* Get amount of indicators added to chart.
|
|
889
|
-
*
|
|
872
|
+
* @private
|
|
890
873
|
* @return {Number} - Amount of indicators
|
|
891
874
|
*/
|
|
892
875
|
getAmount: function () {
|
|
@@ -908,11 +891,10 @@ H.Popup.prototype = {
|
|
|
908
891
|
}
|
|
909
892
|
},
|
|
910
893
|
tabs: {
|
|
911
|
-
|
|
894
|
+
/**
|
|
912
895
|
* Init tabs. Create tab menu items, tabs containers
|
|
913
|
-
*
|
|
896
|
+
* @private
|
|
914
897
|
* @param {Chart} - reference to current chart
|
|
915
|
-
*
|
|
916
898
|
*/
|
|
917
899
|
init: function (chart) {
|
|
918
900
|
var tabs = this.tabs,
|
|
@@ -932,12 +914,11 @@ H.Popup.prototype = {
|
|
|
932
914
|
// activate first tab
|
|
933
915
|
tabs.selectTab.call(this, firstTab, 0);
|
|
934
916
|
},
|
|
935
|
-
|
|
917
|
+
/**
|
|
936
918
|
* Create tab menu item
|
|
937
|
-
*
|
|
919
|
+
* @private
|
|
938
920
|
* @param {String} - `add` or `edit`
|
|
939
921
|
* @param {Number} - Disable tab when 0
|
|
940
|
-
*
|
|
941
922
|
* @return {HTMLDOMElement} - created HTML tab-menu element
|
|
942
923
|
*/
|
|
943
924
|
addMenuItem: function (tabName, disableTab) {
|
|
@@ -965,11 +946,10 @@ H.Popup.prototype = {
|
|
|
965
946
|
|
|
966
947
|
return menuItem;
|
|
967
948
|
},
|
|
968
|
-
|
|
949
|
+
/**
|
|
969
950
|
* Create tab content
|
|
970
|
-
*
|
|
951
|
+
* @private
|
|
971
952
|
* @return {HTMLDOMElement} - created HTML tab-content element
|
|
972
|
-
*
|
|
973
953
|
*/
|
|
974
954
|
addContentItem: function () {
|
|
975
955
|
var popupDiv = this.popup.container;
|
|
@@ -983,11 +963,10 @@ H.Popup.prototype = {
|
|
|
983
963
|
popupDiv
|
|
984
964
|
);
|
|
985
965
|
},
|
|
986
|
-
|
|
966
|
+
/**
|
|
987
967
|
* Add click event to each tab
|
|
988
|
-
*
|
|
968
|
+
* @private
|
|
989
969
|
* @param {Number} - Disable tab when 0
|
|
990
|
-
*
|
|
991
970
|
*/
|
|
992
971
|
switchTabs: function (disableTab) {
|
|
993
972
|
var _self = this,
|
|
@@ -1013,12 +992,11 @@ H.Popup.prototype = {
|
|
|
1013
992
|
});
|
|
1014
993
|
});
|
|
1015
994
|
},
|
|
1016
|
-
|
|
995
|
+
/**
|
|
1017
996
|
* Set tab as visible
|
|
1018
|
-
*
|
|
997
|
+
* @private
|
|
1019
998
|
* @param {HTMLDOMElement} - current tab
|
|
1020
999
|
* @param {Number} - Index of tab in menu
|
|
1021
|
-
*
|
|
1022
1000
|
*/
|
|
1023
1001
|
selectTab: function (tab, index) {
|
|
1024
1002
|
var allTabs = this.popup.container
|
|
@@ -1027,9 +1005,9 @@ H.Popup.prototype = {
|
|
|
1027
1005
|
tab.className += ' ' + PREFIX + 'tab-item-active';
|
|
1028
1006
|
allTabs[index].className += ' ' + PREFIX + 'tab-item-show';
|
|
1029
1007
|
},
|
|
1030
|
-
|
|
1008
|
+
/**
|
|
1031
1009
|
* Set all tabs as invisible.
|
|
1032
|
-
*
|
|
1010
|
+
* @private
|
|
1033
1011
|
*/
|
|
1034
1012
|
deselectAll: function () {
|
|
1035
1013
|
var popupDiv = this.popup.container,
|
|
@@ -84,13 +84,24 @@ H.extendAnnotation(
|
|
|
84
84
|
/**
|
|
85
85
|
* A crooked line annotation.
|
|
86
86
|
*
|
|
87
|
-
* @excluding labels, shapes
|
|
88
87
|
* @sample highcharts/annotations-advanced/crooked-line/
|
|
89
88
|
* Crooked line
|
|
90
|
-
*
|
|
89
|
+
*
|
|
90
|
+
* @product highstock
|
|
91
91
|
* @optionparent annotations.crookedLine
|
|
92
92
|
*/
|
|
93
93
|
{
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @extends annotations.labelOptions
|
|
97
|
+
* @apioption annotations.crookedLine.labelOptions
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @extends annotations.shapeOptions
|
|
102
|
+
* @apioption annotations.crookedLine.shapeOptions
|
|
103
|
+
*/
|
|
104
|
+
|
|
94
105
|
/**
|
|
95
106
|
* Additional options for an annotation with the type.
|
|
96
107
|
*/
|
|
@@ -109,24 +120,26 @@ H.extendAnnotation(
|
|
|
109
120
|
yAxis: 0,
|
|
110
121
|
|
|
111
122
|
/**
|
|
112
|
-
* @type
|
|
123
|
+
* @type {Array<*>}
|
|
113
124
|
* @apioption annotations.crookedLine.typeOptions.points
|
|
114
125
|
*/
|
|
115
126
|
|
|
116
127
|
/**
|
|
117
128
|
* The x position of the point.
|
|
118
|
-
*
|
|
129
|
+
*
|
|
130
|
+
* @type {number}
|
|
119
131
|
* @apioption annotations.crookedLine.typeOptions.points.x
|
|
120
132
|
*/
|
|
121
133
|
|
|
122
134
|
/**
|
|
123
135
|
* The y position of the point.
|
|
124
|
-
*
|
|
136
|
+
*
|
|
137
|
+
* @type {number}
|
|
125
138
|
* @apioption annotations.crookedLine.typeOptions.points.y
|
|
126
139
|
*/
|
|
127
140
|
|
|
128
141
|
/**
|
|
129
|
-
* @type
|
|
142
|
+
* @type {number}
|
|
130
143
|
* @excluding positioner, events
|
|
131
144
|
* @apioption annotations.crookedLine.typeOptions.points.controlPoint
|
|
132
145
|
*/
|
|
@@ -134,7 +147,6 @@ H.extendAnnotation(
|
|
|
134
147
|
/**
|
|
135
148
|
* Line options.
|
|
136
149
|
*
|
|
137
|
-
* @type {Object}
|
|
138
150
|
* @excluding height, point, points, r, type, width
|
|
139
151
|
*/
|
|
140
152
|
line: {
|
|
@@ -36,22 +36,23 @@ H.extendAnnotation(ElliottWave, CrookedLine,
|
|
|
36
36
|
/**
|
|
37
37
|
* An elliott wave annotation.
|
|
38
38
|
*
|
|
39
|
-
* @extends annotations.crookedLine
|
|
40
39
|
* @sample highcharts/annotations-advanced/elliott-wave/
|
|
41
40
|
* Elliott wave
|
|
42
|
-
*
|
|
41
|
+
*
|
|
42
|
+
* @extends annotations.crookedLine
|
|
43
|
+
* @product highstock
|
|
43
44
|
* @optionparent annotations.elliottWave
|
|
44
45
|
*/
|
|
45
46
|
{
|
|
46
47
|
typeOptions: {
|
|
48
|
+
|
|
47
49
|
/**
|
|
48
|
-
* @
|
|
49
|
-
* @
|
|
50
|
-
* @apioption annotations.crookedLine.typeOptions.points.label
|
|
50
|
+
* @extends annotations.crookedLine.labelOptions
|
|
51
|
+
* @apioption annotations.elliottWave.typeOptions.points.label
|
|
51
52
|
*/
|
|
52
53
|
|
|
53
54
|
/**
|
|
54
|
-
* @ignore
|
|
55
|
+
* @ignore-options
|
|
55
56
|
*/
|
|
56
57
|
labels: ['(0)', '(A)', '(B)', '(C)', '(D)', '(E)'],
|
|
57
58
|
line: {
|
|
@@ -169,11 +169,11 @@ H.extendAnnotation(Fibonacci, Tunnel,
|
|
|
169
169
|
/**
|
|
170
170
|
* A fibonacci annotation.
|
|
171
171
|
*
|
|
172
|
-
* @extends annotations.crookedLine
|
|
173
172
|
* @sample highcharts/annotations-advanced/fibonacci/
|
|
174
173
|
* Fibonacci
|
|
175
174
|
*
|
|
176
|
-
* @
|
|
175
|
+
* @extends annotations.crookedLine
|
|
176
|
+
* @product highstock
|
|
177
177
|
* @optionparent annotations.fibonacci
|
|
178
178
|
*/
|
|
179
179
|
{
|
|
@@ -186,16 +186,16 @@ H.extendAnnotation(Fibonacci, Tunnel,
|
|
|
186
186
|
/**
|
|
187
187
|
* An array of background colors:
|
|
188
188
|
* Default to:
|
|
189
|
-
*
|
|
190
|
-
[
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
]
|
|
198
|
-
|
|
189
|
+
* ```
|
|
190
|
+
* [
|
|
191
|
+
* 'rgba(130, 170, 255, 0.4)',
|
|
192
|
+
* 'rgba(139, 191, 216, 0.4)',
|
|
193
|
+
* 'rgba(150, 216, 192, 0.4)',
|
|
194
|
+
* 'rgba(156, 229, 161, 0.4)',
|
|
195
|
+
* 'rgba(162, 241, 130, 0.4)',
|
|
196
|
+
* 'rgba(169, 255, 101, 0.4)'
|
|
197
|
+
* ]
|
|
198
|
+
* ```
|
|
199
199
|
*/
|
|
200
200
|
backgroundColors: [
|
|
201
201
|
'rgba(130, 170, 255, 0.4)',
|
|
@@ -219,8 +219,8 @@ H.extendAnnotation(Fibonacci, Tunnel,
|
|
|
219
219
|
/**
|
|
220
220
|
* An array with options for the labels.
|
|
221
221
|
*
|
|
222
|
-
* @type
|
|
223
|
-
* @extends
|
|
222
|
+
* @type {Array<object>}
|
|
223
|
+
* @extends annotations.crookedLine.labelOptions
|
|
224
224
|
* @apioption annotations.fibonacci.typeOptions.labels
|
|
225
225
|
*/
|
|
226
226
|
labels: []
|
|
@@ -142,7 +142,8 @@ InfinityLine.startEdgePoint = edgePoint(1, 0);
|
|
|
142
142
|
H.extendAnnotation(
|
|
143
143
|
InfinityLine,
|
|
144
144
|
CrookedLine,
|
|
145
|
-
/** @lends Annotation.InfinityLine# */
|
|
145
|
+
/** @lends Annotation.InfinityLine# */
|
|
146
|
+
{
|
|
146
147
|
addShapes: function () {
|
|
147
148
|
var typeOptions = this.options.typeOptions,
|
|
148
149
|
points = [
|
|
@@ -171,12 +172,11 @@ H.extendAnnotation(
|
|
|
171
172
|
/**
|
|
172
173
|
* An infinity line annotation.
|
|
173
174
|
*
|
|
174
|
-
* @extends annotations.crookedLine
|
|
175
175
|
* @sample highcharts/annotations-advanced/infinity-line/
|
|
176
176
|
* Infinity Line
|
|
177
177
|
*
|
|
178
|
-
* @
|
|
179
|
-
*
|
|
178
|
+
* @extends annotations.crookedLine
|
|
179
|
+
* @product highstock
|
|
180
180
|
* @apioption annotations.infinityLine
|
|
181
181
|
*/
|
|
182
182
|
|