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,74 @@
|
|
1
|
+
/* *
|
2
|
+
* (c) 2010-2019 Torstein Honsi
|
3
|
+
*
|
4
|
+
* License: www.highcharts.com/license
|
5
|
+
*/
|
6
|
+
|
7
|
+
/* ************************************************************************** *
|
8
|
+
* Start PlotBand series code *
|
9
|
+
* ************************************************************************** */
|
10
|
+
|
11
|
+
/* This is an experiment of implementing plotBands and plotLines as a series.
|
12
|
+
It could solve problems with export, updating etc., add tooltip and mouse
|
13
|
+
events, and provide a more compact and consistent implementation.
|
14
|
+
Demo: https://jsfiddle.net/highcharts/5Rbf6/ */
|
15
|
+
|
16
|
+
'use strict';
|
17
|
+
|
18
|
+
import H from './Globals.js';
|
19
|
+
import './Utilities.js';
|
20
|
+
import './Series.js';
|
21
|
+
import './Options.js';
|
22
|
+
var seriesType = H.seriesType,
|
23
|
+
Series = H.Series;
|
24
|
+
|
25
|
+
seriesType('plotband', 'column', {
|
26
|
+
lineWidth: 0,
|
27
|
+
threshold: null
|
28
|
+
}, {
|
29
|
+
// mapping between SVG attributes and the corresponding options
|
30
|
+
pointAttrToOptions: {
|
31
|
+
fill: 'color',
|
32
|
+
stroke: 'lineColor',
|
33
|
+
'stroke-width': 'lineWidth'
|
34
|
+
},
|
35
|
+
animate: function () {},
|
36
|
+
|
37
|
+
translate: function () {
|
38
|
+
var series = this,
|
39
|
+
xAxis = series.xAxis,
|
40
|
+
yAxis = series.yAxis;
|
41
|
+
|
42
|
+
Series.prototype.translate.apply(series);
|
43
|
+
|
44
|
+
series.points.forEach(function (point) {
|
45
|
+
var onXAxis = point.onXAxis,
|
46
|
+
ownAxis = onXAxis ? xAxis : yAxis,
|
47
|
+
otherAxis = onXAxis ? yAxis : xAxis,
|
48
|
+
from = ownAxis.toPixels(point.from, true),
|
49
|
+
to = ownAxis.toPixels(point.to, true),
|
50
|
+
start = Math.min(from, to),
|
51
|
+
width = Math.abs(to - from);
|
52
|
+
|
53
|
+
point.plotY = 1; // lure ColumnSeries.drawPoints
|
54
|
+
point.shapeType = 'rect';
|
55
|
+
point.shapeArgs = ownAxis.horiz ? {
|
56
|
+
x: start,
|
57
|
+
y: 0,
|
58
|
+
width: width,
|
59
|
+
height: otherAxis.len
|
60
|
+
} : {
|
61
|
+
x: 0,
|
62
|
+
y: start,
|
63
|
+
width: otherAxis.len,
|
64
|
+
height: width
|
65
|
+
};
|
66
|
+
});
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
});
|
71
|
+
|
72
|
+
/* ************************************************************************** *
|
73
|
+
* End PlotBand series code *
|
74
|
+
* ************************************************************************** */
|
@@ -0,0 +1,1061 @@
|
|
1
|
+
/* *
|
2
|
+
* (c) 2010-2019 Torstein Honsi
|
3
|
+
*
|
4
|
+
* License: www.highcharts.com/license
|
5
|
+
*/
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Options for plot bands on axes.
|
9
|
+
*
|
10
|
+
* @typedef {Highcharts.XAxisPlotBandsOptions|Highcharts.YAxisPlotBandsOptions|Highcharts.ZAxisPlotBandsOptions} Highcharts.AxisPlotBandsOptions
|
11
|
+
*/
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Options for plot band labels on axes.
|
15
|
+
*
|
16
|
+
* @typedef {Highcharts.XAxisPlotBandsLabelOptions|Highcharts.YAxisPlotBandsLabelOptions|Highcharts.ZAxisPlotBandsLabelOptions} Highcharts.AxisPlotBandsLabelOptions
|
17
|
+
*/
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Options for plot lines on axes.
|
21
|
+
*
|
22
|
+
* @typedef {Highcharts.XAxisPlotLinesOptions|Highcharts.YAxisPlotLinesOptions|Highcharts.ZAxisPlotLinesOptions} Highcharts.AxisPlotLinesOptions
|
23
|
+
*/
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Options for plot line labels on axes.
|
27
|
+
*
|
28
|
+
* @typedef {Highcharts.XAxisPlotLinesLabelOptions|Highcharts.YAxisPlotLinesLabelOptions|Highcharts.ZAxisPlotLinesLabelOptions} Highcharts.AxisPlotLinesLabelOptions
|
29
|
+
*/
|
30
|
+
|
31
|
+
'use strict';
|
32
|
+
|
33
|
+
import H from './Globals.js';
|
34
|
+
import Axis from './Axis.js';
|
35
|
+
import './Utilities.js';
|
36
|
+
|
37
|
+
var arrayMax = H.arrayMax,
|
38
|
+
arrayMin = H.arrayMin,
|
39
|
+
defined = H.defined,
|
40
|
+
destroyObjectProperties = H.destroyObjectProperties,
|
41
|
+
erase = H.erase,
|
42
|
+
merge = H.merge,
|
43
|
+
pick = H.pick;
|
44
|
+
|
45
|
+
/**
|
46
|
+
* The object wrapper for plot lines and plot bands
|
47
|
+
*
|
48
|
+
* @class
|
49
|
+
* @name Highcharts.PlotLineOrBand
|
50
|
+
*
|
51
|
+
* @param {Highcharts.Axis} axis
|
52
|
+
*
|
53
|
+
* @param {Highcharts.AxisPlotLinesOptions|Highcharts.AxisPlotBandsOptions} options
|
54
|
+
*/
|
55
|
+
H.PlotLineOrBand = function (axis, options) {
|
56
|
+
this.axis = axis;
|
57
|
+
|
58
|
+
if (options) {
|
59
|
+
this.options = options;
|
60
|
+
this.id = options.id;
|
61
|
+
}
|
62
|
+
};
|
63
|
+
|
64
|
+
H.PlotLineOrBand.prototype = {
|
65
|
+
|
66
|
+
/**
|
67
|
+
* Render the plot line or plot band. If it is already existing,
|
68
|
+
* move it.
|
69
|
+
*
|
70
|
+
* @private
|
71
|
+
* @function Highcharts.PlotLineOrBand#render
|
72
|
+
*
|
73
|
+
* @return {Highcharts.PlotLineOrBand|undefined}
|
74
|
+
*/
|
75
|
+
render: function () {
|
76
|
+
|
77
|
+
H.fireEvent(this, 'render');
|
78
|
+
|
79
|
+
var plotLine = this,
|
80
|
+
axis = plotLine.axis,
|
81
|
+
horiz = axis.horiz,
|
82
|
+
options = plotLine.options,
|
83
|
+
optionsLabel = options.label,
|
84
|
+
label = plotLine.label,
|
85
|
+
to = options.to,
|
86
|
+
from = options.from,
|
87
|
+
value = options.value,
|
88
|
+
isBand = defined(from) && defined(to),
|
89
|
+
isLine = defined(value),
|
90
|
+
svgElem = plotLine.svgElem,
|
91
|
+
isNew = !svgElem,
|
92
|
+
path = [],
|
93
|
+
color = options.color,
|
94
|
+
zIndex = pick(options.zIndex, 0),
|
95
|
+
events = options.events,
|
96
|
+
attribs = {
|
97
|
+
'class': 'highcharts-plot-' + (isBand ? 'band ' : 'line ') +
|
98
|
+
(options.className || '')
|
99
|
+
},
|
100
|
+
groupAttribs = {},
|
101
|
+
renderer = axis.chart.renderer,
|
102
|
+
groupName = isBand ? 'bands' : 'lines',
|
103
|
+
group;
|
104
|
+
|
105
|
+
// logarithmic conversion
|
106
|
+
if (axis.isLog) {
|
107
|
+
from = axis.log2lin(from);
|
108
|
+
to = axis.log2lin(to);
|
109
|
+
value = axis.log2lin(value);
|
110
|
+
}
|
111
|
+
|
112
|
+
// Set the presentational attributes
|
113
|
+
if (!axis.chart.styledMode) {
|
114
|
+
if (isLine) {
|
115
|
+
attribs.stroke = color;
|
116
|
+
attribs['stroke-width'] = options.width;
|
117
|
+
if (options.dashStyle) {
|
118
|
+
attribs.dashstyle = options.dashStyle;
|
119
|
+
}
|
120
|
+
|
121
|
+
} else if (isBand) { // plot band
|
122
|
+
if (color) {
|
123
|
+
attribs.fill = color;
|
124
|
+
}
|
125
|
+
if (options.borderWidth) {
|
126
|
+
attribs.stroke = options.borderColor;
|
127
|
+
attribs['stroke-width'] = options.borderWidth;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
// Grouping and zIndex
|
133
|
+
groupAttribs.zIndex = zIndex;
|
134
|
+
groupName += '-' + zIndex;
|
135
|
+
|
136
|
+
group = axis.plotLinesAndBandsGroups[groupName];
|
137
|
+
if (!group) {
|
138
|
+
axis.plotLinesAndBandsGroups[groupName] = group =
|
139
|
+
renderer.g('plot-' + groupName)
|
140
|
+
.attr(groupAttribs).add();
|
141
|
+
}
|
142
|
+
|
143
|
+
// Create the path
|
144
|
+
if (isNew) {
|
145
|
+
/**
|
146
|
+
* SVG element of the plot line or band.
|
147
|
+
*
|
148
|
+
* @name Highcharts.PlotLineOrBand#svgElement
|
149
|
+
* @type {Highcharts.SVGElement}
|
150
|
+
*/
|
151
|
+
plotLine.svgElem = svgElem =
|
152
|
+
renderer
|
153
|
+
.path()
|
154
|
+
.attr(attribs).add(group);
|
155
|
+
}
|
156
|
+
|
157
|
+
|
158
|
+
// Set the path or return
|
159
|
+
if (isLine) {
|
160
|
+
path = axis.getPlotLinePath(value, svgElem.strokeWidth());
|
161
|
+
} else if (isBand) { // plot band
|
162
|
+
path = axis.getPlotBandPath(from, to, options);
|
163
|
+
} else {
|
164
|
+
return;
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
// common for lines and bands
|
169
|
+
if (isNew && path && path.length) {
|
170
|
+
svgElem.attr({ d: path });
|
171
|
+
|
172
|
+
// events
|
173
|
+
if (events) {
|
174
|
+
H.objectEach(events, function (event, eventType) {
|
175
|
+
svgElem.on(eventType, function (e) {
|
176
|
+
events[eventType].apply(plotLine, [e]);
|
177
|
+
});
|
178
|
+
});
|
179
|
+
}
|
180
|
+
} else if (svgElem) {
|
181
|
+
if (path) {
|
182
|
+
svgElem.show();
|
183
|
+
svgElem.animate({ d: path });
|
184
|
+
} else {
|
185
|
+
svgElem.hide();
|
186
|
+
if (label) {
|
187
|
+
plotLine.label = label = label.destroy();
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
// the plot band/line label
|
193
|
+
if (
|
194
|
+
optionsLabel &&
|
195
|
+
defined(optionsLabel.text) &&
|
196
|
+
path &&
|
197
|
+
path.length &&
|
198
|
+
axis.width > 0 &&
|
199
|
+
axis.height > 0 &&
|
200
|
+
!path.isFlat
|
201
|
+
) {
|
202
|
+
// apply defaults
|
203
|
+
optionsLabel = merge({
|
204
|
+
align: horiz && isBand && 'center',
|
205
|
+
x: horiz ? !isBand && 4 : 10,
|
206
|
+
verticalAlign: !horiz && isBand && 'middle',
|
207
|
+
y: horiz ? isBand ? 16 : 10 : isBand ? 6 : -4,
|
208
|
+
rotation: horiz && !isBand && 90
|
209
|
+
}, optionsLabel);
|
210
|
+
|
211
|
+
this.renderLabel(optionsLabel, path, isBand, zIndex);
|
212
|
+
|
213
|
+
} else if (label) { // move out of sight
|
214
|
+
label.hide();
|
215
|
+
}
|
216
|
+
|
217
|
+
// chainable
|
218
|
+
return plotLine;
|
219
|
+
},
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Render and align label for plot line or band.
|
223
|
+
*
|
224
|
+
* @private
|
225
|
+
* @function Highcharts.PlotLineOrBand#renderLabel
|
226
|
+
*
|
227
|
+
* @param {Highcharts.AxisPlotLinesLabelOptions|Highcharts.AxisPlotBandsLabelOptions} optionsLabel
|
228
|
+
*
|
229
|
+
* @param {Highcharts.SVGPathArray} path
|
230
|
+
*
|
231
|
+
* @param {boolean} [isBand]
|
232
|
+
*
|
233
|
+
* @param {number} [zIndex]
|
234
|
+
*/
|
235
|
+
renderLabel: function (optionsLabel, path, isBand, zIndex) {
|
236
|
+
var plotLine = this,
|
237
|
+
label = plotLine.label,
|
238
|
+
renderer = plotLine.axis.chart.renderer,
|
239
|
+
attribs,
|
240
|
+
xBounds,
|
241
|
+
yBounds,
|
242
|
+
x,
|
243
|
+
y;
|
244
|
+
|
245
|
+
// add the SVG element
|
246
|
+
if (!label) {
|
247
|
+
attribs = {
|
248
|
+
align: optionsLabel.textAlign || optionsLabel.align,
|
249
|
+
rotation: optionsLabel.rotation,
|
250
|
+
'class': 'highcharts-plot-' + (isBand ? 'band' : 'line') +
|
251
|
+
'-label ' + (optionsLabel.className || '')
|
252
|
+
};
|
253
|
+
|
254
|
+
attribs.zIndex = zIndex;
|
255
|
+
|
256
|
+
/**
|
257
|
+
* SVG element of the label.
|
258
|
+
*
|
259
|
+
* @name Highcharts.PlotLineOrBand#label
|
260
|
+
* @type {Highcharts.SVGElement}
|
261
|
+
*/
|
262
|
+
plotLine.label = label = renderer.text(
|
263
|
+
optionsLabel.text,
|
264
|
+
0,
|
265
|
+
0,
|
266
|
+
optionsLabel.useHTML
|
267
|
+
)
|
268
|
+
.attr(attribs)
|
269
|
+
.add();
|
270
|
+
|
271
|
+
if (!this.axis.chart.styledMode) {
|
272
|
+
label.css(optionsLabel.style);
|
273
|
+
}
|
274
|
+
}
|
275
|
+
|
276
|
+
// get the bounding box and align the label
|
277
|
+
// #3000 changed to better handle choice between plotband or plotline
|
278
|
+
xBounds = path.xBounds ||
|
279
|
+
[path[1], path[4], (isBand ? path[6] : path[1])];
|
280
|
+
yBounds = path.yBounds ||
|
281
|
+
[path[2], path[5], (isBand ? path[7] : path[2])];
|
282
|
+
|
283
|
+
x = arrayMin(xBounds);
|
284
|
+
y = arrayMin(yBounds);
|
285
|
+
|
286
|
+
label.align(optionsLabel, false, {
|
287
|
+
x: x,
|
288
|
+
y: y,
|
289
|
+
width: arrayMax(xBounds) - x,
|
290
|
+
height: arrayMax(yBounds) - y
|
291
|
+
});
|
292
|
+
label.show();
|
293
|
+
},
|
294
|
+
|
295
|
+
/**
|
296
|
+
* Remove the plot line or band.
|
297
|
+
*
|
298
|
+
* @function Highcharts.PlotLineOrBand#destroy
|
299
|
+
*/
|
300
|
+
destroy: function () {
|
301
|
+
// remove it from the lookup
|
302
|
+
erase(this.axis.plotLinesAndBands, this);
|
303
|
+
|
304
|
+
delete this.axis;
|
305
|
+
destroyObjectProperties(this);
|
306
|
+
}
|
307
|
+
};
|
308
|
+
|
309
|
+
// Object with members for extending the Axis prototype
|
310
|
+
H.extend(Axis.prototype, /** @lends Highcharts.Axis.prototype */ {
|
311
|
+
|
312
|
+
/**
|
313
|
+
* An array of colored bands stretching across the plot area marking an
|
314
|
+
* interval on the axis.
|
315
|
+
*
|
316
|
+
* In styled mode, the plot bands are styled by the `.highcharts-plot-band`
|
317
|
+
* class in addition to the `className` option.
|
318
|
+
*
|
319
|
+
* @productdesc {highcharts}
|
320
|
+
* In a gauge, a plot band on the Y axis (value axis) will stretch along the
|
321
|
+
* perimeter of the gauge.
|
322
|
+
*
|
323
|
+
* @type {Array<*>}
|
324
|
+
* @product highcharts highstock gantt
|
325
|
+
* @apioption xAxis.plotBands
|
326
|
+
*/
|
327
|
+
|
328
|
+
/**
|
329
|
+
* Border color for the plot band. Also requires `borderWidth` to be set.
|
330
|
+
*
|
331
|
+
* @type {Highcharts.ColorString}
|
332
|
+
* @apioption xAxis.plotBands.borderColor
|
333
|
+
*/
|
334
|
+
|
335
|
+
/**
|
336
|
+
* Border width for the plot band. Also requires `borderColor` to be set.
|
337
|
+
*
|
338
|
+
* @type {number}
|
339
|
+
* @default 0
|
340
|
+
* @apioption xAxis.plotBands.borderWidth
|
341
|
+
*/
|
342
|
+
|
343
|
+
/**
|
344
|
+
* A custom class name, in addition to the default `highcharts-plot-band`,
|
345
|
+
* to apply to each individual band.
|
346
|
+
*
|
347
|
+
* @type {string}
|
348
|
+
* @since 5.0.0
|
349
|
+
* @apioption xAxis.plotBands.className
|
350
|
+
*/
|
351
|
+
|
352
|
+
/**
|
353
|
+
* The color of the plot band.
|
354
|
+
*
|
355
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-color/
|
356
|
+
* Color band
|
357
|
+
* @sample {highstock} stock/xaxis/plotbands/
|
358
|
+
* Plot band on Y axis
|
359
|
+
*
|
360
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
361
|
+
* @apioption xAxis.plotBands.color
|
362
|
+
*/
|
363
|
+
|
364
|
+
/**
|
365
|
+
* An object defining mouse events for the plot band. Supported properties
|
366
|
+
* are `click`, `mouseover`, `mouseout`, `mousemove`.
|
367
|
+
*
|
368
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-events/
|
369
|
+
* Mouse events demonstrated
|
370
|
+
*
|
371
|
+
* @since 1.2
|
372
|
+
* @context PlotLineOrBand
|
373
|
+
* @apioption xAxis.plotBands.events
|
374
|
+
*/
|
375
|
+
|
376
|
+
/**
|
377
|
+
* The start position of the plot band in axis units.
|
378
|
+
*
|
379
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-color/
|
380
|
+
* Datetime axis
|
381
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-from/
|
382
|
+
* Categorized axis
|
383
|
+
* @sample {highstock} stock/xaxis/plotbands/
|
384
|
+
* Plot band on Y axis
|
385
|
+
*
|
386
|
+
* @type {number}
|
387
|
+
* @apioption xAxis.plotBands.from
|
388
|
+
*/
|
389
|
+
|
390
|
+
/**
|
391
|
+
* An id used for identifying the plot band in Axis.removePlotBand.
|
392
|
+
*
|
393
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-id/
|
394
|
+
* Remove plot band by id
|
395
|
+
* @sample {highstock} highcharts/xaxis/plotbands-id/
|
396
|
+
* Remove plot band by id
|
397
|
+
*
|
398
|
+
* @type {string}
|
399
|
+
* @apioption xAxis.plotBands.id
|
400
|
+
*/
|
401
|
+
|
402
|
+
/**
|
403
|
+
* The end position of the plot band in axis units.
|
404
|
+
*
|
405
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-color/
|
406
|
+
* Datetime axis
|
407
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-from/
|
408
|
+
* Categorized axis
|
409
|
+
* @sample {highstock} stock/xaxis/plotbands/
|
410
|
+
* Plot band on Y axis
|
411
|
+
*
|
412
|
+
* @type {number}
|
413
|
+
* @apioption xAxis.plotBands.to
|
414
|
+
*/
|
415
|
+
|
416
|
+
/**
|
417
|
+
* The z index of the plot band within the chart, relative to other
|
418
|
+
* elements. Using the same z index as another element may give
|
419
|
+
* unpredictable results, as the last rendered element will be on top.
|
420
|
+
* Values from 0 to 20 make sense.
|
421
|
+
*
|
422
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-color/
|
423
|
+
* Behind plot lines by default
|
424
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-zindex/
|
425
|
+
* Above plot lines
|
426
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-zindex-above-series/
|
427
|
+
* Above plot lines and series
|
428
|
+
*
|
429
|
+
* @type {number}
|
430
|
+
* @since 1.2
|
431
|
+
* @apioption xAxis.plotBands.zIndex
|
432
|
+
*/
|
433
|
+
|
434
|
+
/**
|
435
|
+
* Text labels for the plot bands
|
436
|
+
*
|
437
|
+
* @product highcharts highstock gantt
|
438
|
+
* @apioption xAxis.plotBands.label
|
439
|
+
*/
|
440
|
+
|
441
|
+
/**
|
442
|
+
* Horizontal alignment of the label. Can be one of "left", "center" or
|
443
|
+
* "right".
|
444
|
+
*
|
445
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-label-align/
|
446
|
+
* Aligned to the right
|
447
|
+
* @sample {highstock} stock/xaxis/plotbands-label/
|
448
|
+
* Plot band with labels
|
449
|
+
*
|
450
|
+
* @type {Highcharts.AlignType}
|
451
|
+
* @default center
|
452
|
+
* @since 2.1
|
453
|
+
* @apioption xAxis.plotBands.label.align
|
454
|
+
*/
|
455
|
+
|
456
|
+
/**
|
457
|
+
* Rotation of the text label in degrees .
|
458
|
+
*
|
459
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-label-rotation/
|
460
|
+
* Vertical text
|
461
|
+
*
|
462
|
+
* @type {number}
|
463
|
+
* @default 0
|
464
|
+
* @since 2.1
|
465
|
+
* @apioption xAxis.plotBands.label.rotation
|
466
|
+
*/
|
467
|
+
|
468
|
+
/**
|
469
|
+
* CSS styles for the text label.
|
470
|
+
*
|
471
|
+
* In styled mode, the labels are styled by the
|
472
|
+
* `.highcharts-plot-band-label` class.
|
473
|
+
*
|
474
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-label-style/
|
475
|
+
* Blue and bold label
|
476
|
+
*
|
477
|
+
* @type {Highcharts.CSSObject}
|
478
|
+
* @since 2.1
|
479
|
+
* @apioption xAxis.plotBands.label.style
|
480
|
+
*/
|
481
|
+
|
482
|
+
/**
|
483
|
+
* The string text itself. A subset of HTML is supported.
|
484
|
+
*
|
485
|
+
* @type {string}
|
486
|
+
* @since 2.1
|
487
|
+
* @apioption xAxis.plotBands.label.text
|
488
|
+
*/
|
489
|
+
|
490
|
+
/**
|
491
|
+
* The text alignment for the label. While `align` determines where the
|
492
|
+
* texts anchor point is placed within the plot band, `textAlign` determines
|
493
|
+
* how the text is aligned against its anchor point. Possible values are
|
494
|
+
* "left", "center" and "right". Defaults to the same as the `align` option.
|
495
|
+
*
|
496
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-label-rotation/
|
497
|
+
* Vertical text in center position but text-aligned left
|
498
|
+
*
|
499
|
+
* @type {Highcharts.AlignType}
|
500
|
+
* @since 2.1
|
501
|
+
* @apioption xAxis.plotBands.label.textAlign
|
502
|
+
*/
|
503
|
+
|
504
|
+
/**
|
505
|
+
* Whether to [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
|
506
|
+
* to render the labels.
|
507
|
+
*
|
508
|
+
* @type {boolean}
|
509
|
+
* @default false
|
510
|
+
* @since 3.0.3
|
511
|
+
* @apioption xAxis.plotBands.label.useHTML
|
512
|
+
*/
|
513
|
+
|
514
|
+
/**
|
515
|
+
* Vertical alignment of the label relative to the plot band. Can be one of
|
516
|
+
* "top", "middle" or "bottom".
|
517
|
+
*
|
518
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-label-verticalalign/
|
519
|
+
* Vertically centered label
|
520
|
+
* @sample {highstock} stock/xaxis/plotbands-label/
|
521
|
+
* Plot band with labels
|
522
|
+
*
|
523
|
+
* @type {Highcharts.VerticalAlignType}
|
524
|
+
* @default top
|
525
|
+
* @since 2.1
|
526
|
+
* @apioption xAxis.plotBands.label.verticalAlign
|
527
|
+
*/
|
528
|
+
|
529
|
+
/**
|
530
|
+
* Horizontal position relative the alignment. Default varies by
|
531
|
+
* orientation.
|
532
|
+
*
|
533
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-label-align/
|
534
|
+
* Aligned 10px from the right edge
|
535
|
+
* @sample {highstock} stock/xaxis/plotbands-label/
|
536
|
+
* Plot band with labels
|
537
|
+
*
|
538
|
+
* @type {number}
|
539
|
+
* @since 2.1
|
540
|
+
* @apioption xAxis.plotBands.label.x
|
541
|
+
*/
|
542
|
+
|
543
|
+
/**
|
544
|
+
* Vertical position of the text baseline relative to the alignment. Default
|
545
|
+
* varies by orientation.
|
546
|
+
*
|
547
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-label-y/
|
548
|
+
* Label on x axis
|
549
|
+
* @sample {highstock} stock/xaxis/plotbands-label/
|
550
|
+
* Plot band with labels
|
551
|
+
*
|
552
|
+
* @type {number}
|
553
|
+
* @since 2.1
|
554
|
+
* @apioption xAxis.plotBands.label.y
|
555
|
+
*/
|
556
|
+
|
557
|
+
/**
|
558
|
+
* An array of lines stretching across the plot area, marking a specific
|
559
|
+
* value on one of the axes.
|
560
|
+
*
|
561
|
+
* In styled mode, the plot lines are styled by the
|
562
|
+
* `.highcharts-plot-line` class in addition to the `className` option.
|
563
|
+
*
|
564
|
+
* @type {Array<*>}
|
565
|
+
* @product highcharts highstock gantt
|
566
|
+
* @apioption xAxis.plotLines
|
567
|
+
*/
|
568
|
+
|
569
|
+
/**
|
570
|
+
* A custom class name, in addition to the default `highcharts-plot-line`,
|
571
|
+
* to apply to each individual line.
|
572
|
+
*
|
573
|
+
* @type {string}
|
574
|
+
* @since 5.0.0
|
575
|
+
* @apioption xAxis.plotLines.className
|
576
|
+
*/
|
577
|
+
|
578
|
+
/**
|
579
|
+
* The color of the line.
|
580
|
+
*
|
581
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-color/
|
582
|
+
* A red line from X axis
|
583
|
+
* @sample {highstock} stock/xaxis/plotlines/
|
584
|
+
* Plot line on Y axis
|
585
|
+
*
|
586
|
+
* @type {Highcharts.ColorString}
|
587
|
+
* @apioption xAxis.plotLines.color
|
588
|
+
*/
|
589
|
+
|
590
|
+
/**
|
591
|
+
* The dashing or dot style for the plot line. For possible values see
|
592
|
+
* [this overview](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-dashstyle-all/).
|
593
|
+
*
|
594
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-dashstyle/
|
595
|
+
* Dash and dot pattern
|
596
|
+
* @sample {highstock} stock/xaxis/plotlines/
|
597
|
+
* Plot line on Y axis
|
598
|
+
*
|
599
|
+
* @type {Highcharts.DashStyleType}
|
600
|
+
* @default Solid
|
601
|
+
* @since 1.2
|
602
|
+
* @apioption xAxis.plotLines.dashStyle
|
603
|
+
*/
|
604
|
+
|
605
|
+
/**
|
606
|
+
* An object defining mouse events for the plot line. Supported
|
607
|
+
* properties are `click`, `mouseover`, `mouseout`, `mousemove`.
|
608
|
+
*
|
609
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-events/
|
610
|
+
* Mouse events demonstrated
|
611
|
+
*
|
612
|
+
* @type {*}
|
613
|
+
* @since 1.2
|
614
|
+
* @context PlotLineOrBand
|
615
|
+
* @apioption xAxis.plotLines.events
|
616
|
+
*/
|
617
|
+
|
618
|
+
/**
|
619
|
+
* An id used for identifying the plot line in Axis.removePlotLine.
|
620
|
+
*
|
621
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-id/
|
622
|
+
* Remove plot line by id
|
623
|
+
*
|
624
|
+
* @type {string}
|
625
|
+
* @apioption xAxis.plotLines.id
|
626
|
+
*/
|
627
|
+
|
628
|
+
/**
|
629
|
+
* The position of the line in axis units.
|
630
|
+
*
|
631
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-color/
|
632
|
+
* Between two categories on X axis
|
633
|
+
* @sample {highstock} stock/xaxis/plotlines/
|
634
|
+
* Plot line on Y axis
|
635
|
+
*
|
636
|
+
* @type {number}
|
637
|
+
* @apioption xAxis.plotLines.value
|
638
|
+
*/
|
639
|
+
|
640
|
+
/**
|
641
|
+
* The width or thickness of the plot line.
|
642
|
+
*
|
643
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-color/
|
644
|
+
* 2px wide line from X axis
|
645
|
+
* @sample {highstock} stock/xaxis/plotlines/
|
646
|
+
* Plot line on Y axis
|
647
|
+
*
|
648
|
+
* @type {number}
|
649
|
+
* @apioption xAxis.plotLines.width
|
650
|
+
*/
|
651
|
+
|
652
|
+
/**
|
653
|
+
* The z index of the plot line within the chart.
|
654
|
+
*
|
655
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-zindex-behind/
|
656
|
+
* Behind plot lines by default
|
657
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-zindex-above/
|
658
|
+
* Above plot lines
|
659
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-zindex-above-all/
|
660
|
+
* Above plot lines and series
|
661
|
+
*
|
662
|
+
* @type {number}
|
663
|
+
* @since 1.2
|
664
|
+
* @apioption xAxis.plotLines.zIndex
|
665
|
+
*/
|
666
|
+
|
667
|
+
/**
|
668
|
+
* Text labels for the plot bands
|
669
|
+
*
|
670
|
+
* @apioption xAxis.plotLines.label
|
671
|
+
*/
|
672
|
+
|
673
|
+
/**
|
674
|
+
* Horizontal alignment of the label. Can be one of "left", "center" or
|
675
|
+
* "right".
|
676
|
+
*
|
677
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-label-align-right/
|
678
|
+
* Aligned to the right
|
679
|
+
* @sample {highstock} stock/xaxis/plotlines/
|
680
|
+
* Plot line on Y axis
|
681
|
+
*
|
682
|
+
* @type {Highcharts.AlignType}
|
683
|
+
* @default left
|
684
|
+
* @since 2.1
|
685
|
+
* @apioption xAxis.plotLines.label.align
|
686
|
+
*/
|
687
|
+
|
688
|
+
/**
|
689
|
+
* Rotation of the text label in degrees. Defaults to 0 for horizontal plot
|
690
|
+
* lines and 90 for vertical lines.
|
691
|
+
*
|
692
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-label-verticalalign-middle/
|
693
|
+
* Slanted text
|
694
|
+
*
|
695
|
+
* @type {number}
|
696
|
+
* @since 2.1
|
697
|
+
* @apioption xAxis.plotLines.label.rotation
|
698
|
+
*/
|
699
|
+
|
700
|
+
/**
|
701
|
+
* CSS styles for the text label.
|
702
|
+
*
|
703
|
+
* In styled mode, the labels are styled by the
|
704
|
+
* `.highcharts-plot-line-label` class.
|
705
|
+
*
|
706
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-label-style/
|
707
|
+
* Blue and bold label
|
708
|
+
*
|
709
|
+
* @type {Highcharts.CSSObject}
|
710
|
+
* @since 2.1
|
711
|
+
* @apioption xAxis.plotLines.label.style
|
712
|
+
*/
|
713
|
+
|
714
|
+
/**
|
715
|
+
* The text itself. A subset of HTML is supported.
|
716
|
+
*
|
717
|
+
* @type {string}
|
718
|
+
* @since 2.1
|
719
|
+
* @apioption xAxis.plotLines.label.text
|
720
|
+
*/
|
721
|
+
|
722
|
+
/**
|
723
|
+
* The text alignment for the label. While `align` determines where the
|
724
|
+
* texts anchor point is placed within the plot band, `textAlign` determines
|
725
|
+
* how the text is aligned against its anchor point. Possible values are
|
726
|
+
* "left", "center" and "right". Defaults to the same as the `align` option.
|
727
|
+
*
|
728
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-label-textalign/
|
729
|
+
* Text label in bottom position
|
730
|
+
*
|
731
|
+
* @type {Highcharts.AlignType}
|
732
|
+
* @since 2.1
|
733
|
+
* @apioption xAxis.plotLines.label.textAlign
|
734
|
+
*/
|
735
|
+
|
736
|
+
/**
|
737
|
+
* Whether to [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
|
738
|
+
* to render the labels.
|
739
|
+
*
|
740
|
+
* @type {boolean}
|
741
|
+
* @default false
|
742
|
+
* @since 3.0.3
|
743
|
+
* @apioption xAxis.plotLines.label.useHTML
|
744
|
+
*/
|
745
|
+
|
746
|
+
/**
|
747
|
+
* Vertical alignment of the label relative to the plot line. Can be
|
748
|
+
* one of "top", "middle" or "bottom".
|
749
|
+
*
|
750
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-label-verticalalign-middle/
|
751
|
+
* Vertically centered label
|
752
|
+
*
|
753
|
+
* @type {Highcharts.VerticalAlignType}
|
754
|
+
* @default {highcharts} top
|
755
|
+
* @default {highstock} top
|
756
|
+
* @since 2.1
|
757
|
+
* @validvalue ["top", "middle", "bottom"]
|
758
|
+
* @apioption xAxis.plotLines.label.verticalAlign
|
759
|
+
*/
|
760
|
+
|
761
|
+
/**
|
762
|
+
* Horizontal position relative the alignment. Default varies by
|
763
|
+
* orientation.
|
764
|
+
*
|
765
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-label-align-right/
|
766
|
+
* Aligned 10px from the right edge
|
767
|
+
* @sample {highstock} stock/xaxis/plotlines/
|
768
|
+
* Plot line on Y axis
|
769
|
+
*
|
770
|
+
* @type {number}
|
771
|
+
* @since 2.1
|
772
|
+
* @apioption xAxis.plotLines.label.x
|
773
|
+
*/
|
774
|
+
|
775
|
+
/**
|
776
|
+
* Vertical position of the text baseline relative to the alignment. Default
|
777
|
+
* varies by orientation.
|
778
|
+
*
|
779
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-label-y/
|
780
|
+
* Label below the plot line
|
781
|
+
* @sample {highstock} stock/xaxis/plotlines/
|
782
|
+
* Plot line on Y axis
|
783
|
+
*
|
784
|
+
* @type {number}
|
785
|
+
* @since 2.1
|
786
|
+
* @apioption xAxis.plotLines.label.y
|
787
|
+
*/
|
788
|
+
|
789
|
+
/**
|
790
|
+
* An array of objects defining plot bands on the Y axis.
|
791
|
+
*
|
792
|
+
* @type {Array<*>}
|
793
|
+
* @extends xAxis.plotBands
|
794
|
+
* @apioption yAxis.plotBands
|
795
|
+
*/
|
796
|
+
|
797
|
+
/**
|
798
|
+
* In a gauge chart, this option determines the inner radius of the
|
799
|
+
* plot band that stretches along the perimeter. It can be given as
|
800
|
+
* a percentage string, like `"100%"`, or as a pixel number, like `100`.
|
801
|
+
* By default, the inner radius is controlled by the [thickness](
|
802
|
+
* #yAxis.plotBands.thickness) option.
|
803
|
+
*
|
804
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-gauge
|
805
|
+
* Gauge plot band
|
806
|
+
*
|
807
|
+
* @type {number|string}
|
808
|
+
* @since 2.3
|
809
|
+
* @product highcharts
|
810
|
+
* @apioption yAxis.plotBands.innerRadius
|
811
|
+
*/
|
812
|
+
|
813
|
+
/**
|
814
|
+
* In a gauge chart, this option determines the outer radius of the
|
815
|
+
* plot band that stretches along the perimeter. It can be given as
|
816
|
+
* a percentage string, like `"100%"`, or as a pixel number, like `100`.
|
817
|
+
*
|
818
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-gauge
|
819
|
+
* Gauge plot band
|
820
|
+
*
|
821
|
+
* @type {number|string}
|
822
|
+
* @default 100%
|
823
|
+
* @since 2.3
|
824
|
+
* @product highcharts
|
825
|
+
* @apioption yAxis.plotBands.outerRadius
|
826
|
+
*/
|
827
|
+
|
828
|
+
/**
|
829
|
+
* In a gauge chart, this option sets the width of the plot band
|
830
|
+
* stretching along the perimeter. It can be given as a percentage
|
831
|
+
* string, like `"10%"`, or as a pixel number, like `10`. The default
|
832
|
+
* value 10 is the same as the default [tickLength](#yAxis.tickLength),
|
833
|
+
* thus making the plot band act as a background for the tick markers.
|
834
|
+
*
|
835
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-gauge
|
836
|
+
* Gauge plot band
|
837
|
+
*
|
838
|
+
* @type {number|string}
|
839
|
+
* @default 10
|
840
|
+
* @since 2.3
|
841
|
+
* @product highcharts
|
842
|
+
* @apioption yAxis.plotBands.thickness
|
843
|
+
*/
|
844
|
+
|
845
|
+
/**
|
846
|
+
* An array of objects representing plot lines on the X axis
|
847
|
+
*
|
848
|
+
* @type {Array<*>}
|
849
|
+
* @extends xAxis.plotLines
|
850
|
+
* @apioption yAxis.plotLines
|
851
|
+
*/
|
852
|
+
|
853
|
+
/**
|
854
|
+
* Internal function to create the SVG path definition for a plot band.
|
855
|
+
*
|
856
|
+
* @function Highcharts.Axis#getPlotBandPath
|
857
|
+
*
|
858
|
+
* @param {number} from
|
859
|
+
* The axis value to start from.
|
860
|
+
*
|
861
|
+
* @param {number} to
|
862
|
+
* The axis value to end on.
|
863
|
+
*
|
864
|
+
* @return {Highcharts.SVGPathArray}
|
865
|
+
* The SVG path definition in array form.
|
866
|
+
*/
|
867
|
+
getPlotBandPath: function (from, to) {
|
868
|
+
var toPath = this.getPlotLinePath(to, null, null, true),
|
869
|
+
path = this.getPlotLinePath(from, null, null, true),
|
870
|
+
result = [],
|
871
|
+
i,
|
872
|
+
// #4964 check if chart is inverted or plotband is on yAxis
|
873
|
+
horiz = this.horiz,
|
874
|
+
plus = 1,
|
875
|
+
isFlat,
|
876
|
+
outside =
|
877
|
+
(from < this.min && to < this.min) ||
|
878
|
+
(from > this.max && to > this.max);
|
879
|
+
|
880
|
+
if (path && toPath) {
|
881
|
+
|
882
|
+
// Flat paths don't need labels (#3836)
|
883
|
+
if (outside) {
|
884
|
+
isFlat = path.toString() === toPath.toString();
|
885
|
+
plus = 0;
|
886
|
+
}
|
887
|
+
|
888
|
+
// Go over each subpath - for panes in Highstock
|
889
|
+
for (i = 0; i < path.length; i += 6) {
|
890
|
+
|
891
|
+
// Add 1 pixel when coordinates are the same
|
892
|
+
if (horiz && toPath[i + 1] === path[i + 1]) {
|
893
|
+
toPath[i + 1] += plus;
|
894
|
+
toPath[i + 4] += plus;
|
895
|
+
} else if (!horiz && toPath[i + 2] === path[i + 2]) {
|
896
|
+
toPath[i + 2] += plus;
|
897
|
+
toPath[i + 5] += plus;
|
898
|
+
}
|
899
|
+
|
900
|
+
result.push(
|
901
|
+
'M',
|
902
|
+
path[i + 1],
|
903
|
+
path[i + 2],
|
904
|
+
'L',
|
905
|
+
path[i + 4],
|
906
|
+
path[i + 5],
|
907
|
+
toPath[i + 4],
|
908
|
+
toPath[i + 5],
|
909
|
+
toPath[i + 1],
|
910
|
+
toPath[i + 2],
|
911
|
+
'z'
|
912
|
+
);
|
913
|
+
result.isFlat = isFlat;
|
914
|
+
}
|
915
|
+
|
916
|
+
} else { // outside the axis area
|
917
|
+
path = null;
|
918
|
+
}
|
919
|
+
|
920
|
+
return result;
|
921
|
+
},
|
922
|
+
|
923
|
+
/**
|
924
|
+
* Add a plot band after render time.
|
925
|
+
*
|
926
|
+
* @sample highcharts/members/axis-addplotband/
|
927
|
+
* Toggle the plot band from a button
|
928
|
+
*
|
929
|
+
* @function Highcharts.Axis#addPlotBand
|
930
|
+
*
|
931
|
+
* @param {Highcharts.AxisPlotBandsOptions} options
|
932
|
+
* A configuration object for the plot band, as defined in
|
933
|
+
* [xAxis.plotBands](https://api.highcharts.com/highcharts/xAxis.plotBands).
|
934
|
+
*
|
935
|
+
* @return {Highcharts.PlotLineOrBand|undefined}
|
936
|
+
* The added plot band.
|
937
|
+
*/
|
938
|
+
addPlotBand: function (options) {
|
939
|
+
return this.addPlotBandOrLine(options, 'plotBands');
|
940
|
+
},
|
941
|
+
|
942
|
+
/**
|
943
|
+
* Add a plot line after render time.
|
944
|
+
*
|
945
|
+
* @sample highcharts/members/axis-addplotline/
|
946
|
+
* Toggle the plot line from a button
|
947
|
+
*
|
948
|
+
* @function Highcharts.Axis#addPlotLine
|
949
|
+
*
|
950
|
+
* @param {Highcharts.AxisPlotLinesOptions} options
|
951
|
+
* A configuration object for the plot line, as defined in
|
952
|
+
* [xAxis.plotLines](https://api.highcharts.com/highcharts/xAxis.plotLines).
|
953
|
+
*
|
954
|
+
* @return {Highcharts.PlotLineOrBand|undefined}
|
955
|
+
* The added plot line.
|
956
|
+
*/
|
957
|
+
addPlotLine: function (options) {
|
958
|
+
return this.addPlotBandOrLine(options, 'plotLines');
|
959
|
+
},
|
960
|
+
|
961
|
+
/**
|
962
|
+
* Add a plot band or plot line after render time. Called from addPlotBand
|
963
|
+
* and addPlotLine internally.
|
964
|
+
*
|
965
|
+
* @private
|
966
|
+
* @function Highcharts.Axis#addPlotBandOrLine
|
967
|
+
*
|
968
|
+
* @param {Highcharts.AxisPlotLinesOptions|Highcharts.AxisPlotBandsOptions} options
|
969
|
+
* The plotBand or plotLine configuration object.
|
970
|
+
*
|
971
|
+
* @param {"plotBands"|"plotLines"} [coll]
|
972
|
+
*
|
973
|
+
* @return {Highcharts.PlotLineOrBand|undefined}
|
974
|
+
*/
|
975
|
+
addPlotBandOrLine: function (options, coll) {
|
976
|
+
var obj = new H.PlotLineOrBand(this, options).render(),
|
977
|
+
userOptions = this.userOptions;
|
978
|
+
|
979
|
+
if (obj) { // #2189
|
980
|
+
// Add it to the user options for exporting and Axis.update
|
981
|
+
if (coll) {
|
982
|
+
userOptions[coll] = userOptions[coll] || [];
|
983
|
+
userOptions[coll].push(options);
|
984
|
+
}
|
985
|
+
this.plotLinesAndBands.push(obj);
|
986
|
+
}
|
987
|
+
|
988
|
+
return obj;
|
989
|
+
},
|
990
|
+
|
991
|
+
/**
|
992
|
+
* Remove a plot band or plot line from the chart by id. Called internally
|
993
|
+
* from `removePlotBand` and `removePlotLine`.
|
994
|
+
*
|
995
|
+
* @private
|
996
|
+
* @function Highcharts.Axis#removePlotBandOrLine
|
997
|
+
*
|
998
|
+
* @param {string} id
|
999
|
+
*/
|
1000
|
+
removePlotBandOrLine: function (id) {
|
1001
|
+
var plotLinesAndBands = this.plotLinesAndBands,
|
1002
|
+
options = this.options,
|
1003
|
+
userOptions = this.userOptions,
|
1004
|
+
i = plotLinesAndBands.length;
|
1005
|
+
|
1006
|
+
while (i--) {
|
1007
|
+
if (plotLinesAndBands[i].id === id) {
|
1008
|
+
plotLinesAndBands[i].destroy();
|
1009
|
+
}
|
1010
|
+
}
|
1011
|
+
([
|
1012
|
+
options.plotLines || [],
|
1013
|
+
userOptions.plotLines || [],
|
1014
|
+
options.plotBands || [],
|
1015
|
+
userOptions.plotBands || []
|
1016
|
+
]).forEach(function (arr) {
|
1017
|
+
i = arr.length;
|
1018
|
+
while (i--) {
|
1019
|
+
if (arr[i].id === id) {
|
1020
|
+
erase(arr, arr[i]);
|
1021
|
+
}
|
1022
|
+
}
|
1023
|
+
});
|
1024
|
+
},
|
1025
|
+
|
1026
|
+
/**
|
1027
|
+
* Remove a plot band by its id.
|
1028
|
+
*
|
1029
|
+
* @sample highcharts/members/axis-removeplotband/
|
1030
|
+
* Remove plot band by id
|
1031
|
+
* @sample highcharts/members/axis-addplotband/
|
1032
|
+
* Toggle the plot band from a button
|
1033
|
+
*
|
1034
|
+
* @function Highcharts.Axis#removePlotBand
|
1035
|
+
*
|
1036
|
+
* @param {string} id
|
1037
|
+
* The plot band's `id` as given in the original configuration
|
1038
|
+
* object or in the `addPlotBand` option.
|
1039
|
+
*/
|
1040
|
+
removePlotBand: function (id) {
|
1041
|
+
this.removePlotBandOrLine(id);
|
1042
|
+
},
|
1043
|
+
|
1044
|
+
/**
|
1045
|
+
* Remove a plot line by its id.
|
1046
|
+
*
|
1047
|
+
* @sample highcharts/xaxis/plotlines-id/
|
1048
|
+
* Remove plot line by id
|
1049
|
+
* @sample highcharts/members/axis-addplotline/
|
1050
|
+
* Toggle the plot line from a button
|
1051
|
+
*
|
1052
|
+
* @function Highcharts.Axis#removePlotLine
|
1053
|
+
*
|
1054
|
+
* @param {string} id
|
1055
|
+
* The plot line's `id` as given in the original configuration
|
1056
|
+
* object or in the `addPlotLine` option.
|
1057
|
+
*/
|
1058
|
+
removePlotLine: function (id) {
|
1059
|
+
this.removePlotBandOrLine(id);
|
1060
|
+
}
|
1061
|
+
});
|