aw-highstock_rails 7.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (697) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +7 -0
  4. data/CODE_OF_CONDUCT.md +74 -0
  5. data/Gemfile +6 -0
  6. data/Gemfile.lock +22 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +53 -0
  9. data/Rakefile +10 -0
  10. data/aw-highstock_rails.gemspec +28 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/lib/aw/highstock_rails.rb +9 -0
  14. data/lib/aw/highstock_rails/version.rb +5 -0
  15. data/vendor/assets/javascripts/highstock/css/annotations/popup.css +229 -0
  16. data/vendor/assets/javascripts/highstock/css/annotations/popup.scss +235 -0
  17. data/vendor/assets/javascripts/highstock/css/highcharts.css +890 -0
  18. data/vendor/assets/javascripts/highstock/css/highcharts.scss +788 -0
  19. data/vendor/assets/javascripts/highstock/css/stocktools/gui.css +268 -0
  20. data/vendor/assets/javascripts/highstock/css/stocktools/gui.scss +270 -0
  21. data/vendor/assets/javascripts/highstock/css/themes/dark-unica.css +951 -0
  22. data/vendor/assets/javascripts/highstock/css/themes/dark-unica.scss +122 -0
  23. data/vendor/assets/javascripts/highstock/css/themes/grid-light.css +904 -0
  24. data/vendor/assets/javascripts/highstock/css/themes/grid-light.scss +33 -0
  25. data/vendor/assets/javascripts/highstock/css/themes/sand-signika.css +920 -0
  26. data/vendor/assets/javascripts/highstock/css/themes/sand-signika.scss +74 -0
  27. data/vendor/assets/javascripts/highstock/es-modules/annotations/ControlPoint.js +130 -0
  28. data/vendor/assets/javascripts/highstock/es-modules/annotations/MockPoint.js +415 -0
  29. data/vendor/assets/javascripts/highstock/es-modules/annotations/annotations.src.js +1231 -0
  30. data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableCircle.js +92 -0
  31. data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableImage.js +101 -0
  32. data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableLabel.js +452 -0
  33. data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllablePath.js +175 -0
  34. data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableRect.js +93 -0
  35. data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/controllableMixin.js +411 -0
  36. data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/markerMixin.js +214 -0
  37. data/vendor/assets/javascripts/highstock/es-modules/annotations/eventEmitterMixin.js +271 -0
  38. data/vendor/assets/javascripts/highstock/es-modules/annotations/navigationBindings.js +1283 -0
  39. data/vendor/assets/javascripts/highstock/es-modules/annotations/popup.js +1069 -0
  40. data/vendor/assets/javascripts/highstock/es-modules/annotations/types/CrookedLine.js +191 -0
  41. data/vendor/assets/javascripts/highstock/es-modules/annotations/types/ElliottWave.js +76 -0
  42. data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Fibonacci.js +247 -0
  43. data/vendor/assets/javascripts/highstock/es-modules/annotations/types/InfinityLine.js +185 -0
  44. data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Measure.js +928 -0
  45. data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Pitchfork.js +203 -0
  46. data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Tunnel.js +242 -0
  47. data/vendor/assets/javascripts/highstock/es-modules/annotations/types/VerticalLine.js +157 -0
  48. data/vendor/assets/javascripts/highstock/es-modules/error-messages.js +128 -0
  49. data/vendor/assets/javascripts/highstock/es-modules/error.js +1 -0
  50. data/vendor/assets/javascripts/highstock/es-modules/indicators/acceleration-bands.src.js +199 -0
  51. data/vendor/assets/javascripts/highstock/es-modules/indicators/accumulation-distribution.src.js +129 -0
  52. data/vendor/assets/javascripts/highstock/es-modules/indicators/ao.src.js +206 -0
  53. data/vendor/assets/javascripts/highstock/es-modules/indicators/apo.src.js +148 -0
  54. data/vendor/assets/javascripts/highstock/es-modules/indicators/aroon-oscillator.src.js +128 -0
  55. data/vendor/assets/javascripts/highstock/es-modules/indicators/aroon.src.js +173 -0
  56. data/vendor/assets/javascripts/highstock/es-modules/indicators/atr.src.js +151 -0
  57. data/vendor/assets/javascripts/highstock/es-modules/indicators/bollinger-bands.src.js +209 -0
  58. data/vendor/assets/javascripts/highstock/es-modules/indicators/cci.src.js +131 -0
  59. data/vendor/assets/javascripts/highstock/es-modules/indicators/chaikin.src.js +167 -0
  60. data/vendor/assets/javascripts/highstock/es-modules/indicators/cmf.src.js +246 -0
  61. data/vendor/assets/javascripts/highstock/es-modules/indicators/dema.src.js +191 -0
  62. data/vendor/assets/javascripts/highstock/es-modules/indicators/dpo.src.js +138 -0
  63. data/vendor/assets/javascripts/highstock/es-modules/indicators/ema.src.js +166 -0
  64. data/vendor/assets/javascripts/highstock/es-modules/indicators/ichimoku-kinko-hyo.src.js +850 -0
  65. data/vendor/assets/javascripts/highstock/es-modules/indicators/indicators.src.js +425 -0
  66. data/vendor/assets/javascripts/highstock/es-modules/indicators/keltner-channels.src.js +193 -0
  67. data/vendor/assets/javascripts/highstock/es-modules/indicators/macd.src.js +417 -0
  68. data/vendor/assets/javascripts/highstock/es-modules/indicators/mfi.src.js +198 -0
  69. data/vendor/assets/javascripts/highstock/es-modules/indicators/momentum.src.js +119 -0
  70. data/vendor/assets/javascripts/highstock/es-modules/indicators/natr.src.js +74 -0
  71. data/vendor/assets/javascripts/highstock/es-modules/indicators/pivot-points.src.js +360 -0
  72. data/vendor/assets/javascripts/highstock/es-modules/indicators/ppo.src.js +152 -0
  73. data/vendor/assets/javascripts/highstock/es-modules/indicators/price-channel.src.js +149 -0
  74. data/vendor/assets/javascripts/highstock/es-modules/indicators/price-envelopes.src.js +251 -0
  75. data/vendor/assets/javascripts/highstock/es-modules/indicators/psar.src.js +307 -0
  76. data/vendor/assets/javascripts/highstock/es-modules/indicators/regressions.src.js +427 -0
  77. data/vendor/assets/javascripts/highstock/es-modules/indicators/roc.src.js +149 -0
  78. data/vendor/assets/javascripts/highstock/es-modules/indicators/rsi.src.js +163 -0
  79. data/vendor/assets/javascripts/highstock/es-modules/indicators/stochastic.src.js +193 -0
  80. data/vendor/assets/javascripts/highstock/es-modules/indicators/supertrend.src.js +544 -0
  81. data/vendor/assets/javascripts/highstock/es-modules/indicators/tema.src.js +247 -0
  82. data/vendor/assets/javascripts/highstock/es-modules/indicators/trix.src.js +96 -0
  83. data/vendor/assets/javascripts/highstock/es-modules/indicators/volume-by-price.src.js +671 -0
  84. data/vendor/assets/javascripts/highstock/es-modules/indicators/vwap.src.js +189 -0
  85. data/vendor/assets/javascripts/highstock/es-modules/indicators/williams-r.src.js +128 -0
  86. data/vendor/assets/javascripts/highstock/es-modules/indicators/wma.src.js +146 -0
  87. data/vendor/assets/javascripts/highstock/es-modules/indicators/zigzag.src.js +221 -0
  88. data/vendor/assets/javascripts/highstock/es-modules/masters/highcharts-3d.src.js +17 -0
  89. data/vendor/assets/javascripts/highstock/es-modules/masters/highcharts-more.src.js +22 -0
  90. data/vendor/assets/javascripts/highstock/es-modules/masters/highstock.src.js +11 -0
  91. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/acceleration-bands.src.js +11 -0
  92. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/accumulation-distribution.src.js +11 -0
  93. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ao.src.js +11 -0
  94. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/apo.src.js +11 -0
  95. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/aroon-oscillator.src.js +11 -0
  96. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/aroon.src.js +11 -0
  97. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/atr.src.js +11 -0
  98. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/bollinger-bands.src.js +11 -0
  99. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/cci.src.js +11 -0
  100. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/chaikin.src.js +11 -0
  101. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/cmf.src.js +10 -0
  102. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/dema.src.js +11 -0
  103. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/dpo.src.js +11 -0
  104. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ema.src.js +11 -0
  105. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +11 -0
  106. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/indicators-all.src.js +49 -0
  107. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/indicators.src.js +11 -0
  108. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/keltner-channels.src.js +11 -0
  109. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/macd.src.js +11 -0
  110. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/mfi.src.js +11 -0
  111. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/momentum.src.js +11 -0
  112. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/natr.src.js +11 -0
  113. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/pivot-points.src.js +11 -0
  114. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ppo.src.js +11 -0
  115. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/price-channel.src.js +11 -0
  116. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/price-envelopes.src.js +11 -0
  117. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/psar.src.js +11 -0
  118. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/regressions.src.js +11 -0
  119. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/roc.src.js +11 -0
  120. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/rsi.src.js +11 -0
  121. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/stochastic.src.js +11 -0
  122. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/supertrend.src.js +11 -0
  123. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/tema.src.js +11 -0
  124. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/trix.src.js +11 -0
  125. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/volume-by-price.src.js +11 -0
  126. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/vwap.src.js +11 -0
  127. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/williams-r.src.js +11 -0
  128. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/wma.src.js +11 -0
  129. data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/zigzag.src.js +11 -0
  130. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/accessibility.src.js +13 -0
  131. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/annotations-advanced.src.js +20 -0
  132. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/annotations.src.js +12 -0
  133. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/arrow-symbols.src.js +10 -0
  134. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/boost-canvas.src.js +11 -0
  135. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/boost.src.js +11 -0
  136. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/bullet.src.js +11 -0
  137. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/current-date-indicator.src.js +10 -0
  138. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/cylinder.src.js +10 -0
  139. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/data.src.js +10 -0
  140. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/datagrouping.src.js +12 -0
  141. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/debugger.src.js +13 -0
  142. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/dependency-wheel.src.js +10 -0
  143. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/drag-panes.src.js +11 -0
  144. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/draggable-points.src.js +9 -0
  145. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/drilldown.src.js +10 -0
  146. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/export-data.src.js +10 -0
  147. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/exporting.src.js +10 -0
  148. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/full-screen.src.js +11 -0
  149. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/funnel.src.js +10 -0
  150. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/grid-axis.src.js +10 -0
  151. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/heatmap.src.js +11 -0
  152. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/histogram-bellcurve.src.js +11 -0
  153. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/item-series.src.js +11 -0
  154. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/networkgraph.src.js +10 -0
  155. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/no-data-to-display.src.js +11 -0
  156. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/offline-exporting.src.js +10 -0
  157. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/oldie-polyfills.src.js +11 -0
  158. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/oldie.src.js +11 -0
  159. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/overlapping-datalabels.src.js +9 -0
  160. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/parallel-coordinates.src.js +11 -0
  161. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/pareto.src.js +11 -0
  162. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/pathfinder.src.js +10 -0
  163. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/pattern-fill.src.js +11 -0
  164. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/price-indicator.src.js +11 -0
  165. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/sankey.src.js +10 -0
  166. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/series-label.src.js +9 -0
  167. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/solid-gauge.src.js +10 -0
  168. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/sonification.src.js +12 -0
  169. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/static-scale.src.js +10 -0
  170. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/stock-tools.src.js +12 -0
  171. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/stock.src.js +19 -0
  172. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/streamgraph.src.js +10 -0
  173. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/sunburst.src.js +10 -0
  174. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/tilemap.src.js +10 -0
  175. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/timeline.src.js +11 -0
  176. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/treegrid.src.js +10 -0
  177. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/treemap.src.js +10 -0
  178. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/variable-pie.src.js +11 -0
  179. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/variwide.src.js +10 -0
  180. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/vector.src.js +10 -0
  181. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/venn.src.js +10 -0
  182. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/windbarb.src.js +10 -0
  183. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/wordcloud.src.js +10 -0
  184. data/vendor/assets/javascripts/highstock/es-modules/masters/modules/xrange.src.js +10 -0
  185. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/avocado.js +9 -0
  186. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/avocado.src.js +9 -0
  187. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/dark-blue.src.js +9 -0
  188. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/dark-green.src.js +9 -0
  189. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/dark-unica.src.js +9 -0
  190. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/gray.src.js +9 -0
  191. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/grid-light.src.js +9 -0
  192. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/grid.src.js +9 -0
  193. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/sand-signika.src.js +9 -0
  194. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/skies.src.js +9 -0
  195. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/sunset.js +9 -0
  196. data/vendor/assets/javascripts/highstock/es-modules/masters/themes/sunset.src.js +9 -0
  197. data/vendor/assets/javascripts/highstock/es-modules/mixins/ajax.js +123 -0
  198. data/vendor/assets/javascripts/highstock/es-modules/mixins/centered-series.js +116 -0
  199. data/vendor/assets/javascripts/highstock/es-modules/mixins/derived-series.js +150 -0
  200. data/vendor/assets/javascripts/highstock/es-modules/mixins/download-url.js +103 -0
  201. data/vendor/assets/javascripts/highstock/es-modules/mixins/draw-point.js +51 -0
  202. data/vendor/assets/javascripts/highstock/es-modules/mixins/geometry-circles.js +300 -0
  203. data/vendor/assets/javascripts/highstock/es-modules/mixins/geometry.js +50 -0
  204. data/vendor/assets/javascripts/highstock/es-modules/mixins/indicator-required.js +49 -0
  205. data/vendor/assets/javascripts/highstock/es-modules/mixins/multipe-lines.js +223 -0
  206. data/vendor/assets/javascripts/highstock/es-modules/mixins/navigation.js +59 -0
  207. data/vendor/assets/javascripts/highstock/es-modules/mixins/nodes.js +76 -0
  208. data/vendor/assets/javascripts/highstock/es-modules/mixins/on-series.js +167 -0
  209. data/vendor/assets/javascripts/highstock/es-modules/mixins/polygon.js +293 -0
  210. data/vendor/assets/javascripts/highstock/es-modules/mixins/reduce-array.js +53 -0
  211. data/vendor/assets/javascripts/highstock/es-modules/mixins/tree-series.js +256 -0
  212. data/vendor/assets/javascripts/highstock/es-modules/modules/a11y-i18n.src.js +524 -0
  213. data/vendor/assets/javascripts/highstock/es-modules/modules/annotations-legacy.src.js +1951 -0
  214. data/vendor/assets/javascripts/highstock/es-modules/modules/bellcurve.src.js +173 -0
  215. data/vendor/assets/javascripts/highstock/es-modules/modules/boost-canvas.src.js +732 -0
  216. data/vendor/assets/javascripts/highstock/es-modules/modules/boost.src.js +3730 -0
  217. data/vendor/assets/javascripts/highstock/es-modules/modules/bullet.src.js +361 -0
  218. data/vendor/assets/javascripts/highstock/es-modules/modules/cylinder.src.js +389 -0
  219. data/vendor/assets/javascripts/highstock/es-modules/modules/data.src.js +2417 -0
  220. data/vendor/assets/javascripts/highstock/es-modules/modules/debugger.src.js +109 -0
  221. data/vendor/assets/javascripts/highstock/es-modules/modules/dependency-wheel.src.js +199 -0
  222. data/vendor/assets/javascripts/highstock/es-modules/modules/drag-panes.src.js +624 -0
  223. data/vendor/assets/javascripts/highstock/es-modules/modules/draggable-points.src.js +2625 -0
  224. data/vendor/assets/javascripts/highstock/es-modules/modules/drilldown.src.js +1300 -0
  225. data/vendor/assets/javascripts/highstock/es-modules/modules/export-data.src.js +983 -0
  226. data/vendor/assets/javascripts/highstock/es-modules/modules/exporting.src.js +2149 -0
  227. data/vendor/assets/javascripts/highstock/es-modules/modules/full-screen.src.js +40 -0
  228. data/vendor/assets/javascripts/highstock/es-modules/modules/funnel.src.js +552 -0
  229. data/vendor/assets/javascripts/highstock/es-modules/modules/histogram.src.js +229 -0
  230. data/vendor/assets/javascripts/highstock/es-modules/modules/item-series.src.js +150 -0
  231. data/vendor/assets/javascripts/highstock/es-modules/modules/keyboard-navigation.src.js +1606 -0
  232. data/vendor/assets/javascripts/highstock/es-modules/modules/networkgraph/QuadTree.js +175 -0
  233. data/vendor/assets/javascripts/highstock/es-modules/modules/networkgraph/layouts.js +506 -0
  234. data/vendor/assets/javascripts/highstock/es-modules/modules/networkgraph/networkgraph.src.js +740 -0
  235. data/vendor/assets/javascripts/highstock/es-modules/modules/no-data-to-display.src.js +260 -0
  236. data/vendor/assets/javascripts/highstock/es-modules/modules/offline-exporting.src.js +710 -0
  237. data/vendor/assets/javascripts/highstock/es-modules/modules/oldie-polyfills.src.js +121 -0
  238. data/vendor/assets/javascripts/highstock/es-modules/modules/oldie.src.js +1556 -0
  239. data/vendor/assets/javascripts/highstock/es-modules/modules/overlapping-datalabels.src.js +250 -0
  240. data/vendor/assets/javascripts/highstock/es-modules/modules/parallel-coordinates.src.js +492 -0
  241. data/vendor/assets/javascripts/highstock/es-modules/modules/pareto.src.js +152 -0
  242. data/vendor/assets/javascripts/highstock/es-modules/modules/pattern-fill.src.js +607 -0
  243. data/vendor/assets/javascripts/highstock/es-modules/modules/price-indicator.src.js +149 -0
  244. data/vendor/assets/javascripts/highstock/es-modules/modules/sankey.src.js +809 -0
  245. data/vendor/assets/javascripts/highstock/es-modules/modules/screen-reader.src.js +954 -0
  246. data/vendor/assets/javascripts/highstock/es-modules/modules/series-label.src.js +1042 -0
  247. data/vendor/assets/javascripts/highstock/es-modules/modules/solid-gauge.src.js +486 -0
  248. data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/Earcon.js +184 -0
  249. data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/Instrument.js +582 -0
  250. data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/Timeline.js +702 -0
  251. data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/chartSonify.js +1026 -0
  252. data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/instrumentDefinitions.js +37 -0
  253. data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/musicalFrequencies.js +113 -0
  254. data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/pointSonify.js +385 -0
  255. data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/sonification.js +107 -0
  256. data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/utilities.js +178 -0
  257. data/vendor/assets/javascripts/highstock/es-modules/modules/static-scale.src.js +88 -0
  258. data/vendor/assets/javascripts/highstock/es-modules/modules/stock-tools-bindings.js +1950 -0
  259. data/vendor/assets/javascripts/highstock/es-modules/modules/stock-tools-gui.js +1458 -0
  260. data/vendor/assets/javascripts/highstock/es-modules/modules/streamgraph.src.js +132 -0
  261. data/vendor/assets/javascripts/highstock/es-modules/modules/sunburst.src.js +1041 -0
  262. data/vendor/assets/javascripts/highstock/es-modules/modules/tilemap.src.js +769 -0
  263. data/vendor/assets/javascripts/highstock/es-modules/modules/timeline.src.js +750 -0
  264. data/vendor/assets/javascripts/highstock/es-modules/modules/treemap.src.js +1803 -0
  265. data/vendor/assets/javascripts/highstock/es-modules/modules/variable-pie.src.js +459 -0
  266. data/vendor/assets/javascripts/highstock/es-modules/modules/variwide.src.js +350 -0
  267. data/vendor/assets/javascripts/highstock/es-modules/modules/vector.src.js +354 -0
  268. data/vendor/assets/javascripts/highstock/es-modules/modules/venn.src.js +1192 -0
  269. data/vendor/assets/javascripts/highstock/es-modules/modules/windbarb.src.js +380 -0
  270. data/vendor/assets/javascripts/highstock/es-modules/modules/wordcloud.src.js +1103 -0
  271. data/vendor/assets/javascripts/highstock/es-modules/modules/xrange.src.js +761 -0
  272. data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Axis.js +669 -0
  273. data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Chart.js +1753 -0
  274. data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Column.js +437 -0
  275. data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Math.js +206 -0
  276. data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Pie.js +207 -0
  277. data/vendor/assets/javascripts/highstock/es-modules/parts-3d/SVGRenderer.js +1002 -0
  278. data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Scatter.js +154 -0
  279. data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Series.js +73 -0
  280. data/vendor/assets/javascripts/highstock/es-modules/parts-3d/VMLRenderer.js +62 -0
  281. data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/ArrowSymbols.js +198 -0
  282. data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/CurrentDateIndicator.js +100 -0
  283. data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/GanttChart.js +140 -0
  284. data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/GanttSeries.js +415 -0
  285. data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/GridAxis.js +961 -0
  286. data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/Pathfinder.js +1298 -0
  287. data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/PathfinderAlgorithms.js +816 -0
  288. data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/Tree.js +158 -0
  289. data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/TreeGrid.js +1003 -0
  290. data/vendor/assets/javascripts/highstock/es-modules/parts-map/ColorAxis.js +1103 -0
  291. data/vendor/assets/javascripts/highstock/es-modules/parts-map/ColorSeriesMixin.js +138 -0
  292. data/vendor/assets/javascripts/highstock/es-modules/parts-map/GeoJSON.js +435 -0
  293. data/vendor/assets/javascripts/highstock/es-modules/parts-map/HeatmapSeries.js +474 -0
  294. data/vendor/assets/javascripts/highstock/es-modules/parts-map/Map.js +477 -0
  295. data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapAxis.js +124 -0
  296. data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapBubbleSeries.js +274 -0
  297. data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapLineSeries.js +143 -0
  298. data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapNavigation.js +357 -0
  299. data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapPointSeries.js +187 -0
  300. data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapPointer.js +132 -0
  301. data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapSeries.js +1294 -0
  302. data/vendor/assets/javascripts/highstock/es-modules/parts-more/AreaRangeSeries.js +725 -0
  303. data/vendor/assets/javascripts/highstock/es-modules/parts-more/AreaSplineRangeSeries.js +98 -0
  304. data/vendor/assets/javascripts/highstock/es-modules/parts-more/BoxPlotSeries.js +617 -0
  305. data/vendor/assets/javascripts/highstock/es-modules/parts-more/BubbleLegend.js +1167 -0
  306. data/vendor/assets/javascripts/highstock/es-modules/parts-more/BubbleSeries.js +661 -0
  307. data/vendor/assets/javascripts/highstock/es-modules/parts-more/ColumnPyramidSeries.js +288 -0
  308. data/vendor/assets/javascripts/highstock/es-modules/parts-more/ColumnRangeSeries.js +278 -0
  309. data/vendor/assets/javascripts/highstock/es-modules/parts-more/ErrorBarSeries.js +172 -0
  310. data/vendor/assets/javascripts/highstock/es-modules/parts-more/GaugeSeries.js +618 -0
  311. data/vendor/assets/javascripts/highstock/es-modules/parts-more/PackedBubbleSeries.js +567 -0
  312. data/vendor/assets/javascripts/highstock/es-modules/parts-more/Pane.js +399 -0
  313. data/vendor/assets/javascripts/highstock/es-modules/parts-more/Polar.js +634 -0
  314. data/vendor/assets/javascripts/highstock/es-modules/parts-more/PolygonSeries.js +151 -0
  315. data/vendor/assets/javascripts/highstock/es-modules/parts-more/RadialAxis.js +685 -0
  316. data/vendor/assets/javascripts/highstock/es-modules/parts-more/WaterfallSeries.js +765 -0
  317. data/vendor/assets/javascripts/highstock/es-modules/parts.js +684 -0
  318. data/vendor/assets/javascripts/highstock/es-modules/parts/AreaSeries.js +578 -0
  319. data/vendor/assets/javascripts/highstock/es-modules/parts/AreaSplineSeries.js +122 -0
  320. data/vendor/assets/javascripts/highstock/es-modules/parts/Axis.js +6453 -0
  321. data/vendor/assets/javascripts/highstock/es-modules/parts/BarSeries.js +153 -0
  322. data/vendor/assets/javascripts/highstock/es-modules/parts/CandlestickSeries.js +358 -0
  323. data/vendor/assets/javascripts/highstock/es-modules/parts/Chart.js +2307 -0
  324. data/vendor/assets/javascripts/highstock/es-modules/parts/Color.js +301 -0
  325. data/vendor/assets/javascripts/highstock/es-modules/parts/ColumnSeries.js +1125 -0
  326. data/vendor/assets/javascripts/highstock/es-modules/parts/DataGrouping.js +1115 -0
  327. data/vendor/assets/javascripts/highstock/es-modules/parts/DataLabels.js +1431 -0
  328. data/vendor/assets/javascripts/highstock/es-modules/parts/DateTimeAxis.js +134 -0
  329. data/vendor/assets/javascripts/highstock/es-modules/parts/Dynamics.js +1301 -0
  330. data/vendor/assets/javascripts/highstock/es-modules/parts/FlagsSeries.js +739 -0
  331. data/vendor/assets/javascripts/highstock/es-modules/parts/Globals.js +75 -0
  332. data/vendor/assets/javascripts/highstock/es-modules/parts/Html.js +539 -0
  333. data/vendor/assets/javascripts/highstock/es-modules/parts/Interaction.js +1299 -0
  334. data/vendor/assets/javascripts/highstock/es-modules/parts/Legend.js +1411 -0
  335. data/vendor/assets/javascripts/highstock/es-modules/parts/LogarithmicAxis.js +168 -0
  336. data/vendor/assets/javascripts/highstock/es-modules/parts/MSPointer.js +176 -0
  337. data/vendor/assets/javascripts/highstock/es-modules/parts/Navigator.js +2486 -0
  338. data/vendor/assets/javascripts/highstock/es-modules/parts/OHLCSeries.js +412 -0
  339. data/vendor/assets/javascripts/highstock/es-modules/parts/Options.js +3732 -0
  340. data/vendor/assets/javascripts/highstock/es-modules/parts/OrdinalAxis.js +962 -0
  341. data/vendor/assets/javascripts/highstock/es-modules/parts/PieSeries.js +1328 -0
  342. data/vendor/assets/javascripts/highstock/es-modules/parts/PlotBandSeries.experimental.js +74 -0
  343. data/vendor/assets/javascripts/highstock/es-modules/parts/PlotLineOrBand.js +1061 -0
  344. data/vendor/assets/javascripts/highstock/es-modules/parts/Point.js +681 -0
  345. data/vendor/assets/javascripts/highstock/es-modules/parts/Pointer.js +1332 -0
  346. data/vendor/assets/javascripts/highstock/es-modules/parts/RangeSelector.js +2063 -0
  347. data/vendor/assets/javascripts/highstock/es-modules/parts/Responsive.js +295 -0
  348. data/vendor/assets/javascripts/highstock/es-modules/parts/ScatterSeries.js +278 -0
  349. data/vendor/assets/javascripts/highstock/es-modules/parts/ScrollablePlotArea.js +266 -0
  350. data/vendor/assets/javascripts/highstock/es-modules/parts/Scrollbar.js +1134 -0
  351. data/vendor/assets/javascripts/highstock/es-modules/parts/Series.js +5864 -0
  352. data/vendor/assets/javascripts/highstock/es-modules/parts/SplineSeries.js +267 -0
  353. data/vendor/assets/javascripts/highstock/es-modules/parts/Stacking.js +604 -0
  354. data/vendor/assets/javascripts/highstock/es-modules/parts/StockChart.js +951 -0
  355. data/vendor/assets/javascripts/highstock/es-modules/parts/SvgRenderer.js +5109 -0
  356. data/vendor/assets/javascripts/highstock/es-modules/parts/Tick.js +746 -0
  357. data/vendor/assets/javascripts/highstock/es-modules/parts/Time.js +881 -0
  358. data/vendor/assets/javascripts/highstock/es-modules/parts/Tooltip.js +1318 -0
  359. data/vendor/assets/javascripts/highstock/es-modules/parts/TouchPointer.js +404 -0
  360. data/vendor/assets/javascripts/highstock/es-modules/parts/Utilities.js +2751 -0
  361. data/vendor/assets/javascripts/highstock/es-modules/themes/avocado.js +37 -0
  362. data/vendor/assets/javascripts/highstock/es-modules/themes/dark-blue.js +259 -0
  363. data/vendor/assets/javascripts/highstock/es-modules/themes/dark-green.js +261 -0
  364. data/vendor/assets/javascripts/highstock/es-modules/themes/dark-unica.js +220 -0
  365. data/vendor/assets/javascripts/highstock/es-modules/themes/gray.js +267 -0
  366. data/vendor/assets/javascripts/highstock/es-modules/themes/grid-light.js +81 -0
  367. data/vendor/assets/javascripts/highstock/es-modules/themes/grid.js +110 -0
  368. data/vendor/assets/javascripts/highstock/es-modules/themes/sand-signika.js +111 -0
  369. data/vendor/assets/javascripts/highstock/es-modules/themes/skies.js +100 -0
  370. data/vendor/assets/javascripts/highstock/es-modules/themes/sunset.js +36 -0
  371. data/vendor/assets/javascripts/highstock/highcharts-3d.js +85 -0
  372. data/vendor/assets/javascripts/highstock/highcharts-3d.js.map +1 -0
  373. data/vendor/assets/javascripts/highstock/highcharts-more.js +101 -0
  374. data/vendor/assets/javascripts/highstock/highcharts-more.js.map +1 -0
  375. data/vendor/assets/javascripts/highstock/highstock.js +583 -0
  376. data/vendor/assets/javascripts/highstock/highstock.js.map +1 -0
  377. data/vendor/assets/javascripts/highstock/indicators/acceleration-bands.js +16 -0
  378. data/vendor/assets/javascripts/highstock/indicators/acceleration-bands.js.map +1 -0
  379. data/vendor/assets/javascripts/highstock/indicators/acceleration-bands.src.js +448 -0
  380. data/vendor/assets/javascripts/highstock/indicators/accumulation-distribution.js +12 -0
  381. data/vendor/assets/javascripts/highstock/indicators/accumulation-distribution.js.map +1 -0
  382. data/vendor/assets/javascripts/highstock/indicators/accumulation-distribution.src.js +156 -0
  383. data/vendor/assets/javascripts/highstock/indicators/ao.js +13 -0
  384. data/vendor/assets/javascripts/highstock/indicators/ao.js.map +1 -0
  385. data/vendor/assets/javascripts/highstock/indicators/ao.src.js +233 -0
  386. data/vendor/assets/javascripts/highstock/indicators/apo.js +13 -0
  387. data/vendor/assets/javascripts/highstock/indicators/apo.js.map +1 -0
  388. data/vendor/assets/javascripts/highstock/indicators/apo.src.js +223 -0
  389. data/vendor/assets/javascripts/highstock/indicators/aroon-oscillator.js +15 -0
  390. data/vendor/assets/javascripts/highstock/indicators/aroon-oscillator.js.map +1 -0
  391. data/vendor/assets/javascripts/highstock/indicators/aroon-oscillator.src.js +426 -0
  392. data/vendor/assets/javascripts/highstock/indicators/aroon.js +16 -0
  393. data/vendor/assets/javascripts/highstock/indicators/aroon.js.map +1 -0
  394. data/vendor/assets/javascripts/highstock/indicators/aroon.src.js +423 -0
  395. data/vendor/assets/javascripts/highstock/indicators/atr.js +12 -0
  396. data/vendor/assets/javascripts/highstock/indicators/atr.js.map +1 -0
  397. data/vendor/assets/javascripts/highstock/indicators/atr.src.js +178 -0
  398. data/vendor/assets/javascripts/highstock/indicators/bollinger-bands.js +16 -0
  399. data/vendor/assets/javascripts/highstock/indicators/bollinger-bands.js.map +1 -0
  400. data/vendor/assets/javascripts/highstock/indicators/bollinger-bands.src.js +458 -0
  401. data/vendor/assets/javascripts/highstock/indicators/cci.js +12 -0
  402. data/vendor/assets/javascripts/highstock/indicators/cci.js.map +1 -0
  403. data/vendor/assets/javascripts/highstock/indicators/cci.src.js +158 -0
  404. data/vendor/assets/javascripts/highstock/indicators/chaikin.js +15 -0
  405. data/vendor/assets/javascripts/highstock/indicators/chaikin.js.map +1 -0
  406. data/vendor/assets/javascripts/highstock/indicators/chaikin.src.js +370 -0
  407. data/vendor/assets/javascripts/highstock/indicators/cmf.js +12 -0
  408. data/vendor/assets/javascripts/highstock/indicators/cmf.js.map +1 -0
  409. data/vendor/assets/javascripts/highstock/indicators/cmf.src.js +273 -0
  410. data/vendor/assets/javascripts/highstock/indicators/dema.js +13 -0
  411. data/vendor/assets/javascripts/highstock/indicators/dema.js.map +1 -0
  412. data/vendor/assets/javascripts/highstock/indicators/dema.src.js +266 -0
  413. data/vendor/assets/javascripts/highstock/indicators/dpo.js +12 -0
  414. data/vendor/assets/javascripts/highstock/indicators/dpo.js.map +1 -0
  415. data/vendor/assets/javascripts/highstock/indicators/dpo.src.js +166 -0
  416. data/vendor/assets/javascripts/highstock/indicators/ema.js +12 -0
  417. data/vendor/assets/javascripts/highstock/indicators/ema.js.map +1 -0
  418. data/vendor/assets/javascripts/highstock/indicators/ema.src.js +193 -0
  419. data/vendor/assets/javascripts/highstock/indicators/ichimoku-kinko-hyo.js +22 -0
  420. data/vendor/assets/javascripts/highstock/indicators/ichimoku-kinko-hyo.js.map +1 -0
  421. data/vendor/assets/javascripts/highstock/indicators/ichimoku-kinko-hyo.src.js +877 -0
  422. data/vendor/assets/javascripts/highstock/indicators/indicators-all.js +117 -0
  423. data/vendor/assets/javascripts/highstock/indicators/indicators-all.js.map +1 -0
  424. data/vendor/assets/javascripts/highstock/indicators/indicators-all.src.js +9389 -0
  425. data/vendor/assets/javascripts/highstock/indicators/indicators.js +17 -0
  426. data/vendor/assets/javascripts/highstock/indicators/indicators.js.map +1 -0
  427. data/vendor/assets/javascripts/highstock/indicators/indicators.src.js +500 -0
  428. data/vendor/assets/javascripts/highstock/indicators/keltner-channels.js +16 -0
  429. data/vendor/assets/javascripts/highstock/indicators/keltner-channels.js.map +1 -0
  430. data/vendor/assets/javascripts/highstock/indicators/keltner-channels.src.js +442 -0
  431. data/vendor/assets/javascripts/highstock/indicators/macd.js +18 -0
  432. data/vendor/assets/javascripts/highstock/indicators/macd.js.map +1 -0
  433. data/vendor/assets/javascripts/highstock/indicators/macd.src.js +444 -0
  434. data/vendor/assets/javascripts/highstock/indicators/mfi.js +13 -0
  435. data/vendor/assets/javascripts/highstock/indicators/mfi.js.map +1 -0
  436. data/vendor/assets/javascripts/highstock/indicators/mfi.src.js +225 -0
  437. data/vendor/assets/javascripts/highstock/indicators/momentum.js +12 -0
  438. data/vendor/assets/javascripts/highstock/indicators/momentum.js.map +1 -0
  439. data/vendor/assets/javascripts/highstock/indicators/momentum.src.js +146 -0
  440. data/vendor/assets/javascripts/highstock/indicators/natr.js +12 -0
  441. data/vendor/assets/javascripts/highstock/indicators/natr.js.map +1 -0
  442. data/vendor/assets/javascripts/highstock/indicators/natr.src.js +101 -0
  443. data/vendor/assets/javascripts/highstock/indicators/pivot-points.js +16 -0
  444. data/vendor/assets/javascripts/highstock/indicators/pivot-points.js.map +1 -0
  445. data/vendor/assets/javascripts/highstock/indicators/pivot-points.src.js +387 -0
  446. data/vendor/assets/javascripts/highstock/indicators/ppo.js +13 -0
  447. data/vendor/assets/javascripts/highstock/indicators/ppo.js.map +1 -0
  448. data/vendor/assets/javascripts/highstock/indicators/ppo.src.js +227 -0
  449. data/vendor/assets/javascripts/highstock/indicators/price-channel.js +16 -0
  450. data/vendor/assets/javascripts/highstock/indicators/price-channel.js.map +1 -0
  451. data/vendor/assets/javascripts/highstock/indicators/price-channel.src.js +450 -0
  452. data/vendor/assets/javascripts/highstock/indicators/price-envelopes.js +15 -0
  453. data/vendor/assets/javascripts/highstock/indicators/price-envelopes.js.map +1 -0
  454. data/vendor/assets/javascripts/highstock/indicators/price-envelopes.src.js +278 -0
  455. data/vendor/assets/javascripts/highstock/indicators/psar.js +13 -0
  456. data/vendor/assets/javascripts/highstock/indicators/psar.js.map +1 -0
  457. data/vendor/assets/javascripts/highstock/indicators/psar.src.js +334 -0
  458. data/vendor/assets/javascripts/highstock/indicators/regressions.js +14 -0
  459. data/vendor/assets/javascripts/highstock/indicators/regressions.js.map +1 -0
  460. data/vendor/assets/javascripts/highstock/indicators/regressions.src.js +454 -0
  461. data/vendor/assets/javascripts/highstock/indicators/roc.js +12 -0
  462. data/vendor/assets/javascripts/highstock/indicators/roc.js.map +1 -0
  463. data/vendor/assets/javascripts/highstock/indicators/roc.src.js +176 -0
  464. data/vendor/assets/javascripts/highstock/indicators/rsi.js +12 -0
  465. data/vendor/assets/javascripts/highstock/indicators/rsi.js.map +1 -0
  466. data/vendor/assets/javascripts/highstock/indicators/rsi.src.js +190 -0
  467. data/vendor/assets/javascripts/highstock/indicators/stochastic.js +17 -0
  468. data/vendor/assets/javascripts/highstock/indicators/stochastic.js.map +1 -0
  469. data/vendor/assets/javascripts/highstock/indicators/stochastic.src.js +494 -0
  470. data/vendor/assets/javascripts/highstock/indicators/supertrend.js +17 -0
  471. data/vendor/assets/javascripts/highstock/indicators/supertrend.js.map +1 -0
  472. data/vendor/assets/javascripts/highstock/indicators/supertrend.src.js +571 -0
  473. data/vendor/assets/javascripts/highstock/indicators/tema.js +14 -0
  474. data/vendor/assets/javascripts/highstock/indicators/tema.js.map +1 -0
  475. data/vendor/assets/javascripts/highstock/indicators/tema.src.js +322 -0
  476. data/vendor/assets/javascripts/highstock/indicators/trix.js +12 -0
  477. data/vendor/assets/javascripts/highstock/indicators/trix.js.map +1 -0
  478. data/vendor/assets/javascripts/highstock/indicators/trix.src.js +171 -0
  479. data/vendor/assets/javascripts/highstock/indicators/volume-by-price.js +21 -0
  480. data/vendor/assets/javascripts/highstock/indicators/volume-by-price.js.map +1 -0
  481. data/vendor/assets/javascripts/highstock/indicators/volume-by-price.src.js +698 -0
  482. data/vendor/assets/javascripts/highstock/indicators/vwap.js +12 -0
  483. data/vendor/assets/javascripts/highstock/indicators/vwap.js.map +1 -0
  484. data/vendor/assets/javascripts/highstock/indicators/vwap.src.js +216 -0
  485. data/vendor/assets/javascripts/highstock/indicators/williams-r.js +13 -0
  486. data/vendor/assets/javascripts/highstock/indicators/williams-r.js.map +1 -0
  487. data/vendor/assets/javascripts/highstock/indicators/williams-r.src.js +207 -0
  488. data/vendor/assets/javascripts/highstock/indicators/wma.js +12 -0
  489. data/vendor/assets/javascripts/highstock/indicators/wma.js.map +1 -0
  490. data/vendor/assets/javascripts/highstock/indicators/wma.src.js +173 -0
  491. data/vendor/assets/javascripts/highstock/indicators/zigzag.js +13 -0
  492. data/vendor/assets/javascripts/highstock/indicators/zigzag.js.map +1 -0
  493. data/vendor/assets/javascripts/highstock/indicators/zigzag.src.js +248 -0
  494. data/vendor/assets/javascripts/highstock/lib/canvg.js +130 -0
  495. data/vendor/assets/javascripts/highstock/lib/canvg.src.js +3073 -0
  496. data/vendor/assets/javascripts/highstock/lib/jspdf.js +283 -0
  497. data/vendor/assets/javascripts/highstock/lib/jspdf.src.js +21627 -0
  498. data/vendor/assets/javascripts/highstock/lib/rgbcolor.js +17 -0
  499. data/vendor/assets/javascripts/highstock/lib/rgbcolor.src.js +299 -0
  500. data/vendor/assets/javascripts/highstock/lib/svg2pdf.js +38 -0
  501. data/vendor/assets/javascripts/highstock/lib/svg2pdf.src.js +4390 -0
  502. data/vendor/assets/javascripts/highstock/modules/accessibility.js +73 -0
  503. data/vendor/assets/javascripts/highstock/modules/accessibility.js.map +1 -0
  504. data/vendor/assets/javascripts/highstock/modules/accessibility.src.js +3103 -0
  505. data/vendor/assets/javascripts/highstock/modules/annotations-advanced.js +132 -0
  506. data/vendor/assets/javascripts/highstock/modules/annotations-advanced.js.map +1 -0
  507. data/vendor/assets/javascripts/highstock/modules/annotations-advanced.src.js +8230 -0
  508. data/vendor/assets/javascripts/highstock/modules/annotations.js +94 -0
  509. data/vendor/assets/javascripts/highstock/modules/annotations.js.map +1 -0
  510. data/vendor/assets/javascripts/highstock/modules/annotations.src.js +6001 -0
  511. data/vendor/assets/javascripts/highstock/modules/arrow-symbols.js +11 -0
  512. data/vendor/assets/javascripts/highstock/modules/arrow-symbols.js.map +1 -0
  513. data/vendor/assets/javascripts/highstock/modules/arrow-symbols.src.js +225 -0
  514. data/vendor/assets/javascripts/highstock/modules/boost-canvas.js +23 -0
  515. data/vendor/assets/javascripts/highstock/modules/boost-canvas.js.map +1 -0
  516. data/vendor/assets/javascripts/highstock/modules/boost-canvas.src.js +756 -0
  517. data/vendor/assets/javascripts/highstock/modules/boost.js +65 -0
  518. data/vendor/assets/javascripts/highstock/modules/boost.js.map +1 -0
  519. data/vendor/assets/javascripts/highstock/modules/boost.src.js +3752 -0
  520. data/vendor/assets/javascripts/highstock/modules/bullet.js +14 -0
  521. data/vendor/assets/javascripts/highstock/modules/bullet.js.map +1 -0
  522. data/vendor/assets/javascripts/highstock/modules/bullet.src.js +388 -0
  523. data/vendor/assets/javascripts/highstock/modules/current-date-indicator.js +11 -0
  524. data/vendor/assets/javascripts/highstock/modules/current-date-indicator.js.map +1 -0
  525. data/vendor/assets/javascripts/highstock/modules/current-date-indicator.src.js +127 -0
  526. data/vendor/assets/javascripts/highstock/modules/cylinder.js +14 -0
  527. data/vendor/assets/javascripts/highstock/modules/cylinder.js.map +1 -0
  528. data/vendor/assets/javascripts/highstock/modules/cylinder.src.js +413 -0
  529. data/vendor/assets/javascripts/highstock/modules/data.js +37 -0
  530. data/vendor/assets/javascripts/highstock/modules/data.js.map +1 -0
  531. data/vendor/assets/javascripts/highstock/modules/data.src.js +2565 -0
  532. data/vendor/assets/javascripts/highstock/modules/datagrouping.js +25 -0
  533. data/vendor/assets/javascripts/highstock/modules/datagrouping.js.map +1 -0
  534. data/vendor/assets/javascripts/highstock/modules/datagrouping.src.js +1140 -0
  535. data/vendor/assets/javascripts/highstock/modules/debugger.js +28 -0
  536. data/vendor/assets/javascripts/highstock/modules/debugger.js.map +1 -0
  537. data/vendor/assets/javascripts/highstock/modules/debugger.src.js +267 -0
  538. data/vendor/assets/javascripts/highstock/modules/dependency-wheel.js +15 -0
  539. data/vendor/assets/javascripts/highstock/modules/dependency-wheel.js.map +1 -0
  540. data/vendor/assets/javascripts/highstock/modules/dependency-wheel.src.js +301 -0
  541. data/vendor/assets/javascripts/highstock/modules/drag-panes.js +18 -0
  542. data/vendor/assets/javascripts/highstock/modules/drag-panes.js.map +1 -0
  543. data/vendor/assets/javascripts/highstock/modules/drag-panes.src.js +649 -0
  544. data/vendor/assets/javascripts/highstock/modules/draggable-points.js +40 -0
  545. data/vendor/assets/javascripts/highstock/modules/draggable-points.js.map +1 -0
  546. data/vendor/assets/javascripts/highstock/modules/draggable-points.src.js +2650 -0
  547. data/vendor/assets/javascripts/highstock/modules/drilldown.js +29 -0
  548. data/vendor/assets/javascripts/highstock/modules/drilldown.js.map +1 -0
  549. data/vendor/assets/javascripts/highstock/modules/drilldown.src.js +1321 -0
  550. data/vendor/assets/javascripts/highstock/modules/export-data.js +27 -0
  551. data/vendor/assets/javascripts/highstock/modules/export-data.js.map +1 -0
  552. data/vendor/assets/javascripts/highstock/modules/export-data.src.js +1234 -0
  553. data/vendor/assets/javascripts/highstock/modules/exporting.js +35 -0
  554. data/vendor/assets/javascripts/highstock/modules/exporting.js.map +1 -0
  555. data/vendor/assets/javascripts/highstock/modules/exporting.src.js +2233 -0
  556. data/vendor/assets/javascripts/highstock/modules/full-screen.js +11 -0
  557. data/vendor/assets/javascripts/highstock/modules/full-screen.js.map +1 -0
  558. data/vendor/assets/javascripts/highstock/modules/full-screen.src.js +68 -0
  559. data/vendor/assets/javascripts/highstock/modules/funnel.js +14 -0
  560. data/vendor/assets/javascripts/highstock/modules/funnel.js.map +1 -0
  561. data/vendor/assets/javascripts/highstock/modules/funnel.src.js +576 -0
  562. data/vendor/assets/javascripts/highstock/modules/grid-axis.js +23 -0
  563. data/vendor/assets/javascripts/highstock/modules/grid-axis.js.map +1 -0
  564. data/vendor/assets/javascripts/highstock/modules/grid-axis.src.js +988 -0
  565. data/vendor/assets/javascripts/highstock/modules/heatmap.js +28 -0
  566. data/vendor/assets/javascripts/highstock/modules/heatmap.js.map +1 -0
  567. data/vendor/assets/javascripts/highstock/modules/heatmap.src.js +1731 -0
  568. data/vendor/assets/javascripts/highstock/modules/histogram-bellcurve.js +16 -0
  569. data/vendor/assets/javascripts/highstock/modules/histogram-bellcurve.js.map +1 -0
  570. data/vendor/assets/javascripts/highstock/modules/histogram-bellcurve.src.js +570 -0
  571. data/vendor/assets/javascripts/highstock/modules/item-series.js +13 -0
  572. data/vendor/assets/javascripts/highstock/modules/item-series.js.map +1 -0
  573. data/vendor/assets/javascripts/highstock/modules/item-series.src.js +176 -0
  574. data/vendor/assets/javascripts/highstock/modules/networkgraph.js +31 -0
  575. data/vendor/assets/javascripts/highstock/modules/networkgraph.js.map +1 -0
  576. data/vendor/assets/javascripts/highstock/modules/networkgraph.src.js +1348 -0
  577. data/vendor/assets/javascripts/highstock/modules/no-data-to-display.js +13 -0
  578. data/vendor/assets/javascripts/highstock/modules/no-data-to-display.js.map +1 -0
  579. data/vendor/assets/javascripts/highstock/modules/no-data-to-display.src.js +285 -0
  580. data/vendor/assets/javascripts/highstock/modules/offline-exporting.js +22 -0
  581. data/vendor/assets/javascripts/highstock/modules/offline-exporting.js.map +1 -0
  582. data/vendor/assets/javascripts/highstock/modules/offline-exporting.src.js +838 -0
  583. data/vendor/assets/javascripts/highstock/modules/oldie-polyfills.js +13 -0
  584. data/vendor/assets/javascripts/highstock/modules/oldie-polyfills.js.map +1 -0
  585. data/vendor/assets/javascripts/highstock/modules/oldie-polyfills.src.js +150 -0
  586. data/vendor/assets/javascripts/highstock/modules/oldie.js +35 -0
  587. data/vendor/assets/javascripts/highstock/modules/oldie.js.map +1 -0
  588. data/vendor/assets/javascripts/highstock/modules/oldie.src.js +1582 -0
  589. data/vendor/assets/javascripts/highstock/modules/overlapping-datalabels.js +9 -0
  590. data/vendor/assets/javascripts/highstock/modules/overlapping-datalabels.js.map +1 -0
  591. data/vendor/assets/javascripts/highstock/modules/overlapping-datalabels.src.js +22 -0
  592. data/vendor/assets/javascripts/highstock/modules/parallel-coordinates.js +18 -0
  593. data/vendor/assets/javascripts/highstock/modules/parallel-coordinates.js.map +1 -0
  594. data/vendor/assets/javascripts/highstock/modules/parallel-coordinates.src.js +517 -0
  595. data/vendor/assets/javascripts/highstock/modules/pareto.js +14 -0
  596. data/vendor/assets/javascripts/highstock/modules/pareto.js.map +1 -0
  597. data/vendor/assets/javascripts/highstock/modules/pareto.src.js +327 -0
  598. data/vendor/assets/javascripts/highstock/modules/pathfinder.js +34 -0
  599. data/vendor/assets/javascripts/highstock/modules/pathfinder.js.map +1 -0
  600. data/vendor/assets/javascripts/highstock/modules/pathfinder.src.js +2336 -0
  601. data/vendor/assets/javascripts/highstock/modules/pattern-fill.js +21 -0
  602. data/vendor/assets/javascripts/highstock/modules/pattern-fill.js.map +1 -0
  603. data/vendor/assets/javascripts/highstock/modules/pattern-fill.src.js +634 -0
  604. data/vendor/assets/javascripts/highstock/modules/price-indicator.js +13 -0
  605. data/vendor/assets/javascripts/highstock/modules/price-indicator.js.map +1 -0
  606. data/vendor/assets/javascripts/highstock/modules/price-indicator.src.js +176 -0
  607. data/vendor/assets/javascripts/highstock/modules/sankey.js +22 -0
  608. data/vendor/assets/javascripts/highstock/modules/sankey.js.map +1 -0
  609. data/vendor/assets/javascripts/highstock/modules/sankey.src.js +911 -0
  610. data/vendor/assets/javascripts/highstock/modules/series-label.js +23 -0
  611. data/vendor/assets/javascripts/highstock/modules/series-label.js.map +1 -0
  612. data/vendor/assets/javascripts/highstock/modules/series-label.src.js +1065 -0
  613. data/vendor/assets/javascripts/highstock/modules/solid-gauge.js +15 -0
  614. data/vendor/assets/javascripts/highstock/modules/solid-gauge.js.map +1 -0
  615. data/vendor/assets/javascripts/highstock/modules/solid-gauge.src.js +510 -0
  616. data/vendor/assets/javascripts/highstock/modules/sonification.js +53 -0
  617. data/vendor/assets/javascripts/highstock/modules/sonification.js.map +1 -0
  618. data/vendor/assets/javascripts/highstock/modules/sonification.src.js +3341 -0
  619. data/vendor/assets/javascripts/highstock/modules/static-scale.js +12 -0
  620. data/vendor/assets/javascripts/highstock/modules/static-scale.js.map +1 -0
  621. data/vendor/assets/javascripts/highstock/modules/static-scale.src.js +114 -0
  622. data/vendor/assets/javascripts/highstock/modules/stock-tools.js +65 -0
  623. data/vendor/assets/javascripts/highstock/modules/stock-tools.js.map +1 -0
  624. data/vendor/assets/javascripts/highstock/modules/stock-tools.src.js +3437 -0
  625. data/vendor/assets/javascripts/highstock/modules/stock.js +151 -0
  626. data/vendor/assets/javascripts/highstock/modules/stock.js.map +1 -0
  627. data/vendor/assets/javascripts/highstock/modules/stock.src.js +10907 -0
  628. data/vendor/assets/javascripts/highstock/modules/streamgraph.js +10 -0
  629. data/vendor/assets/javascripts/highstock/modules/streamgraph.js.map +1 -0
  630. data/vendor/assets/javascripts/highstock/modules/streamgraph.src.js +158 -0
  631. data/vendor/assets/javascripts/highstock/modules/sunburst.js +52 -0
  632. data/vendor/assets/javascripts/highstock/modules/sunburst.js.map +1 -0
  633. data/vendor/assets/javascripts/highstock/modules/sunburst.src.js +3174 -0
  634. data/vendor/assets/javascripts/highstock/modules/tilemap.js +26 -0
  635. data/vendor/assets/javascripts/highstock/modules/tilemap.js.map +1 -0
  636. data/vendor/assets/javascripts/highstock/modules/tilemap.src.js +1402 -0
  637. data/vendor/assets/javascripts/highstock/modules/timeline.js +23 -0
  638. data/vendor/assets/javascripts/highstock/modules/timeline.js.map +1 -0
  639. data/vendor/assets/javascripts/highstock/modules/timeline.src.js +778 -0
  640. data/vendor/assets/javascripts/highstock/modules/treegrid.js +50 -0
  641. data/vendor/assets/javascripts/highstock/modules/treegrid.js.map +1 -0
  642. data/vendor/assets/javascripts/highstock/modules/treegrid.src.js +2917 -0
  643. data/vendor/assets/javascripts/highstock/modules/treemap.js +39 -0
  644. data/vendor/assets/javascripts/highstock/modules/treemap.js.map +1 -0
  645. data/vendor/assets/javascripts/highstock/modules/treemap.src.js +2083 -0
  646. data/vendor/assets/javascripts/highstock/modules/variable-pie.js +16 -0
  647. data/vendor/assets/javascripts/highstock/modules/variable-pie.js.map +1 -0
  648. data/vendor/assets/javascripts/highstock/modules/variable-pie.src.js +485 -0
  649. data/vendor/assets/javascripts/highstock/modules/variwide.js +15 -0
  650. data/vendor/assets/javascripts/highstock/modules/variwide.js.map +1 -0
  651. data/vendor/assets/javascripts/highstock/modules/variwide.src.js +376 -0
  652. data/vendor/assets/javascripts/highstock/modules/vector.js +13 -0
  653. data/vendor/assets/javascripts/highstock/modules/vector.js.map +1 -0
  654. data/vendor/assets/javascripts/highstock/modules/vector.src.js +381 -0
  655. data/vendor/assets/javascripts/highstock/modules/venn.js +30 -0
  656. data/vendor/assets/javascripts/highstock/modules/venn.js.map +1 -0
  657. data/vendor/assets/javascripts/highstock/modules/venn.src.js +1624 -0
  658. data/vendor/assets/javascripts/highstock/modules/windbarb.js +17 -0
  659. data/vendor/assets/javascripts/highstock/modules/windbarb.js.map +1 -0
  660. data/vendor/assets/javascripts/highstock/modules/windbarb.src.js +574 -0
  661. data/vendor/assets/javascripts/highstock/modules/wordcloud.js +25 -0
  662. data/vendor/assets/javascripts/highstock/modules/wordcloud.js.map +1 -0
  663. data/vendor/assets/javascripts/highstock/modules/wordcloud.src.js +1475 -0
  664. data/vendor/assets/javascripts/highstock/modules/xrange.js +20 -0
  665. data/vendor/assets/javascripts/highstock/modules/xrange.js.map +1 -0
  666. data/vendor/assets/javascripts/highstock/modules/xrange.src.js +788 -0
  667. data/vendor/assets/javascripts/highstock/themes/avocado.js +9 -0
  668. data/vendor/assets/javascripts/highstock/themes/avocado.js.map +1 -0
  669. data/vendor/assets/javascripts/highstock/themes/avocado.src.js +63 -0
  670. data/vendor/assets/javascripts/highstock/themes/dark-blue.js +15 -0
  671. data/vendor/assets/javascripts/highstock/themes/dark-blue.js.map +1 -0
  672. data/vendor/assets/javascripts/highstock/themes/dark-blue.src.js +285 -0
  673. data/vendor/assets/javascripts/highstock/themes/dark-green.js +15 -0
  674. data/vendor/assets/javascripts/highstock/themes/dark-green.js.map +1 -0
  675. data/vendor/assets/javascripts/highstock/themes/dark-green.src.js +287 -0
  676. data/vendor/assets/javascripts/highstock/themes/dark-unica.js +14 -0
  677. data/vendor/assets/javascripts/highstock/themes/dark-unica.js.map +1 -0
  678. data/vendor/assets/javascripts/highstock/themes/dark-unica.src.js +246 -0
  679. data/vendor/assets/javascripts/highstock/themes/gray.js +15 -0
  680. data/vendor/assets/javascripts/highstock/themes/gray.js.map +1 -0
  681. data/vendor/assets/javascripts/highstock/themes/gray.src.js +293 -0
  682. data/vendor/assets/javascripts/highstock/themes/grid-light.js +11 -0
  683. data/vendor/assets/javascripts/highstock/themes/grid-light.js.map +1 -0
  684. data/vendor/assets/javascripts/highstock/themes/grid-light.src.js +107 -0
  685. data/vendor/assets/javascripts/highstock/themes/grid.js +11 -0
  686. data/vendor/assets/javascripts/highstock/themes/grid.js.map +1 -0
  687. data/vendor/assets/javascripts/highstock/themes/grid.src.js +136 -0
  688. data/vendor/assets/javascripts/highstock/themes/sand-signika.js +11 -0
  689. data/vendor/assets/javascripts/highstock/themes/sand-signika.js.map +1 -0
  690. data/vendor/assets/javascripts/highstock/themes/sand-signika.src.js +137 -0
  691. data/vendor/assets/javascripts/highstock/themes/skies.js +11 -0
  692. data/vendor/assets/javascripts/highstock/themes/skies.js.map +1 -0
  693. data/vendor/assets/javascripts/highstock/themes/skies.src.js +126 -0
  694. data/vendor/assets/javascripts/highstock/themes/sunset.js +9 -0
  695. data/vendor/assets/javascripts/highstock/themes/sunset.js.map +1 -0
  696. data/vendor/assets/javascripts/highstock/themes/sunset.src.js +62 -0
  697. metadata +781 -0
