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,1298 @@
|
|
1
|
+
/* *
|
2
|
+
* (c) 2016 Highsoft AS
|
3
|
+
* Authors: Øystein Moseng, Lars A. V. Cabrera
|
4
|
+
*
|
5
|
+
* License: www.highcharts.com/license
|
6
|
+
*/
|
7
|
+
|
8
|
+
'use strict';
|
9
|
+
|
10
|
+
import H from '../parts/Globals.js';
|
11
|
+
import '../parts/Point.js';
|
12
|
+
import '../parts/Utilities.js';
|
13
|
+
import pathfinderAlgorithms from 'PathfinderAlgorithms.js';
|
14
|
+
import 'ArrowSymbols.js';
|
15
|
+
|
16
|
+
var defined = H.defined,
|
17
|
+
deg2rad = H.deg2rad,
|
18
|
+
extend = H.extend,
|
19
|
+
addEvent = H.addEvent,
|
20
|
+
merge = H.merge,
|
21
|
+
pick = H.pick,
|
22
|
+
max = Math.max,
|
23
|
+
min = Math.min;
|
24
|
+
|
25
|
+
/*
|
26
|
+
@todo:
|
27
|
+
- Document how to write your own algorithms
|
28
|
+
- Consider adding a Point.pathTo method that wraps creating a connection
|
29
|
+
and rendering it
|
30
|
+
*/
|
31
|
+
|
32
|
+
|
33
|
+
// Set default Pathfinder options
|
34
|
+
extend(H.defaultOptions, {
|
35
|
+
/**
|
36
|
+
* The Pathfinder module allows you to define connections between any two
|
37
|
+
* points, represented as lines - optionally with markers for the start
|
38
|
+
* and/or end points. Multiple algorithms are available for calculating how
|
39
|
+
* the connecting lines are drawn.
|
40
|
+
*
|
41
|
+
* Connector functionality requires Highcharts Gantt to be loaded. In Gantt
|
42
|
+
* charts, the connectors are used to draw dependencies between tasks.
|
43
|
+
*
|
44
|
+
* @see [dependency](series.gantt.data.dependency)
|
45
|
+
*
|
46
|
+
* @sample gantt/pathfinder/demo
|
47
|
+
* Pathfinder connections
|
48
|
+
*
|
49
|
+
* @product gantt
|
50
|
+
* @optionparent connectors
|
51
|
+
*/
|
52
|
+
connectors: {
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Enable connectors for this chart. Requires Highcharts Gantt.
|
56
|
+
*
|
57
|
+
* @type {boolean}
|
58
|
+
* @default true
|
59
|
+
* @since 6.2.0
|
60
|
+
* @apioption connectors.enabled
|
61
|
+
*/
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Set the default dash style for this chart's connecting lines.
|
65
|
+
*
|
66
|
+
* @type {string}
|
67
|
+
* @default solid
|
68
|
+
* @since 6.2.0
|
69
|
+
* @apioption connectors.dashStyle
|
70
|
+
*/
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Set the default color for this chart's Pathfinder connecting lines.
|
74
|
+
* Defaults to the color of the point being connected.
|
75
|
+
*
|
76
|
+
* @type {Highcharts.ColorString}
|
77
|
+
* @since 6.2.0
|
78
|
+
* @apioption connectors.lineColor
|
79
|
+
*/
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Set the default pathfinder margin to use, in pixels. Some Pathfinder
|
83
|
+
* algorithms attempt to avoid obstacles, such as other points in the
|
84
|
+
* chart. These algorithms use this margin to determine how close lines
|
85
|
+
* can be to an obstacle. The default is to compute this automatically
|
86
|
+
* from the size of the obstacles in the chart.
|
87
|
+
*
|
88
|
+
* To draw connecting lines close to existing points, set this to a low
|
89
|
+
* number. For more space around existing points, set this number
|
90
|
+
* higher.
|
91
|
+
*
|
92
|
+
* @sample gantt/pathfinder/algorithm-margin
|
93
|
+
* Small algorithmMargin
|
94
|
+
*
|
95
|
+
* @type {number}
|
96
|
+
* @since 6.2.0
|
97
|
+
* @apioption connectors.algorithmMargin
|
98
|
+
*/
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Set the default pathfinder algorithm to use for this chart. It is
|
102
|
+
* possible to define your own algorithms by adding them to the
|
103
|
+
* Highcharts.Pathfinder.prototype.algorithms object before the chart
|
104
|
+
* has been created.
|
105
|
+
*
|
106
|
+
* The default algorithms are as follows:
|
107
|
+
*
|
108
|
+
* `straight`: Draws a straight line between the connecting
|
109
|
+
* points. Does not avoid other points when drawing.
|
110
|
+
*
|
111
|
+
* `simpleConnect`: Finds a path between the points using right angles
|
112
|
+
* only. Takes only starting/ending points into
|
113
|
+
* account, and will not avoid other points.
|
114
|
+
*
|
115
|
+
* `fastAvoid`: Finds a path between the points using right angles
|
116
|
+
* only. Will attempt to avoid other points, but its
|
117
|
+
* focus is performance over accuracy. Works well with
|
118
|
+
* less dense datasets.
|
119
|
+
*
|
120
|
+
* Default value: `straight` is used as default for most series types,
|
121
|
+
* while `simpleConnect` is used as default for Gantt series, to show
|
122
|
+
* dependencies between points.
|
123
|
+
*
|
124
|
+
* @sample gantt/pathfinder/demo
|
125
|
+
* Different types used
|
126
|
+
*
|
127
|
+
* @default undefined
|
128
|
+
* @since 6.2.0
|
129
|
+
* @validvalue ["straight", "simpleConnect", "fastAvoid"]
|
130
|
+
*/
|
131
|
+
type: 'straight',
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Set the default pixel width for this chart's Pathfinder connecting
|
135
|
+
* lines.
|
136
|
+
*
|
137
|
+
* @since 6.2.0
|
138
|
+
*/
|
139
|
+
lineWidth: 1,
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Marker options for this chart's Pathfinder connectors. Note that
|
143
|
+
* this option is overridden by the `startMarker` and `endMarker`
|
144
|
+
* options.
|
145
|
+
*
|
146
|
+
* @since 6.2.0
|
147
|
+
*/
|
148
|
+
marker: {
|
149
|
+
/**
|
150
|
+
* Set the radius of the connector markers. The default is
|
151
|
+
* automatically computed based on the algorithmMargin setting.
|
152
|
+
*
|
153
|
+
* Setting marker.width and marker.height will override this
|
154
|
+
* setting.
|
155
|
+
*
|
156
|
+
* @type {number}
|
157
|
+
* @since 6.2.0
|
158
|
+
* @apioption connectors.marker.radius
|
159
|
+
*/
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Set the width of the connector markers. If not supplied, this
|
163
|
+
* is inferred from the marker radius.
|
164
|
+
*
|
165
|
+
* @type {number}
|
166
|
+
* @since 6.2.0
|
167
|
+
* @apioption connectors.marker.width
|
168
|
+
*/
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Set the height of the connector markers. If not supplied, this
|
172
|
+
* is inferred from the marker radius.
|
173
|
+
*
|
174
|
+
* @type {number}
|
175
|
+
* @since 6.2.0
|
176
|
+
* @apioption connectors.marker.height
|
177
|
+
*/
|
178
|
+
|
179
|
+
/**
|
180
|
+
* Set the color of the connector markers. By default this is the
|
181
|
+
* same as the connector color.
|
182
|
+
*
|
183
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
184
|
+
* @since 6.2.0
|
185
|
+
* @apioption connectors.marker.color
|
186
|
+
*/
|
187
|
+
|
188
|
+
/**
|
189
|
+
* Set the line/border color of the connector markers. By default
|
190
|
+
* this is the same as the marker color.
|
191
|
+
*
|
192
|
+
* @type {Highcharts.ColorString}
|
193
|
+
* @since 6.2.0
|
194
|
+
* @apioption connectors.marker.lineColor
|
195
|
+
*/
|
196
|
+
|
197
|
+
/**
|
198
|
+
* Enable markers for the connectors.
|
199
|
+
*/
|
200
|
+
enabled: false,
|
201
|
+
|
202
|
+
/**
|
203
|
+
* Horizontal alignment of the markers relative to the points.
|
204
|
+
*
|
205
|
+
* @type {Highcharts.AlignType}
|
206
|
+
*/
|
207
|
+
align: 'center',
|
208
|
+
|
209
|
+
/**
|
210
|
+
* Vertical alignment of the markers relative to the points.
|
211
|
+
*
|
212
|
+
* @type {Highcharts.VerticalAlignType}
|
213
|
+
*/
|
214
|
+
verticalAlign: 'middle',
|
215
|
+
|
216
|
+
/**
|
217
|
+
* Whether or not to draw the markers inside the points.
|
218
|
+
*/
|
219
|
+
inside: false,
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Set the line/border width of the pathfinder markers.
|
223
|
+
*/
|
224
|
+
lineWidth: 1
|
225
|
+
},
|
226
|
+
|
227
|
+
/**
|
228
|
+
* Marker options specific to the start markers for this chart's
|
229
|
+
* Pathfinder connectors. Overrides the generic marker options.
|
230
|
+
*
|
231
|
+
* @extends connectors.marker
|
232
|
+
* @since 6.2.0
|
233
|
+
*/
|
234
|
+
startMarker: {
|
235
|
+
/**
|
236
|
+
* Set the symbol of the connector start markers.
|
237
|
+
*/
|
238
|
+
symbol: 'diamond'
|
239
|
+
},
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Marker options specific to the end markers for this chart's
|
243
|
+
* Pathfinder connectors. Overrides the generic marker options.
|
244
|
+
*
|
245
|
+
* @extends connectors.marker
|
246
|
+
* @since 6.2.0
|
247
|
+
*/
|
248
|
+
endMarker: {
|
249
|
+
/**
|
250
|
+
* Set the symbol of the connector end markers.
|
251
|
+
*/
|
252
|
+
symbol: 'arrow-filled'
|
253
|
+
}
|
254
|
+
}
|
255
|
+
});
|
256
|
+
|
257
|
+
/**
|
258
|
+
* Override Pathfinder connector options for a series. Requires Highcharts Gantt
|
259
|
+
* to be loaded.
|
260
|
+
*
|
261
|
+
* @extends connectors
|
262
|
+
* @since 6.2.0
|
263
|
+
* @excluding enabled, algorithmMargin
|
264
|
+
* @product gantt
|
265
|
+
* @apioption plotOptions.series.connectors
|
266
|
+
*/
|
267
|
+
|
268
|
+
/**
|
269
|
+
* Connect to a point. Requires Highcharts Gantt to be loaded. This option can
|
270
|
+
* be either a string, referring to the ID of another point, or an object, or an
|
271
|
+
* array of either. If the option is an array, each element defines a
|
272
|
+
* connection.
|
273
|
+
*
|
274
|
+
* @sample gantt/pathfinder/demo
|
275
|
+
* Different connection types
|
276
|
+
*
|
277
|
+
* @type {string|Array<string|*>|*}
|
278
|
+
* @extends plotOptions.series.connectors
|
279
|
+
* @since 6.2.0
|
280
|
+
* @excluding enabled
|
281
|
+
* @product gantt
|
282
|
+
* @apioption series.xrange.data.connect
|
283
|
+
*/
|
284
|
+
|
285
|
+
/**
|
286
|
+
* The ID of the point to connect to.
|
287
|
+
*
|
288
|
+
* @type {string}
|
289
|
+
* @since 6.2.0
|
290
|
+
* @product gantt
|
291
|
+
* @apioption series.xrange.data.connect.to
|
292
|
+
*/
|
293
|
+
|
294
|
+
|
295
|
+
/**
|
296
|
+
* Get point bounding box using plotX/plotY and shapeArgs. If using
|
297
|
+
* graphic.getBBox() directly, the bbox will be affected by animation.
|
298
|
+
*
|
299
|
+
* @private
|
300
|
+
* @function
|
301
|
+
*
|
302
|
+
* @param {Highcharts.Point} point
|
303
|
+
* The point to get BB of.
|
304
|
+
*
|
305
|
+
* @return {object}
|
306
|
+
* Result xMax, xMin, yMax, yMin.
|
307
|
+
*/
|
308
|
+
function getPointBB(point) {
|
309
|
+
var shapeArgs = point.shapeArgs,
|
310
|
+
bb;
|
311
|
+
|
312
|
+
// Prefer using shapeArgs (columns)
|
313
|
+
if (shapeArgs) {
|
314
|
+
return {
|
315
|
+
xMin: shapeArgs.x,
|
316
|
+
xMax: shapeArgs.x + shapeArgs.width,
|
317
|
+
yMin: shapeArgs.y,
|
318
|
+
yMax: shapeArgs.y + shapeArgs.height
|
319
|
+
};
|
320
|
+
}
|
321
|
+
|
322
|
+
// Otherwise use plotX/plotY and bb
|
323
|
+
bb = point.graphic && point.graphic.getBBox();
|
324
|
+
return bb ? {
|
325
|
+
xMin: point.plotX - bb.width / 2,
|
326
|
+
xMax: point.plotX + bb.width / 2,
|
327
|
+
yMin: point.plotY - bb.height / 2,
|
328
|
+
yMax: point.plotY + bb.height / 2
|
329
|
+
} : null;
|
330
|
+
}
|
331
|
+
|
332
|
+
|
333
|
+
/**
|
334
|
+
* Calculate margin to place around obstacles for the pathfinder in pixels.
|
335
|
+
* Returns a minimum of 1 pixel margin.
|
336
|
+
*
|
337
|
+
* @private
|
338
|
+
* @function
|
339
|
+
*
|
340
|
+
* @param {Array<object>} obstacles
|
341
|
+
* Obstacles to calculate margin from.
|
342
|
+
*
|
343
|
+
* @return {number}
|
344
|
+
* The calculated margin in pixels. At least 1.
|
345
|
+
*/
|
346
|
+
function calculateObstacleMargin(obstacles) {
|
347
|
+
var len = obstacles.length,
|
348
|
+
i = 0,
|
349
|
+
j,
|
350
|
+
obstacleDistance,
|
351
|
+
distances = [],
|
352
|
+
// Compute smallest distance between two rectangles
|
353
|
+
distance = function (a, b, bbMargin) {
|
354
|
+
// Count the distance even if we are slightly off
|
355
|
+
var margin = pick(bbMargin, 10),
|
356
|
+
yOverlap = a.yMax + margin > b.yMin - margin &&
|
357
|
+
a.yMin - margin < b.yMax + margin,
|
358
|
+
xOverlap = a.xMax + margin > b.xMin - margin &&
|
359
|
+
a.xMin - margin < b.xMax + margin,
|
360
|
+
xDistance = yOverlap ? (
|
361
|
+
a.xMin > b.xMax ? a.xMin - b.xMax : b.xMin - a.xMax
|
362
|
+
) : Infinity,
|
363
|
+
yDistance = xOverlap ? (
|
364
|
+
a.yMin > b.yMax ? a.yMin - b.yMax : b.yMin - a.yMax
|
365
|
+
) : Infinity;
|
366
|
+
|
367
|
+
// If the rectangles collide, try recomputing with smaller margin.
|
368
|
+
// If they collide anyway, discard the obstacle.
|
369
|
+
if (xOverlap && yOverlap) {
|
370
|
+
return (
|
371
|
+
margin ?
|
372
|
+
distance(a, b, Math.floor(margin / 2)) :
|
373
|
+
Infinity
|
374
|
+
);
|
375
|
+
}
|
376
|
+
|
377
|
+
return min(xDistance, yDistance);
|
378
|
+
};
|
379
|
+
|
380
|
+
// Go over all obstacles and compare them to the others.
|
381
|
+
for (; i < len; ++i) {
|
382
|
+
// Compare to all obstacles ahead. We will already have compared this
|
383
|
+
// obstacle to the ones before.
|
384
|
+
for (j = i + 1; j < len; ++j) {
|
385
|
+
obstacleDistance = distance(obstacles[i], obstacles[j]);
|
386
|
+
// TODO: Magic number 80
|
387
|
+
if (obstacleDistance < 80) { // Ignore large distances
|
388
|
+
distances.push(obstacleDistance);
|
389
|
+
}
|
390
|
+
}
|
391
|
+
}
|
392
|
+
// Ensure we always have at least one value, even in very spaceous charts
|
393
|
+
distances.push(80);
|
394
|
+
|
395
|
+
return max(
|
396
|
+
Math.floor(
|
397
|
+
distances.sort(function (a, b) {
|
398
|
+
return a - b;
|
399
|
+
})[
|
400
|
+
// Discard first 10% of the relevant distances, and then grab
|
401
|
+
// the smallest one.
|
402
|
+
Math.floor(distances.length / 10)
|
403
|
+
] / 2 - 1 // Divide the distance by 2 and subtract 1.
|
404
|
+
),
|
405
|
+
1 // 1 is the minimum margin
|
406
|
+
);
|
407
|
+
}
|
408
|
+
|
409
|
+
|
410
|
+
/**
|
411
|
+
* The Connection class. Used internally to represent a connection between two
|
412
|
+
* points.
|
413
|
+
*
|
414
|
+
* @private
|
415
|
+
* @class
|
416
|
+
* @name Highcharts.Connection
|
417
|
+
*
|
418
|
+
* @param {Highcharts.Point} from
|
419
|
+
* Connection runs from this Point.
|
420
|
+
*
|
421
|
+
* @param {Highcharts.Point} to
|
422
|
+
* Connection runs to this Point.
|
423
|
+
*
|
424
|
+
* @param {Highcharts.ConnectorsOptions} [options]
|
425
|
+
* Connection options.
|
426
|
+
*/
|
427
|
+
function Connection(from, to, options) {
|
428
|
+
this.init(from, to, options);
|
429
|
+
}
|
430
|
+
Connection.prototype = {
|
431
|
+
|
432
|
+
/**
|
433
|
+
* Initialize the Connection object. Used as constructor only.
|
434
|
+
*
|
435
|
+
* @function Highcharts.Connection#init
|
436
|
+
*
|
437
|
+
* @param {Highcharts.Point} from
|
438
|
+
* Connection runs from this Point.
|
439
|
+
*
|
440
|
+
* @param {Highcharts.Point} to
|
441
|
+
* Connection runs to this Point.
|
442
|
+
*
|
443
|
+
* @param {Highcharts.ConnectorsOptions} [options]
|
444
|
+
* Connection options.
|
445
|
+
*/
|
446
|
+
init: function (from, to, options) {
|
447
|
+
this.fromPoint = from;
|
448
|
+
this.toPoint = to;
|
449
|
+
this.options = options;
|
450
|
+
this.chart = from.series.chart;
|
451
|
+
this.pathfinder = this.chart.pathfinder;
|
452
|
+
},
|
453
|
+
|
454
|
+
/**
|
455
|
+
* Add (or update) this connection's path on chart. Stores reference to the
|
456
|
+
* created element on this.graphics.path.
|
457
|
+
*
|
458
|
+
* @function Highcharts.Connection#renderPath
|
459
|
+
*
|
460
|
+
* @param {Highcharts.SVGPathArray} path
|
461
|
+
* Path to render, in array format. E.g. ['M', 0, 0, 'L', 10, 10]
|
462
|
+
*
|
463
|
+
* @param {Highcharts.SVGAttributes} [attribs]
|
464
|
+
* SVG attributes for the path.
|
465
|
+
*
|
466
|
+
* @param {Highcharts.AnimationOptionsObject} [animation]
|
467
|
+
* Animation options for the rendering.
|
468
|
+
*
|
469
|
+
* @param {Function} [complete]
|
470
|
+
* Callback function when the path has been rendered and animation is
|
471
|
+
* complete.
|
472
|
+
*/
|
473
|
+
renderPath: function (path, attribs, animation) {
|
474
|
+
var connection = this,
|
475
|
+
chart = this.chart,
|
476
|
+
styledMode = chart.styledMode,
|
477
|
+
pathfinder = chart.pathfinder,
|
478
|
+
animate = !chart.options.chart.forExport && animation !== false,
|
479
|
+
pathGraphic = connection.graphics && connection.graphics.path,
|
480
|
+
anim;
|
481
|
+
|
482
|
+
// Add the SVG element of the pathfinder group if it doesn't exist
|
483
|
+
if (!pathfinder.group) {
|
484
|
+
pathfinder.group = chart.renderer.g()
|
485
|
+
.addClass('highcharts-pathfinder-group')
|
486
|
+
.attr({ zIndex: -1 })
|
487
|
+
.add(chart.seriesGroup);
|
488
|
+
}
|
489
|
+
|
490
|
+
// Shift the group to compensate for plot area.
|
491
|
+
// Note: Do this always (even when redrawing a path) to avoid issues
|
492
|
+
// when updating chart in a way that changes plot metrics.
|
493
|
+
pathfinder.group.translate(chart.plotLeft, chart.plotTop);
|
494
|
+
|
495
|
+
// Create path if does not exist
|
496
|
+
if (!(pathGraphic && pathGraphic.renderer)) {
|
497
|
+
pathGraphic = chart.renderer.path()
|
498
|
+
.add(pathfinder.group);
|
499
|
+
if (!styledMode) {
|
500
|
+
pathGraphic.attr({
|
501
|
+
opacity: 0
|
502
|
+
});
|
503
|
+
}
|
504
|
+
}
|
505
|
+
|
506
|
+
// Set path attribs and animate to the new path
|
507
|
+
pathGraphic.attr(attribs);
|
508
|
+
anim = { d: path };
|
509
|
+
if (!styledMode) {
|
510
|
+
anim.opacity = 1;
|
511
|
+
}
|
512
|
+
pathGraphic[animate ? 'animate' : 'attr'](anim, animation);
|
513
|
+
|
514
|
+
// Store reference on connection
|
515
|
+
this.graphics = this.graphics || {};
|
516
|
+
this.graphics.path = pathGraphic;
|
517
|
+
},
|
518
|
+
|
519
|
+
/**
|
520
|
+
* Calculate and add marker graphics for connection to the chart. The
|
521
|
+
* created/updated elements are stored on this.graphics.start and
|
522
|
+
* this.graphics.end.
|
523
|
+
*
|
524
|
+
* @function Highcharts.Connection#addMarker
|
525
|
+
*
|
526
|
+
* @param {string} type
|
527
|
+
* Marker type, either 'start' or 'end'.
|
528
|
+
*
|
529
|
+
* @param {Highcharts.ConnectorsMarkerOptions} options
|
530
|
+
* All options for this marker. Not calculated or merged with other
|
531
|
+
* options.
|
532
|
+
*
|
533
|
+
* @param {Highcharts.SVGPathArray} path
|
534
|
+
* Connection path in array format. This is used to calculate the
|
535
|
+
* rotation angle of the markers.
|
536
|
+
*/
|
537
|
+
addMarker: function (type, options, path) {
|
538
|
+
var connection = this,
|
539
|
+
chart = connection.fromPoint.series.chart,
|
540
|
+
pathfinder = chart.pathfinder,
|
541
|
+
renderer = chart.renderer,
|
542
|
+
point = (
|
543
|
+
type === 'start' ?
|
544
|
+
connection.fromPoint :
|
545
|
+
connection.toPoint
|
546
|
+
),
|
547
|
+
anchor = point.getPathfinderAnchorPoint(options),
|
548
|
+
markerVector,
|
549
|
+
radians,
|
550
|
+
rotation,
|
551
|
+
box,
|
552
|
+
width,
|
553
|
+
height,
|
554
|
+
pathVector;
|
555
|
+
|
556
|
+
|
557
|
+
if (!options.enabled) {
|
558
|
+
return;
|
559
|
+
}
|
560
|
+
|
561
|
+
// Last vector before start/end of path, used to get angle
|
562
|
+
if (type === 'start') {
|
563
|
+
pathVector = {
|
564
|
+
x: path[4],
|
565
|
+
y: path[5]
|
566
|
+
};
|
567
|
+
} else { // 'end'
|
568
|
+
pathVector = {
|
569
|
+
x: path[path.length - 5],
|
570
|
+
y: path[path.length - 4]
|
571
|
+
};
|
572
|
+
}
|
573
|
+
|
574
|
+
// Get angle between pathVector and anchor point and use it to create
|
575
|
+
// marker position.
|
576
|
+
radians = point.getRadiansToVector(pathVector, anchor);
|
577
|
+
markerVector = point.getMarkerVector(
|
578
|
+
radians,
|
579
|
+
options.radius,
|
580
|
+
anchor
|
581
|
+
);
|
582
|
+
|
583
|
+
// Rotation of marker is calculated from angle between pathVector and
|
584
|
+
// markerVector.
|
585
|
+
// (Note:
|
586
|
+
// Used to recalculate radians between markerVector and pathVector,
|
587
|
+
// but this should be the same as between pathVector and anchor.)
|
588
|
+
rotation = -radians / deg2rad;
|
589
|
+
|
590
|
+
if (options.width && options.height) {
|
591
|
+
width = options.width;
|
592
|
+
height = options.height;
|
593
|
+
} else {
|
594
|
+
width = height = options.radius * 2;
|
595
|
+
}
|
596
|
+
|
597
|
+
// Add graphics object if it does not exist
|
598
|
+
connection.graphics = connection.graphics || {};
|
599
|
+
box = {
|
600
|
+
x: markerVector.x - (width / 2),
|
601
|
+
y: markerVector.y - (height / 2),
|
602
|
+
width: width,
|
603
|
+
height: height,
|
604
|
+
rotation: rotation,
|
605
|
+
rotationOriginX: markerVector.x,
|
606
|
+
rotationOriginY: markerVector.y
|
607
|
+
};
|
608
|
+
|
609
|
+
if (!connection.graphics[type]) {
|
610
|
+
|
611
|
+
// Create new marker element
|
612
|
+
connection.graphics[type] = renderer.symbol(
|
613
|
+
options.symbol
|
614
|
+
)
|
615
|
+
.addClass(
|
616
|
+
'highcharts-point-connecting-path-' + type + '-marker'
|
617
|
+
)
|
618
|
+
.attr(box)
|
619
|
+
.add(pathfinder.group);
|
620
|
+
|
621
|
+
if (!renderer.styledMode) {
|
622
|
+
connection.graphics[type].attr({
|
623
|
+
fill: options.color || connection.fromPoint.color,
|
624
|
+
stroke: options.lineColor,
|
625
|
+
'stroke-width': options.lineWidth,
|
626
|
+
opacity: 0
|
627
|
+
})
|
628
|
+
.animate({
|
629
|
+
opacity: 1
|
630
|
+
}, point.series.options.animation);
|
631
|
+
}
|
632
|
+
|
633
|
+
} else {
|
634
|
+
connection.graphics[type].animate(box);
|
635
|
+
}
|
636
|
+
},
|
637
|
+
|
638
|
+
/**
|
639
|
+
* Calculate and return connection path.
|
640
|
+
* Note: Recalculates chart obstacles on demand if they aren't calculated.
|
641
|
+
*
|
642
|
+
* @function Highcharts.Connection#getPath
|
643
|
+
*
|
644
|
+
* @param {Highcharts.ConnectorsOptions} options
|
645
|
+
* Connector options. Not calculated or merged with other options.
|
646
|
+
*
|
647
|
+
* @return {Highcharts.SVHPathArray}
|
648
|
+
* Calculated SVG path data in array format.
|
649
|
+
*/
|
650
|
+
getPath: function (options) {
|
651
|
+
var pathfinder = this.pathfinder,
|
652
|
+
chart = this.chart,
|
653
|
+
algorithm = pathfinder.algorithms[options.type],
|
654
|
+
chartObstacles = pathfinder.chartObstacles;
|
655
|
+
|
656
|
+
if (typeof algorithm !== 'function') {
|
657
|
+
H.error(
|
658
|
+
'"' + options.type + '" is not a Pathfinder algorithm.'
|
659
|
+
);
|
660
|
+
return;
|
661
|
+
}
|
662
|
+
|
663
|
+
// This function calculates obstacles on demand if they don't exist
|
664
|
+
if (algorithm.requiresObstacles && !chartObstacles) {
|
665
|
+
chartObstacles =
|
666
|
+
pathfinder.chartObstacles =
|
667
|
+
pathfinder.getChartObstacles(options);
|
668
|
+
|
669
|
+
// If the algorithmMargin was computed, store the result in default
|
670
|
+
// options.
|
671
|
+
chart.options.connectors.algorithmMargin = options.algorithmMargin;
|
672
|
+
|
673
|
+
// Cache some metrics too
|
674
|
+
pathfinder.chartObstacleMetrics =
|
675
|
+
pathfinder.getObstacleMetrics(chartObstacles);
|
676
|
+
}
|
677
|
+
|
678
|
+
// Get the SVG path
|
679
|
+
return algorithm(
|
680
|
+
// From
|
681
|
+
this.fromPoint.getPathfinderAnchorPoint(options.startMarker),
|
682
|
+
// To
|
683
|
+
this.toPoint.getPathfinderAnchorPoint(options.endMarker),
|
684
|
+
merge({
|
685
|
+
chartObstacles: chartObstacles,
|
686
|
+
lineObstacles: pathfinder.lineObstacles || [],
|
687
|
+
obstacleMetrics: pathfinder.chartObstacleMetrics,
|
688
|
+
hardBounds: {
|
689
|
+
xMin: 0,
|
690
|
+
xMax: chart.plotWidth,
|
691
|
+
yMin: 0,
|
692
|
+
yMax: chart.plotHeight
|
693
|
+
},
|
694
|
+
obstacleOptions: {
|
695
|
+
margin: options.algorithmMargin
|
696
|
+
},
|
697
|
+
startDirectionX: pathfinder.getAlgorithmStartDirection(
|
698
|
+
options.startMarker
|
699
|
+
)
|
700
|
+
}, options)
|
701
|
+
);
|
702
|
+
},
|
703
|
+
|
704
|
+
/**
|
705
|
+
* (re)Calculate and (re)draw the connection.
|
706
|
+
*
|
707
|
+
* @function Highcharts.Connection#render
|
708
|
+
*/
|
709
|
+
render: function () {
|
710
|
+
var connection = this,
|
711
|
+
fromPoint = connection.fromPoint,
|
712
|
+
series = fromPoint.series,
|
713
|
+
chart = series.chart,
|
714
|
+
pathfinder = chart.pathfinder,
|
715
|
+
pathResult,
|
716
|
+
path,
|
717
|
+
options = merge(
|
718
|
+
chart.options.connectors, series.options.connectors,
|
719
|
+
fromPoint.options.connectors, connection.options
|
720
|
+
),
|
721
|
+
attribs = {};
|
722
|
+
|
723
|
+
// Set path attribs
|
724
|
+
if (!chart.styledMode) {
|
725
|
+
attribs.stroke = options.lineColor || fromPoint.color;
|
726
|
+
attribs['stroke-width'] = options.lineWidth;
|
727
|
+
if (options.dashStyle) {
|
728
|
+
attribs.dashstyle = options.dashStyle;
|
729
|
+
}
|
730
|
+
}
|
731
|
+
|
732
|
+
attribs.class = 'highcharts-point-connecting-path ' +
|
733
|
+
'highcharts-color-' + fromPoint.colorIndex;
|
734
|
+
options = merge(attribs, options);
|
735
|
+
|
736
|
+
// Set common marker options
|
737
|
+
if (!defined(options.marker.radius)) {
|
738
|
+
options.marker.radius = min(max(
|
739
|
+
Math.ceil((options.algorithmMargin || 8) / 2) - 1, 1
|
740
|
+
), 5);
|
741
|
+
}
|
742
|
+
// Get the path
|
743
|
+
pathResult = connection.getPath(options);
|
744
|
+
path = pathResult.path;
|
745
|
+
|
746
|
+
// Always update obstacle storage with obstacles from this path.
|
747
|
+
// We don't know if future calls will need this for their algorithm.
|
748
|
+
if (pathResult.obstacles) {
|
749
|
+
pathfinder.lineObstacles = pathfinder.lineObstacles || [];
|
750
|
+
pathfinder.lineObstacles =
|
751
|
+
pathfinder.lineObstacles.concat(pathResult.obstacles);
|
752
|
+
}
|
753
|
+
|
754
|
+
// Add the calculated path to the pathfinder group
|
755
|
+
connection.renderPath(path, attribs, series.options.animation);
|
756
|
+
|
757
|
+
// Render the markers
|
758
|
+
connection.addMarker(
|
759
|
+
'start',
|
760
|
+
merge(options.marker, options.startMarker),
|
761
|
+
path
|
762
|
+
);
|
763
|
+
connection.addMarker(
|
764
|
+
'end',
|
765
|
+
merge(options.marker, options.endMarker),
|
766
|
+
path
|
767
|
+
);
|
768
|
+
},
|
769
|
+
|
770
|
+
/**
|
771
|
+
* Destroy connection by destroying the added graphics elements.
|
772
|
+
*
|
773
|
+
* @function Highcharts.Connection#destroy
|
774
|
+
*/
|
775
|
+
destroy: function () {
|
776
|
+
if (this.graphics) {
|
777
|
+
H.objectEach(this.graphics, function (val) {
|
778
|
+
val.destroy();
|
779
|
+
});
|
780
|
+
delete this.graphics;
|
781
|
+
}
|
782
|
+
}
|
783
|
+
};
|
784
|
+
|
785
|
+
|
786
|
+
/**
|
787
|
+
* The Pathfinder class.
|
788
|
+
*
|
789
|
+
* @private
|
790
|
+
* @class
|
791
|
+
* @name Highcharts.Pathfinder
|
792
|
+
*
|
793
|
+
* @param {Highcharts.Chart} chart
|
794
|
+
* The chart to operate on.
|
795
|
+
*/
|
796
|
+
function Pathfinder(chart) {
|
797
|
+
this.init(chart);
|
798
|
+
}
|
799
|
+
Pathfinder.prototype = {
|
800
|
+
|
801
|
+
/**
|
802
|
+
* @name Highcharts.Pathfinder#algorithms
|
803
|
+
* @type {Highcharts.Dictionary<Function>}
|
804
|
+
*/
|
805
|
+
algorithms: pathfinderAlgorithms,
|
806
|
+
|
807
|
+
/**
|
808
|
+
* Initialize the Pathfinder object.
|
809
|
+
*
|
810
|
+
* @function Highcharts.Pathfinder#init
|
811
|
+
*
|
812
|
+
* @param {Highcharts.Chart} chart
|
813
|
+
* The chart context.
|
814
|
+
*/
|
815
|
+
init: function (chart) {
|
816
|
+
// Initialize pathfinder with chart context
|
817
|
+
this.chart = chart;
|
818
|
+
|
819
|
+
// Init connection reference list
|
820
|
+
this.connections = [];
|
821
|
+
|
822
|
+
// Recalculate paths/obstacles on chart redraw
|
823
|
+
addEvent(chart, 'redraw', function () {
|
824
|
+
this.pathfinder.update();
|
825
|
+
});
|
826
|
+
},
|
827
|
+
|
828
|
+
/**
|
829
|
+
* Update Pathfinder connections from scratch.
|
830
|
+
*
|
831
|
+
* @function Highcharts.Pathfinder#update
|
832
|
+
*
|
833
|
+
* @param {boolean} deferRender
|
834
|
+
* Whether or not to defer rendering of connections until
|
835
|
+
* series.afterAnimate event has fired. Used on first render.
|
836
|
+
*/
|
837
|
+
update: function (deferRender) {
|
838
|
+
var chart = this.chart,
|
839
|
+
pathfinder = this,
|
840
|
+
oldConnections = pathfinder.connections;
|
841
|
+
|
842
|
+
// Rebuild pathfinder connections from options
|
843
|
+
pathfinder.connections = [];
|
844
|
+
chart.series.forEach(function (series) {
|
845
|
+
if (series.visible) {
|
846
|
+
series.points.forEach(function (point) {
|
847
|
+
var to,
|
848
|
+
connects = (
|
849
|
+
point.options &&
|
850
|
+
point.options.connect &&
|
851
|
+
H.splat(point.options.connect)
|
852
|
+
);
|
853
|
+
|
854
|
+
if (point.visible && point.isInside !== false && connects) {
|
855
|
+
connects.forEach(function (connect) {
|
856
|
+
to = chart.get(
|
857
|
+
typeof connect === 'string' ?
|
858
|
+
connect : connect.to
|
859
|
+
);
|
860
|
+
if (
|
861
|
+
to instanceof H.Point &&
|
862
|
+
to.series.visible &&
|
863
|
+
to.visible &&
|
864
|
+
to.isInside !== false
|
865
|
+
) {
|
866
|
+
// Add new connection
|
867
|
+
pathfinder.connections.push(new Connection(
|
868
|
+
point, // from
|
869
|
+
to,
|
870
|
+
typeof connect === 'string' ? {} : connect
|
871
|
+
));
|
872
|
+
}
|
873
|
+
});
|
874
|
+
}
|
875
|
+
});
|
876
|
+
}
|
877
|
+
});
|
878
|
+
|
879
|
+
// Clear connections that should not be updated, and move old info over
|
880
|
+
// to new connections.
|
881
|
+
for (
|
882
|
+
var j = 0, k, found, lenOld = oldConnections.length,
|
883
|
+
lenNew = pathfinder.connections.length;
|
884
|
+
j < lenOld;
|
885
|
+
++j
|
886
|
+
) {
|
887
|
+
found = false;
|
888
|
+
for (k = 0; k < lenNew; ++k) {
|
889
|
+
if (
|
890
|
+
oldConnections[j].fromPoint ===
|
891
|
+
pathfinder.connections[k].fromPoint &&
|
892
|
+
oldConnections[j].toPoint ===
|
893
|
+
pathfinder.connections[k].toPoint
|
894
|
+
) {
|
895
|
+
pathfinder.connections[k].graphics =
|
896
|
+
oldConnections[j].graphics;
|
897
|
+
found = true;
|
898
|
+
break;
|
899
|
+
}
|
900
|
+
}
|
901
|
+
if (!found) {
|
902
|
+
oldConnections[j].destroy();
|
903
|
+
}
|
904
|
+
}
|
905
|
+
|
906
|
+
// Clear obstacles to force recalculation. This must be done on every
|
907
|
+
// redraw in case positions have changed. Recalculation is handled in
|
908
|
+
// Connection.getPath on demand.
|
909
|
+
delete this.chartObstacles;
|
910
|
+
delete this.lineObstacles;
|
911
|
+
|
912
|
+
// Draw the pending connections
|
913
|
+
pathfinder.renderConnections(deferRender);
|
914
|
+
},
|
915
|
+
|
916
|
+
/**
|
917
|
+
* Draw the chart's connecting paths.
|
918
|
+
*
|
919
|
+
* @function Highcharts.Pathfinder#renderConnections
|
920
|
+
*
|
921
|
+
* @param {boolean} deferRender
|
922
|
+
* Whether or not to defer render until series animation is finished.
|
923
|
+
* Used on first render.
|
924
|
+
*/
|
925
|
+
renderConnections: function (deferRender) {
|
926
|
+
if (deferRender) {
|
927
|
+
// Render after series are done animating
|
928
|
+
this.chart.series.forEach(function (series) {
|
929
|
+
var render = function () {
|
930
|
+
// Find pathfinder connections belonging to this series
|
931
|
+
// that haven't rendered, and render them now.
|
932
|
+
var pathfinder = series.chart.pathfinder,
|
933
|
+
conns = pathfinder && pathfinder.connections || [];
|
934
|
+
|
935
|
+
conns.forEach(function (connection) {
|
936
|
+
if (
|
937
|
+
connection.fromPoint &&
|
938
|
+
connection.fromPoint.series === series
|
939
|
+
) {
|
940
|
+
connection.render();
|
941
|
+
}
|
942
|
+
});
|
943
|
+
if (series.pathfinderRemoveRenderEvent) {
|
944
|
+
series.pathfinderRemoveRenderEvent();
|
945
|
+
delete series.pathfinderRemoveRenderEvent;
|
946
|
+
}
|
947
|
+
};
|
948
|
+
|
949
|
+
if (series.options.animation === false) {
|
950
|
+
render();
|
951
|
+
} else {
|
952
|
+
series.pathfinderRemoveRenderEvent = addEvent(
|
953
|
+
series, 'afterAnimate', render
|
954
|
+
);
|
955
|
+
}
|
956
|
+
});
|
957
|
+
} else {
|
958
|
+
// Go through connections and render them
|
959
|
+
this.connections.forEach(function (connection) {
|
960
|
+
connection.render();
|
961
|
+
});
|
962
|
+
}
|
963
|
+
},
|
964
|
+
|
965
|
+
/**
|
966
|
+
* Get obstacles for the points in the chart. Does not include connecting
|
967
|
+
* lines from Pathfinder. Applies algorithmMargin to the obstacles.
|
968
|
+
*
|
969
|
+
* @function Highcharts.Pathfinder#getChartObstacles
|
970
|
+
*
|
971
|
+
* @param {object} options
|
972
|
+
* Options for the calculation. Currenlty only
|
973
|
+
* options.algorithmMargin.
|
974
|
+
*
|
975
|
+
* @return {Array<object>}
|
976
|
+
* An array of calculated obstacles. Each obstacle is defined as an
|
977
|
+
* object with xMin, xMax, yMin and yMax properties.
|
978
|
+
*/
|
979
|
+
getChartObstacles: function (options) {
|
980
|
+
var obstacles = [],
|
981
|
+
series = this.chart.series,
|
982
|
+
margin = pick(options.algorithmMargin, 0),
|
983
|
+
calculatedMargin;
|
984
|
+
|
985
|
+
for (var i = 0, sLen = series.length; i < sLen; ++i) {
|
986
|
+
if (series[i].visible) {
|
987
|
+
for (
|
988
|
+
var j = 0, pLen = series[i].points.length, bb, point;
|
989
|
+
j < pLen;
|
990
|
+
++j
|
991
|
+
) {
|
992
|
+
point = series[i].points[j];
|
993
|
+
if (point.visible) {
|
994
|
+
bb = getPointBB(point);
|
995
|
+
if (bb) {
|
996
|
+
obstacles.push({
|
997
|
+
xMin: bb.xMin - margin,
|
998
|
+
xMax: bb.xMax + margin,
|
999
|
+
yMin: bb.yMin - margin,
|
1000
|
+
yMax: bb.yMax + margin
|
1001
|
+
});
|
1002
|
+
}
|
1003
|
+
}
|
1004
|
+
}
|
1005
|
+
}
|
1006
|
+
}
|
1007
|
+
|
1008
|
+
// Sort obstacles by xMin for optimization
|
1009
|
+
obstacles = obstacles.sort(function (a, b) {
|
1010
|
+
return a.xMin - b.xMin;
|
1011
|
+
});
|
1012
|
+
|
1013
|
+
// Add auto-calculated margin if the option is not defined
|
1014
|
+
if (!defined(options.algorithmMargin)) {
|
1015
|
+
calculatedMargin =
|
1016
|
+
options.algorithmMargin =
|
1017
|
+
calculateObstacleMargin(obstacles);
|
1018
|
+
obstacles.forEach(function (obstacle) {
|
1019
|
+
obstacle.xMin -= calculatedMargin;
|
1020
|
+
obstacle.xMax += calculatedMargin;
|
1021
|
+
obstacle.yMin -= calculatedMargin;
|
1022
|
+
obstacle.yMax += calculatedMargin;
|
1023
|
+
});
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
return obstacles;
|
1027
|
+
},
|
1028
|
+
|
1029
|
+
/**
|
1030
|
+
* Utility function to get metrics for obstacles:
|
1031
|
+
* - Widest obstacle width
|
1032
|
+
* - Tallest obstacle height
|
1033
|
+
*
|
1034
|
+
* @function Highcharts.Pathfinder#getObstacleMetrics
|
1035
|
+
*
|
1036
|
+
* @param {Array<object>} obstacles
|
1037
|
+
* An array of obstacles to inspect.
|
1038
|
+
*
|
1039
|
+
* @return {object}
|
1040
|
+
* The calculated metrics, as an object with maxHeight and maxWidth
|
1041
|
+
* properties.
|
1042
|
+
*/
|
1043
|
+
getObstacleMetrics: function (obstacles) {
|
1044
|
+
var maxWidth = 0,
|
1045
|
+
maxHeight = 0,
|
1046
|
+
width,
|
1047
|
+
height,
|
1048
|
+
i = obstacles.length;
|
1049
|
+
|
1050
|
+
while (i--) {
|
1051
|
+
width = obstacles[i].xMax - obstacles[i].xMin;
|
1052
|
+
height = obstacles[i].yMax - obstacles[i].yMin;
|
1053
|
+
if (maxWidth < width) {
|
1054
|
+
maxWidth = width;
|
1055
|
+
}
|
1056
|
+
if (maxHeight < height) {
|
1057
|
+
maxHeight = height;
|
1058
|
+
}
|
1059
|
+
}
|
1060
|
+
|
1061
|
+
return {
|
1062
|
+
maxHeight: maxHeight,
|
1063
|
+
maxWidth: maxWidth
|
1064
|
+
};
|
1065
|
+
},
|
1066
|
+
|
1067
|
+
/**
|
1068
|
+
* Utility to get which direction to start the pathfinding algorithm
|
1069
|
+
* (X vs Y), calculated from a set of marker options.
|
1070
|
+
*
|
1071
|
+
* @function Highcharts.Pathfinder#getAlgorithmStartDirection
|
1072
|
+
*
|
1073
|
+
* @param {Highcharts.ConnectorsMarkerOptions} markerOptions
|
1074
|
+
* Marker options to calculate from.
|
1075
|
+
*
|
1076
|
+
* @return {boolean}
|
1077
|
+
* Returns true for X, false for Y, and undefined for autocalculate.
|
1078
|
+
*/
|
1079
|
+
getAlgorithmStartDirection: function (markerOptions) {
|
1080
|
+
var xCenter = markerOptions.align !== 'left' &&
|
1081
|
+
markerOptions.align !== 'right',
|
1082
|
+
yCenter = markerOptions.verticalAlign !== 'top' &&
|
1083
|
+
markerOptions.verticalAlign !== 'bottom',
|
1084
|
+
undef;
|
1085
|
+
|
1086
|
+
return xCenter ?
|
1087
|
+
(yCenter ? undef : false) : // x is centered
|
1088
|
+
(yCenter ? true : undef); // x is off-center
|
1089
|
+
}
|
1090
|
+
};
|
1091
|
+
|
1092
|
+
// Add to Highcharts namespace
|
1093
|
+
H.Connection = Connection;
|
1094
|
+
H.Pathfinder = Pathfinder;
|
1095
|
+
|
1096
|
+
|
1097
|
+
// Add pathfinding capabilities to Points
|
1098
|
+
extend(H.Point.prototype, /** @lends Point.prototype */ {
|
1099
|
+
|
1100
|
+
/**
|
1101
|
+
* Get coordinates of anchor point for pathfinder connection.
|
1102
|
+
*
|
1103
|
+
* @private
|
1104
|
+
* @function Highcharts.Point#getPathfinderAnchorPoint
|
1105
|
+
*
|
1106
|
+
* @param {Highcharts.ConnectorsMarkerOptions} markerOptions
|
1107
|
+
* Connection options for position on point.
|
1108
|
+
*
|
1109
|
+
* @return {object}
|
1110
|
+
* An object with x/y properties for the position. Coordinates are
|
1111
|
+
* in plot values, not relative to point.
|
1112
|
+
*/
|
1113
|
+
getPathfinderAnchorPoint: function (markerOptions) {
|
1114
|
+
var bb = getPointBB(this),
|
1115
|
+
x,
|
1116
|
+
y;
|
1117
|
+
|
1118
|
+
switch (markerOptions.align) { // eslint-disable-line default-case
|
1119
|
+
case 'right':
|
1120
|
+
x = 'xMax';
|
1121
|
+
break;
|
1122
|
+
case 'left':
|
1123
|
+
x = 'xMin';
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
switch (markerOptions.verticalAlign) { // eslint-disable-line default-case
|
1127
|
+
case 'top':
|
1128
|
+
y = 'yMin';
|
1129
|
+
break;
|
1130
|
+
case 'bottom':
|
1131
|
+
y = 'yMax';
|
1132
|
+
}
|
1133
|
+
|
1134
|
+
return {
|
1135
|
+
x: x ? bb[x] : (bb.xMin + bb.xMax) / 2,
|
1136
|
+
y: y ? bb[y] : (bb.yMin + bb.yMax) / 2
|
1137
|
+
};
|
1138
|
+
},
|
1139
|
+
|
1140
|
+
/**
|
1141
|
+
* Utility to get the angle from one point to another.
|
1142
|
+
*
|
1143
|
+
* @private
|
1144
|
+
* @function Highcharts.Point#getRadiansToVector
|
1145
|
+
*
|
1146
|
+
* @param {object} v1
|
1147
|
+
* The first vector, as an object with x/y properties.
|
1148
|
+
*
|
1149
|
+
* @param {object} v2
|
1150
|
+
* The second vector, as an object with x/y properties.
|
1151
|
+
*
|
1152
|
+
* @return {number}
|
1153
|
+
* The angle in degrees
|
1154
|
+
*/
|
1155
|
+
getRadiansToVector: function (v1, v2) {
|
1156
|
+
var box;
|
1157
|
+
|
1158
|
+
if (!defined(v2)) {
|
1159
|
+
box = getPointBB(this);
|
1160
|
+
v2 = {
|
1161
|
+
x: (box.xMin + box.xMax) / 2,
|
1162
|
+
y: (box.yMin + box.yMax) / 2
|
1163
|
+
};
|
1164
|
+
}
|
1165
|
+
return Math.atan2(v2.y - v1.y, v1.x - v2.x);
|
1166
|
+
},
|
1167
|
+
|
1168
|
+
/**
|
1169
|
+
* Utility to get the position of the marker, based on the path angle and
|
1170
|
+
* the marker's radius.
|
1171
|
+
*
|
1172
|
+
* @private
|
1173
|
+
* @function Highcharts.Point#getMarkerVector
|
1174
|
+
*
|
1175
|
+
* @param {number} radians
|
1176
|
+
* The angle in radians from the point center to another vector.
|
1177
|
+
*
|
1178
|
+
* @param {number} markerRadius
|
1179
|
+
* The radius of the marker, to calculate the additional distance to
|
1180
|
+
* the center of the marker.
|
1181
|
+
*
|
1182
|
+
* @param {object} anchor
|
1183
|
+
* The anchor point of the path and marker as an object with x/y
|
1184
|
+
* properties.
|
1185
|
+
*
|
1186
|
+
* @return {object}
|
1187
|
+
* The marker vector as an object with x/y properties.
|
1188
|
+
*/
|
1189
|
+
getMarkerVector: function (radians, markerRadius, anchor) {
|
1190
|
+
var twoPI = Math.PI * 2.0,
|
1191
|
+
theta = radians,
|
1192
|
+
bb = getPointBB(this),
|
1193
|
+
rectWidth = bb.xMax - bb.xMin,
|
1194
|
+
rectHeight = bb.yMax - bb.yMin,
|
1195
|
+
rAtan = Math.atan2(rectHeight, rectWidth),
|
1196
|
+
tanTheta = 1,
|
1197
|
+
leftOrRightRegion = false,
|
1198
|
+
rectHalfWidth = rectWidth / 2.0,
|
1199
|
+
rectHalfHeight = rectHeight / 2.0,
|
1200
|
+
rectHorizontalCenter = bb.xMin + rectHalfWidth,
|
1201
|
+
rectVerticalCenter = bb.yMin + rectHalfHeight,
|
1202
|
+
edgePoint = {
|
1203
|
+
x: rectHorizontalCenter,
|
1204
|
+
y: rectVerticalCenter
|
1205
|
+
},
|
1206
|
+
markerPoint = {},
|
1207
|
+
xFactor = 1,
|
1208
|
+
yFactor = 1;
|
1209
|
+
|
1210
|
+
while (theta < -Math.PI) {
|
1211
|
+
theta += twoPI;
|
1212
|
+
}
|
1213
|
+
|
1214
|
+
while (theta > Math.PI) {
|
1215
|
+
theta -= twoPI;
|
1216
|
+
}
|
1217
|
+
|
1218
|
+
tanTheta = Math.tan(theta);
|
1219
|
+
|
1220
|
+
if ((theta > -rAtan) && (theta <= rAtan)) {
|
1221
|
+
// Right side
|
1222
|
+
yFactor = -1;
|
1223
|
+
leftOrRightRegion = true;
|
1224
|
+
} else if (theta > rAtan && theta <= (Math.PI - rAtan)) {
|
1225
|
+
// Top side
|
1226
|
+
yFactor = -1;
|
1227
|
+
} else if (theta > (Math.PI - rAtan) || theta <= -(Math.PI - rAtan)) {
|
1228
|
+
// Left side
|
1229
|
+
xFactor = -1;
|
1230
|
+
leftOrRightRegion = true;
|
1231
|
+
} else {
|
1232
|
+
// Bottom side
|
1233
|
+
xFactor = -1;
|
1234
|
+
}
|
1235
|
+
|
1236
|
+
// Correct the edgePoint according to the placement of the marker
|
1237
|
+
if (leftOrRightRegion) {
|
1238
|
+
edgePoint.x += xFactor * (rectHalfWidth);
|
1239
|
+
edgePoint.y += yFactor * (rectHalfWidth) * tanTheta;
|
1240
|
+
} else {
|
1241
|
+
edgePoint.x += xFactor * (rectHeight / (2.0 * tanTheta));
|
1242
|
+
edgePoint.y += yFactor * (rectHalfHeight);
|
1243
|
+
}
|
1244
|
+
|
1245
|
+
if (anchor.x !== rectHorizontalCenter) {
|
1246
|
+
edgePoint.x = anchor.x;
|
1247
|
+
}
|
1248
|
+
if (anchor.y !== rectVerticalCenter) {
|
1249
|
+
edgePoint.y = anchor.y;
|
1250
|
+
}
|
1251
|
+
|
1252
|
+
markerPoint.x = edgePoint.x + (markerRadius * Math.cos(theta));
|
1253
|
+
markerPoint.y = edgePoint.y - (markerRadius * Math.sin(theta));
|
1254
|
+
|
1255
|
+
return markerPoint;
|
1256
|
+
}
|
1257
|
+
});
|
1258
|
+
|
1259
|
+
|
1260
|
+
// Warn if using legacy options. Copy the options over. Note that this will
|
1261
|
+
// still break if using the legacy options in chart.update, addSeries etc.
|
1262
|
+
function warnLegacy(chart) {
|
1263
|
+
if (
|
1264
|
+
chart.options.pathfinder ||
|
1265
|
+
chart.series.reduce(function (acc, series) {
|
1266
|
+
if (series.options) {
|
1267
|
+
merge(
|
1268
|
+
true,
|
1269
|
+
(
|
1270
|
+
series.options.connectors = series.options.connectors ||
|
1271
|
+
{}
|
1272
|
+
), series.options.pathfinder
|
1273
|
+
);
|
1274
|
+
}
|
1275
|
+
return acc || series.options && series.options.pathfinder;
|
1276
|
+
}, false)
|
1277
|
+
) {
|
1278
|
+
merge(
|
1279
|
+
true,
|
1280
|
+
(chart.options.connectors = chart.options.connectors || {}),
|
1281
|
+
chart.options.pathfinder
|
1282
|
+
);
|
1283
|
+
H.error('WARNING: Pathfinder options have been renamed. ' +
|
1284
|
+
'Use "chart.connectors" or "series.connectors" instead.');
|
1285
|
+
}
|
1286
|
+
}
|
1287
|
+
|
1288
|
+
|
1289
|
+
// Initialize Pathfinder for charts
|
1290
|
+
H.Chart.prototype.callbacks.push(function (chart) {
|
1291
|
+
var options = chart.options;
|
1292
|
+
|
1293
|
+
if (options.connectors.enabled !== false) {
|
1294
|
+
warnLegacy(chart);
|
1295
|
+
this.pathfinder = new Pathfinder(this);
|
1296
|
+
this.pathfinder.update(true); // First draw, defer render
|
1297
|
+
}
|
1298
|
+
});
|