aw-highstock_rails 7.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +22 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +10 -0
- data/aw-highstock_rails.gemspec +28 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/aw/highstock_rails.rb +9 -0
- data/lib/aw/highstock_rails/version.rb +5 -0
- data/vendor/assets/javascripts/highstock/css/annotations/popup.css +229 -0
- data/vendor/assets/javascripts/highstock/css/annotations/popup.scss +235 -0
- data/vendor/assets/javascripts/highstock/css/highcharts.css +890 -0
- data/vendor/assets/javascripts/highstock/css/highcharts.scss +788 -0
- data/vendor/assets/javascripts/highstock/css/stocktools/gui.css +268 -0
- data/vendor/assets/javascripts/highstock/css/stocktools/gui.scss +270 -0
- data/vendor/assets/javascripts/highstock/css/themes/dark-unica.css +951 -0
- data/vendor/assets/javascripts/highstock/css/themes/dark-unica.scss +122 -0
- data/vendor/assets/javascripts/highstock/css/themes/grid-light.css +904 -0
- data/vendor/assets/javascripts/highstock/css/themes/grid-light.scss +33 -0
- data/vendor/assets/javascripts/highstock/css/themes/sand-signika.css +920 -0
- data/vendor/assets/javascripts/highstock/css/themes/sand-signika.scss +74 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/ControlPoint.js +130 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/MockPoint.js +415 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/annotations.src.js +1231 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableCircle.js +92 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableImage.js +101 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableLabel.js +452 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllablePath.js +175 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableRect.js +93 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/controllableMixin.js +411 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/markerMixin.js +214 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/eventEmitterMixin.js +271 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/navigationBindings.js +1283 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/popup.js +1069 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/CrookedLine.js +191 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/ElliottWave.js +76 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Fibonacci.js +247 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/InfinityLine.js +185 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Measure.js +928 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Pitchfork.js +203 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Tunnel.js +242 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/VerticalLine.js +157 -0
- data/vendor/assets/javascripts/highstock/es-modules/error-messages.js +128 -0
- data/vendor/assets/javascripts/highstock/es-modules/error.js +1 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/acceleration-bands.src.js +199 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/accumulation-distribution.src.js +129 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/ao.src.js +206 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/apo.src.js +148 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/aroon-oscillator.src.js +128 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/aroon.src.js +173 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/atr.src.js +151 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/bollinger-bands.src.js +209 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/cci.src.js +131 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/chaikin.src.js +167 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/cmf.src.js +246 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/dema.src.js +191 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/dpo.src.js +138 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/ema.src.js +166 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/ichimoku-kinko-hyo.src.js +850 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/indicators.src.js +425 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/keltner-channels.src.js +193 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/macd.src.js +417 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/mfi.src.js +198 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/momentum.src.js +119 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/natr.src.js +74 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/pivot-points.src.js +360 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/ppo.src.js +152 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/price-channel.src.js +149 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/price-envelopes.src.js +251 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/psar.src.js +307 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/regressions.src.js +427 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/roc.src.js +149 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/rsi.src.js +163 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/stochastic.src.js +193 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/supertrend.src.js +544 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/tema.src.js +247 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/trix.src.js +96 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/volume-by-price.src.js +671 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/vwap.src.js +189 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/williams-r.src.js +128 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/wma.src.js +146 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/zigzag.src.js +221 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/highcharts-3d.src.js +17 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/highcharts-more.src.js +22 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/highstock.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/acceleration-bands.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/accumulation-distribution.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ao.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/apo.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/aroon-oscillator.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/aroon.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/atr.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/bollinger-bands.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/cci.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/chaikin.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/cmf.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/dema.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/dpo.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ema.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/indicators-all.src.js +49 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/indicators.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/keltner-channels.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/macd.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/mfi.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/momentum.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/natr.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/pivot-points.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ppo.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/price-channel.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/price-envelopes.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/psar.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/regressions.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/roc.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/rsi.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/stochastic.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/supertrend.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/tema.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/trix.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/volume-by-price.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/vwap.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/williams-r.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/wma.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/zigzag.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/accessibility.src.js +13 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/annotations-advanced.src.js +20 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/annotations.src.js +12 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/arrow-symbols.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/boost-canvas.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/boost.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/bullet.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/current-date-indicator.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/cylinder.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/data.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/datagrouping.src.js +12 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/debugger.src.js +13 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/dependency-wheel.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/drag-panes.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/draggable-points.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/drilldown.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/export-data.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/exporting.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/full-screen.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/funnel.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/grid-axis.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/heatmap.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/histogram-bellcurve.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/item-series.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/networkgraph.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/no-data-to-display.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/offline-exporting.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/oldie-polyfills.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/oldie.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/overlapping-datalabels.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/parallel-coordinates.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/pareto.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/pathfinder.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/pattern-fill.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/price-indicator.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/sankey.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/series-label.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/solid-gauge.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/sonification.src.js +12 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/static-scale.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/stock-tools.src.js +12 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/stock.src.js +19 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/streamgraph.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/sunburst.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/tilemap.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/timeline.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/treegrid.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/treemap.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/variable-pie.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/variwide.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/vector.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/venn.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/windbarb.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/wordcloud.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/xrange.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/avocado.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/avocado.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/dark-blue.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/dark-green.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/dark-unica.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/gray.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/grid-light.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/grid.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/sand-signika.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/skies.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/sunset.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/sunset.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/ajax.js +123 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/centered-series.js +116 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/derived-series.js +150 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/download-url.js +103 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/draw-point.js +51 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/geometry-circles.js +300 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/geometry.js +50 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/indicator-required.js +49 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/multipe-lines.js +223 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/navigation.js +59 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/nodes.js +76 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/on-series.js +167 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/polygon.js +293 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/reduce-array.js +53 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/tree-series.js +256 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/a11y-i18n.src.js +524 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/annotations-legacy.src.js +1951 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/bellcurve.src.js +173 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/boost-canvas.src.js +732 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/boost.src.js +3730 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/bullet.src.js +361 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/cylinder.src.js +389 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/data.src.js +2417 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/debugger.src.js +109 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/dependency-wheel.src.js +199 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/drag-panes.src.js +624 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/draggable-points.src.js +2625 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/drilldown.src.js +1300 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/export-data.src.js +983 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/exporting.src.js +2149 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/full-screen.src.js +40 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/funnel.src.js +552 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/histogram.src.js +229 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/item-series.src.js +150 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/keyboard-navigation.src.js +1606 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/networkgraph/QuadTree.js +175 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/networkgraph/layouts.js +506 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/networkgraph/networkgraph.src.js +740 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/no-data-to-display.src.js +260 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/offline-exporting.src.js +710 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/oldie-polyfills.src.js +121 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/oldie.src.js +1556 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/overlapping-datalabels.src.js +250 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/parallel-coordinates.src.js +492 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/pareto.src.js +152 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/pattern-fill.src.js +607 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/price-indicator.src.js +149 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sankey.src.js +809 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/screen-reader.src.js +954 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/series-label.src.js +1042 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/solid-gauge.src.js +486 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/Earcon.js +184 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/Instrument.js +582 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/Timeline.js +702 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/chartSonify.js +1026 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/instrumentDefinitions.js +37 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/musicalFrequencies.js +113 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/pointSonify.js +385 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/sonification.js +107 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/utilities.js +178 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/static-scale.src.js +88 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/stock-tools-bindings.js +1950 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/stock-tools-gui.js +1458 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/streamgraph.src.js +132 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sunburst.src.js +1041 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/tilemap.src.js +769 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/timeline.src.js +750 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/treemap.src.js +1803 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/variable-pie.src.js +459 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/variwide.src.js +350 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/vector.src.js +354 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/venn.src.js +1192 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/windbarb.src.js +380 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/wordcloud.src.js +1103 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/xrange.src.js +761 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Axis.js +669 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Chart.js +1753 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Column.js +437 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Math.js +206 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Pie.js +207 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/SVGRenderer.js +1002 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Scatter.js +154 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Series.js +73 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/VMLRenderer.js +62 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/ArrowSymbols.js +198 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/CurrentDateIndicator.js +100 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/GanttChart.js +140 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/GanttSeries.js +415 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/GridAxis.js +961 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/Pathfinder.js +1298 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/PathfinderAlgorithms.js +816 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/Tree.js +158 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/TreeGrid.js +1003 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/ColorAxis.js +1103 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/ColorSeriesMixin.js +138 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/GeoJSON.js +435 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/HeatmapSeries.js +474 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/Map.js +477 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapAxis.js +124 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapBubbleSeries.js +274 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapLineSeries.js +143 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapNavigation.js +357 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapPointSeries.js +187 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapPointer.js +132 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapSeries.js +1294 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/AreaRangeSeries.js +725 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/AreaSplineRangeSeries.js +98 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/BoxPlotSeries.js +617 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/BubbleLegend.js +1167 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/BubbleSeries.js +661 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/ColumnPyramidSeries.js +288 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/ColumnRangeSeries.js +278 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/ErrorBarSeries.js +172 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/GaugeSeries.js +618 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/PackedBubbleSeries.js +567 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/Pane.js +399 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/Polar.js +634 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/PolygonSeries.js +151 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/RadialAxis.js +685 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/WaterfallSeries.js +765 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts.js +684 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/AreaSeries.js +578 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/AreaSplineSeries.js +122 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Axis.js +6453 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/BarSeries.js +153 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/CandlestickSeries.js +358 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Chart.js +2307 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Color.js +301 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/ColumnSeries.js +1125 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/DataGrouping.js +1115 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/DataLabels.js +1431 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/DateTimeAxis.js +134 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Dynamics.js +1301 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/FlagsSeries.js +739 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Globals.js +75 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Html.js +539 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Interaction.js +1299 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Legend.js +1411 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/LogarithmicAxis.js +168 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/MSPointer.js +176 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Navigator.js +2486 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/OHLCSeries.js +412 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Options.js +3732 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/OrdinalAxis.js +962 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/PieSeries.js +1328 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/PlotBandSeries.experimental.js +74 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/PlotLineOrBand.js +1061 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Point.js +681 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Pointer.js +1332 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/RangeSelector.js +2063 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Responsive.js +295 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/ScatterSeries.js +278 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/ScrollablePlotArea.js +266 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Scrollbar.js +1134 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Series.js +5864 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/SplineSeries.js +267 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Stacking.js +604 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/StockChart.js +951 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/SvgRenderer.js +5109 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Tick.js +746 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Time.js +881 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Tooltip.js +1318 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/TouchPointer.js +404 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Utilities.js +2751 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/avocado.js +37 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/dark-blue.js +259 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/dark-green.js +261 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/dark-unica.js +220 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/gray.js +267 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/grid-light.js +81 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/grid.js +110 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/sand-signika.js +111 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/skies.js +100 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/sunset.js +36 -0
- data/vendor/assets/javascripts/highstock/highcharts-3d.js +85 -0
- data/vendor/assets/javascripts/highstock/highcharts-3d.js.map +1 -0
- data/vendor/assets/javascripts/highstock/highcharts-more.js +101 -0
- data/vendor/assets/javascripts/highstock/highcharts-more.js.map +1 -0
- data/vendor/assets/javascripts/highstock/highstock.js +583 -0
- data/vendor/assets/javascripts/highstock/highstock.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/acceleration-bands.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/acceleration-bands.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/acceleration-bands.src.js +448 -0
- data/vendor/assets/javascripts/highstock/indicators/accumulation-distribution.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/accumulation-distribution.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/accumulation-distribution.src.js +156 -0
- data/vendor/assets/javascripts/highstock/indicators/ao.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/ao.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/ao.src.js +233 -0
- data/vendor/assets/javascripts/highstock/indicators/apo.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/apo.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/apo.src.js +223 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon-oscillator.js +15 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon-oscillator.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon-oscillator.src.js +426 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon.src.js +423 -0
- data/vendor/assets/javascripts/highstock/indicators/atr.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/atr.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/atr.src.js +178 -0
- data/vendor/assets/javascripts/highstock/indicators/bollinger-bands.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/bollinger-bands.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/bollinger-bands.src.js +458 -0
- data/vendor/assets/javascripts/highstock/indicators/cci.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/cci.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/cci.src.js +158 -0
- data/vendor/assets/javascripts/highstock/indicators/chaikin.js +15 -0
- data/vendor/assets/javascripts/highstock/indicators/chaikin.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/chaikin.src.js +370 -0
- data/vendor/assets/javascripts/highstock/indicators/cmf.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/cmf.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/cmf.src.js +273 -0
- data/vendor/assets/javascripts/highstock/indicators/dema.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/dema.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/dema.src.js +266 -0
- data/vendor/assets/javascripts/highstock/indicators/dpo.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/dpo.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/dpo.src.js +166 -0
- data/vendor/assets/javascripts/highstock/indicators/ema.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/ema.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/ema.src.js +193 -0
- data/vendor/assets/javascripts/highstock/indicators/ichimoku-kinko-hyo.js +22 -0
- data/vendor/assets/javascripts/highstock/indicators/ichimoku-kinko-hyo.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/ichimoku-kinko-hyo.src.js +877 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators-all.js +117 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators-all.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators-all.src.js +9389 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators.js +17 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators.src.js +500 -0
- data/vendor/assets/javascripts/highstock/indicators/keltner-channels.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/keltner-channels.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/keltner-channels.src.js +442 -0
- data/vendor/assets/javascripts/highstock/indicators/macd.js +18 -0
- data/vendor/assets/javascripts/highstock/indicators/macd.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/macd.src.js +444 -0
- data/vendor/assets/javascripts/highstock/indicators/mfi.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/mfi.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/mfi.src.js +225 -0
- data/vendor/assets/javascripts/highstock/indicators/momentum.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/momentum.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/momentum.src.js +146 -0
- data/vendor/assets/javascripts/highstock/indicators/natr.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/natr.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/natr.src.js +101 -0
- data/vendor/assets/javascripts/highstock/indicators/pivot-points.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/pivot-points.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/pivot-points.src.js +387 -0
- data/vendor/assets/javascripts/highstock/indicators/ppo.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/ppo.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/ppo.src.js +227 -0
- data/vendor/assets/javascripts/highstock/indicators/price-channel.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/price-channel.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/price-channel.src.js +450 -0
- data/vendor/assets/javascripts/highstock/indicators/price-envelopes.js +15 -0
- data/vendor/assets/javascripts/highstock/indicators/price-envelopes.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/price-envelopes.src.js +278 -0
- data/vendor/assets/javascripts/highstock/indicators/psar.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/psar.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/psar.src.js +334 -0
- data/vendor/assets/javascripts/highstock/indicators/regressions.js +14 -0
- data/vendor/assets/javascripts/highstock/indicators/regressions.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/regressions.src.js +454 -0
- data/vendor/assets/javascripts/highstock/indicators/roc.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/roc.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/roc.src.js +176 -0
- data/vendor/assets/javascripts/highstock/indicators/rsi.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/rsi.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/rsi.src.js +190 -0
- data/vendor/assets/javascripts/highstock/indicators/stochastic.js +17 -0
- data/vendor/assets/javascripts/highstock/indicators/stochastic.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/stochastic.src.js +494 -0
- data/vendor/assets/javascripts/highstock/indicators/supertrend.js +17 -0
- data/vendor/assets/javascripts/highstock/indicators/supertrend.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/supertrend.src.js +571 -0
- data/vendor/assets/javascripts/highstock/indicators/tema.js +14 -0
- data/vendor/assets/javascripts/highstock/indicators/tema.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/tema.src.js +322 -0
- data/vendor/assets/javascripts/highstock/indicators/trix.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/trix.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/trix.src.js +171 -0
- data/vendor/assets/javascripts/highstock/indicators/volume-by-price.js +21 -0
- data/vendor/assets/javascripts/highstock/indicators/volume-by-price.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/volume-by-price.src.js +698 -0
- data/vendor/assets/javascripts/highstock/indicators/vwap.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/vwap.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/vwap.src.js +216 -0
- data/vendor/assets/javascripts/highstock/indicators/williams-r.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/williams-r.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/williams-r.src.js +207 -0
- data/vendor/assets/javascripts/highstock/indicators/wma.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/wma.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/wma.src.js +173 -0
- data/vendor/assets/javascripts/highstock/indicators/zigzag.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/zigzag.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/zigzag.src.js +248 -0
- data/vendor/assets/javascripts/highstock/lib/canvg.js +130 -0
- data/vendor/assets/javascripts/highstock/lib/canvg.src.js +3073 -0
- data/vendor/assets/javascripts/highstock/lib/jspdf.js +283 -0
- data/vendor/assets/javascripts/highstock/lib/jspdf.src.js +21627 -0
- data/vendor/assets/javascripts/highstock/lib/rgbcolor.js +17 -0
- data/vendor/assets/javascripts/highstock/lib/rgbcolor.src.js +299 -0
- data/vendor/assets/javascripts/highstock/lib/svg2pdf.js +38 -0
- data/vendor/assets/javascripts/highstock/lib/svg2pdf.src.js +4390 -0
- data/vendor/assets/javascripts/highstock/modules/accessibility.js +73 -0
- data/vendor/assets/javascripts/highstock/modules/accessibility.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/accessibility.src.js +3103 -0
- data/vendor/assets/javascripts/highstock/modules/annotations-advanced.js +132 -0
- data/vendor/assets/javascripts/highstock/modules/annotations-advanced.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/annotations-advanced.src.js +8230 -0
- data/vendor/assets/javascripts/highstock/modules/annotations.js +94 -0
- data/vendor/assets/javascripts/highstock/modules/annotations.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/annotations.src.js +6001 -0
- data/vendor/assets/javascripts/highstock/modules/arrow-symbols.js +11 -0
- data/vendor/assets/javascripts/highstock/modules/arrow-symbols.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/arrow-symbols.src.js +225 -0
- data/vendor/assets/javascripts/highstock/modules/boost-canvas.js +23 -0
- data/vendor/assets/javascripts/highstock/modules/boost-canvas.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/boost-canvas.src.js +756 -0
- data/vendor/assets/javascripts/highstock/modules/boost.js +65 -0
- data/vendor/assets/javascripts/highstock/modules/boost.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/boost.src.js +3752 -0
- data/vendor/assets/javascripts/highstock/modules/bullet.js +14 -0
- data/vendor/assets/javascripts/highstock/modules/bullet.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/bullet.src.js +388 -0
- data/vendor/assets/javascripts/highstock/modules/current-date-indicator.js +11 -0
- data/vendor/assets/javascripts/highstock/modules/current-date-indicator.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/current-date-indicator.src.js +127 -0
- data/vendor/assets/javascripts/highstock/modules/cylinder.js +14 -0
- data/vendor/assets/javascripts/highstock/modules/cylinder.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/cylinder.src.js +413 -0
- data/vendor/assets/javascripts/highstock/modules/data.js +37 -0
- data/vendor/assets/javascripts/highstock/modules/data.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/data.src.js +2565 -0
- data/vendor/assets/javascripts/highstock/modules/datagrouping.js +25 -0
- data/vendor/assets/javascripts/highstock/modules/datagrouping.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/datagrouping.src.js +1140 -0
- data/vendor/assets/javascripts/highstock/modules/debugger.js +28 -0
- data/vendor/assets/javascripts/highstock/modules/debugger.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/debugger.src.js +267 -0
- data/vendor/assets/javascripts/highstock/modules/dependency-wheel.js +15 -0
- data/vendor/assets/javascripts/highstock/modules/dependency-wheel.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/dependency-wheel.src.js +301 -0
- data/vendor/assets/javascripts/highstock/modules/drag-panes.js +18 -0
- data/vendor/assets/javascripts/highstock/modules/drag-panes.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/drag-panes.src.js +649 -0
- data/vendor/assets/javascripts/highstock/modules/draggable-points.js +40 -0
- data/vendor/assets/javascripts/highstock/modules/draggable-points.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/draggable-points.src.js +2650 -0
- data/vendor/assets/javascripts/highstock/modules/drilldown.js +29 -0
- data/vendor/assets/javascripts/highstock/modules/drilldown.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/drilldown.src.js +1321 -0
- data/vendor/assets/javascripts/highstock/modules/export-data.js +27 -0
- data/vendor/assets/javascripts/highstock/modules/export-data.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/export-data.src.js +1234 -0
- data/vendor/assets/javascripts/highstock/modules/exporting.js +35 -0
- data/vendor/assets/javascripts/highstock/modules/exporting.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/exporting.src.js +2233 -0
- data/vendor/assets/javascripts/highstock/modules/full-screen.js +11 -0
- data/vendor/assets/javascripts/highstock/modules/full-screen.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/full-screen.src.js +68 -0
- data/vendor/assets/javascripts/highstock/modules/funnel.js +14 -0
- data/vendor/assets/javascripts/highstock/modules/funnel.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/funnel.src.js +576 -0
- data/vendor/assets/javascripts/highstock/modules/grid-axis.js +23 -0
- data/vendor/assets/javascripts/highstock/modules/grid-axis.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/grid-axis.src.js +988 -0
- data/vendor/assets/javascripts/highstock/modules/heatmap.js +28 -0
- data/vendor/assets/javascripts/highstock/modules/heatmap.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/heatmap.src.js +1731 -0
- data/vendor/assets/javascripts/highstock/modules/histogram-bellcurve.js +16 -0
- data/vendor/assets/javascripts/highstock/modules/histogram-bellcurve.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/histogram-bellcurve.src.js +570 -0
- data/vendor/assets/javascripts/highstock/modules/item-series.js +13 -0
- data/vendor/assets/javascripts/highstock/modules/item-series.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/item-series.src.js +176 -0
- data/vendor/assets/javascripts/highstock/modules/networkgraph.js +31 -0
- data/vendor/assets/javascripts/highstock/modules/networkgraph.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/networkgraph.src.js +1348 -0
- data/vendor/assets/javascripts/highstock/modules/no-data-to-display.js +13 -0
- data/vendor/assets/javascripts/highstock/modules/no-data-to-display.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/no-data-to-display.src.js +285 -0
- data/vendor/assets/javascripts/highstock/modules/offline-exporting.js +22 -0
- data/vendor/assets/javascripts/highstock/modules/offline-exporting.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/offline-exporting.src.js +838 -0
- data/vendor/assets/javascripts/highstock/modules/oldie-polyfills.js +13 -0
- data/vendor/assets/javascripts/highstock/modules/oldie-polyfills.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/oldie-polyfills.src.js +150 -0
- data/vendor/assets/javascripts/highstock/modules/oldie.js +35 -0
- data/vendor/assets/javascripts/highstock/modules/oldie.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/oldie.src.js +1582 -0
- data/vendor/assets/javascripts/highstock/modules/overlapping-datalabels.js +9 -0
- data/vendor/assets/javascripts/highstock/modules/overlapping-datalabels.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/overlapping-datalabels.src.js +22 -0
- data/vendor/assets/javascripts/highstock/modules/parallel-coordinates.js +18 -0
- data/vendor/assets/javascripts/highstock/modules/parallel-coordinates.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/parallel-coordinates.src.js +517 -0
- data/vendor/assets/javascripts/highstock/modules/pareto.js +14 -0
- data/vendor/assets/javascripts/highstock/modules/pareto.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/pareto.src.js +327 -0
- data/vendor/assets/javascripts/highstock/modules/pathfinder.js +34 -0
- data/vendor/assets/javascripts/highstock/modules/pathfinder.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/pathfinder.src.js +2336 -0
- data/vendor/assets/javascripts/highstock/modules/pattern-fill.js +21 -0
- data/vendor/assets/javascripts/highstock/modules/pattern-fill.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/pattern-fill.src.js +634 -0
- data/vendor/assets/javascripts/highstock/modules/price-indicator.js +13 -0
- data/vendor/assets/javascripts/highstock/modules/price-indicator.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/price-indicator.src.js +176 -0
- data/vendor/assets/javascripts/highstock/modules/sankey.js +22 -0
- data/vendor/assets/javascripts/highstock/modules/sankey.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/sankey.src.js +911 -0
- data/vendor/assets/javascripts/highstock/modules/series-label.js +23 -0
- data/vendor/assets/javascripts/highstock/modules/series-label.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/series-label.src.js +1065 -0
- data/vendor/assets/javascripts/highstock/modules/solid-gauge.js +15 -0
- data/vendor/assets/javascripts/highstock/modules/solid-gauge.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/solid-gauge.src.js +510 -0
- data/vendor/assets/javascripts/highstock/modules/sonification.js +53 -0
- data/vendor/assets/javascripts/highstock/modules/sonification.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/sonification.src.js +3341 -0
- data/vendor/assets/javascripts/highstock/modules/static-scale.js +12 -0
- data/vendor/assets/javascripts/highstock/modules/static-scale.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/static-scale.src.js +114 -0
- data/vendor/assets/javascripts/highstock/modules/stock-tools.js +65 -0
- data/vendor/assets/javascripts/highstock/modules/stock-tools.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/stock-tools.src.js +3437 -0
- data/vendor/assets/javascripts/highstock/modules/stock.js +151 -0
- data/vendor/assets/javascripts/highstock/modules/stock.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/stock.src.js +10907 -0
- data/vendor/assets/javascripts/highstock/modules/streamgraph.js +10 -0
- data/vendor/assets/javascripts/highstock/modules/streamgraph.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/streamgraph.src.js +158 -0
- data/vendor/assets/javascripts/highstock/modules/sunburst.js +52 -0
- data/vendor/assets/javascripts/highstock/modules/sunburst.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/sunburst.src.js +3174 -0
- data/vendor/assets/javascripts/highstock/modules/tilemap.js +26 -0
- data/vendor/assets/javascripts/highstock/modules/tilemap.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/tilemap.src.js +1402 -0
- data/vendor/assets/javascripts/highstock/modules/timeline.js +23 -0
- data/vendor/assets/javascripts/highstock/modules/timeline.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/timeline.src.js +778 -0
- data/vendor/assets/javascripts/highstock/modules/treegrid.js +50 -0
- data/vendor/assets/javascripts/highstock/modules/treegrid.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/treegrid.src.js +2917 -0
- data/vendor/assets/javascripts/highstock/modules/treemap.js +39 -0
- data/vendor/assets/javascripts/highstock/modules/treemap.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/treemap.src.js +2083 -0
- data/vendor/assets/javascripts/highstock/modules/variable-pie.js +16 -0
- data/vendor/assets/javascripts/highstock/modules/variable-pie.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/variable-pie.src.js +485 -0
- data/vendor/assets/javascripts/highstock/modules/variwide.js +15 -0
- data/vendor/assets/javascripts/highstock/modules/variwide.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/variwide.src.js +376 -0
- data/vendor/assets/javascripts/highstock/modules/vector.js +13 -0
- data/vendor/assets/javascripts/highstock/modules/vector.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/vector.src.js +381 -0
- data/vendor/assets/javascripts/highstock/modules/venn.js +30 -0
- data/vendor/assets/javascripts/highstock/modules/venn.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/venn.src.js +1624 -0
- data/vendor/assets/javascripts/highstock/modules/windbarb.js +17 -0
- data/vendor/assets/javascripts/highstock/modules/windbarb.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/windbarb.src.js +574 -0
- data/vendor/assets/javascripts/highstock/modules/wordcloud.js +25 -0
- data/vendor/assets/javascripts/highstock/modules/wordcloud.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/wordcloud.src.js +1475 -0
- data/vendor/assets/javascripts/highstock/modules/xrange.js +20 -0
- data/vendor/assets/javascripts/highstock/modules/xrange.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/xrange.src.js +788 -0
- data/vendor/assets/javascripts/highstock/themes/avocado.js +9 -0
- data/vendor/assets/javascripts/highstock/themes/avocado.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/avocado.src.js +63 -0
- data/vendor/assets/javascripts/highstock/themes/dark-blue.js +15 -0
- data/vendor/assets/javascripts/highstock/themes/dark-blue.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/dark-blue.src.js +285 -0
- data/vendor/assets/javascripts/highstock/themes/dark-green.js +15 -0
- data/vendor/assets/javascripts/highstock/themes/dark-green.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/dark-green.src.js +287 -0
- data/vendor/assets/javascripts/highstock/themes/dark-unica.js +14 -0
- data/vendor/assets/javascripts/highstock/themes/dark-unica.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/dark-unica.src.js +246 -0
- data/vendor/assets/javascripts/highstock/themes/gray.js +15 -0
- data/vendor/assets/javascripts/highstock/themes/gray.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/gray.src.js +293 -0
- data/vendor/assets/javascripts/highstock/themes/grid-light.js +11 -0
- data/vendor/assets/javascripts/highstock/themes/grid-light.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/grid-light.src.js +107 -0
- data/vendor/assets/javascripts/highstock/themes/grid.js +11 -0
- data/vendor/assets/javascripts/highstock/themes/grid.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/grid.src.js +136 -0
- data/vendor/assets/javascripts/highstock/themes/sand-signika.js +11 -0
- data/vendor/assets/javascripts/highstock/themes/sand-signika.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/sand-signika.src.js +137 -0
- data/vendor/assets/javascripts/highstock/themes/skies.js +11 -0
- data/vendor/assets/javascripts/highstock/themes/skies.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/skies.src.js +126 -0
- data/vendor/assets/javascripts/highstock/themes/sunset.js +9 -0
- data/vendor/assets/javascripts/highstock/themes/sunset.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/sunset.src.js +62 -0
- metadata +781 -0
@@ -0,0 +1,1318 @@
|
|
1
|
+
/**
|
2
|
+
* (c) 2010-2019 Torstein Honsi
|
3
|
+
*
|
4
|
+
* License: www.highcharts.com/license
|
5
|
+
*/
|
6
|
+
|
7
|
+
/**
|
8
|
+
* A callback function to place the tooltip in a specific position.
|
9
|
+
*
|
10
|
+
* @callback Highcharts.TooltipPositionerCallbackFunction
|
11
|
+
*
|
12
|
+
* @param {number} labelWidth
|
13
|
+
* Width of the tooltip.
|
14
|
+
*
|
15
|
+
* @param {number} labelHeight
|
16
|
+
* Height of the tooltip.
|
17
|
+
*
|
18
|
+
* @param {Highcharts.TooltipPositionerPointObject} point
|
19
|
+
* Point information for positioning a tooltip.
|
20
|
+
*
|
21
|
+
* @return {Highcharts.PositionObject}
|
22
|
+
* New position for the tooltip.
|
23
|
+
*/
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Point information for positioning a tooltip.
|
27
|
+
*
|
28
|
+
* @interface Highcharts.TooltipPositionerPointObject
|
29
|
+
*//**
|
30
|
+
* If `tooltip.split` option is enabled and positioner is called for each of the
|
31
|
+
* boxes separately, this property indicates the call on the xAxis header, which
|
32
|
+
* is not a point itself.
|
33
|
+
* @name Highcharts.TooltipPositionerPointObject#isHeader
|
34
|
+
* @type {boolean}
|
35
|
+
*//**
|
36
|
+
* @name Highcharts.TooltipPositionerPointObject#negative
|
37
|
+
* @type {boolean}
|
38
|
+
*//**
|
39
|
+
* The reference point relative to the plot area. Add chart.plotLeft to get the
|
40
|
+
* full coordinates.
|
41
|
+
* @name Highcharts.TooltipPositionerPointObject#plotX
|
42
|
+
* @type {number}
|
43
|
+
*//**
|
44
|
+
* The reference point relative to the plot area. Add chart.plotTop to get the
|
45
|
+
* full coordinates.
|
46
|
+
* @name Highcharts.TooltipPositionerPointObject#plotY
|
47
|
+
* @type {number}
|
48
|
+
*/
|
49
|
+
|
50
|
+
'use strict';
|
51
|
+
|
52
|
+
import H from './Globals.js';
|
53
|
+
import './Utilities.js';
|
54
|
+
|
55
|
+
var doc = H.doc,
|
56
|
+
extend = H.extend,
|
57
|
+
format = H.format,
|
58
|
+
isNumber = H.isNumber,
|
59
|
+
merge = H.merge,
|
60
|
+
pick = H.pick,
|
61
|
+
splat = H.splat,
|
62
|
+
syncTimeout = H.syncTimeout,
|
63
|
+
timeUnits = H.timeUnits;
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Tooltip of a chart.
|
67
|
+
*
|
68
|
+
* @class
|
69
|
+
* @name Highcharts.Tooltip
|
70
|
+
*
|
71
|
+
* @param {Highcharts.Chart} chart
|
72
|
+
* The chart instance.
|
73
|
+
*
|
74
|
+
* @param {Highcharts.TooltipOptions} options
|
75
|
+
* Tooltip options.
|
76
|
+
*/
|
77
|
+
H.Tooltip = function () {
|
78
|
+
this.init.apply(this, arguments);
|
79
|
+
};
|
80
|
+
|
81
|
+
H.Tooltip.prototype = {
|
82
|
+
|
83
|
+
/**
|
84
|
+
* @private
|
85
|
+
* @function Highcharts.Tooltip#init
|
86
|
+
*
|
87
|
+
* @param {Highcharts.Chart} chart
|
88
|
+
* The chart instance.
|
89
|
+
*
|
90
|
+
* @param {Highcharts.TooltipOptions} options
|
91
|
+
* Tooltip options.
|
92
|
+
*/
|
93
|
+
init: function (chart, options) {
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Chart of the tooltip.
|
97
|
+
*
|
98
|
+
* @readonly
|
99
|
+
* @name Highcharts.Tooltip#chart
|
100
|
+
* @type {Highcharts.Chart}
|
101
|
+
*/
|
102
|
+
this.chart = chart;
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Used tooltip options.
|
106
|
+
*
|
107
|
+
* @readonly
|
108
|
+
* @name Highcharts.Tooltip#options
|
109
|
+
* @type {Highcharts.TooltipOptions}
|
110
|
+
*/
|
111
|
+
this.options = options;
|
112
|
+
|
113
|
+
/**
|
114
|
+
* List of crosshairs.
|
115
|
+
*
|
116
|
+
* @private
|
117
|
+
* @readonly
|
118
|
+
* @name Highcharts.Tooltip#crosshairs
|
119
|
+
* @type {Array<*>}
|
120
|
+
*/
|
121
|
+
this.crosshairs = [];
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Current values of x and y when animating.
|
125
|
+
*
|
126
|
+
* @private
|
127
|
+
* @readonly
|
128
|
+
* @name Highcharts.Tooltip#now
|
129
|
+
* @type {*}
|
130
|
+
*/
|
131
|
+
this.now = { x: 0, y: 0 };
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Tooltips are initially hidden.
|
135
|
+
*
|
136
|
+
* @readonly
|
137
|
+
* @name Highcharts.Tooltip#isHidden
|
138
|
+
* @type {boolean}
|
139
|
+
*/
|
140
|
+
this.isHidden = true;
|
141
|
+
|
142
|
+
/**
|
143
|
+
* True, if the tooltip is splitted into one label per series, with the
|
144
|
+
* header close to the axis.
|
145
|
+
*
|
146
|
+
* @readonly
|
147
|
+
* @name Highcharts.Tooltip#split
|
148
|
+
* @type {boolean}
|
149
|
+
*/
|
150
|
+
this.split = options.split && !chart.inverted;
|
151
|
+
|
152
|
+
/**
|
153
|
+
* When the tooltip is shared, the entire plot area will capture mouse
|
154
|
+
* movement or touch events.
|
155
|
+
*
|
156
|
+
* @readonly
|
157
|
+
* @name Highcharts.Tooltip#shared
|
158
|
+
* @type {boolean}
|
159
|
+
*/
|
160
|
+
this.shared = options.shared || this.split;
|
161
|
+
|
162
|
+
/**
|
163
|
+
* Whether to allow the tooltip to render outside the chart's SVG
|
164
|
+
* element box. By default (false), the tooltip is rendered within the
|
165
|
+
* chart's SVG element, which results in the tooltip being aligned
|
166
|
+
* inside the chart area.
|
167
|
+
*
|
168
|
+
* @readonly
|
169
|
+
* @name Highcharts.Tooltip#outside
|
170
|
+
* @type {boolean}
|
171
|
+
*
|
172
|
+
* @todo
|
173
|
+
* Split tooltip does not support outside in the first iteration. Should
|
174
|
+
* not be too complicated to implement.
|
175
|
+
*/
|
176
|
+
this.outside = options.outside && !this.split;
|
177
|
+
|
178
|
+
},
|
179
|
+
|
180
|
+
/**
|
181
|
+
* Destroy the single tooltips in a split tooltip.
|
182
|
+
* If the tooltip is active then it is not destroyed, unless forced to.
|
183
|
+
*
|
184
|
+
* @private
|
185
|
+
* @function Highcharts.Tooltip#cleanSplit
|
186
|
+
*
|
187
|
+
* @param {boolean} force
|
188
|
+
* Force destroy all tooltips.
|
189
|
+
*/
|
190
|
+
cleanSplit: function (force) {
|
191
|
+
this.chart.series.forEach(function (series) {
|
192
|
+
var tt = series && series.tt;
|
193
|
+
|
194
|
+
if (tt) {
|
195
|
+
if (!tt.isActive || force) {
|
196
|
+
series.tt = tt.destroy();
|
197
|
+
} else {
|
198
|
+
tt.isActive = false;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
});
|
202
|
+
},
|
203
|
+
|
204
|
+
/**
|
205
|
+
* In styled mode, apply the default filter for the tooltip drop-shadow. It
|
206
|
+
* needs to have an id specific to the chart, otherwise there will be issues
|
207
|
+
* when one tooltip adopts the filter of a different chart, specifically one
|
208
|
+
* where the container is hidden.
|
209
|
+
*
|
210
|
+
* @private
|
211
|
+
* @function Highcharts.Tooltip#applyFilter
|
212
|
+
*/
|
213
|
+
applyFilter: function () {
|
214
|
+
|
215
|
+
var chart = this.chart;
|
216
|
+
|
217
|
+
chart.renderer.definition({
|
218
|
+
tagName: 'filter',
|
219
|
+
id: 'drop-shadow-' + chart.index,
|
220
|
+
opacity: 0.5,
|
221
|
+
children: [{
|
222
|
+
tagName: 'feGaussianBlur',
|
223
|
+
'in': 'SourceAlpha',
|
224
|
+
stdDeviation: 1
|
225
|
+
}, {
|
226
|
+
tagName: 'feOffset',
|
227
|
+
dx: 1,
|
228
|
+
dy: 1
|
229
|
+
}, {
|
230
|
+
tagName: 'feComponentTransfer',
|
231
|
+
children: [{
|
232
|
+
tagName: 'feFuncA',
|
233
|
+
type: 'linear',
|
234
|
+
slope: 0.3
|
235
|
+
}]
|
236
|
+
}, {
|
237
|
+
tagName: 'feMerge',
|
238
|
+
children: [{
|
239
|
+
tagName: 'feMergeNode'
|
240
|
+
}, {
|
241
|
+
tagName: 'feMergeNode',
|
242
|
+
'in': 'SourceGraphic'
|
243
|
+
}]
|
244
|
+
}]
|
245
|
+
});
|
246
|
+
chart.renderer.definition({
|
247
|
+
tagName: 'style',
|
248
|
+
textContent: '.highcharts-tooltip-' + chart.index + '{' +
|
249
|
+
'filter:url(#drop-shadow-' + chart.index + ')' +
|
250
|
+
'}'
|
251
|
+
});
|
252
|
+
},
|
253
|
+
|
254
|
+
|
255
|
+
/**
|
256
|
+
* Creates the Tooltip label element if it does not exist, then returns it.
|
257
|
+
*
|
258
|
+
* @function Highcharts.Tooltip#getLabel
|
259
|
+
*
|
260
|
+
* @return {Highcharts.SVGElement}
|
261
|
+
*/
|
262
|
+
getLabel: function () {
|
263
|
+
|
264
|
+
var tooltip = this,
|
265
|
+
renderer = this.chart.renderer,
|
266
|
+
styledMode = this.chart.styledMode,
|
267
|
+
options = this.options,
|
268
|
+
container,
|
269
|
+
set;
|
270
|
+
|
271
|
+
if (!this.label) {
|
272
|
+
|
273
|
+
if (this.outside) {
|
274
|
+
this.container = container = H.doc.createElement('div');
|
275
|
+
container.className = 'highcharts-tooltip-container';
|
276
|
+
H.css(container, {
|
277
|
+
position: 'absolute',
|
278
|
+
top: '1px',
|
279
|
+
pointerEvents: options.style && options.style.pointerEvents
|
280
|
+
});
|
281
|
+
H.doc.body.appendChild(container);
|
282
|
+
|
283
|
+
this.renderer = renderer = new H.Renderer(container, 0, 0);
|
284
|
+
}
|
285
|
+
|
286
|
+
|
287
|
+
// Create the label
|
288
|
+
if (this.split) {
|
289
|
+
this.label = renderer.g('tooltip');
|
290
|
+
} else {
|
291
|
+
this.label = renderer
|
292
|
+
.label(
|
293
|
+
'',
|
294
|
+
0,
|
295
|
+
0,
|
296
|
+
options.shape || 'callout',
|
297
|
+
null,
|
298
|
+
null,
|
299
|
+
options.useHTML,
|
300
|
+
null,
|
301
|
+
'tooltip'
|
302
|
+
)
|
303
|
+
.attr({
|
304
|
+
padding: options.padding,
|
305
|
+
r: options.borderRadius
|
306
|
+
});
|
307
|
+
|
308
|
+
if (!styledMode) {
|
309
|
+
this.label
|
310
|
+
.attr({
|
311
|
+
'fill': options.backgroundColor,
|
312
|
+
'stroke-width': options.borderWidth
|
313
|
+
})
|
314
|
+
// #2301, #2657
|
315
|
+
.css(options.style)
|
316
|
+
.shadow(options.shadow);
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
320
|
+
if (styledMode) {
|
321
|
+
// Apply the drop-shadow filter
|
322
|
+
this.applyFilter();
|
323
|
+
this.label.addClass('highcharts-tooltip-' + this.chart.index);
|
324
|
+
}
|
325
|
+
|
326
|
+
if (this.outside) {
|
327
|
+
set = {
|
328
|
+
x: this.label.xSetter,
|
329
|
+
y: this.label.ySetter
|
330
|
+
};
|
331
|
+
this.label.xSetter = function (value, key) {
|
332
|
+
set[key].call(this.label, tooltip.distance);
|
333
|
+
container.style.left = value + 'px';
|
334
|
+
};
|
335
|
+
this.label.ySetter = function (value, key) {
|
336
|
+
set[key].call(this.label, tooltip.distance);
|
337
|
+
container.style.top = value + 'px';
|
338
|
+
};
|
339
|
+
}
|
340
|
+
|
341
|
+
this.label
|
342
|
+
.attr({
|
343
|
+
zIndex: 8
|
344
|
+
})
|
345
|
+
.add();
|
346
|
+
}
|
347
|
+
return this.label;
|
348
|
+
},
|
349
|
+
|
350
|
+
/**
|
351
|
+
* Updates the tooltip with the provided tooltip options.
|
352
|
+
*
|
353
|
+
* @function Highcharts.Tooltip#update
|
354
|
+
*
|
355
|
+
* @param {Highcharts.TooltipOptions} options
|
356
|
+
* The tooltip options to update.
|
357
|
+
*/
|
358
|
+
update: function (options) {
|
359
|
+
this.destroy();
|
360
|
+
// Update user options (#6218)
|
361
|
+
merge(true, this.chart.options.tooltip.userOptions, options);
|
362
|
+
this.init(this.chart, merge(true, this.options, options));
|
363
|
+
},
|
364
|
+
|
365
|
+
/**
|
366
|
+
* Removes and destroys the tooltip and its elements.
|
367
|
+
*
|
368
|
+
* @function Highcharts.Tooltip#destroy
|
369
|
+
*/
|
370
|
+
destroy: function () {
|
371
|
+
// Destroy and clear local variables
|
372
|
+
if (this.label) {
|
373
|
+
this.label = this.label.destroy();
|
374
|
+
}
|
375
|
+
if (this.split && this.tt) {
|
376
|
+
this.cleanSplit(this.chart, true);
|
377
|
+
this.tt = this.tt.destroy();
|
378
|
+
}
|
379
|
+
if (this.renderer) {
|
380
|
+
this.renderer = this.renderer.destroy();
|
381
|
+
H.discardElement(this.container);
|
382
|
+
}
|
383
|
+
H.clearTimeout(this.hideTimer);
|
384
|
+
H.clearTimeout(this.tooltipTimeout);
|
385
|
+
},
|
386
|
+
|
387
|
+
/**
|
388
|
+
* Moves the tooltip with a soft animation to a new position.
|
389
|
+
*
|
390
|
+
* @function Highcharts.Tooltip#move
|
391
|
+
*
|
392
|
+
* @param {number} x
|
393
|
+
*
|
394
|
+
* @param {number} y
|
395
|
+
*
|
396
|
+
* @param {number} anchorX
|
397
|
+
*
|
398
|
+
* @param {number} anchorY
|
399
|
+
*/
|
400
|
+
move: function (x, y, anchorX, anchorY) {
|
401
|
+
var tooltip = this,
|
402
|
+
now = tooltip.now,
|
403
|
+
animate = tooltip.options.animation !== false &&
|
404
|
+
!tooltip.isHidden &&
|
405
|
+
// When we get close to the target position, abort animation and
|
406
|
+
// land on the right place (#3056)
|
407
|
+
(Math.abs(x - now.x) > 1 || Math.abs(y - now.y) > 1),
|
408
|
+
skipAnchor = tooltip.followPointer || tooltip.len > 1;
|
409
|
+
|
410
|
+
// Get intermediate values for animation
|
411
|
+
extend(now, {
|
412
|
+
x: animate ? (2 * now.x + x) / 3 : x,
|
413
|
+
y: animate ? (now.y + y) / 2 : y,
|
414
|
+
anchorX: skipAnchor ?
|
415
|
+
undefined :
|
416
|
+
animate ? (2 * now.anchorX + anchorX) / 3 : anchorX,
|
417
|
+
anchorY: skipAnchor ?
|
418
|
+
undefined :
|
419
|
+
animate ? (now.anchorY + anchorY) / 2 : anchorY
|
420
|
+
});
|
421
|
+
|
422
|
+
// Move to the intermediate value
|
423
|
+
tooltip.getLabel().attr(now);
|
424
|
+
|
425
|
+
|
426
|
+
// Run on next tick of the mouse tracker
|
427
|
+
if (animate) {
|
428
|
+
|
429
|
+
// Never allow two timeouts
|
430
|
+
H.clearTimeout(this.tooltipTimeout);
|
431
|
+
|
432
|
+
// Set the fixed interval ticking for the smooth tooltip
|
433
|
+
this.tooltipTimeout = setTimeout(function () {
|
434
|
+
// The interval function may still be running during destroy,
|
435
|
+
// so check that the chart is really there before calling.
|
436
|
+
if (tooltip) {
|
437
|
+
tooltip.move(x, y, anchorX, anchorY);
|
438
|
+
}
|
439
|
+
}, 32);
|
440
|
+
|
441
|
+
}
|
442
|
+
},
|
443
|
+
|
444
|
+
/**
|
445
|
+
* Hides the tooltip with a fade out animation.
|
446
|
+
*
|
447
|
+
* @function Highcharts.Tooltip#hide
|
448
|
+
*
|
449
|
+
* @param {number} [delay]
|
450
|
+
* The fade out in milliseconds. If no value is provided the value
|
451
|
+
* of the tooltip.hideDelay option is used. A value of 0 disables
|
452
|
+
* the fade out animation.
|
453
|
+
*/
|
454
|
+
hide: function (delay) {
|
455
|
+
var tooltip = this;
|
456
|
+
|
457
|
+
// disallow duplicate timers (#1728, #1766)
|
458
|
+
H.clearTimeout(this.hideTimer);
|
459
|
+
delay = pick(delay, this.options.hideDelay, 500);
|
460
|
+
if (!this.isHidden) {
|
461
|
+
this.hideTimer = syncTimeout(function () {
|
462
|
+
tooltip.getLabel()[delay ? 'fadeOut' : 'hide']();
|
463
|
+
tooltip.isHidden = true;
|
464
|
+
}, delay);
|
465
|
+
}
|
466
|
+
},
|
467
|
+
|
468
|
+
/**
|
469
|
+
* Extendable method to get the anchor position of the tooltip
|
470
|
+
* from a point or set of points
|
471
|
+
*
|
472
|
+
* @private
|
473
|
+
* @function Highcharts.Tooltip#getAnchor
|
474
|
+
*
|
475
|
+
* @param {Array<Highchart.Points>} points
|
476
|
+
*
|
477
|
+
* @param {global.Event} [mouseEvent]
|
478
|
+
*/
|
479
|
+
getAnchor: function (points, mouseEvent) {
|
480
|
+
var ret,
|
481
|
+
chart = this.chart,
|
482
|
+
pointer = chart.pointer,
|
483
|
+
inverted = chart.inverted,
|
484
|
+
plotTop = chart.plotTop,
|
485
|
+
plotLeft = chart.plotLeft,
|
486
|
+
plotX = 0,
|
487
|
+
plotY = 0,
|
488
|
+
yAxis,
|
489
|
+
xAxis;
|
490
|
+
|
491
|
+
points = splat(points);
|
492
|
+
|
493
|
+
// When tooltip follows mouse, relate the position to the mouse
|
494
|
+
if (this.followPointer && mouseEvent) {
|
495
|
+
if (mouseEvent.chartX === undefined) {
|
496
|
+
mouseEvent = pointer.normalize(mouseEvent);
|
497
|
+
}
|
498
|
+
ret = [
|
499
|
+
mouseEvent.chartX - chart.plotLeft,
|
500
|
+
mouseEvent.chartY - plotTop
|
501
|
+
];
|
502
|
+
// Pie uses a special tooltipPos
|
503
|
+
} else if (points[0].tooltipPos) {
|
504
|
+
ret = points[0].tooltipPos;
|
505
|
+
// When shared, use the average position
|
506
|
+
} else {
|
507
|
+
points.forEach(function (point) {
|
508
|
+
yAxis = point.series.yAxis;
|
509
|
+
xAxis = point.series.xAxis;
|
510
|
+
plotX += point.plotX +
|
511
|
+
(!inverted && xAxis ? xAxis.left - plotLeft : 0);
|
512
|
+
plotY +=
|
513
|
+
(
|
514
|
+
point.plotLow ?
|
515
|
+
(point.plotLow + point.plotHigh) / 2 :
|
516
|
+
point.plotY
|
517
|
+
) +
|
518
|
+
(!inverted && yAxis ? yAxis.top - plotTop : 0); // #1151
|
519
|
+
});
|
520
|
+
|
521
|
+
plotX /= points.length;
|
522
|
+
plotY /= points.length;
|
523
|
+
|
524
|
+
ret = [
|
525
|
+
inverted ? chart.plotWidth - plotY : plotX,
|
526
|
+
this.shared && !inverted && points.length > 1 && mouseEvent ?
|
527
|
+
// place shared tooltip next to the mouse (#424)
|
528
|
+
mouseEvent.chartY - plotTop :
|
529
|
+
inverted ? chart.plotHeight - plotX : plotY
|
530
|
+
];
|
531
|
+
}
|
532
|
+
|
533
|
+
return ret.map(Math.round);
|
534
|
+
},
|
535
|
+
|
536
|
+
/**
|
537
|
+
* Place the tooltip in a chart without spilling over
|
538
|
+
* and not covering the point it self.
|
539
|
+
*
|
540
|
+
* @private
|
541
|
+
* @function Highcharts.Tooltip#getPosition
|
542
|
+
*
|
543
|
+
* @param {number} boxWidth
|
544
|
+
*
|
545
|
+
* @param {number} boxHeight
|
546
|
+
*
|
547
|
+
* @param {Highcharts.Point} point
|
548
|
+
*
|
549
|
+
* @return {*}
|
550
|
+
*/
|
551
|
+
getPosition: function (boxWidth, boxHeight, point) {
|
552
|
+
|
553
|
+
var chart = this.chart,
|
554
|
+
distance = this.distance,
|
555
|
+
ret = {},
|
556
|
+
// Don't use h if chart isn't inverted (#7242)
|
557
|
+
h = (chart.inverted && point.h) || 0, // #4117
|
558
|
+
swapped,
|
559
|
+
outside = this.outside,
|
560
|
+
outerWidth = outside ?
|
561
|
+
// substract distance to prevent scrollbars
|
562
|
+
doc.documentElement.clientWidth - 2 * distance :
|
563
|
+
chart.chartWidth,
|
564
|
+
outerHeight = outside ?
|
565
|
+
Math.max(
|
566
|
+
doc.body.scrollHeight,
|
567
|
+
doc.documentElement.scrollHeight,
|
568
|
+
doc.body.offsetHeight,
|
569
|
+
doc.documentElement.offsetHeight,
|
570
|
+
doc.documentElement.clientHeight
|
571
|
+
) :
|
572
|
+
chart.chartHeight,
|
573
|
+
chartPosition = chart.pointer.chartPosition,
|
574
|
+
first = [
|
575
|
+
'y',
|
576
|
+
outerHeight,
|
577
|
+
boxHeight,
|
578
|
+
(outside ? chartPosition.top - distance : 0) +
|
579
|
+
point.plotY + chart.plotTop,
|
580
|
+
outside ? 0 : chart.plotTop,
|
581
|
+
outside ? outerHeight : chart.plotTop + chart.plotHeight
|
582
|
+
],
|
583
|
+
second = [
|
584
|
+
'x',
|
585
|
+
outerWidth,
|
586
|
+
boxWidth,
|
587
|
+
(outside ? chartPosition.left - distance : 0) +
|
588
|
+
point.plotX + chart.plotLeft,
|
589
|
+
outside ? 0 : chart.plotLeft,
|
590
|
+
outside ? outerWidth : chart.plotLeft + chart.plotWidth
|
591
|
+
],
|
592
|
+
// The far side is right or bottom
|
593
|
+
preferFarSide = !this.followPointer && pick(
|
594
|
+
point.ttBelow,
|
595
|
+
!chart.inverted === !!point.negative
|
596
|
+
), // #4984
|
597
|
+
|
598
|
+
/*
|
599
|
+
* Handle the preferred dimension. When the preferred dimension is
|
600
|
+
* tooltip on top or bottom of the point, it will look for space
|
601
|
+
* there.
|
602
|
+
*
|
603
|
+
* @private
|
604
|
+
*/
|
605
|
+
firstDimension = function (
|
606
|
+
dim,
|
607
|
+
outerSize,
|
608
|
+
innerSize,
|
609
|
+
point,
|
610
|
+
min,
|
611
|
+
max
|
612
|
+
) {
|
613
|
+
var roomLeft = innerSize < point - distance,
|
614
|
+
roomRight = point + distance + innerSize < outerSize,
|
615
|
+
alignedLeft = point - distance - innerSize,
|
616
|
+
alignedRight = point + distance;
|
617
|
+
|
618
|
+
if (preferFarSide && roomRight) {
|
619
|
+
ret[dim] = alignedRight;
|
620
|
+
} else if (!preferFarSide && roomLeft) {
|
621
|
+
ret[dim] = alignedLeft;
|
622
|
+
} else if (roomLeft) {
|
623
|
+
ret[dim] = Math.min(
|
624
|
+
max - innerSize,
|
625
|
+
alignedLeft - h < 0 ? alignedLeft : alignedLeft - h
|
626
|
+
);
|
627
|
+
} else if (roomRight) {
|
628
|
+
ret[dim] = Math.max(
|
629
|
+
min,
|
630
|
+
alignedRight + h + innerSize > outerSize ?
|
631
|
+
alignedRight :
|
632
|
+
alignedRight + h
|
633
|
+
);
|
634
|
+
} else {
|
635
|
+
return false;
|
636
|
+
}
|
637
|
+
},
|
638
|
+
|
639
|
+
/*
|
640
|
+
* Handle the secondary dimension. If the preferred dimension is
|
641
|
+
* tooltip on top or bottom of the point, the second dimension is to
|
642
|
+
* align the tooltip above the point, trying to align center but
|
643
|
+
* allowing left or right align within the chart box.
|
644
|
+
*
|
645
|
+
* @private
|
646
|
+
*/
|
647
|
+
secondDimension = function (dim, outerSize, innerSize, point) {
|
648
|
+
var retVal;
|
649
|
+
|
650
|
+
// Too close to the edge, return false and swap dimensions
|
651
|
+
if (point < distance || point > outerSize - distance) {
|
652
|
+
retVal = false;
|
653
|
+
// Align left/top
|
654
|
+
} else if (point < innerSize / 2) {
|
655
|
+
ret[dim] = 1;
|
656
|
+
// Align right/bottom
|
657
|
+
} else if (point > outerSize - innerSize / 2) {
|
658
|
+
ret[dim] = outerSize - innerSize - 2;
|
659
|
+
// Align center
|
660
|
+
} else {
|
661
|
+
ret[dim] = point - innerSize / 2;
|
662
|
+
}
|
663
|
+
return retVal;
|
664
|
+
},
|
665
|
+
|
666
|
+
/*
|
667
|
+
* Swap the dimensions
|
668
|
+
*/
|
669
|
+
swap = function (count) {
|
670
|
+
var temp = first;
|
671
|
+
|
672
|
+
first = second;
|
673
|
+
second = temp;
|
674
|
+
swapped = count;
|
675
|
+
},
|
676
|
+
run = function () {
|
677
|
+
if (firstDimension.apply(0, first) !== false) {
|
678
|
+
if (
|
679
|
+
secondDimension.apply(0, second) === false &&
|
680
|
+
!swapped
|
681
|
+
) {
|
682
|
+
swap(true);
|
683
|
+
run();
|
684
|
+
}
|
685
|
+
} else if (!swapped) {
|
686
|
+
swap(true);
|
687
|
+
run();
|
688
|
+
} else {
|
689
|
+
ret.x = ret.y = 0;
|
690
|
+
}
|
691
|
+
};
|
692
|
+
|
693
|
+
// Under these conditions, prefer the tooltip on the side of the point
|
694
|
+
if (chart.inverted || this.len > 1) {
|
695
|
+
swap();
|
696
|
+
}
|
697
|
+
run();
|
698
|
+
|
699
|
+
return ret;
|
700
|
+
|
701
|
+
},
|
702
|
+
|
703
|
+
/**
|
704
|
+
* In case no user defined formatter is given, this will be used. Note that
|
705
|
+
* the context here is an object holding point, series, x, y etc.
|
706
|
+
*
|
707
|
+
* @private
|
708
|
+
* @function Highcharts.Tooltip#defaultFormatter
|
709
|
+
*
|
710
|
+
* @param {Highcharts.Tooltip} tooltip
|
711
|
+
*
|
712
|
+
* @return {Array<string>}
|
713
|
+
*/
|
714
|
+
defaultFormatter: function (tooltip) {
|
715
|
+
var items = this.points || splat(this),
|
716
|
+
s;
|
717
|
+
|
718
|
+
// Build the header
|
719
|
+
s = [tooltip.tooltipFooterHeaderFormatter(items[0])];
|
720
|
+
|
721
|
+
// build the values
|
722
|
+
s = s.concat(tooltip.bodyFormatter(items));
|
723
|
+
|
724
|
+
// footer
|
725
|
+
s.push(tooltip.tooltipFooterHeaderFormatter(items[0], true));
|
726
|
+
|
727
|
+
return s;
|
728
|
+
},
|
729
|
+
|
730
|
+
/**
|
731
|
+
* Refresh the tooltip's text and position.
|
732
|
+
*
|
733
|
+
* @function Highcharts.Tooltip#refresh
|
734
|
+
*
|
735
|
+
* @param {Highcharts.Point|Array<Highcharts.Point>} pointOrPoints
|
736
|
+
* Either a point or an array of points.
|
737
|
+
*
|
738
|
+
* @param {global.Event} [mouseEvent]
|
739
|
+
* Mouse event, that is responsible for the refresh and should be
|
740
|
+
* used for the tooltip update.
|
741
|
+
*/
|
742
|
+
refresh: function (pointOrPoints, mouseEvent) {
|
743
|
+
var tooltip = this,
|
744
|
+
label,
|
745
|
+
options = tooltip.options,
|
746
|
+
x,
|
747
|
+
y,
|
748
|
+
point = pointOrPoints,
|
749
|
+
anchor,
|
750
|
+
textConfig = {},
|
751
|
+
text,
|
752
|
+
pointConfig = [],
|
753
|
+
formatter = options.formatter || tooltip.defaultFormatter,
|
754
|
+
shared = tooltip.shared,
|
755
|
+
currentSeries,
|
756
|
+
styledMode = this.chart.styledMode;
|
757
|
+
|
758
|
+
if (!options.enabled) {
|
759
|
+
return;
|
760
|
+
}
|
761
|
+
|
762
|
+
H.clearTimeout(this.hideTimer);
|
763
|
+
|
764
|
+
// get the reference point coordinates (pie charts use tooltipPos)
|
765
|
+
tooltip.followPointer = splat(point)[0].series.tooltipOptions
|
766
|
+
.followPointer;
|
767
|
+
anchor = tooltip.getAnchor(point, mouseEvent);
|
768
|
+
x = anchor[0];
|
769
|
+
y = anchor[1];
|
770
|
+
|
771
|
+
// shared tooltip, array is sent over
|
772
|
+
if (shared && !(point.series && point.series.noSharedTooltip)) {
|
773
|
+
point.forEach(function (item) {
|
774
|
+
item.setState('hover');
|
775
|
+
|
776
|
+
pointConfig.push(item.getLabelConfig());
|
777
|
+
});
|
778
|
+
|
779
|
+
textConfig = {
|
780
|
+
x: point[0].category,
|
781
|
+
y: point[0].y
|
782
|
+
};
|
783
|
+
textConfig.points = pointConfig;
|
784
|
+
point = point[0];
|
785
|
+
|
786
|
+
// single point tooltip
|
787
|
+
} else {
|
788
|
+
textConfig = point.getLabelConfig();
|
789
|
+
}
|
790
|
+
this.len = pointConfig.length; // #6128
|
791
|
+
text = formatter.call(textConfig, tooltip);
|
792
|
+
|
793
|
+
// register the current series
|
794
|
+
currentSeries = point.series;
|
795
|
+
this.distance = pick(currentSeries.tooltipOptions.distance, 16);
|
796
|
+
|
797
|
+
// update the inner HTML
|
798
|
+
if (text === false) {
|
799
|
+
this.hide();
|
800
|
+
} else {
|
801
|
+
|
802
|
+
label = tooltip.getLabel();
|
803
|
+
|
804
|
+
// show it
|
805
|
+
if (tooltip.isHidden) {
|
806
|
+
label.attr({
|
807
|
+
opacity: 1
|
808
|
+
}).show();
|
809
|
+
}
|
810
|
+
|
811
|
+
// update text
|
812
|
+
if (tooltip.split) {
|
813
|
+
this.renderSplit(text, splat(pointOrPoints));
|
814
|
+
} else {
|
815
|
+
|
816
|
+
// Prevent the tooltip from flowing over the chart box (#6659)
|
817
|
+
if (!options.style.width || styledMode) {
|
818
|
+
label.css({
|
819
|
+
width: this.chart.spacingBox.width
|
820
|
+
});
|
821
|
+
}
|
822
|
+
|
823
|
+
label.attr({
|
824
|
+
text: text && text.join ? text.join('') : text
|
825
|
+
});
|
826
|
+
|
827
|
+
// Set the stroke color of the box to reflect the point
|
828
|
+
label.removeClass(/highcharts-color-[\d]+/g)
|
829
|
+
.addClass(
|
830
|
+
'highcharts-color-' +
|
831
|
+
pick(point.colorIndex, currentSeries.colorIndex)
|
832
|
+
);
|
833
|
+
|
834
|
+
if (!styledMode) {
|
835
|
+
label.attr({
|
836
|
+
stroke: (
|
837
|
+
options.borderColor ||
|
838
|
+
point.color ||
|
839
|
+
currentSeries.color ||
|
840
|
+
'#666666'
|
841
|
+
)
|
842
|
+
});
|
843
|
+
}
|
844
|
+
|
845
|
+
tooltip.updatePosition({
|
846
|
+
plotX: x,
|
847
|
+
plotY: y,
|
848
|
+
negative: point.negative,
|
849
|
+
ttBelow: point.ttBelow,
|
850
|
+
h: anchor[2] || 0
|
851
|
+
});
|
852
|
+
}
|
853
|
+
|
854
|
+
this.isHidden = false;
|
855
|
+
}
|
856
|
+
},
|
857
|
+
|
858
|
+
/**
|
859
|
+
* Render the split tooltip. Loops over each point's text and adds
|
860
|
+
* a label next to the point, then uses the distribute function to
|
861
|
+
* find best non-overlapping positions.
|
862
|
+
*
|
863
|
+
* @private
|
864
|
+
* @function Highcharts.Tooltip#renderSplit
|
865
|
+
*
|
866
|
+
* @param {Array<Highcharts.Label>} labels
|
867
|
+
*
|
868
|
+
* @param {Array<Highcharts.Point>} points
|
869
|
+
*/
|
870
|
+
renderSplit: function (labels, points) {
|
871
|
+
var tooltip = this,
|
872
|
+
boxes = [],
|
873
|
+
chart = this.chart,
|
874
|
+
ren = chart.renderer,
|
875
|
+
rightAligned = true,
|
876
|
+
options = this.options,
|
877
|
+
headerHeight = 0,
|
878
|
+
headerTop,
|
879
|
+
tooltipLabel = this.getLabel(),
|
880
|
+
distributionBoxTop = chart.plotTop;
|
881
|
+
|
882
|
+
// Graceful degradation for legacy formatters
|
883
|
+
if (H.isString(labels)) {
|
884
|
+
labels = [false, labels];
|
885
|
+
}
|
886
|
+
// Create the individual labels for header and points, ignore footer
|
887
|
+
labels.slice(0, points.length + 1).forEach(function (str, i) {
|
888
|
+
if (str !== false && str !== '') {
|
889
|
+
var point = points[i - 1] ||
|
890
|
+
{
|
891
|
+
// Item 0 is the header. Instead of this, we could also
|
892
|
+
// use the crosshair label
|
893
|
+
isHeader: true,
|
894
|
+
plotX: points[0].plotX,
|
895
|
+
plotY: chart.plotHeight
|
896
|
+
},
|
897
|
+
owner = point.series || tooltip,
|
898
|
+
tt = owner.tt,
|
899
|
+
series = point.series || {},
|
900
|
+
colorClass = 'highcharts-color-' + pick(
|
901
|
+
point.colorIndex,
|
902
|
+
series.colorIndex,
|
903
|
+
'none'
|
904
|
+
),
|
905
|
+
target,
|
906
|
+
x,
|
907
|
+
bBox,
|
908
|
+
boxWidth,
|
909
|
+
attribs;
|
910
|
+
|
911
|
+
// Store the tooltip referance on the series
|
912
|
+
if (!tt) {
|
913
|
+
|
914
|
+
attribs = {
|
915
|
+
padding: options.padding,
|
916
|
+
r: options.borderRadius
|
917
|
+
};
|
918
|
+
|
919
|
+
if (!chart.styledMode) {
|
920
|
+
attribs.fill = options.backgroundColor;
|
921
|
+
attribs.stroke = (
|
922
|
+
options.borderColor ||
|
923
|
+
point.color ||
|
924
|
+
series.color ||
|
925
|
+
'#333333'
|
926
|
+
);
|
927
|
+
attribs['stroke-width'] = options.borderWidth;
|
928
|
+
}
|
929
|
+
|
930
|
+
owner.tt = tt = ren
|
931
|
+
.label(
|
932
|
+
null,
|
933
|
+
null,
|
934
|
+
null,
|
935
|
+
(
|
936
|
+
point.isHeader ? options.headerShape :
|
937
|
+
options.shape
|
938
|
+
) || 'callout',
|
939
|
+
null,
|
940
|
+
null,
|
941
|
+
options.useHTML
|
942
|
+
)
|
943
|
+
.addClass('highcharts-tooltip-box ' + colorClass)
|
944
|
+
.attr(attribs)
|
945
|
+
.add(tooltipLabel);
|
946
|
+
}
|
947
|
+
|
948
|
+
tt.isActive = true;
|
949
|
+
tt.attr({
|
950
|
+
text: str
|
951
|
+
});
|
952
|
+
if (!chart.styledMode) {
|
953
|
+
tt.css(options.style)
|
954
|
+
.shadow(options.shadow);
|
955
|
+
}
|
956
|
+
|
957
|
+
// Get X position now, so we can move all to the other side in
|
958
|
+
// case of overflow
|
959
|
+
bBox = tt.getBBox();
|
960
|
+
boxWidth = bBox.width + tt.strokeWidth();
|
961
|
+
if (point.isHeader) {
|
962
|
+
headerHeight = bBox.height;
|
963
|
+
if (chart.xAxis[0].opposite) {
|
964
|
+
headerTop = true;
|
965
|
+
distributionBoxTop -= headerHeight;
|
966
|
+
}
|
967
|
+
x = Math.max(
|
968
|
+
0, // No left overflow
|
969
|
+
Math.min(
|
970
|
+
point.plotX + chart.plotLeft - boxWidth / 2,
|
971
|
+
// No right overflow (#5794)
|
972
|
+
chart.chartWidth +
|
973
|
+
(
|
974
|
+
// Scrollable plot area
|
975
|
+
chart.scrollablePixels ?
|
976
|
+
chart.scrollablePixels - chart.marginRight :
|
977
|
+
0
|
978
|
+
) -
|
979
|
+
boxWidth
|
980
|
+
)
|
981
|
+
);
|
982
|
+
} else {
|
983
|
+
x = point.plotX + chart.plotLeft -
|
984
|
+
pick(options.distance, 16) - boxWidth;
|
985
|
+
}
|
986
|
+
|
987
|
+
|
988
|
+
// If overflow left, we don't use this x in the next loop
|
989
|
+
if (x < 0) {
|
990
|
+
rightAligned = false;
|
991
|
+
}
|
992
|
+
|
993
|
+
// Prepare for distribution
|
994
|
+
target = (point.series && point.series.yAxis &&
|
995
|
+
point.series.yAxis.pos) + (point.plotY || 0);
|
996
|
+
target -= distributionBoxTop;
|
997
|
+
|
998
|
+
if (point.isHeader) {
|
999
|
+
target = headerTop ?
|
1000
|
+
-headerHeight :
|
1001
|
+
chart.plotHeight + headerHeight;
|
1002
|
+
}
|
1003
|
+
boxes.push({
|
1004
|
+
target: target,
|
1005
|
+
rank: point.isHeader ? 1 : 0,
|
1006
|
+
size: owner.tt.getBBox().height + 1,
|
1007
|
+
point: point,
|
1008
|
+
x: x,
|
1009
|
+
tt: tt
|
1010
|
+
});
|
1011
|
+
}
|
1012
|
+
});
|
1013
|
+
|
1014
|
+
// Clean previous run (for missing points)
|
1015
|
+
this.cleanSplit();
|
1016
|
+
|
1017
|
+
if (options.positioner) {
|
1018
|
+
boxes.forEach(function (box) {
|
1019
|
+
var boxPosition = options.positioner.call(
|
1020
|
+
tooltip,
|
1021
|
+
box.tt.getBBox().width,
|
1022
|
+
box.size,
|
1023
|
+
box.point
|
1024
|
+
);
|
1025
|
+
|
1026
|
+
box.x = boxPosition.x;
|
1027
|
+
box.align = 0; // 0-align to the top, 1-align to the bottom
|
1028
|
+
box.target = boxPosition.y;
|
1029
|
+
box.rank = pick(boxPosition.rank, box.rank);
|
1030
|
+
});
|
1031
|
+
}
|
1032
|
+
|
1033
|
+
// Distribute and put in place
|
1034
|
+
H.distribute(boxes, chart.plotHeight + headerHeight);
|
1035
|
+
boxes.forEach(function (box) {
|
1036
|
+
var point = box.point,
|
1037
|
+
series = point.series;
|
1038
|
+
|
1039
|
+
// Put the label in place
|
1040
|
+
box.tt.attr({
|
1041
|
+
visibility: box.pos === undefined ? 'hidden' : 'inherit',
|
1042
|
+
x: (rightAligned || point.isHeader || options.positioner ?
|
1043
|
+
box.x :
|
1044
|
+
point.plotX + chart.plotLeft + tooltip.distance),
|
1045
|
+
y: box.pos + distributionBoxTop,
|
1046
|
+
anchorX: point.isHeader ?
|
1047
|
+
point.plotX + chart.plotLeft :
|
1048
|
+
point.plotX + series.xAxis.pos,
|
1049
|
+
anchorY: point.isHeader ?
|
1050
|
+
chart.plotTop + chart.plotHeight / 2 :
|
1051
|
+
point.plotY + series.yAxis.pos
|
1052
|
+
});
|
1053
|
+
});
|
1054
|
+
},
|
1055
|
+
|
1056
|
+
/**
|
1057
|
+
* Find the new position and perform the move
|
1058
|
+
*
|
1059
|
+
* @private
|
1060
|
+
* @function Highcharts.Tooltip#updatePosition
|
1061
|
+
*
|
1062
|
+
* @param {Highcharts.Point} point
|
1063
|
+
*/
|
1064
|
+
updatePosition: function (point) {
|
1065
|
+
var chart = this.chart,
|
1066
|
+
label = this.getLabel(),
|
1067
|
+
pos = (this.options.positioner || this.getPosition).call(
|
1068
|
+
this,
|
1069
|
+
label.width,
|
1070
|
+
label.height,
|
1071
|
+
point
|
1072
|
+
),
|
1073
|
+
anchorX = point.plotX + chart.plotLeft,
|
1074
|
+
anchorY = point.plotY + chart.plotTop,
|
1075
|
+
pad;
|
1076
|
+
|
1077
|
+
// Set the renderer size dynamically to prevent document size to change
|
1078
|
+
if (this.outside) {
|
1079
|
+
pad = (this.options.borderWidth || 0) + 2 * this.distance;
|
1080
|
+
this.renderer.setSize(
|
1081
|
+
label.width + pad,
|
1082
|
+
label.height + pad,
|
1083
|
+
false
|
1084
|
+
);
|
1085
|
+
anchorX += chart.pointer.chartPosition.left - pos.x;
|
1086
|
+
anchorY += chart.pointer.chartPosition.top - pos.y;
|
1087
|
+
}
|
1088
|
+
|
1089
|
+
// do the move
|
1090
|
+
this.move(
|
1091
|
+
Math.round(pos.x),
|
1092
|
+
Math.round(pos.y || 0), // can be undefined (#3977)
|
1093
|
+
anchorX,
|
1094
|
+
anchorY
|
1095
|
+
);
|
1096
|
+
},
|
1097
|
+
|
1098
|
+
/**
|
1099
|
+
* Get the optimal date format for a point, based on a range.
|
1100
|
+
*
|
1101
|
+
* @private
|
1102
|
+
* @function Highcharts.Tooltip#getDateFormat
|
1103
|
+
*
|
1104
|
+
* @param {number} range
|
1105
|
+
* The time range
|
1106
|
+
*
|
1107
|
+
* @param {number|Date} date
|
1108
|
+
* The date of the point in question
|
1109
|
+
*
|
1110
|
+
* @param {number} startOfWeek
|
1111
|
+
* An integer representing the first day of the week, where 0 is
|
1112
|
+
* Sunday.
|
1113
|
+
*
|
1114
|
+
* @param {Highcharts.Dictionary<string>} dateTimeLabelFormats
|
1115
|
+
* A map of time units to formats.
|
1116
|
+
*
|
1117
|
+
* @return {string}
|
1118
|
+
* The optimal date format for a point.
|
1119
|
+
*/
|
1120
|
+
getDateFormat: function (range, date, startOfWeek, dateTimeLabelFormats) {
|
1121
|
+
var time = this.chart.time,
|
1122
|
+
dateStr = time.dateFormat('%m-%d %H:%M:%S.%L', date),
|
1123
|
+
format,
|
1124
|
+
n,
|
1125
|
+
blank = '01-01 00:00:00.000',
|
1126
|
+
strpos = {
|
1127
|
+
millisecond: 15,
|
1128
|
+
second: 12,
|
1129
|
+
minute: 9,
|
1130
|
+
hour: 6,
|
1131
|
+
day: 3
|
1132
|
+
},
|
1133
|
+
lastN = 'millisecond'; // for sub-millisecond data, #4223
|
1134
|
+
|
1135
|
+
for (n in timeUnits) {
|
1136
|
+
|
1137
|
+
// If the range is exactly one week and we're looking at a
|
1138
|
+
// Sunday/Monday, go for the week format
|
1139
|
+
if (
|
1140
|
+
range === timeUnits.week &&
|
1141
|
+
+time.dateFormat('%w', date) === startOfWeek &&
|
1142
|
+
dateStr.substr(6) === blank.substr(6)
|
1143
|
+
) {
|
1144
|
+
n = 'week';
|
1145
|
+
break;
|
1146
|
+
}
|
1147
|
+
|
1148
|
+
// The first format that is too great for the range
|
1149
|
+
if (timeUnits[n] > range) {
|
1150
|
+
n = lastN;
|
1151
|
+
break;
|
1152
|
+
}
|
1153
|
+
|
1154
|
+
// If the point is placed every day at 23:59, we need to show
|
1155
|
+
// the minutes as well. #2637.
|
1156
|
+
if (
|
1157
|
+
strpos[n] &&
|
1158
|
+
dateStr.substr(strpos[n]) !== blank.substr(strpos[n])
|
1159
|
+
) {
|
1160
|
+
break;
|
1161
|
+
}
|
1162
|
+
|
1163
|
+
// Weeks are outside the hierarchy, only apply them on
|
1164
|
+
// Mondays/Sundays like in the first condition
|
1165
|
+
if (n !== 'week') {
|
1166
|
+
lastN = n;
|
1167
|
+
}
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
if (n) {
|
1171
|
+
format = time.resolveDTLFormat(dateTimeLabelFormats[n]).main;
|
1172
|
+
}
|
1173
|
+
|
1174
|
+
return format;
|
1175
|
+
},
|
1176
|
+
|
1177
|
+
/**
|
1178
|
+
* Get the best X date format based on the closest point range on the axis.
|
1179
|
+
*
|
1180
|
+
* @private
|
1181
|
+
* @function Highcharts.Tooltip#getXDateFormat
|
1182
|
+
*
|
1183
|
+
* @param {Highcharts.Point} point
|
1184
|
+
*
|
1185
|
+
* @param {Highcharts.TooltipOptions} options
|
1186
|
+
*
|
1187
|
+
* @param {Highcharts.Axis} xAxis
|
1188
|
+
*
|
1189
|
+
* @return {string}
|
1190
|
+
*/
|
1191
|
+
getXDateFormat: function (point, options, xAxis) {
|
1192
|
+
var xDateFormat,
|
1193
|
+
dateTimeLabelFormats = options.dateTimeLabelFormats,
|
1194
|
+
closestPointRange = xAxis && xAxis.closestPointRange;
|
1195
|
+
|
1196
|
+
if (closestPointRange) {
|
1197
|
+
xDateFormat = this.getDateFormat(
|
1198
|
+
closestPointRange,
|
1199
|
+
point.x,
|
1200
|
+
xAxis.options.startOfWeek,
|
1201
|
+
dateTimeLabelFormats
|
1202
|
+
);
|
1203
|
+
} else {
|
1204
|
+
xDateFormat = dateTimeLabelFormats.day;
|
1205
|
+
}
|
1206
|
+
|
1207
|
+
return xDateFormat || dateTimeLabelFormats.year; // #2546, 2581
|
1208
|
+
},
|
1209
|
+
|
1210
|
+
/**
|
1211
|
+
* Format the footer/header of the tooltip
|
1212
|
+
* #3397: abstraction to enable formatting of footer and header
|
1213
|
+
*
|
1214
|
+
* @private
|
1215
|
+
* @function Highcharts.Tooltip#tooltipFooterHeaderFormatter
|
1216
|
+
*
|
1217
|
+
* @param {*} labelConfig
|
1218
|
+
*
|
1219
|
+
* @param {boolean} isFooter
|
1220
|
+
*
|
1221
|
+
* @return {string}
|
1222
|
+
*/
|
1223
|
+
tooltipFooterHeaderFormatter: function (labelConfig, isFooter) {
|
1224
|
+
var footOrHead = isFooter ? 'footer' : 'header',
|
1225
|
+
series = labelConfig.series,
|
1226
|
+
tooltipOptions = series.tooltipOptions,
|
1227
|
+
xDateFormat = tooltipOptions.xDateFormat,
|
1228
|
+
xAxis = series.xAxis,
|
1229
|
+
isDateTime = (
|
1230
|
+
xAxis &&
|
1231
|
+
xAxis.options.type === 'datetime' &&
|
1232
|
+
isNumber(labelConfig.key)
|
1233
|
+
),
|
1234
|
+
formatString = tooltipOptions[footOrHead + 'Format'],
|
1235
|
+
evt = { isFooter: isFooter, labelConfig: labelConfig };
|
1236
|
+
|
1237
|
+
H.fireEvent(this, 'headerFormatter', evt, function (e) {
|
1238
|
+
|
1239
|
+
// Guess the best date format based on the closest point distance
|
1240
|
+
// (#568, #3418)
|
1241
|
+
if (isDateTime && !xDateFormat) {
|
1242
|
+
xDateFormat = this.getXDateFormat(
|
1243
|
+
labelConfig,
|
1244
|
+
tooltipOptions,
|
1245
|
+
xAxis
|
1246
|
+
);
|
1247
|
+
}
|
1248
|
+
|
1249
|
+
// Insert the footer date format if any
|
1250
|
+
if (isDateTime && xDateFormat) {
|
1251
|
+
((labelConfig.point && labelConfig.point.tooltipDateKeys) ||
|
1252
|
+
['key']).forEach(
|
1253
|
+
function (key) {
|
1254
|
+
formatString = formatString.replace(
|
1255
|
+
'{point.' + key + '}',
|
1256
|
+
'{point.' + key + ':' + xDateFormat + '}'
|
1257
|
+
);
|
1258
|
+
}
|
1259
|
+
);
|
1260
|
+
}
|
1261
|
+
|
1262
|
+
// Replace default header style with class name
|
1263
|
+
if (series.chart.styledMode) {
|
1264
|
+
formatString = this.styledModeFormat(formatString);
|
1265
|
+
}
|
1266
|
+
|
1267
|
+
e.text = format(formatString, {
|
1268
|
+
point: labelConfig,
|
1269
|
+
series: series
|
1270
|
+
}, this.chart.time);
|
1271
|
+
|
1272
|
+
});
|
1273
|
+
return evt.text;
|
1274
|
+
},
|
1275
|
+
|
1276
|
+
/**
|
1277
|
+
* Build the body (lines) of the tooltip by iterating over the items and
|
1278
|
+
* returning one entry for each item, abstracting this functionality allows
|
1279
|
+
* to easily overwrite and extend it.
|
1280
|
+
*
|
1281
|
+
* @private
|
1282
|
+
* @function Highcharts.Tooltip#bodyFormatter
|
1283
|
+
*
|
1284
|
+
* @param {Array<Highcharts.Point>} items
|
1285
|
+
*
|
1286
|
+
* @return {string}
|
1287
|
+
*/
|
1288
|
+
bodyFormatter: function (items) {
|
1289
|
+
return items.map(function (item) {
|
1290
|
+
var tooltipOptions = item.series.tooltipOptions;
|
1291
|
+
|
1292
|
+
return (
|
1293
|
+
tooltipOptions[
|
1294
|
+
(item.point.formatPrefix || 'point') + 'Formatter'
|
1295
|
+
] ||
|
1296
|
+
item.point.tooltipFormatter
|
1297
|
+
).call(
|
1298
|
+
item.point,
|
1299
|
+
tooltipOptions[
|
1300
|
+
(item.point.formatPrefix || 'point') + 'Format'
|
1301
|
+
] || ''
|
1302
|
+
);
|
1303
|
+
});
|
1304
|
+
},
|
1305
|
+
|
1306
|
+
styledModeFormat: function (formatString) {
|
1307
|
+
return formatString
|
1308
|
+
.replace(
|
1309
|
+
'style="font-size: 10px"',
|
1310
|
+
'class="highcharts-header"'
|
1311
|
+
)
|
1312
|
+
.replace(
|
1313
|
+
/style="color:{(point|series)\.color}"/g,
|
1314
|
+
'class="highcharts-color-{$1.colorIndex}"'
|
1315
|
+
);
|
1316
|
+
}
|
1317
|
+
|
1318
|
+
};
|