@@ -0,0 +1,185 @@
1
+ 'use strict';
2
+ import H from '../../parts/Globals.js';
3
+ import '../../parts/Utilities.js';
4
+
5
+ var Annotation = H.Annotation,
6
+ MockPoint = Annotation.MockPoint,
7
+ CrookedLine = Annotation.types.crookedLine;
8
+
9
+ /**
10
+ * @class
11
+ * @extends Annotation.CrookedLine
12
+ * @memberOf Annotation
13
+ */
14
+ function InfinityLine() {
15
+ CrookedLine.apply(this, arguments);
16
+ }
17
+
18
+ InfinityLine.findEdgeCoordinate = function (
19
+ firstPoint,
20
+ secondPoint,
21
+ xOrY,
22
+ edgePointFirstCoordinate
23
+ ) {
24
+ var xOrYOpposite = xOrY === 'x' ? 'y' : 'x';
25
+
26
+ // solves equation for x or y
27
+ // y - y1 = (y2 - y1) / (x2 - x1) * (x - x1)
28
+ return (
29
+ (secondPoint[xOrY] - firstPoint[xOrY]) *
30
+ (edgePointFirstCoordinate - firstPoint[xOrYOpposite]) /
31
+ (secondPoint[xOrYOpposite] - firstPoint[xOrYOpposite]) +
32
+ firstPoint[xOrY]
33
+ );
34
+ };
35
+
36
+ InfinityLine.findEdgePoint = function (firstPoint, secondPoint) {
37
+ var xAxis = firstPoint.series.xAxis,
38
+ yAxis = secondPoint.series.yAxis,
39
+ firstPointPixels = MockPoint.pointToPixels(firstPoint),
40
+ secondPointPixels = MockPoint.pointToPixels(secondPoint),
41
+ deltaX = secondPointPixels.x - firstPointPixels.x,
42
+ deltaY = secondPointPixels.y - firstPointPixels.y,
43
+ xAxisMin = xAxis.left,
44
+ xAxisMax = xAxisMin + xAxis.width,
45
+ yAxisMin = yAxis.top,
46
+ yAxisMax = yAxisMin + yAxis.height,
47
+ xLimit = deltaX < 0 ? xAxisMin : xAxisMax,
48
+ yLimit = deltaY < 0 ? yAxisMin : yAxisMax,
49
+ edgePoint = {
50
+ x: deltaX === 0 ? firstPointPixels.x : xLimit,
51
+ y: deltaY === 0 ? firstPointPixels.y : yLimit
52
+ },
53
+ edgePointX,
54
+ edgePointY,
55
+ swap;
56
+
57
+ if (deltaX !== 0 && deltaY !== 0) {
58
+ edgePointY = InfinityLine.findEdgeCoordinate(
59
+ firstPointPixels,
60
+ secondPointPixels,
61
+ 'y',
62
+ xLimit
63
+ );
64
+
65
+ edgePointX = InfinityLine.findEdgeCoordinate(
66
+ firstPointPixels,
67
+ secondPointPixels,
68
+ 'x',
69
+ yLimit
70
+ );
71
+
72
+ if (edgePointY >= yAxisMin && edgePointY <= yAxisMax) {
73
+ edgePoint.x = xLimit;
74
+ edgePoint.y = edgePointY;
75
+ } else {
76
+ edgePoint.x = edgePointX;
77
+ edgePoint.y = yLimit;
78
+ }
79
+ }
80
+
81
+ edgePoint.x -= xAxisMin;
82
+ edgePoint.y -= yAxisMin;
83
+
84
+ if (firstPoint.series.chart.inverted) {
85
+ swap = edgePoint.x;
86
+ edgePoint.x = edgePoint.y;
87
+ edgePoint.y = swap;
88
+ }
89
+
90
+ return edgePoint;
91
+ };
92
+
93
+ var edgePoint = function (startIndex, endIndex) {
94
+ return function (target) {
95
+ var annotation = target.annotation,
96
+ points = annotation.points,
97
+ type = annotation.options.typeOptions.type;
98
+
99
+ if (type === 'horizontalLine') {
100
+ // Horizontal line has only one point,
101
+ // make a copy of it:
102
+ points = [
103
+ points[0],
104
+ new MockPoint(
105
+ annotation.chart,
106
+ points[0].target,
107
+ {
108
+ x: points[0].x + 1,
109
+ y: points[0].y,
110
+ xAxis: points[0].options.xAxis,
111
+ yAxis: points[0].options.yAxis
112
+ }
113
+ )
114
+ ];
115
+ } else if (type === 'verticalLine') {
116
+ // The same for verticalLine type:
117
+ points = [
118
+ points[0],
119
+ new MockPoint(
120
+ annotation.chart,
121
+ points[0].target,
122
+ {
123
+ x: points[0].x,
124
+ y: points[0].y + 1,
125
+ xAxis: points[0].options.xAxis,
126
+ yAxis: points[0].options.yAxis
127
+ }
128
+ )
129
+ ];
130
+ }
131
+
132
+ return InfinityLine.findEdgePoint(
133
+ points[startIndex],
134
+ points[endIndex]
135
+ );
136
+ };
137
+ };
138
+
139
+ InfinityLine.endEdgePoint = edgePoint(0, 1);
140
+ InfinityLine.startEdgePoint = edgePoint(1, 0);
141
+
142
+ H.extendAnnotation(
143
+ InfinityLine,
144
+ CrookedLine,
145
+ /** @lends Annotation.InfinityLine# */{
146
+ addShapes: function () {
147
+ var typeOptions = this.options.typeOptions,
148
+ points = [
149
+ this.points[0],
150
+ InfinityLine.endEdgePoint
151
+ ];
152
+
153
+ if (typeOptions.type.match(/Line/g)) {
154
+ points[0] = InfinityLine.startEdgePoint;
155
+ }
156
+
157
+ var line = this.initShape(
158
+ H.merge(typeOptions.line, {
159
+ type: 'path',
160
+ points: points
161
+ }),
162
+ false
163
+ );
164
+
165
+ typeOptions.line = line.options;
166
+ }
167
+
168
+ }
169
+ );
170
+
171
+ /**
172
+ * An infinity line annotation.
173
+ *
174
+ * @extends annotations.crookedLine
175
+ * @sample highcharts/annotations-advanced/infinity-line/
176
+ * Infinity Line
177
+ *
178
+ * @product highstock
179
+ *
180
+ * @apioption annotations.infinityLine
181
+ */
182
+
183
+ Annotation.types.infinityLine = InfinityLine;
184
+
185
+ export default InfinityLine;
@@ -0,0 +1,928 @@
1
+ 'use strict';
2
+ import H from '../../parts/Globals.js';
3
+ import '../../parts/Utilities.js';
4
+
5
+ var Annotation = H.Annotation,
6
+ ControlPoint = Annotation.ControlPoint,
7
+ merge = H.merge,
8
+ isNumber = H.isNumber;
9
+
10
+ /**
11
+ * @class
12
+ * @extends Annotation
13
+ * @memberOf Annotation
14
+ */
15
+ function Measure() {
16
+ Annotation.apply(this, arguments);
17
+ }
18
+
19
+ Annotation.types.measure = Measure;
20
+
21
+ H.extendAnnotation(Measure, null,
22
+ /** @lends Annotation.Measure# */
23
+ {
24
+ /**
25
+ *
26
+ * Init annotation object.
27
+ *
28
+ */
29
+ init: function () {
30
+ Annotation.prototype.init.apply(this, arguments);
31
+
32
+ this.offsetX = 0;
33
+ this.offsetY = 0;
34
+ this.resizeX = 0;
35
+ this.resizeY = 0;
36
+
37
+ this.calculations.init.call(this);
38
+ this.addValues();
39
+ this.addShapes();
40
+ },
41
+
42
+ /**
43
+ * Overrides default setter to get axes from typeOptions.
44
+ */
45
+ setClipAxes: function () {
46
+ this.clipXAxis = this.chart.xAxis[this.options.typeOptions.xAxis];
47
+ this.clipYAxis = this.chart.yAxis[this.options.typeOptions.yAxis];
48
+ },
49
+
50
+ /**
51
+ * Get measure points configuration objects.
52
+ *
53
+ * @return {Array<Highcharts.MockPointOptions>}
54
+ */
55
+ pointsOptions: function () {
56
+ return this.options.options.points;
57
+ },
58
+
59
+ /**
60
+ * Get points configuration objects for shapes.
61
+ *
62
+ * @return {Array<Highcharts.MockPointOptions>}
63
+ */
64
+ shapePointsOptions: function () {
65
+
66
+ var options = this.options.typeOptions,
67
+ xAxis = options.xAxis,
68
+ yAxis = options.yAxis;
69
+
70
+ return [
71
+ {
72
+ x: this.xAxisMin,
73
+ y: this.yAxisMin,
74
+ xAxis: xAxis,
75
+ yAxis: yAxis
76
+ },
77
+ {
78
+ x: this.xAxisMax,
79
+ y: this.yAxisMin,
80
+ xAxis: xAxis,
81
+ yAxis: yAxis
82
+ },
83
+ {
84
+ x: this.xAxisMax,
85
+ y: this.yAxisMax,
86
+ xAxis: xAxis,
87
+ yAxis: yAxis
88
+ },
89
+ {
90
+ x: this.xAxisMin,
91
+ y: this.yAxisMax,
92
+ xAxis: xAxis,
93
+ yAxis: yAxis
94
+ }
95
+ ];
96
+ },
97
+
98
+ addControlPoints: function () {
99
+ var selectType = this.options.typeOptions.selectType,
100
+ controlPoint;
101
+
102
+ controlPoint = new ControlPoint(
103
+ this.chart,
104
+ this,
105
+ this.options.controlPointOptions,
106
+ 0
107
+ );
108
+
109
+ this.controlPoints.push(controlPoint);
110
+
111
+ // add extra controlPoint for horizontal and vertical range
112
+ if (selectType !== 'xy') {
113
+ controlPoint = new ControlPoint(
114
+ this.chart,
115
+ this,
116
+ this.options.controlPointOptions,
117
+ 1
118
+ );
119
+
120
+ this.controlPoints.push(controlPoint);
121
+ }
122
+ },
123
+ /**
124
+ * Add label with calculated values (min, max, average, bins).
125
+ *
126
+ * @param {Boolean} resize - the flag for resize shape
127
+ *
128
+ */
129
+ addValues: function (resize) {
130
+ var options = this.options.typeOptions,
131
+ formatter = options.label.formatter,
132
+ typeOptions = this.options.typeOptions,
133
+ chart = this.chart,
134
+ inverted = chart.options.chart.inverted,
135
+ xAxis = chart.xAxis[typeOptions.xAxis],
136
+ yAxis = chart.yAxis[typeOptions.yAxis];
137
+
138
+ // set xAxisMin, xAxisMax, yAxisMin, yAxisMax
139
+ this.calculations.recalculate.call(this, resize);
140
+
141
+ if (!options.label.enabled) {
142
+ return;
143
+ }
144
+
145
+ if (this.labels.length > 0) {
146
+ this.labels[0].text = (formatter && formatter.call(this)) ||
147
+ this.calculations.defaultFormatter.call(this);
148
+
149
+ } else {
150
+ this.initLabel(H.extend({
151
+ shape: 'rect',
152
+ backgroundColor: 'none',
153
+ color: 'black',
154
+ borderWidth: 0,
155
+ dashStyle: 'dash',
156
+ overflow: 'none',
157
+ align: 'left',
158
+ vertical: 'top',
159
+ crop: true,
160
+ point: function (target) {
161
+ var annotation = target.annotation,
162
+ top = chart.plotTop,
163
+ left = chart.plotLeft;
164
+
165
+ return {
166
+ x: (inverted ? top : 10) +
167
+ xAxis.toPixels(annotation.xAxisMin, !inverted),
168
+ y: (inverted ? -left + 10 : top) +
169
+ yAxis.toPixels(annotation.yAxisMin)
170
+ };
171
+ },
172
+ text: (formatter && formatter.call(this)) ||
173
+ this.calculations.defaultFormatter.call(this)
174
+ }, options.label));
175
+ }
176
+ },
177
+ /**
178
+ * add shapes - crosshair, background (rect)
179
+ *
180
+ */
181
+ addShapes: function () {
182
+ this.addCrosshairs();
183
+ this.addBackground();
184
+ },
185
+
186
+ /**
187
+ * Add background shape.
188
+ */
189
+ addBackground: function () {
190
+ var shapePoints = this.shapePointsOptions();
191
+
192
+ if (shapePoints[0].x === undefined) {
193
+ return;
194
+ }
195
+
196
+ this.initShape(H.extend({
197
+ type: 'path',
198
+ points: this.shapePointsOptions()
199
+ }, this.options.typeOptions.background), false);
200
+ },
201
+
202
+ /**
203
+ * Add internal crosshair shapes (on top and bottom)
204
+ */
205
+ addCrosshairs: function () {
206
+ var chart = this.chart,
207
+ options = this.options.typeOptions,
208
+ point = this.options.typeOptions.point,
209
+ xAxis = chart.xAxis[options.xAxis],
210
+ yAxis = chart.yAxis[options.yAxis],
211
+ inverted = chart.options.chart.inverted,
212
+ xAxisMin = xAxis.toPixels(this.xAxisMin),
213
+ xAxisMax = xAxis.toPixels(this.xAxisMax),
214
+ yAxisMin = yAxis.toPixels(this.yAxisMin),
215
+ yAxisMax = yAxis.toPixels(this.yAxisMax),
216
+ defaultOptions = {
217
+ point: point,
218
+ type: 'path'
219
+ },
220
+ pathH = [],
221
+ pathV = [],
222
+ crosshairOptionsX, crosshairOptionsY;
223
+
224
+ if (inverted) {
225
+ xAxisMin = yAxis.toPixels(this.yAxisMin);
226
+ xAxisMax = yAxis.toPixels(this.yAxisMax);
227
+ yAxisMin = xAxis.toPixels(this.xAxisMin);
228
+ yAxisMax = xAxis.toPixels(this.xAxisMax);
229
+ }
230
+ // horizontal line
231
+ if (options.crosshairX.enabled) {
232
+ pathH = [
233
+ 'M',
234
+ xAxisMin,
235
+ yAxisMin + ((yAxisMax - yAxisMin) / 2),
236
+ 'L',
237
+ xAxisMax,
238
+ yAxisMin + ((yAxisMax - yAxisMin) / 2)
239
+ ];
240
+ }
241
+
242
+ // vertical line
243
+ if (options.crosshairY.enabled) {
244
+ pathV = [
245
+ 'M',
246
+ xAxisMin + ((xAxisMax - xAxisMin) / 2),
247
+ yAxisMin,
248
+ 'L',
249
+ xAxisMin + ((xAxisMax - xAxisMin) / 2),
250
+ yAxisMax
251
+ ];
252
+ }
253
+
254
+ // Update existed crosshair
255
+ if (this.shapes.length > 0) {
256
+
257
+ this.shapes[0].options.d = pathH;
258
+ this.shapes[1].options.d = pathV;
259
+
260
+ } else {
261
+
262
+ // Add new crosshairs
263
+ crosshairOptionsX = merge(defaultOptions, options.crosshairX);
264
+ crosshairOptionsY = merge(defaultOptions, options.crosshairY);
265
+
266
+ this.initShape(H.extend({
267
+ d: pathH
268
+ }, crosshairOptionsX), false);
269
+
270
+ this.initShape(H.extend({
271
+ d: pathV
272
+ }, crosshairOptionsY), false);
273
+
274
+ }
275
+ },
276
+
277
+ onDrag: function (e) {
278
+ var translation = this.mouseMoveToTranslation(e),
279
+ selectType = this.options.typeOptions.selectType,
280
+ x = selectType === 'y' ? 0 : translation.x,
281
+ y = selectType === 'x' ? 0 : translation.y;
282
+
283
+ this.translate(x, y);
284
+
285
+ this.offsetX += x;
286
+ this.offsetY += y;
287
+
288
+ // animation, resize, setStartPoints
289
+ this.redraw(false, false, true);
290
+ },
291
+
292
+ /**
293
+ * Translate start or end ("left" or "right") side of the measure.
294
+ * Update start points (startXMin, startXMax, startYMin, startYMax)
295
+ *
296
+ * @param {number} dx - the amount of x translation
297
+ * @param {number} dy - the amount of y translation
298
+ * @param {number} cpIndex - index of control point
299
+ * @param {number} selectType - x / y / xy
300
+ */
301
+ resize: function (dx, dy, cpIndex, selectType) {
302
+
303
+ // background shape
304
+ var bckShape = this.shapes[2];
305
+
306
+ if (selectType === 'x') {
307
+ if (cpIndex === 0) {
308
+ bckShape.translatePoint(dx, 0, 0);
309
+ bckShape.translatePoint(dx, dy, 3);
310
+ } else {
311
+ bckShape.translatePoint(dx, 0, 1);
312
+ bckShape.translatePoint(dx, dy, 2);
313
+ }
314
+ } else if (selectType === 'y') {
315
+ if (cpIndex === 0) {
316
+ bckShape.translatePoint(0, dy, 0);
317
+ bckShape.translatePoint(0, dy, 1);
318
+ } else {
319
+ bckShape.translatePoint(0, dy, 2);
320
+ bckShape.translatePoint(0, dy, 3);
321
+ }
322
+ } else {
323
+ bckShape.translatePoint(dx, 0, 1);
324
+ bckShape.translatePoint(dx, dy, 2);
325
+ bckShape.translatePoint(0, dy, 3);
326
+ }
327
+
328
+ this.calculations.updateStartPoints
329
+ .call(this, false, true, cpIndex, dx, dy);
330
+
331
+ this.options.typeOptions.background.height = Math.abs(
332
+ this.startYMax - this.startYMin
333
+ );
334
+
335
+ this.options.typeOptions.background.width = Math.abs(
336
+ this.startXMax - this.startXMin
337
+ );
338
+ },
339
+ /**
340
+ * Redraw event which render elements and update start points
341
+ * if needed
342
+ *
343
+ * @param {Boolean} animation
344
+ * @param {Boolean} resize - flag if resized
345
+ * @param {Boolean} setStartPoints - update position of start points
346
+ */
347
+ redraw: function (animation, resize, setStartPoints) {
348
+
349
+ this.linkPoints();
350
+
351
+ if (!this.graphic) {
352
+ this.render();
353
+ }
354
+
355
+ if (setStartPoints) {
356
+ this.calculations.updateStartPoints.call(this, true, false);
357
+ }
358
+
359
+ this.addValues(resize);
360
+ this.addCrosshairs();
361
+ this.redrawItems(this.shapes, animation);
362
+ this.redrawItems(this.labels, animation);
363
+
364
+ // redraw control point to run positioner
365
+ this.controlPoints.forEach(function (controlPoint) {
366
+ controlPoint.redraw();
367
+ });
368
+ },
369
+ translate: function (dx, dy) {
370
+ this.shapes.forEach(function (item) {
371
+ item.translate(dx, dy);
372
+ });
373
+
374
+ this.options.typeOptions.point.x = this.startXMin;
375
+ this.options.typeOptions.point.y = this.startYMin;
376
+ },
377
+ calculations: {
378
+ /*
379
+ * Set starting points
380
+ */
381
+ init: function () {
382
+ var options = this.options.typeOptions,
383
+ chart = this.chart,
384
+ getPointPos = this.calculations.getPointPos,
385
+ inverted = chart.options.chart.inverted,
386
+ xAxis = chart.xAxis[options.xAxis],
387
+ yAxis = chart.yAxis[options.yAxis],
388
+ bck = options.background,
389
+ width = inverted ? bck.height : bck.width,
390
+ height = inverted ? bck.width : bck.height,
391
+ selectType = options.selectType,
392
+ top = chart.plotTop,
393
+ left = chart.plotLeft;
394
+
395
+ this.startXMin = options.point.x;
396
+ this.startYMin = options.point.y;
397
+
398
+ if (isNumber(width)) {
399
+ this.startXMax = this.startXMin + width;
400
+ } else {
401
+ this.startXMax = getPointPos(
402
+ xAxis,
403
+ this.startXMin,
404
+ parseFloat(width)
405
+ );
406
+ }
407
+
408
+ if (isNumber(height)) {
409
+ this.startYMax = this.startYMin - height;
410
+ } else {
411
+ this.startYMax = getPointPos(
412
+ yAxis,
413
+ this.startYMin,
414
+ parseFloat(height)
415
+ );
416
+ }
417
+
418
+ // x / y selection type
419
+ if (selectType === 'x') {
420
+ this.startYMin = yAxis.toValue(top);
421
+ this.startYMax = yAxis.toValue(top + chart.plotHeight);
422
+ } else if (selectType === 'y') {
423
+ this.startXMin = xAxis.toValue(left);
424
+ this.startXMax = xAxis.toValue(left + chart.plotWidth);
425
+ }
426
+
427
+ },
428
+ /*
429
+ * Set current xAxisMin, xAxisMax, yAxisMin, yAxisMax.
430
+ * Calculations of measure values (min, max, average, bins).
431
+ *
432
+ * @param {Boolean} resize - flag if shape is resized
433
+ */
434
+ recalculate: function (resize) {
435
+ var calc = this.calculations,
436
+ options = this.options.typeOptions,
437
+ xAxis = this.chart.xAxis[options.xAxis],
438
+ yAxis = this.chart.yAxis[options.yAxis],
439
+ getPointPos = this.calculations.getPointPos,
440
+ offsetX = this.offsetX,
441
+ offsetY = this.offsetY;
442
+
443
+ this.xAxisMin = getPointPos(xAxis, this.startXMin, offsetX);
444
+ this.xAxisMax = getPointPos(xAxis, this.startXMax, offsetX);
445
+ this.yAxisMin = getPointPos(yAxis, this.startYMin, offsetY);
446
+ this.yAxisMax = getPointPos(yAxis, this.startYMax, offsetY);
447
+
448
+ this.min = calc.min.call(this);
449
+ this.max = calc.max.call(this);
450
+ this.average = calc.average.call(this);
451
+ this.bins = calc.bins.call(this);
452
+
453
+ if (resize) {
454
+ this.resize(0, 0);
455
+ }
456
+
457
+ },
458
+ /*
459
+ * Set current xAxisMin, xAxisMax, yAxisMin, yAxisMax.
460
+ * Calculations of measure values (min, max, average, bins).
461
+ *
462
+ * @param {Object} axis - x or y axis reference
463
+ * @param {Number} value - point's value (x or y)
464
+ * @param {Number} offset - amount of pixels
465
+ */
466
+ getPointPos: function (axis, value, offset) {
467
+ return axis.toValue(
468
+ axis.toPixels(value) + offset
469
+ );
470
+ },
471
+ /*
472
+ * Update position of start points
473
+ * (startXMin, startXMax, startYMin, startYMax)
474
+ *
475
+ * @param {Boolean} redraw - flag if shape is redraw
476
+ * @param {Boolean} resize - flag if shape is resized
477
+ * @param {Boolean} cpIndex - index of controlPoint
478
+ */
479
+ updateStartPoints: function (redraw, resize, cpIndex, dx, dy) {
480
+ var options = this.options.typeOptions,
481
+ selectType = options.selectType,
482
+ xAxis = this.chart.xAxis[options.xAxis],
483
+ yAxis = this.chart.yAxis[options.yAxis],
484
+ getPointPos = this.calculations.getPointPos,
485
+ startXMin = this.startXMin,
486
+ startXMax = this.startXMax,
487
+ startYMin = this.startYMin,
488
+ startYMax = this.startYMax,
489
+ offsetX = this.offsetX,
490
+ offsetY = this.offsetY;
491
+
492
+ if (resize) {
493
+ if (selectType === 'x') {
494
+ if (cpIndex === 0) {
495
+ this.startXMin = getPointPos(xAxis, startXMin, dx);
496
+ } else {
497
+ this.startXMax = getPointPos(xAxis, startXMax, dx);
498
+ }
499
+ } else if (selectType === 'y') {
500
+ if (cpIndex === 0) {
501
+ this.startYMin = getPointPos(yAxis, startYMin, dy);
502
+ } else {
503
+ this.startYMax = getPointPos(yAxis, startYMax, dy);
504
+ }
505
+ } else {
506
+ this.startXMax = getPointPos(xAxis, startXMax, dx);
507
+ this.startYMax = getPointPos(yAxis, startYMax, dy);
508
+ }
509
+ }
510
+
511
+ if (redraw) {
512
+ this.startXMin = getPointPos(xAxis, startXMin, offsetX);
513
+ this.startXMax = getPointPos(xAxis, startXMax, offsetX);
514
+ this.startYMin = getPointPos(yAxis, startYMin, offsetY);
515
+ this.startYMax = getPointPos(yAxis, startYMax, offsetY);
516
+
517
+ this.offsetX = 0;
518
+ this.offsetY = 0;
519
+ }
520
+ },
521
+ /*
522
+ * Default formatter of label's content
523
+ */
524
+ defaultFormatter: function () {
525
+ return 'Min: ' + this.min +
526
+ '<br>Max: ' + this.max +
527
+ '<br>Average: ' + this.average +
528
+ '<br>Bins: ' + this.bins;
529
+ },
530
+ /*
531
+ * Set values for xAxisMin, xAxisMax, yAxisMin, yAxisMax, also
532
+ * when chart is inverted
533
+ */
534
+ getExtremes: function (xAxisMin, xAxisMax, yAxisMin, yAxisMax) {
535
+ return {
536
+ xAxisMin: Math.min(xAxisMax, xAxisMin),
537
+ xAxisMax: Math.max(xAxisMax, xAxisMin),
538
+ yAxisMin: Math.min(yAxisMax, yAxisMin),
539
+ yAxisMax: Math.max(yAxisMax, yAxisMin)
540
+ };
541
+ },
542
+ /*
543
+ * Definitions of calculations (min, max, average, bins)
544
+ */
545
+ min: function () {
546
+ var min = Infinity,
547
+ series = this.chart.series,
548
+ ext = this.calculations.getExtremes(
549
+ this.xAxisMin,
550
+ this.xAxisMax,
551
+ this.yAxisMin,
552
+ this.yAxisMax
553
+ ),
554
+ isCalculated = false; // to avoid Infinity in formatter
555
+
556
+ series.forEach(function (serie) {
557
+ if (
558
+ serie.visible &&
559
+ serie.options.id !== 'highcharts-navigator-series'
560
+ ) {
561
+ serie.points.forEach(function (point) {
562
+ if (
563
+ !point.isNull &&
564
+ point.y < min &&
565
+ point.x > ext.xAxisMin &&
566
+ point.x <= ext.xAxisMax &&
567
+ point.y > ext.yAxisMin &&
568
+ point.y <= ext.yAxisMax
569
+ ) {
570
+ min = point.y;
571
+ isCalculated = true;
572
+ }
573
+ });
574
+ }
575
+ });
576
+
577
+ if (!isCalculated) {
578
+ min = '';
579
+ }
580
+
581
+ return min;
582
+ },
583
+ max: function () {
584
+ var max = -Infinity,
585
+ series = this.chart.series,
586
+ ext = this.calculations.getExtremes(
587
+ this.xAxisMin,
588
+ this.xAxisMax,
589
+ this.yAxisMin,
590
+ this.yAxisMax
591
+ ),
592
+ isCalculated = false; // to avoid Infinity in formatter
593
+
594
+ series.forEach(function (serie) {
595
+ if (
596
+ serie.visible &&
597
+ serie.options.id !== 'highcharts-navigator-series'
598
+ ) {
599
+ serie.points.forEach(function (point) {
600
+ if (
601
+ !point.isNull &&
602
+ point.y > max &&
603
+ point.x > ext.xAxisMin &&
604
+ point.x <= ext.xAxisMax &&
605
+ point.y > ext.yAxisMin &&
606
+ point.y <= ext.yAxisMax
607
+ ) {
608
+ max = point.y;
609
+ isCalculated = true;
610
+ }
611
+ });
612
+ }
613
+ });
614
+
615
+ if (!isCalculated) {
616
+ max = '';
617
+ }
618
+
619
+ return max;
620
+ },
621
+ average: function () {
622
+ var average = '';
623
+
624
+ if (this.max !== '' && this.min !== '') {
625
+ average = (this.max + this.min) / 2;
626
+ }
627
+
628
+ return average;
629
+ },
630
+ bins: function () {
631
+ var bins = 0,
632
+ series = this.chart.series,
633
+ ext = this.calculations.getExtremes(
634
+ this.xAxisMin,
635
+ this.xAxisMax,
636
+ this.yAxisMin,
637
+ this.yAxisMax
638
+ ),
639
+ isCalculated = false; // to avoid Infinity in formatter
640
+
641
+ series.forEach(function (serie) {
642
+ if (
643
+ serie.visible &&
644
+ serie.options.id !== 'highcharts-navigator-series'
645
+ ) {
646
+ serie.points.forEach(function (point) {
647
+ if (
648
+ !point.isNull &&
649
+ point.x > ext.xAxisMin &&
650
+ point.x <= ext.xAxisMax &&
651
+ point.y > ext.yAxisMin &&
652
+ point.y <= ext.yAxisMax
653
+ ) {
654
+ bins++;
655
+ isCalculated = true;
656
+ }
657
+ });
658
+ }
659
+ });
660
+
661
+ if (!isCalculated) {
662
+ bins = '';
663
+ }
664
+
665
+ return bins;
666
+ }
667
+ }
668
+ },
669
+ /**
670
+ * A measure annotation.
671
+ *
672
+ * @extends annotations.crookedLine
673
+ * @excluding labels, labelOptions, shapes, shapeOptions
674
+ * @sample highcharts/annotations-advanced/measure/
675
+ * Measure
676
+ * @product highstock
677
+ * @optionparent annotations.measure
678
+ */
679
+ {
680
+ typeOptions: {
681
+ /**
682
+ * Decides in what dimensions the user can resize by dragging the
683
+ * mouse. Can be one of x, y or xy.
684
+ */
685
+ selectType: 'xy',
686
+ /**
687
+ * This number defines which xAxis the point is connected to.
688
+ * It refers to either the axis id or the index of the axis
689
+ * in the xAxis array.
690
+ */
691
+ xAxis: 0,
692
+ /**
693
+ * This number defines which yAxis the point is connected to.
694
+ * It refers to either the axis id or the index of the axis
695
+ * in the yAxis array.
696
+ */
697
+ yAxis: 0,
698
+ background: {
699
+ /**
700
+ * The color of the rectangle.
701
+ */
702
+ fill: 'rgba(130, 170, 255, 0.4)',
703
+ /**
704
+ * The width of border.
705
+ */
706
+ strokeWidth: 0,
707
+ /**
708
+ * The color of border.
709
+ */
710
+ stroke: undefined
711
+ },
712
+ /**
713
+ * Configure a crosshair that is horizontally placed in middle of
714
+ * rectangle.
715
+ *
716
+ */
717
+ crosshairX: {
718
+ /**
719
+ * Enable or disable the horizontal crosshair.
720
+ *
721
+ */
722
+ enabled: true,
723
+ /**
724
+ * The Z index of the crosshair in annotation.
725
+ */
726
+ zIndex: 6,
727
+ /**
728
+ * The dash or dot style of the crosshair's line. For possible
729
+ * values, see
730
+ * [this demonstration](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-dashstyle-all/).
731
+ *
732
+ * @type {Highcharts.DashStyleType}
733
+ * @default Dash
734
+ */
735
+ dashStyle: 'Dash',
736
+ /**
737
+ * The marker-end defines the arrowhead that will be drawn
738
+ * at the final vertex of the given crosshair's path.
739
+ *
740
+ * @type {string}
741
+ * @default arrow
742
+ */
743
+ markerEnd: 'arrow'
744
+ },
745
+ /**
746
+ * Configure a crosshair that is vertically placed in middle of
747
+ * rectangle.
748
+ */
749
+ crosshairY: {
750
+ /**
751
+ * Enable or disable the vertical crosshair.
752
+ *
753
+ */
754
+ enabled: true,
755
+ /**
756
+ * The Z index of the crosshair in annotation.
757
+ */
758
+ zIndex: 6,
759
+ /**
760
+ * The dash or dot style of the crosshair's line. For possible
761
+ * values, see [this demonstration](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-dashstyle-all/).
762
+ *
763
+ * @type {Highcharts.DashStyleType}
764
+ * @default Dash
765
+ * @apioption annotations.measure.typeOptions.crosshairY.dashStyle
766
+ *
767
+ */
768
+ dashStyle: 'Dash',
769
+ /**
770
+ * The marker-end defines the arrowhead that will be drawn
771
+ * at the final vertex of the given crosshair's path.
772
+ *
773
+ * @type {string}
774
+ * @default arrow
775
+ * @validvalue ["none", "arrow"]
776
+ *
777
+ */
778
+ markerEnd: 'arrow'
779
+ },
780
+ label: {
781
+ /**
782
+ * Enable or disable the label text (min, max, average,
783
+ * bins values).
784
+ *
785
+ * Defaults to true.
786
+ */
787
+ enabled: true,
788
+ /**
789
+ * CSS styles for the measure label.
790
+ *
791
+ * @type {Highcharts.CSSObject}
792
+ * @default {"color": "#666666", "fontSize": "11px"}
793
+ */
794
+ style: {
795
+ fontSize: '11px',
796
+ color: '#666666'
797
+ },
798
+ /**
799
+ * Formatter function for the label text.
800
+ *
801
+ * Available data are:
802
+ *
803
+ * <table>
804
+ *
805
+ * <tbody>
806
+ *
807
+ * <tr>
808
+ *
809
+ * <td>`this.min`</td>
810
+ *
811
+ * <td>The mininimum value of the points in the selected
812
+ * range.</td>
813
+ *
814
+ * </tr>
815
+ *
816
+ * <tr>
817
+ *
818
+ * <td>`this.max`</td>
819
+ *
820
+ * <td>The maximum value of the points in the selected
821
+ * range.</td>
822
+ *
823
+ * </tr>
824
+ *
825
+ * <tr>
826
+ *
827
+ * <td>`this.average`</td>
828
+ *
829
+ * <td>The average value of the points in the selected
830
+ * range.</td>
831
+ *
832
+ * </tr>
833
+ *
834
+ * <tr>
835
+ *
836
+ * <td>`this.bins`</td>
837
+ *
838
+ * <td>The amount of the points in the selected range.</td>
839
+ *
840
+ * </tr>
841
+ *
842
+ * </table>
843
+ *
844
+ * @type {function}
845
+ *
846
+ */
847
+ formatter: undefined
848
+ }
849
+ },
850
+ controlPointOptions: {
851
+ positioner: function (target) {
852
+ var cpIndex = this.index,
853
+ chart = target.chart,
854
+ options = target.options,
855
+ typeOptions = options.typeOptions,
856
+ selectType = typeOptions.selectType,
857
+ controlPointOptions = options.controlPointOptions,
858
+ inverted = chart.options.chart.inverted,
859
+ xAxis = chart.xAxis[typeOptions.xAxis],
860
+ yAxis = chart.yAxis[typeOptions.yAxis],
861
+ targetX = target.xAxisMax,
862
+ targetY = target.yAxisMax,
863
+ ext = target.calculations.getExtremes(
864
+ target.xAxisMin,
865
+ target.xAxisMax,
866
+ target.yAxisMin,
867
+ target.yAxisMax
868
+ ),
869
+ x, y;
870
+
871
+ if (selectType === 'x') {
872
+ targetY = (ext.yAxisMax - ext.yAxisMin) / 2;
873
+
874
+ // first control point
875
+ if (cpIndex === 0) {
876
+ targetX = target.xAxisMin;
877
+ }
878
+ }
879
+
880
+ if (selectType === 'y') {
881
+ targetX = ext.xAxisMin +
882
+ ((ext.xAxisMax - ext.xAxisMin) / 2);
883
+
884
+ // first control point
885
+ if (cpIndex === 0) {
886
+ targetY = target.yAxisMin;
887
+ }
888
+ }
889
+
890
+ if (inverted) {
891
+ x = yAxis.toPixels(targetY);
892
+ y = xAxis.toPixels(targetX);
893
+ } else {
894
+ x = xAxis.toPixels(targetX);
895
+ y = yAxis.toPixels(targetY);
896
+ }
897
+
898
+ return {
899
+ x: x - (controlPointOptions.width / 2),
900
+ y: y - (controlPointOptions.height / 2)
901
+ };
902
+ },
903
+ events: {
904
+ drag: function (e, target) {
905
+ var translation = this.mouseMoveToTranslation(e),
906
+ selectType = target.options.typeOptions.selectType,
907
+ index = this.index,
908
+ x = selectType === 'y' ? 0 : translation.x,
909
+ y = selectType === 'x' ? 0 : translation.y;
910
+
911
+ target.resize(
912
+ x,
913
+ y,
914
+ index,
915
+ selectType
916
+ );
917
+
918
+ target.resizeX += x;
919
+ target.resizeY += y;
920
+ target.redraw(false, true);
921
+ }
922
+ }
923
+ }
924
+ });
925
+
926
+ Annotation.types.measure = Measure;
927
+
928
+ export default Measure;