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,1042 @@
1
+ /**
2
+ * (c) 2009-2019 Torstein Honsi
3
+ *
4
+ * License: www.highcharts.com/license
5
+ */
6
+
7
+ /**
8
+ * Containing the position of a box that should be avoided by labels.
9
+ *
10
+ * @interface Highcharts.LabelIntersectBoxObject
11
+ *//**
12
+ * @name Highcharts.LabelIntersectBoxObject#bottom
13
+ * @type {number}
14
+ *//**
15
+ * @name Highcharts.LabelIntersectBoxObject#left
16
+ * @type {number}
17
+ *//**
18
+ * @name Highcharts.LabelIntersectBoxObject#right
19
+ * @type {number}
20
+ *//**
21
+ * @name Highcharts.LabelIntersectBoxObject#top
22
+ * @type {number}
23
+ */
24
+
25
+ /*
26
+ * Highcharts module to place labels next to a series in a natural position.
27
+ *
28
+ * TODO:
29
+ * - add column support (box collision detection, boxesToAvoid logic)
30
+ * - avoid data labels, when data labels above, show series label below.
31
+ * - add more options (connector, format, formatter)
32
+ *
33
+ * https://jsfiddle.net/highcharts/L2u9rpwr/
34
+ * https://jsfiddle.net/highcharts/y5A37/
35
+ * https://jsfiddle.net/highcharts/264Nm/
36
+ * https://jsfiddle.net/highcharts/y5A37/
37
+ */
38
+
39
+ 'use strict';
40
+
41
+ import H from '../parts/Globals.js';
42
+ import '../parts/Utilities.js';
43
+ import '../parts/Chart.js';
44
+ import '../parts/Series.js';
45
+
46
+ var labelDistance = 3,
47
+ addEvent = H.addEvent,
48
+ extend = H.extend,
49
+ isNumber = H.isNumber,
50
+ pick = H.pick,
51
+ Series = H.Series,
52
+ SVGRenderer = H.SVGRenderer,
53
+ Chart = H.Chart;
54
+
55
+ H.setOptions({
56
+
57
+ /**
58
+ * @optionparent plotOptions
59
+ */
60
+ plotOptions: {
61
+
62
+ series: {
63
+ /**
64
+ * Series labels are placed as close to the series as possible in a
65
+ * natural way, seeking to avoid other series. The goal of this
66
+ * feature is to make the chart more easily readable, like if a
67
+ * human designer placed the labels in the optimal position.
68
+ *
69
+ * The series labels currently work with series types having a
70
+ * `graph` or an `area`.
71
+ *
72
+ * Requires the `series-label.js` module.
73
+ *
74
+ * @sample highcharts/series-label/line-chart
75
+ * Line chart
76
+ * @sample highcharts/demo/streamgraph
77
+ * Stream graph
78
+ * @sample highcharts/series-label/stock-chart
79
+ * Stock chart
80
+ *
81
+ * @since 6.0.0
82
+ * @product highcharts highstock gantt
83
+ */
84
+ label: {
85
+
86
+ /**
87
+ * Enable the series label per series.
88
+ */
89
+ enabled: true,
90
+
91
+ /**
92
+ * Allow labels to be placed distant to the graph if necessary,
93
+ * and draw a connector line to the graph. Setting this option
94
+ * to true may decrease the performance significantly, since the
95
+ * algorithm with systematically search for open spaces in the
96
+ * whole plot area. Visually, it may also result in a more
97
+ * cluttered chart, though more of the series will be labeled.
98
+ */
99
+ connectorAllowed: false,
100
+
101
+ /**
102
+ * If the label is closer than this to a neighbour graph, draw a
103
+ * connector.
104
+ */
105
+ connectorNeighbourDistance: 24,
106
+
107
+ /**
108
+ * For area-like series, allow the font size to vary so that
109
+ * small areas get a smaller font size. The default applies this
110
+ * effect to area-like series but not line-like series.
111
+ *
112
+ * @type {number|null}
113
+ */
114
+ minFontSize: null,
115
+
116
+ /**
117
+ * For area-like series, allow the font size to vary so that
118
+ * small areas get a smaller font size. The default applies this
119
+ * effect to area-like series but not line-like series.
120
+ *
121
+ * @type {number|null}
122
+ */
123
+ maxFontSize: null,
124
+
125
+ /**
126
+ * Draw the label on the area of an area series. By default it
127
+ * is drawn on the area. Set it to `false` to draw it next to
128
+ * the graph instead.
129
+ *
130
+ * @type {boolean|null}
131
+ */
132
+ onArea: null,
133
+
134
+ /**
135
+ * Styles for the series label. The color defaults to the series
136
+ * color, or a contrast color if `onArea`.
137
+ *
138
+ * @type {Highcharts.CSSObject}
139
+ * @default {"font-weight": "bold"}
140
+ */
141
+ style: {
142
+
143
+ /**
144
+ * @ignore
145
+ */
146
+ fontWeight: 'bold'
147
+
148
+ },
149
+
150
+ /**
151
+ * An array of boxes to avoid when laying out the labels. Each
152
+ * item has a `left`, `right`, `top` and `bottom` property.
153
+ *
154
+ * @type {Array<Highcharts.LabelIntersectBoxObject>}
155
+ */
156
+ boxesToAvoid: []
157
+
158
+ }
159
+
160
+ }
161
+
162
+ }
163
+
164
+ });
165
+
166
+ /**
167
+ * Counter-clockwise, part of the fast line intersection logic.
168
+ *
169
+ * @private
170
+ * @function ccw
171
+ *
172
+ * @param {number} x1
173
+ *
174
+ * @param {number} y1
175
+ *
176
+ * @param {number} x2
177
+ *
178
+ * @param {number} y2
179
+ *
180
+ * @param {number} x3
181
+ *
182
+ * @param {number} y3
183
+ *
184
+ * @return {boolean}
185
+ */
186
+ function ccw(x1, y1, x2, y2, x3, y3) {
187
+ var cw = ((y3 - y1) * (x2 - x1)) - ((y2 - y1) * (x3 - x1));
188
+
189
+ return cw > 0 ? true : !(cw < 0);
190
+ }
191
+
192
+ /**
193
+ * Detect if two lines intersect.
194
+ *
195
+ * @private
196
+ * @function ccw
197
+ *
198
+ * @param {number} x1
199
+ *
200
+ * @param {number} y1
201
+ *
202
+ * @param {number} x2
203
+ *
204
+ * @param {number} y2
205
+ *
206
+ * @param {number} x3
207
+ *
208
+ * @param {number} y3
209
+ *
210
+ * @param {number} x4
211
+ *
212
+ * @param {number} y4
213
+ *
214
+ * @return {boolean}
215
+ */
216
+ function intersectLine(x1, y1, x2, y2, x3, y3, x4, y4) {
217
+ return ccw(x1, y1, x3, y3, x4, y4) !== ccw(x2, y2, x3, y3, x4, y4) &&
218
+ ccw(x1, y1, x2, y2, x3, y3) !== ccw(x1, y1, x2, y2, x4, y4);
219
+ }
220
+
221
+ /**
222
+ * Detect if a box intersects with a line.
223
+ *
224
+ * @private
225
+ * @function boxIntersectLine
226
+ *
227
+ * @param {number} x
228
+ *
229
+ * @param {number} y
230
+ *
231
+ * @param {number} w
232
+ *
233
+ * @param {number} h
234
+ *
235
+ * @param {number} x1
236
+ *
237
+ * @param {number} y1
238
+ *
239
+ * @param {number} x2
240
+ *
241
+ * @param {number} y2
242
+ *
243
+ * @return {boolean}
244
+ */
245
+ function boxIntersectLine(x, y, w, h, x1, y1, x2, y2) {
246
+ return (
247
+ intersectLine(x, y, x + w, y, x1, y1, x2, y2) || // top of label
248
+ intersectLine(x + w, y, x + w, y + h, x1, y1, x2, y2) || // right
249
+ intersectLine(x, y + h, x + w, y + h, x1, y1, x2, y2) || // bottom
250
+ intersectLine(x, y, x, y + h, x1, y1, x2, y2) // left of label
251
+ );
252
+ }
253
+
254
+ /**
255
+ * General symbol definition for labels with connector.
256
+ *
257
+ * @private
258
+ * @function Highcharts.SVGRenderer#symbols.connector
259
+ *
260
+ * @param {number} x
261
+ *
262
+ * @param {number} y
263
+ *
264
+ * @param {number} w
265
+ *
266
+ * @param {number} h
267
+ *
268
+ * @param {Highcharts.SymbolOptionsObject} options
269
+ *
270
+ * @return {Highcharts.SVGPathArray}
271
+ */
272
+ SVGRenderer.prototype.symbols.connector = function (x, y, w, h, options) {
273
+ var anchorX = options && options.anchorX,
274
+ anchorY = options && options.anchorY,
275
+ path,
276
+ yOffset,
277
+ lateral = w / 2;
278
+
279
+ if (isNumber(anchorX) && isNumber(anchorY)) {
280
+
281
+ path = ['M', anchorX, anchorY];
282
+
283
+ // Prefer 45 deg connectors
284
+ yOffset = y - anchorY;
285
+ if (yOffset < 0) {
286
+ yOffset = -h - yOffset;
287
+ }
288
+ if (yOffset < w) {
289
+ lateral = anchorX < x + (w / 2) ? yOffset : w - yOffset;
290
+ }
291
+
292
+ // Anchor below label
293
+ if (anchorY > y + h) {
294
+ path.push('L', x + lateral, y + h);
295
+
296
+ // Anchor above label
297
+ } else if (anchorY < y) {
298
+ path.push('L', x + lateral, y);
299
+
300
+ // Anchor left of label
301
+ } else if (anchorX < x) {
302
+ path.push('L', x, y + h / 2);
303
+
304
+ // Anchor right of label
305
+ } else if (anchorX > x + w) {
306
+ path.push('L', x + w, y + h / 2);
307
+ }
308
+ }
309
+ return path || [];
310
+ };
311
+
312
+ /**
313
+ * Points to avoid. In addition to actual data points, the label should avoid
314
+ * interpolated positions.
315
+ *
316
+ * @private
317
+ * @function Highcharts.Series#getPointsOnGraph
318
+ *
319
+ * @return {Array<Highcharts.Point>}
320
+ */
321
+ Series.prototype.getPointsOnGraph = function () {
322
+
323
+ if (!this.xAxis && !this.yAxis) {
324
+ return;
325
+ }
326
+
327
+ var distance = 16,
328
+ points = this.points,
329
+ point,
330
+ last,
331
+ interpolated = [],
332
+ i,
333
+ deltaX,
334
+ deltaY,
335
+ delta,
336
+ len,
337
+ n,
338
+ j,
339
+ d,
340
+ graph = this.graph || this.area,
341
+ node = graph.element,
342
+ inverted = this.chart.inverted,
343
+ xAxis = this.xAxis,
344
+ yAxis = this.yAxis,
345
+ paneLeft = inverted ? yAxis.pos : xAxis.pos,
346
+ paneTop = inverted ? xAxis.pos : yAxis.pos,
347
+ onArea = pick(this.options.label.onArea, !!this.area),
348
+ translatedThreshold = yAxis.getThreshold(this.options.threshold),
349
+ grid = {};
350
+
351
+ // Push the point to the interpolated points, but only if that position in
352
+ // the grid has not been occupied. As a performance optimization, we divide
353
+ // the plot area into a grid and only add one point per series (#9815).
354
+ function pushDiscrete(point) {
355
+ var cellSize = 8,
356
+ key = Math.round(point.plotX / cellSize) + ',' +
357
+ Math.round(point.plotY / cellSize);
358
+
359
+ if (!grid[key]) {
360
+ grid[key] = 1;
361
+ interpolated.push(point);
362
+ }
363
+ }
364
+
365
+ // For splines, get the point at length (possible caveat: peaks are not
366
+ // correctly detected)
367
+ if (
368
+ this.getPointSpline &&
369
+ node.getPointAtLength &&
370
+ !onArea &&
371
+ // Not performing well on complex series, node.getPointAtLength is too
372
+ // heavy (#9815)
373
+ points.length < this.chart.plotSizeX / distance
374
+ ) {
375
+ // If it is animating towards a path definition, use that briefly, and
376
+ // reset
377
+ if (graph.toD) {
378
+ d = graph.attr('d');
379
+ graph.attr({ d: graph.toD });
380
+ }
381
+ len = node.getTotalLength();
382
+ for (i = 0; i < len; i += distance) {
383
+ point = node.getPointAtLength(i);
384
+ pushDiscrete({
385
+ chartX: paneLeft + point.x,
386
+ chartY: paneTop + point.y,
387
+ plotX: point.x,
388
+ plotY: point.y
389
+ });
390
+ }
391
+ if (d) {
392
+ graph.attr({ d: d });
393
+ }
394
+ // Last point
395
+ point = points[points.length - 1];
396
+ point.chartX = paneLeft + point.plotX;
397
+ point.chartY = paneTop + point.plotY;
398
+ pushDiscrete(point);
399
+
400
+ // Interpolate
401
+ } else {
402
+ len = points.length;
403
+ for (i = 0; i < len; i += 1) {
404
+
405
+ point = points[i];
406
+ last = points[i - 1];
407
+
408
+ // Absolute coordinates so we can compare different panes
409
+ point.chartX = paneLeft + point.plotX;
410
+ point.chartY = paneTop + point.plotY;
411
+ if (onArea) {
412
+ // Vertically centered inside area
413
+ point.chartCenterY = paneTop + (
414
+ point.plotY +
415
+ pick(point.yBottom, translatedThreshold)
416
+ ) / 2;
417
+ }
418
+
419
+ // Add interpolated points
420
+ if (i > 0) {
421
+ deltaX = Math.abs(point.chartX - last.chartX);
422
+ deltaY = Math.abs(point.chartY - last.chartY);
423
+ delta = Math.max(deltaX, deltaY);
424
+ if (delta > distance) {
425
+
426
+ n = Math.ceil(delta / distance);
427
+
428
+ for (j = 1; j < n; j += 1) {
429
+ pushDiscrete({
430
+ chartX: last.chartX +
431
+ (point.chartX - last.chartX) * (j / n),
432
+ chartY: last.chartY +
433
+ (point.chartY - last.chartY) * (j / n),
434
+ chartCenterY: last.chartCenterY +
435
+ (point.chartCenterY - last.chartCenterY) *
436
+ (j / n),
437
+ plotX: last.plotX +
438
+ (point.plotX - last.plotX) * (j / n),
439
+ plotY: last.plotY +
440
+ (point.plotY - last.plotY) * (j / n)
441
+ });
442
+ }
443
+ }
444
+ }
445
+
446
+ // Add the real point in order to find positive and negative peaks
447
+ if (isNumber(point.plotY)) {
448
+ pushDiscrete(point);
449
+ }
450
+ }
451
+ }
452
+
453
+ // Get the bounding box so we can do a quick check first if the bounding
454
+ // boxes overlap.
455
+ /*
456
+ interpolated.bBox = node.getBBox();
457
+ interpolated.bBox.x += paneLeft;
458
+ interpolated.bBox.y += paneTop;
459
+ */
460
+ return interpolated;
461
+ };
462
+
463
+ /**
464
+ * Overridable function to return series-specific font sizes for the labels. By
465
+ * default it returns bigger font sizes for series with the greater sum of y
466
+ * values.
467
+ *
468
+ * @private
469
+ * @function Highcharts.Series#labelFontSize
470
+ *
471
+ * @param {number} minFontSize
472
+ *
473
+ * @param {number} maxFontSize
474
+ *
475
+ * @return {string}
476
+ */
477
+ Series.prototype.labelFontSize = function (minFontSize, maxFontSize) {
478
+ return minFontSize + (
479
+ (this.sum / this.chart.labelSeriesMaxSum) *
480
+ (maxFontSize - minFontSize)
481
+ ) + 'px';
482
+ };
483
+
484
+ /**
485
+ * Check whether a proposed label position is clear of other elements.
486
+ *
487
+ * @private
488
+ * @function Highcharts.Series#checkClearPoint
489
+ *
490
+ * @param {number} x
491
+ *
492
+ * @param {number} y
493
+ *
494
+ * @param {Highcharts.BBoxObject}
495
+ *
496
+ * @param {boolean} [checkDistance]
497
+ *
498
+ * @return {false|*}
499
+ */
500
+ Series.prototype.checkClearPoint = function (x, y, bBox, checkDistance) {
501
+ var distToOthersSquared = Number.MAX_VALUE, // distance to other graphs
502
+ distToPointSquared = Number.MAX_VALUE,
503
+ dist,
504
+ connectorPoint,
505
+ onArea = pick(this.options.label.onArea, !!this.area),
506
+ findDistanceToOthers = onArea || this.options.label.connectorAllowed,
507
+ chart = this.chart,
508
+ series,
509
+ points,
510
+ leastDistance = 16,
511
+ withinRange,
512
+ xDist,
513
+ yDist,
514
+ i,
515
+ j;
516
+
517
+ function intersectRect(r1, r2) {
518
+ return !(r2.left > r1.right ||
519
+ r2.right < r1.left ||
520
+ r2.top > r1.bottom ||
521
+ r2.bottom < r1.top);
522
+ }
523
+
524
+ /**
525
+ * Get the weight in order to determine the ideal position. Larger distance
526
+ * to other series gives more weight. Smaller distance to the actual point
527
+ * (connector points only) gives more weight.
528
+ */
529
+ function getWeight(distToOthersSquared, distToPointSquared) {
530
+ return distToOthersSquared - distToPointSquared;
531
+ }
532
+
533
+ // First check for collision with existing labels
534
+ for (i = 0; i < chart.boxesToAvoid.length; i += 1) {
535
+ if (intersectRect(chart.boxesToAvoid[i], {
536
+ left: x,
537
+ right: x + bBox.width,
538
+ top: y,
539
+ bottom: y + bBox.height
540
+ })) {
541
+ return false;
542
+ }
543
+ }
544
+
545
+ // For each position, check if the lines around the label intersect with any
546
+ // of the graphs.
547
+ for (i = 0; i < chart.series.length; i += 1) {
548
+ series = chart.series[i];
549
+ points = series.interpolatedPoints;
550
+ if (series.visible && points) {
551
+ for (j = 1; j < points.length; j += 1) {
552
+
553
+ if (
554
+ // To avoid processing, only check intersection if the X
555
+ // values are close to the box.
556
+ points[j].chartX >= x - leastDistance &&
557
+ points[j - 1].chartX <= x + bBox.width + leastDistance
558
+ ) {
559
+ // If any of the box sides intersect with the line, return.
560
+ if (boxIntersectLine(
561
+ x,
562
+ y,
563
+ bBox.width,
564
+ bBox.height,
565
+ points[j - 1].chartX,
566
+ points[j - 1].chartY,
567
+ points[j].chartX,
568
+ points[j].chartY
569
+ )) {
570
+ return false;
571
+ }
572
+
573
+ // But if it is too far away (a padded box doesn't
574
+ // intersect), also return.
575
+ if (this === series && !withinRange && checkDistance) {
576
+ withinRange = boxIntersectLine(
577
+ x - leastDistance,
578
+ y - leastDistance,
579
+ bBox.width + 2 * leastDistance,
580
+ bBox.height + 2 * leastDistance,
581
+ points[j - 1].chartX,
582
+ points[j - 1].chartY,
583
+ points[j].chartX,
584
+ points[j].chartY
585
+ );
586
+ }
587
+ }
588
+
589
+ // Find the squared distance from the center of the label. On
590
+ // area series, avoid its own graph.
591
+ if (
592
+ (findDistanceToOthers || withinRange) &&
593
+ (this !== series || onArea)
594
+ ) {
595
+ xDist = x + bBox.width / 2 - points[j].chartX;
596
+ yDist = y + bBox.height / 2 - points[j].chartY;
597
+ distToOthersSquared = Math.min(
598
+ distToOthersSquared,
599
+ xDist * xDist + yDist * yDist
600
+ );
601
+ }
602
+ }
603
+
604
+ // Do we need a connector?
605
+ if (
606
+ !onArea &&
607
+ findDistanceToOthers &&
608
+ this === series &&
609
+ (
610
+ (checkDistance && !withinRange) ||
611
+ distToOthersSquared < Math.pow(
612
+ this.options.label.connectorNeighbourDistance,
613
+ 2
614
+ )
615
+ )
616
+ ) {
617
+ for (j = 1; j < points.length; j += 1) {
618
+ dist = Math.min(
619
+ (
620
+ Math.pow(x + bBox.width / 2 - points[j].chartX, 2) +
621
+ Math.pow(y + bBox.height / 2 - points[j].chartY, 2)
622
+ ),
623
+ (
624
+ Math.pow(x - points[j].chartX, 2) +
625
+ Math.pow(y - points[j].chartY, 2)
626
+ ),
627
+ (
628
+ Math.pow(x + bBox.width - points[j].chartX, 2) +
629
+ Math.pow(y - points[j].chartY, 2)
630
+ ),
631
+ (
632
+ Math.pow(x + bBox.width - points[j].chartX, 2) +
633
+ Math.pow(y + bBox.height - points[j].chartY, 2)
634
+ ),
635
+ (
636
+ Math.pow(x - points[j].chartX, 2) +
637
+ Math.pow(y + bBox.height - points[j].chartY, 2)
638
+ )
639
+ );
640
+ if (dist < distToPointSquared) {
641
+ distToPointSquared = dist;
642
+ connectorPoint = points[j];
643
+ }
644
+ }
645
+ withinRange = true;
646
+ }
647
+ }
648
+ }
649
+
650
+ return !checkDistance || withinRange ? {
651
+ x: x,
652
+ y: y,
653
+ weight: getWeight(
654
+ distToOthersSquared,
655
+ connectorPoint ? distToPointSquared : 0
656
+ ),
657
+ connectorPoint: connectorPoint
658
+ } : false;
659
+
660
+ };
661
+
662
+ /**
663
+ * The main initialize method that runs on chart level after initialization and
664
+ * redraw. It runs in a timeout to prevent locking, and loops over all series,
665
+ * taking all series and labels into account when placing the labels.
666
+ *
667
+ * @private
668
+ * @function Highcharts.Chart#drawSeriesLabels
669
+ */
670
+ Chart.prototype.drawSeriesLabels = function () {
671
+
672
+ // console.time('drawSeriesLabels');
673
+
674
+ var chart = this,
675
+ labelSeries = this.labelSeries;
676
+
677
+ chart.boxesToAvoid = [];
678
+
679
+ // Build the interpolated points
680
+ labelSeries.forEach(function (series) {
681
+ series.interpolatedPoints = series.getPointsOnGraph();
682
+
683
+ (series.options.label.boxesToAvoid || []).forEach(function (box) {
684
+ chart.boxesToAvoid.push(box);
685
+ });
686
+ });
687
+
688
+ chart.series.forEach(function (series) {
689
+
690
+ if (!series.xAxis && !series.yAxis) {
691
+ return;
692
+ }
693
+
694
+ var bBox,
695
+ x,
696
+ y,
697
+ results = [],
698
+ clearPoint,
699
+ i,
700
+ best,
701
+ labelOptions = series.options.label,
702
+ inverted = chart.inverted,
703
+ paneLeft = inverted ? series.yAxis.pos : series.xAxis.pos,
704
+ paneTop = inverted ? series.xAxis.pos : series.yAxis.pos,
705
+ paneWidth = chart.inverted ? series.yAxis.len : series.xAxis.len,
706
+ paneHeight = chart.inverted ? series.xAxis.len : series.yAxis.len,
707
+ points = series.interpolatedPoints,
708
+ onArea = pick(labelOptions.onArea, !!series.area),
709
+ label = series.labelBySeries,
710
+ minFontSize = labelOptions.minFontSize,
711
+ maxFontSize = labelOptions.maxFontSize,
712
+ dataExtremes,
713
+ areaMin,
714
+ areaMax;
715
+
716
+ // Stay within the area data bounds (#10038)
717
+ if (onArea && !inverted) {
718
+ dataExtremes = [
719
+ series.xAxis.toPixels(series.xData[0]),
720
+ series.xAxis.toPixels(
721
+ series.xData[series.xData.length - 1]
722
+ )
723
+ ];
724
+ areaMin = Math.min.apply(Math, dataExtremes);
725
+ areaMax = Math.max.apply(Math, dataExtremes);
726
+ }
727
+
728
+ function insidePane(x, y, bBox) {
729
+ var leftBound = Math.max(paneLeft, pick(areaMin, -Infinity)),
730
+ rightBound = Math.min(
731
+ paneLeft + paneWidth,
732
+ pick(areaMax, Infinity)
733
+ );
734
+ return (
735
+ x > leftBound &&
736
+ x <= rightBound - bBox.width &&
737
+ y >= paneTop &&
738
+ y <= paneTop + paneHeight - bBox.height
739
+ );
740
+ }
741
+
742
+ function destroyLabel() {
743
+ if (label) {
744
+ series.labelBySeries = label.destroy();
745
+ }
746
+ }
747
+
748
+ if (series.visible && !series.isSeriesBoosting && points) {
749
+ if (!label) {
750
+ series.labelBySeries = label = chart.renderer
751
+ .label(series.name, 0, -9999, 'connector')
752
+ .addClass(
753
+ 'highcharts-series-label ' +
754
+ 'highcharts-series-label-' + series.index + ' ' +
755
+ (series.options.className || '')
756
+ )
757
+ .css(extend({
758
+ color: onArea ?
759
+ chart.renderer.getContrast(series.color) :
760
+ series.color
761
+ }, series.options.label.style));
762
+
763
+ // Adapt label sizes to the sum of the data
764
+ if (minFontSize && maxFontSize) {
765
+ label.css({
766
+ fontSize: series.labelFontSize(minFontSize, maxFontSize)
767
+ });
768
+ }
769
+
770
+ label
771
+ .attr({
772
+ padding: 0,
773
+ opacity: chart.renderer.forExport ? 1 : 0,
774
+ stroke: series.color,
775
+ 'stroke-width': 1,
776
+ zIndex: 3
777
+ })
778
+ .add()
779
+ .animate({ opacity: 1 }, { duration: 200 });
780
+ }
781
+
782
+ bBox = label.getBBox();
783
+ bBox.width = Math.round(bBox.width);
784
+
785
+ // Ideal positions are centered above or below a point on right side
786
+ // of chart
787
+ for (i = points.length - 1; i > 0; i -= 1) {
788
+
789
+ if (onArea) {
790
+
791
+ // Centered
792
+ x = points[i].chartX - bBox.width / 2;
793
+ y = points[i].chartCenterY - bBox.height / 2;
794
+ if (insidePane(x, y, bBox)) {
795
+ best = series.checkClearPoint(
796
+ x,
797
+ y,
798
+ bBox
799
+ );
800
+ }
801
+ if (best) {
802
+ results.push(best);
803
+ }
804
+
805
+
806
+ } else {
807
+
808
+ // Right - up
809
+ x = points[i].chartX + labelDistance;
810
+ y = points[i].chartY - bBox.height - labelDistance;
811
+ if (insidePane(x, y, bBox)) {
812
+ best = series.checkClearPoint(
813
+ x,
814
+ y,
815
+ bBox,
816
+ true
817
+ );
818
+ }
819
+ if (best) {
820
+ results.push(best);
821
+ }
822
+
823
+ // Right - down
824
+ x = points[i].chartX + labelDistance;
825
+ y = points[i].chartY + labelDistance;
826
+ if (insidePane(x, y, bBox)) {
827
+ best = series.checkClearPoint(
828
+ x,
829
+ y,
830
+ bBox,
831
+ true
832
+ );
833
+ }
834
+ if (best) {
835
+ results.push(best);
836
+ }
837
+
838
+ // Left - down
839
+ x = points[i].chartX - bBox.width - labelDistance;
840
+ y = points[i].chartY + labelDistance;
841
+ if (insidePane(x, y, bBox)) {
842
+ best = series.checkClearPoint(
843
+ x,
844
+ y,
845
+ bBox,
846
+ true
847
+ );
848
+ }
849
+ if (best) {
850
+ results.push(best);
851
+ }
852
+
853
+ // Left - up
854
+ x = points[i].chartX - bBox.width - labelDistance;
855
+ y = points[i].chartY - bBox.height - labelDistance;
856
+ if (insidePane(x, y, bBox)) {
857
+ best = series.checkClearPoint(
858
+ x,
859
+ y,
860
+ bBox,
861
+ true
862
+ );
863
+ }
864
+ if (best) {
865
+ results.push(best);
866
+ }
867
+ }
868
+ }
869
+
870
+ // Brute force, try all positions on the chart in a 16x16 grid
871
+ if (labelOptions.connectorAllowed && !results.length && !onArea) {
872
+ for (
873
+ x = paneLeft + paneWidth - bBox.width;
874
+ x >= paneLeft;
875
+ x -= 16
876
+ ) {
877
+ for (
878
+ y = paneTop;
879
+ y < paneTop + paneHeight - bBox.height;
880
+ y += 16
881
+ ) {
882
+ clearPoint = series.checkClearPoint(x, y, bBox, true);
883
+ if (clearPoint) {
884
+ results.push(clearPoint);
885
+ }
886
+ }
887
+ }
888
+ }
889
+
890
+ if (results.length) {
891
+
892
+ results.sort(function (a, b) {
893
+ return b.weight - a.weight;
894
+ });
895
+
896
+ best = results[0];
897
+
898
+ chart.boxesToAvoid.push({
899
+ left: best.x,
900
+ right: best.x + bBox.width,
901
+ top: best.y,
902
+ bottom: best.y + bBox.height
903
+ });
904
+
905
+ // Move it if needed
906
+ var dist = Math.sqrt(
907
+ Math.pow(Math.abs(best.x - label.x), 2),
908
+ Math.pow(Math.abs(best.y - label.y), 2)
909
+ );
910
+
911
+ if (dist) {
912
+
913
+ // Move fast and fade in - pure animation movement is
914
+ // distractive...
915
+ var attr = {
916
+ opacity: chart.renderer.forExport ? 1 : 0,
917
+ x: best.x,
918
+ y: best.y
919
+ },
920
+ anim = {
921
+ opacity: 1
922
+ };
923
+
924
+ // ... unless we're just moving a short distance
925
+ if (dist <= 10) {
926
+ anim = {
927
+ x: attr.x,
928
+ y: attr.y
929
+ };
930
+ attr = {};
931
+ }
932
+ series.labelBySeries
933
+ .attr(extend(attr, {
934
+ anchorX: best.connectorPoint &&
935
+ best.connectorPoint.plotX + paneLeft,
936
+ anchorY: best.connectorPoint &&
937
+ best.connectorPoint.plotY + paneTop
938
+ }))
939
+ .animate(anim);
940
+
941
+ // Record closest point to stick to for sync redraw
942
+ series.options.kdNow = true;
943
+ series.buildKDTree();
944
+ var closest = series.searchPoint({
945
+ chartX: best.x,
946
+ chartY: best.y
947
+ }, true);
948
+
949
+ label.closest = [
950
+ closest,
951
+ best.x - closest.plotX,
952
+ best.y - closest.plotY
953
+ ];
954
+
955
+ }
956
+
957
+ } else {
958
+ destroyLabel();
959
+ }
960
+ } else {
961
+ destroyLabel();
962
+ }
963
+ });
964
+ // console.timeEnd('drawSeriesLabels');
965
+ };
966
+
967
+ /**
968
+ * Prepare drawing series labels.
969
+ *
970
+ * @private
971
+ * @function drawLabels
972
+ */
973
+ function drawLabels(e) {
974
+
975
+ var chart = this,
976
+ delay = Math.max(
977
+ H.animObject(chart.renderer.globalAnimation).duration,
978
+ 250
979
+ );
980
+
981
+ chart.labelSeries = [];
982
+ chart.labelSeriesMaxSum = 0;
983
+
984
+ H.clearTimeout(chart.seriesLabelTimer);
985
+
986
+ // Which series should have labels
987
+ chart.series.forEach(function (series) {
988
+ var options = series.options.label,
989
+ label = series.labelBySeries,
990
+ closest = label && label.closest;
991
+
992
+ if (
993
+ options.enabled &&
994
+ series.visible &&
995
+ (series.graph || series.area) &&
996
+ !series.isSeriesBoosting
997
+ ) {
998
+ chart.labelSeries.push(series);
999
+
1000
+ if (options.minFontSize && options.maxFontSize) {
1001
+ series.sum = series.yData.reduce(function (pv, cv) {
1002
+ return (pv || 0) + (cv || 0);
1003
+ }, 0);
1004
+ chart.labelSeriesMaxSum = Math.max(
1005
+ chart.labelSeriesMaxSum,
1006
+ series.sum
1007
+ );
1008
+ }
1009
+
1010
+ // The labels are processing heavy, wait until the animation is done
1011
+ if (e.type === 'load') {
1012
+ delay = Math.max(
1013
+ delay,
1014
+ H.animObject(series.options.animation).duration
1015
+ );
1016
+ }
1017
+
1018
+ // Keep the position updated to the axis while redrawing
1019
+ if (closest) {
1020
+ if (closest[0].plotX !== undefined) {
1021
+ label.animate({
1022
+ x: closest[0].plotX + closest[1],
1023
+ y: closest[0].plotY + closest[2]
1024
+ });
1025
+ } else {
1026
+ label.attr({ opacity: 0 });
1027
+ }
1028
+ }
1029
+ }
1030
+ });
1031
+
1032
+ chart.seriesLabelTimer = H.syncTimeout(function () {
1033
+ if (chart.series && chart.labelSeries) { // #7931, chart destroyed
1034
+ chart.drawSeriesLabels();
1035
+ }
1036
+ }, chart.renderer.forExport ? 0 : delay);
1037
+
1038
+ }
1039
+
1040
+ // Leave both events, we handle animation differently (#9815)
1041
+ addEvent(Chart, 'load', drawLabels);
1042
+ addEvent(Chart, 'redraw', drawLabels);