highcharts 6.1.4 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (695) hide show
  1. package/bower.json +1 -1
  2. package/css/highcharts.css +17 -0
  3. package/css/highcharts.scss +14 -0
  4. package/css/themes/dark-unica.css +17 -0
  5. package/css/themes/grid-light.css +17 -0
  6. package/css/themes/sand-signika.css +17 -0
  7. package/es-modules/indicators/momentum.src.js +1 -1
  8. package/es-modules/indicators/pivot-points.src.js +6 -1
  9. package/es-modules/masters/highcharts-gantt.src.js +11 -0
  10. package/es-modules/masters/modules/annotations.src.js +1 -1
  11. package/es-modules/masters/modules/arrow-symbols.src.js +12 -0
  12. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  13. package/es-modules/masters/modules/current-date-indicator.src.js +12 -0
  14. package/es-modules/masters/modules/data.src.js +1 -1
  15. package/es-modules/masters/modules/draggable-points.src.js +9 -0
  16. package/es-modules/masters/modules/export-data.src.js +1 -1
  17. package/es-modules/masters/modules/exporting.src.js +1 -1
  18. package/es-modules/masters/modules/funnel.src.js +1 -1
  19. package/es-modules/masters/modules/gantt.src.js +2 -1
  20. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  21. package/es-modules/masters/modules/heatmap.src.js +1 -1
  22. package/es-modules/masters/modules/item-series.src.js +1 -1
  23. package/es-modules/masters/modules/map.src.js +1 -1
  24. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  25. package/es-modules/masters/modules/pathfinder.src.js +12 -0
  26. package/es-modules/masters/modules/sankey.src.js +1 -1
  27. package/es-modules/masters/modules/series-label.src.js +1 -1
  28. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  29. package/es-modules/masters/modules/stock.src.js +1 -1
  30. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  31. package/es-modules/masters/modules/treegrid.src.js +12 -0
  32. package/es-modules/masters/modules/variwide.src.js +1 -1
  33. package/es-modules/masters/modules/vector.src.js +1 -1
  34. package/es-modules/masters/modules/windbarb.src.js +1 -1
  35. package/es-modules/masters/modules/xrange.src.js +1 -1
  36. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  37. package/es-modules/masters/themes/dark-green.src.js +1 -1
  38. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  39. package/es-modules/masters/themes/gray.src.js +1 -1
  40. package/es-modules/masters/themes/grid-light.src.js +1 -1
  41. package/es-modules/masters/themes/grid.src.js +1 -1
  42. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  43. package/es-modules/masters/themes/skies.src.js +1 -1
  44. package/es-modules/mixins/centered-series.js +1 -1
  45. package/es-modules/mixins/on-series.js +1 -1
  46. package/es-modules/modules/boost.src.js +22 -14
  47. package/es-modules/modules/broken-axis.src.js +169 -134
  48. package/es-modules/modules/data.src.js +2 -2
  49. package/es-modules/modules/draggable-points.src.js +2257 -0
  50. package/es-modules/modules/drilldown.src.js +1 -0
  51. package/es-modules/modules/export-data.src.js +1 -1
  52. package/es-modules/modules/exporting.src.js +1 -1
  53. package/es-modules/modules/funnel.src.js +1 -1
  54. package/es-modules/modules/item-series.src.js +1 -1
  55. package/es-modules/modules/no-data-to-display.src.js +5 -5
  56. package/es-modules/modules/oldie.src.js +1 -1
  57. package/es-modules/modules/overlapping-datalabels.src.js +38 -22
  58. package/es-modules/modules/parallel-coordinates.src.js +3 -2
  59. package/es-modules/modules/sankey.src.js +1 -1
  60. package/es-modules/modules/series-label.src.js +2 -2
  61. package/es-modules/modules/solid-gauge.src.js +1 -1
  62. package/es-modules/modules/static-scale.src.js +67 -28
  63. package/es-modules/modules/streamgraph.src.js +1 -1
  64. package/es-modules/modules/tilemap.src.js +231 -134
  65. package/es-modules/modules/variwide.src.js +1 -1
  66. package/es-modules/modules/vector.src.js +92 -22
  67. package/es-modules/modules/windbarb.src.js +1 -1
  68. package/es-modules/modules/xrange.src.js +257 -77
  69. package/es-modules/parts/AreaSeries.js +77 -77
  70. package/es-modules/parts/AreaSplineSeries.js +64 -27
  71. package/es-modules/parts/Axis.js +160 -67
  72. package/es-modules/parts/BarSeries.js +68 -51
  73. package/es-modules/parts/CandlestickSeries.js +1 -1
  74. package/es-modules/parts/Chart.js +31 -55
  75. package/es-modules/parts/Color.js +29 -18
  76. package/es-modules/parts/ColumnSeries.js +264 -142
  77. package/es-modules/parts/DataGrouping.js +9 -6
  78. package/es-modules/parts/DataLabels.js +261 -210
  79. package/es-modules/parts/DateTimeAxis.js +26 -7
  80. package/es-modules/parts/Dynamics.js +5 -2
  81. package/es-modules/parts/FlagsSeries.js +1 -1
  82. package/es-modules/parts/Globals.js +1 -1
  83. package/es-modules/parts/Html.js +64 -12
  84. package/es-modules/parts/Interaction.js +187 -63
  85. package/es-modules/parts/Legend.js +7 -3
  86. package/es-modules/parts/LogarithmicAxis.js +35 -4
  87. package/es-modules/parts/MSPointer.js +1 -1
  88. package/es-modules/parts/Navigator.js +27 -5
  89. package/es-modules/parts/OHLCSeries.js +1 -1
  90. package/es-modules/parts/Options.js +15 -13
  91. package/es-modules/parts/OrdinalAxis.js +1 -1
  92. package/es-modules/parts/PieSeries.js +256 -140
  93. package/es-modules/parts/PlotBandSeries.experimental.js +1 -1
  94. package/es-modules/parts/PlotLineOrBand.js +7 -40
  95. package/es-modules/parts/Point.js +28 -4
  96. package/es-modules/parts/Pointer.js +8 -6
  97. package/es-modules/parts/RangeSelector.js +1 -1
  98. package/es-modules/parts/Responsive.js +82 -36
  99. package/es-modules/parts/ScatterSeries.js +57 -25
  100. package/es-modules/parts/ScrollablePlotArea.js +17 -7
  101. package/es-modules/parts/Scrollbar.js +9 -2
  102. package/es-modules/parts/Series.js +22 -9
  103. package/es-modules/parts/SplineSeries.js +51 -29
  104. package/es-modules/parts/Stacking.js +100 -6
  105. package/es-modules/parts/StockChart.js +9 -3
  106. package/es-modules/parts/SvgRenderer.js +15 -10
  107. package/es-modules/parts/Tick.js +150 -30
  108. package/es-modules/parts/Time.js +23 -5
  109. package/es-modules/parts/Tooltip.js +2 -2
  110. package/es-modules/parts/TouchPointer.js +1 -1
  111. package/es-modules/parts/Utilities.js +16 -1
  112. package/es-modules/parts-3d/Axis.js +1 -1
  113. package/es-modules/parts-3d/Chart.js +1 -1
  114. package/es-modules/parts-3d/Column.js +1 -1
  115. package/es-modules/parts-3d/Math.js +1 -1
  116. package/es-modules/parts-3d/Pie.js +1 -1
  117. package/es-modules/parts-3d/SVGRenderer.js +1 -1
  118. package/es-modules/parts-3d/Scatter.js +1 -1
  119. package/es-modules/parts-3d/Series.js +1 -1
  120. package/es-modules/parts-3d/VMLRenderer.js +1 -1
  121. package/es-modules/parts-gantt/ArrowSymbols.js +110 -0
  122. package/es-modules/parts-gantt/CurrentDateIndicator.js +92 -0
  123. package/es-modules/parts-gantt/GanttChart.js +111 -0
  124. package/es-modules/parts-gantt/GanttSeries.js +376 -0
  125. package/es-modules/parts-gantt/GridAxis.js +965 -0
  126. package/es-modules/parts-gantt/Pathfinder.js +1247 -0
  127. package/es-modules/parts-gantt/PathfinderAlgorithms.js +746 -0
  128. package/es-modules/parts-gantt/Tree.js +146 -0
  129. package/es-modules/parts-gantt/TreeGrid.js +917 -0
  130. package/es-modules/parts-map/ColorAxis.js +1 -1
  131. package/es-modules/parts-map/ColorSeriesMixin.js +1 -1
  132. package/es-modules/parts-map/GeoJSON.js +1 -1
  133. package/es-modules/parts-map/HeatmapSeries.js +124 -53
  134. package/es-modules/parts-map/Map.js +1 -1
  135. package/es-modules/parts-map/MapAxis.js +1 -1
  136. package/es-modules/parts-map/MapBubbleSeries.js +1 -1
  137. package/es-modules/parts-map/MapLineSeries.js +1 -1
  138. package/es-modules/parts-map/MapNavigation.js +1 -1
  139. package/es-modules/parts-map/MapPointSeries.js +1 -1
  140. package/es-modules/parts-map/MapPointer.js +1 -1
  141. package/es-modules/parts-map/MapSeries.js +2 -2
  142. package/es-modules/parts-more/AreaRangeSeries.js +80 -38
  143. package/es-modules/parts-more/AreaSplineRangeSeries.js +1 -1
  144. package/es-modules/parts-more/BoxPlotSeries.js +1 -1
  145. package/es-modules/parts-more/BubbleSeries.js +1 -1
  146. package/es-modules/parts-more/ColumnRangeSeries.js +1 -1
  147. package/es-modules/parts-more/ErrorBarSeries.js +1 -1
  148. package/es-modules/parts-more/GaugeSeries.js +1 -1
  149. package/es-modules/parts-more/Pane.js +2 -1
  150. package/es-modules/parts-more/Polar.js +1 -1
  151. package/es-modules/parts-more/PolygonSeries.js +1 -1
  152. package/es-modules/parts-more/RadialAxis.js +5 -4
  153. package/es-modules/parts-more/WaterfallSeries.js +1 -1
  154. package/es-modules/supplemental.docs.js +0 -1955
  155. package/es-modules/themes/dark-blue.js +1 -1
  156. package/es-modules/themes/dark-green.js +1 -1
  157. package/es-modules/themes/dark-unica.js +1 -1
  158. package/es-modules/themes/gray.js +1 -1
  159. package/es-modules/themes/grid-light.js +1 -1
  160. package/es-modules/themes/grid.js +1 -1
  161. package/es-modules/themes/sand-signika.js +1 -1
  162. package/es-modules/themes/skies.js +1 -1
  163. package/highcharts-3d.js +1 -1
  164. package/highcharts-3d.src.js +10 -10
  165. package/highcharts-gantt.js +503 -0
  166. package/highcharts-gantt.js.map +1 -0
  167. package/highcharts-gantt.src.js +49289 -0
  168. package/highcharts-more.js +65 -64
  169. package/highcharts-more.js.map +1 -1
  170. package/highcharts-more.src.js +97 -53
  171. package/highcharts.js +415 -410
  172. package/highcharts.js.map +1 -1
  173. package/highcharts.src.js +2170 -1128
  174. package/highmaps.js +443 -438
  175. package/highmaps.js.map +1 -1
  176. package/highmaps.src.js +1647 -849
  177. package/highstock.js +553 -548
  178. package/highstock.js.map +1 -1
  179. package/highstock.src.js +2398 -1283
  180. package/indicators/accumulation-distribution.js +1 -1
  181. package/indicators/accumulation-distribution.src.js +1 -1
  182. package/indicators/atr.js +1 -1
  183. package/indicators/atr.src.js +1 -1
  184. package/indicators/bollinger-bands.js +1 -1
  185. package/indicators/bollinger-bands.src.js +1 -1
  186. package/indicators/cci.js +1 -1
  187. package/indicators/cci.src.js +1 -1
  188. package/indicators/cmf.js +1 -1
  189. package/indicators/cmf.src.js +1 -1
  190. package/indicators/ema.js +1 -1
  191. package/indicators/ema.src.js +1 -1
  192. package/indicators/ichimoku-kinko-hyo.js +1 -1
  193. package/indicators/ichimoku-kinko-hyo.src.js +1 -1
  194. package/indicators/indicators.js +1 -1
  195. package/indicators/indicators.src.js +1 -1
  196. package/indicators/macd.js +1 -1
  197. package/indicators/macd.src.js +1 -1
  198. package/indicators/mfi.js +1 -1
  199. package/indicators/mfi.src.js +1 -1
  200. package/indicators/momentum.js +1 -1
  201. package/indicators/momentum.src.js +2 -2
  202. package/indicators/pivot-points.js +4 -4
  203. package/indicators/pivot-points.js.map +1 -1
  204. package/indicators/pivot-points.src.js +7 -2
  205. package/indicators/price-envelopes.js +1 -1
  206. package/indicators/price-envelopes.src.js +1 -1
  207. package/indicators/psar.js +1 -1
  208. package/indicators/psar.src.js +1 -1
  209. package/indicators/roc.js +1 -1
  210. package/indicators/roc.src.js +1 -1
  211. package/indicators/rsi.js +1 -1
  212. package/indicators/rsi.src.js +1 -1
  213. package/indicators/stochastic.js +1 -1
  214. package/indicators/stochastic.src.js +1 -1
  215. package/indicators/volume-by-price.js +1 -1
  216. package/indicators/volume-by-price.src.js +1 -1
  217. package/indicators/vwap.js +1 -1
  218. package/indicators/vwap.src.js +1 -1
  219. package/indicators/wma.js +1 -1
  220. package/indicators/wma.src.js +1 -1
  221. package/indicators/zigzag.js +1 -1
  222. package/indicators/zigzag.src.js +1 -1
  223. package/js/es-modules/indicators/momentum.src.js +1 -1
  224. package/js/es-modules/indicators/pivot-points.src.js +6 -1
  225. package/js/es-modules/masters/highcharts-gantt.src.js +11 -0
  226. package/js/es-modules/masters/modules/annotations.src.js +1 -1
  227. package/js/es-modules/masters/modules/arrow-symbols.src.js +12 -0
  228. package/js/es-modules/masters/modules/broken-axis.src.js +1 -1
  229. package/js/es-modules/masters/modules/current-date-indicator.src.js +12 -0
  230. package/js/es-modules/masters/modules/data.src.js +1 -1
  231. package/js/es-modules/masters/modules/draggable-points.src.js +9 -0
  232. package/js/es-modules/masters/modules/export-data.src.js +1 -1
  233. package/js/es-modules/masters/modules/exporting.src.js +1 -1
  234. package/js/es-modules/masters/modules/funnel.src.js +1 -1
  235. package/js/es-modules/masters/modules/gantt.src.js +2 -1
  236. package/js/es-modules/masters/modules/grid-axis.src.js +1 -1
  237. package/js/es-modules/masters/modules/heatmap.src.js +1 -1
  238. package/js/es-modules/masters/modules/item-series.src.js +1 -1
  239. package/js/es-modules/masters/modules/map.src.js +1 -1
  240. package/js/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  241. package/js/es-modules/masters/modules/pathfinder.src.js +12 -0
  242. package/js/es-modules/masters/modules/sankey.src.js +1 -1
  243. package/js/es-modules/masters/modules/series-label.src.js +1 -1
  244. package/js/es-modules/masters/modules/solid-gauge.src.js +1 -1
  245. package/js/es-modules/masters/modules/stock.src.js +1 -1
  246. package/js/es-modules/masters/modules/streamgraph.src.js +1 -1
  247. package/js/es-modules/masters/modules/treegrid.src.js +12 -0
  248. package/js/es-modules/masters/modules/variwide.src.js +1 -1
  249. package/js/es-modules/masters/modules/vector.src.js +1 -1
  250. package/js/es-modules/masters/modules/windbarb.src.js +1 -1
  251. package/js/es-modules/masters/modules/xrange.src.js +1 -1
  252. package/js/es-modules/masters/themes/dark-blue.src.js +1 -1
  253. package/js/es-modules/masters/themes/dark-green.src.js +1 -1
  254. package/js/es-modules/masters/themes/dark-unica.src.js +1 -1
  255. package/js/es-modules/masters/themes/gray.src.js +1 -1
  256. package/js/es-modules/masters/themes/grid-light.src.js +1 -1
  257. package/js/es-modules/masters/themes/grid.src.js +1 -1
  258. package/js/es-modules/masters/themes/sand-signika.src.js +1 -1
  259. package/js/es-modules/masters/themes/skies.src.js +1 -1
  260. package/js/es-modules/mixins/centered-series.js +1 -1
  261. package/js/es-modules/mixins/on-series.js +1 -1
  262. package/js/es-modules/modules/boost.src.js +22 -14
  263. package/js/es-modules/modules/broken-axis.src.js +169 -134
  264. package/js/es-modules/modules/data.src.js +2 -2
  265. package/js/es-modules/modules/draggable-points.src.js +2257 -0
  266. package/js/es-modules/modules/drilldown.src.js +1 -0
  267. package/js/es-modules/modules/export-data.src.js +1 -1
  268. package/js/es-modules/modules/exporting.src.js +1 -1
  269. package/js/es-modules/modules/funnel.src.js +1 -1
  270. package/js/es-modules/modules/item-series.src.js +1 -1
  271. package/js/es-modules/modules/no-data-to-display.src.js +5 -5
  272. package/js/es-modules/modules/oldie.src.js +1 -1
  273. package/js/es-modules/modules/overlapping-datalabels.src.js +38 -22
  274. package/js/es-modules/modules/parallel-coordinates.src.js +3 -2
  275. package/js/es-modules/modules/sankey.src.js +1 -1
  276. package/js/es-modules/modules/series-label.src.js +2 -2
  277. package/js/es-modules/modules/solid-gauge.src.js +1 -1
  278. package/js/es-modules/modules/static-scale.src.js +67 -28
  279. package/js/es-modules/modules/streamgraph.src.js +1 -1
  280. package/js/es-modules/modules/tilemap.src.js +231 -134
  281. package/js/es-modules/modules/variwide.src.js +1 -1
  282. package/js/es-modules/modules/vector.src.js +92 -22
  283. package/js/es-modules/modules/windbarb.src.js +1 -1
  284. package/js/es-modules/modules/xrange.src.js +255 -68
  285. package/js/es-modules/parts/AreaSeries.js +77 -77
  286. package/js/es-modules/parts/AreaSplineSeries.js +64 -27
  287. package/js/es-modules/parts/Axis.js +160 -67
  288. package/js/es-modules/parts/BarSeries.js +68 -51
  289. package/js/es-modules/parts/CandlestickSeries.js +1 -1
  290. package/js/es-modules/parts/Chart.js +31 -55
  291. package/js/es-modules/parts/Color.js +29 -18
  292. package/js/es-modules/parts/ColumnSeries.js +231 -123
  293. package/js/es-modules/parts/DataGrouping.js +9 -6
  294. package/js/es-modules/parts/DataLabels.js +230 -182
  295. package/js/es-modules/parts/DateTimeAxis.js +26 -7
  296. package/js/es-modules/parts/Dynamics.js +5 -2
  297. package/js/es-modules/parts/FlagsSeries.js +1 -1
  298. package/js/es-modules/parts/Globals.js +1 -1
  299. package/js/es-modules/parts/Html.js +64 -12
  300. package/js/es-modules/parts/Interaction.js +178 -61
  301. package/js/es-modules/parts/Legend.js +7 -3
  302. package/js/es-modules/parts/LogarithmicAxis.js +35 -4
  303. package/js/es-modules/parts/MSPointer.js +1 -1
  304. package/js/es-modules/parts/Navigator.js +27 -5
  305. package/js/es-modules/parts/OHLCSeries.js +1 -1
  306. package/js/es-modules/parts/Options.js +13 -12
  307. package/js/es-modules/parts/OrdinalAxis.js +1 -1
  308. package/js/es-modules/parts/PieSeries.js +245 -132
  309. package/js/es-modules/parts/PlotBandSeries.experimental.js +1 -1
  310. package/js/es-modules/parts/PlotLineOrBand.js +7 -40
  311. package/js/es-modules/parts/Point.js +28 -4
  312. package/js/es-modules/parts/Pointer.js +8 -6
  313. package/js/es-modules/parts/RangeSelector.js +1 -1
  314. package/js/es-modules/parts/Responsive.js +82 -36
  315. package/js/es-modules/parts/ScatterSeries.js +56 -25
  316. package/js/es-modules/parts/ScrollablePlotArea.js +17 -7
  317. package/js/es-modules/parts/Scrollbar.js +9 -2
  318. package/js/es-modules/parts/Series.js +22 -9
  319. package/js/es-modules/parts/SplineSeries.js +51 -29
  320. package/js/es-modules/parts/Stacking.js +100 -6
  321. package/js/es-modules/parts/StockChart.js +9 -3
  322. package/js/es-modules/parts/SvgRenderer.js +15 -10
  323. package/js/es-modules/parts/Tick.js +150 -30
  324. package/js/es-modules/parts/Time.js +23 -5
  325. package/js/es-modules/parts/Tooltip.js +2 -2
  326. package/js/es-modules/parts/TouchPointer.js +1 -1
  327. package/js/es-modules/parts/Utilities.js +16 -1
  328. package/js/es-modules/parts-3d/Axis.js +1 -1
  329. package/js/es-modules/parts-3d/Chart.js +1 -1
  330. package/js/es-modules/parts-3d/Column.js +1 -1
  331. package/js/es-modules/parts-3d/Math.js +1 -1
  332. package/js/es-modules/parts-3d/Pie.js +1 -1
  333. package/js/es-modules/parts-3d/SVGRenderer.js +1 -1
  334. package/js/es-modules/parts-3d/Scatter.js +1 -1
  335. package/js/es-modules/parts-3d/Series.js +1 -1
  336. package/js/es-modules/parts-3d/VMLRenderer.js +1 -1
  337. package/js/es-modules/parts-gantt/ArrowSymbols.js +110 -0
  338. package/js/es-modules/parts-gantt/CurrentDateIndicator.js +92 -0
  339. package/js/es-modules/parts-gantt/GanttChart.js +111 -0
  340. package/js/es-modules/parts-gantt/GanttSeries.js +371 -0
  341. package/js/es-modules/parts-gantt/GridAxis.js +962 -0
  342. package/js/es-modules/parts-gantt/Pathfinder.js +1225 -0
  343. package/js/es-modules/parts-gantt/PathfinderAlgorithms.js +746 -0
  344. package/js/es-modules/parts-gantt/Tree.js +146 -0
  345. package/js/es-modules/parts-gantt/TreeGrid.js +891 -0
  346. package/js/es-modules/parts-map/ColorAxis.js +1 -1
  347. package/js/es-modules/parts-map/ColorSeriesMixin.js +1 -1
  348. package/js/es-modules/parts-map/GeoJSON.js +1 -1
  349. package/js/es-modules/parts-map/HeatmapSeries.js +122 -52
  350. package/js/es-modules/parts-map/Map.js +1 -1
  351. package/js/es-modules/parts-map/MapAxis.js +1 -1
  352. package/js/es-modules/parts-map/MapBubbleSeries.js +1 -1
  353. package/js/es-modules/parts-map/MapLineSeries.js +1 -1
  354. package/js/es-modules/parts-map/MapNavigation.js +1 -1
  355. package/js/es-modules/parts-map/MapPointSeries.js +1 -1
  356. package/js/es-modules/parts-map/MapPointer.js +1 -1
  357. package/js/es-modules/parts-map/MapSeries.js +2 -2
  358. package/js/es-modules/parts-more/AreaRangeSeries.js +80 -38
  359. package/js/es-modules/parts-more/AreaSplineRangeSeries.js +1 -1
  360. package/js/es-modules/parts-more/BoxPlotSeries.js +1 -1
  361. package/js/es-modules/parts-more/BubbleSeries.js +1 -1
  362. package/js/es-modules/parts-more/ColumnRangeSeries.js +1 -1
  363. package/js/es-modules/parts-more/ErrorBarSeries.js +1 -1
  364. package/js/es-modules/parts-more/GaugeSeries.js +1 -1
  365. package/js/es-modules/parts-more/Pane.js +2 -1
  366. package/js/es-modules/parts-more/Polar.js +1 -1
  367. package/js/es-modules/parts-more/PolygonSeries.js +1 -1
  368. package/js/es-modules/parts-more/RadialAxis.js +5 -4
  369. package/js/es-modules/parts-more/WaterfallSeries.js +1 -1
  370. package/js/es-modules/supplemental.docs.js +0 -1955
  371. package/js/es-modules/themes/dark-blue.js +1 -1
  372. package/js/es-modules/themes/dark-green.js +1 -1
  373. package/js/es-modules/themes/dark-unica.js +1 -1
  374. package/js/es-modules/themes/gray.js +1 -1
  375. package/js/es-modules/themes/grid-light.js +1 -1
  376. package/js/es-modules/themes/grid.js +1 -1
  377. package/js/es-modules/themes/sand-signika.js +1 -1
  378. package/js/es-modules/themes/skies.js +1 -1
  379. package/js/highcharts-3d.js +1 -1
  380. package/js/highcharts-3d.src.js +10 -10
  381. package/js/highcharts-gantt.js +480 -0
  382. package/js/highcharts-gantt.js.map +1 -0
  383. package/js/highcharts-gantt.src.js +47011 -0
  384. package/js/highcharts-more.js +62 -61
  385. package/js/highcharts-more.js.map +1 -1
  386. package/js/highcharts-more.src.js +97 -53
  387. package/js/highcharts.js +394 -390
  388. package/js/highcharts.js.map +1 -1
  389. package/js/highcharts.src.js +2083 -1070
  390. package/js/highmaps.js +420 -416
  391. package/js/highmaps.js.map +1 -1
  392. package/js/highmaps.src.js +1569 -798
  393. package/js/highstock.js +526 -520
  394. package/js/highstock.js.map +1 -1
  395. package/js/highstock.src.js +2311 -1225
  396. package/js/indicators/accumulation-distribution.js +1 -1
  397. package/js/indicators/accumulation-distribution.src.js +1 -1
  398. package/js/indicators/atr.js +1 -1
  399. package/js/indicators/atr.src.js +1 -1
  400. package/js/indicators/bollinger-bands.js +1 -1
  401. package/js/indicators/bollinger-bands.src.js +1 -1
  402. package/js/indicators/cci.js +1 -1
  403. package/js/indicators/cci.src.js +1 -1
  404. package/js/indicators/cmf.js +1 -1
  405. package/js/indicators/cmf.src.js +1 -1
  406. package/js/indicators/ema.js +1 -1
  407. package/js/indicators/ema.src.js +1 -1
  408. package/js/indicators/ichimoku-kinko-hyo.js +1 -1
  409. package/js/indicators/ichimoku-kinko-hyo.src.js +1 -1
  410. package/js/indicators/indicators.js +1 -1
  411. package/js/indicators/indicators.src.js +1 -1
  412. package/js/indicators/macd.js +1 -1
  413. package/js/indicators/macd.src.js +1 -1
  414. package/js/indicators/mfi.js +1 -1
  415. package/js/indicators/mfi.src.js +1 -1
  416. package/js/indicators/momentum.js +1 -1
  417. package/js/indicators/momentum.src.js +2 -2
  418. package/js/indicators/pivot-points.js +4 -4
  419. package/js/indicators/pivot-points.js.map +1 -1
  420. package/js/indicators/pivot-points.src.js +7 -2
  421. package/js/indicators/price-envelopes.js +1 -1
  422. package/js/indicators/price-envelopes.src.js +1 -1
  423. package/js/indicators/psar.js +1 -1
  424. package/js/indicators/psar.src.js +1 -1
  425. package/js/indicators/roc.js +1 -1
  426. package/js/indicators/roc.src.js +1 -1
  427. package/js/indicators/rsi.js +1 -1
  428. package/js/indicators/rsi.src.js +1 -1
  429. package/js/indicators/stochastic.js +1 -1
  430. package/js/indicators/stochastic.src.js +1 -1
  431. package/js/indicators/volume-by-price.js +1 -1
  432. package/js/indicators/volume-by-price.src.js +1 -1
  433. package/js/indicators/vwap.js +1 -1
  434. package/js/indicators/vwap.src.js +1 -1
  435. package/js/indicators/wma.js +1 -1
  436. package/js/indicators/wma.src.js +1 -1
  437. package/js/indicators/zigzag.js +1 -1
  438. package/js/indicators/zigzag.src.js +1 -1
  439. package/js/modules/accessibility.js +1 -1
  440. package/js/modules/accessibility.src.js +1 -1
  441. package/js/modules/annotations.js +2 -2
  442. package/js/modules/annotations.src.js +2 -2
  443. package/js/modules/arrow-symbols.js +13 -0
  444. package/js/modules/arrow-symbols.js.map +1 -0
  445. package/js/modules/arrow-symbols.src.js +138 -0
  446. package/js/modules/boost-canvas.js +1 -1
  447. package/js/modules/boost-canvas.src.js +1 -1
  448. package/js/modules/boost.js +43 -43
  449. package/js/modules/boost.js.map +1 -1
  450. package/js/modules/boost.src.js +23 -15
  451. package/js/modules/broken-axis.js +11 -10
  452. package/js/modules/broken-axis.js.map +1 -1
  453. package/js/modules/broken-axis.src.js +171 -136
  454. package/js/modules/bullet.js +1 -1
  455. package/js/modules/bullet.src.js +1 -1
  456. package/js/modules/current-date-indicator.js +13 -0
  457. package/js/modules/current-date-indicator.js.map +1 -0
  458. package/js/modules/current-date-indicator.src.js +120 -0
  459. package/js/modules/data.js +2 -2
  460. package/js/modules/data.src.js +4 -4
  461. package/js/modules/drag-panes.js +1 -1
  462. package/js/modules/drag-panes.src.js +1 -1
  463. package/js/modules/draggable-points.js +38 -0
  464. package/js/modules/draggable-points.js.map +1 -0
  465. package/js/modules/draggable-points.src.js +2281 -0
  466. package/js/modules/drilldown.js +1 -1
  467. package/js/modules/drilldown.js.map +1 -1
  468. package/js/modules/drilldown.src.js +2 -1
  469. package/js/modules/export-data.js +2 -2
  470. package/js/modules/export-data.src.js +3 -3
  471. package/js/modules/exporting.js +2 -2
  472. package/js/modules/exporting.src.js +3 -3
  473. package/js/modules/funnel.js +2 -2
  474. package/js/modules/funnel.src.js +3 -3
  475. package/js/modules/gantt.js +80 -18
  476. package/js/modules/gantt.js.map +1 -1
  477. package/js/modules/gantt.src.js +5490 -372
  478. package/js/modules/grid-axis.js +15 -11
  479. package/js/modules/grid-axis.js.map +1 -1
  480. package/js/modules/grid-axis.src.js +731 -293
  481. package/js/modules/heatmap.js +2 -2
  482. package/js/modules/heatmap.js.map +1 -1
  483. package/js/modules/heatmap.src.js +126 -56
  484. package/js/modules/histogram-bellcurve.js +1 -1
  485. package/js/modules/histogram-bellcurve.src.js +1 -1
  486. package/js/modules/item-series.js +2 -2
  487. package/js/modules/item-series.src.js +3 -3
  488. package/js/modules/map.js +2 -2
  489. package/js/modules/map.js.map +1 -1
  490. package/js/modules/map.src.js +137 -67
  491. package/js/modules/no-data-to-display.js +1 -1
  492. package/js/modules/no-data-to-display.src.js +6 -6
  493. package/js/modules/offline-exporting.js +2 -2
  494. package/js/modules/offline-exporting.src.js +2 -2
  495. package/js/modules/oldie.js +2 -2
  496. package/js/modules/oldie.src.js +3 -3
  497. package/js/modules/overlapping-datalabels.js +2 -2
  498. package/js/modules/overlapping-datalabels.src.js +2 -2
  499. package/js/modules/parallel-coordinates.js +9 -9
  500. package/js/modules/parallel-coordinates.js.map +1 -1
  501. package/js/modules/parallel-coordinates.src.js +4 -3
  502. package/js/modules/pareto.js +1 -1
  503. package/js/modules/pareto.src.js +1 -1
  504. package/js/modules/pathfinder.js +34 -0
  505. package/js/modules/pathfinder.js.map +1 -0
  506. package/js/modules/pathfinder.src.js +2106 -0
  507. package/js/modules/pattern-fill.js +1 -1
  508. package/js/modules/pattern-fill.src.js +1 -1
  509. package/js/modules/sankey.js +2 -2
  510. package/js/modules/sankey.src.js +3 -3
  511. package/js/modules/series-label.js +2 -2
  512. package/js/modules/series-label.src.js +4 -4
  513. package/js/modules/solid-gauge.js +2 -2
  514. package/js/modules/solid-gauge.src.js +3 -3
  515. package/js/modules/static-scale.js +3 -3
  516. package/js/modules/static-scale.js.map +1 -1
  517. package/js/modules/static-scale.src.js +65 -26
  518. package/js/modules/stock.js +135 -134
  519. package/js/modules/stock.js.map +1 -1
  520. package/js/modules/stock.src.js +230 -157
  521. package/js/modules/streamgraph.js +2 -2
  522. package/js/modules/streamgraph.src.js +3 -3
  523. package/js/modules/sunburst.js +1 -1
  524. package/js/modules/sunburst.src.js +1 -1
  525. package/js/modules/tilemap.js +1 -1
  526. package/js/modules/tilemap.js.map +1 -1
  527. package/js/modules/tilemap.src.js +355 -188
  528. package/js/modules/treegrid.js +51 -0
  529. package/js/modules/treegrid.js.map +1 -0
  530. package/js/modules/treegrid.src.js +2759 -0
  531. package/js/modules/treemap.js +1 -1
  532. package/js/modules/treemap.src.js +1 -1
  533. package/js/modules/variable-pie.js +1 -1
  534. package/js/modules/variable-pie.src.js +1 -1
  535. package/js/modules/variwide.js +2 -2
  536. package/js/modules/variwide.src.js +3 -3
  537. package/js/modules/vector.js +2 -2
  538. package/js/modules/vector.js.map +1 -1
  539. package/js/modules/vector.src.js +94 -24
  540. package/js/modules/windbarb.js +2 -2
  541. package/js/modules/windbarb.src.js +4 -4
  542. package/js/modules/wordcloud.js +1 -1
  543. package/js/modules/wordcloud.src.js +1 -1
  544. package/js/modules/xrange.js +11 -10
  545. package/js/modules/xrange.js.map +1 -1
  546. package/js/modules/xrange.src.js +257 -70
  547. package/js/themes/avocado.js +1 -1
  548. package/js/themes/avocado.src.js +1 -1
  549. package/js/themes/dark-blue.js +2 -2
  550. package/js/themes/dark-blue.src.js +3 -3
  551. package/js/themes/dark-green.js +2 -2
  552. package/js/themes/dark-green.src.js +3 -3
  553. package/js/themes/dark-unica.js +2 -2
  554. package/js/themes/dark-unica.src.js +3 -3
  555. package/js/themes/gray.js +2 -2
  556. package/js/themes/gray.src.js +3 -3
  557. package/js/themes/grid-light.js +2 -2
  558. package/js/themes/grid-light.src.js +3 -3
  559. package/js/themes/grid.js +2 -2
  560. package/js/themes/grid.src.js +3 -3
  561. package/js/themes/sand-signika.js +2 -2
  562. package/js/themes/sand-signika.src.js +3 -3
  563. package/js/themes/skies.js +2 -2
  564. package/js/themes/skies.src.js +3 -3
  565. package/js/themes/sunset.js +1 -1
  566. package/js/themes/sunset.src.js +1 -1
  567. package/modules/accessibility.js +1 -1
  568. package/modules/accessibility.src.js +1 -1
  569. package/modules/annotations.js +2 -2
  570. package/modules/annotations.src.js +2 -2
  571. package/modules/arrow-symbols.js +13 -0
  572. package/modules/arrow-symbols.js.map +1 -0
  573. package/modules/arrow-symbols.src.js +138 -0
  574. package/modules/boost-canvas.js +1 -1
  575. package/modules/boost-canvas.src.js +1 -1
  576. package/modules/boost.js +36 -36
  577. package/modules/boost.js.map +1 -1
  578. package/modules/boost.src.js +23 -15
  579. package/modules/broken-axis.js +11 -10
  580. package/modules/broken-axis.js.map +1 -1
  581. package/modules/broken-axis.src.js +171 -136
  582. package/modules/bullet.js +1 -1
  583. package/modules/bullet.src.js +1 -1
  584. package/modules/current-date-indicator.js +13 -0
  585. package/modules/current-date-indicator.js.map +1 -0
  586. package/modules/current-date-indicator.src.js +120 -0
  587. package/modules/data.js +2 -2
  588. package/modules/data.src.js +4 -4
  589. package/modules/drag-panes.js +1 -1
  590. package/modules/drag-panes.src.js +1 -1
  591. package/modules/draggable-points.js +38 -0
  592. package/modules/draggable-points.js.map +1 -0
  593. package/modules/draggable-points.src.js +2281 -0
  594. package/modules/drilldown.js +1 -1
  595. package/modules/drilldown.js.map +1 -1
  596. package/modules/drilldown.src.js +2 -1
  597. package/modules/export-data.js +2 -2
  598. package/modules/export-data.src.js +3 -3
  599. package/modules/exporting.js +2 -2
  600. package/modules/exporting.src.js +3 -3
  601. package/modules/funnel.js +2 -2
  602. package/modules/funnel.src.js +3 -3
  603. package/modules/gantt.js +83 -19
  604. package/modules/gantt.js.map +1 -1
  605. package/modules/gantt.src.js +5553 -379
  606. package/modules/grid-axis.js +16 -11
  607. package/modules/grid-axis.js.map +1 -1
  608. package/modules/grid-axis.src.js +732 -293
  609. package/modules/heatmap.js +2 -2
  610. package/modules/heatmap.js.map +1 -1
  611. package/modules/heatmap.src.js +128 -57
  612. package/modules/histogram-bellcurve.js +1 -1
  613. package/modules/histogram-bellcurve.src.js +1 -1
  614. package/modules/item-series.js +2 -2
  615. package/modules/item-series.src.js +3 -3
  616. package/modules/map.js +2 -2
  617. package/modules/map.js.map +1 -1
  618. package/modules/map.src.js +139 -68
  619. package/modules/no-data-to-display.js +1 -1
  620. package/modules/no-data-to-display.src.js +6 -6
  621. package/modules/offline-exporting.js +2 -2
  622. package/modules/offline-exporting.src.js +2 -2
  623. package/modules/oldie.js +2 -2
  624. package/modules/oldie.src.js +3 -3
  625. package/modules/overlapping-datalabels.js +2 -2
  626. package/modules/overlapping-datalabels.src.js +2 -2
  627. package/modules/parallel-coordinates.js +8 -8
  628. package/modules/parallel-coordinates.js.map +1 -1
  629. package/modules/parallel-coordinates.src.js +4 -3
  630. package/modules/pareto.js +1 -1
  631. package/modules/pareto.src.js +1 -1
  632. package/modules/pathfinder.js +35 -0
  633. package/modules/pathfinder.js.map +1 -0
  634. package/modules/pathfinder.src.js +2128 -0
  635. package/modules/pattern-fill.js +1 -1
  636. package/modules/pattern-fill.src.js +1 -1
  637. package/modules/sankey.js +2 -2
  638. package/modules/sankey.src.js +3 -3
  639. package/modules/series-label.js +2 -2
  640. package/modules/series-label.src.js +4 -4
  641. package/modules/solid-gauge.js +2 -2
  642. package/modules/solid-gauge.src.js +3 -3
  643. package/modules/static-scale.js +3 -3
  644. package/modules/static-scale.js.map +1 -1
  645. package/modules/static-scale.src.js +65 -26
  646. package/modules/stock.js +142 -142
  647. package/modules/stock.js.map +1 -1
  648. package/modules/stock.src.js +230 -157
  649. package/modules/streamgraph.js +2 -2
  650. package/modules/streamgraph.src.js +3 -3
  651. package/modules/sunburst.js +1 -1
  652. package/modules/sunburst.src.js +1 -1
  653. package/modules/tilemap.js +1 -1
  654. package/modules/tilemap.js.map +1 -1
  655. package/modules/tilemap.src.js +357 -189
  656. package/modules/treegrid.js +52 -0
  657. package/modules/treegrid.js.map +1 -0
  658. package/modules/treegrid.src.js +2797 -0
  659. package/modules/treemap.js +1 -1
  660. package/modules/treemap.src.js +1 -1
  661. package/modules/variable-pie.js +1 -1
  662. package/modules/variable-pie.src.js +1 -1
  663. package/modules/variwide.js +2 -2
  664. package/modules/variwide.src.js +3 -3
  665. package/modules/vector.js +2 -2
  666. package/modules/vector.js.map +1 -1
  667. package/modules/vector.src.js +94 -24
  668. package/modules/windbarb.js +2 -2
  669. package/modules/windbarb.src.js +4 -4
  670. package/modules/wordcloud.js +1 -1
  671. package/modules/wordcloud.src.js +1 -1
  672. package/modules/xrange.js +12 -11
  673. package/modules/xrange.js.map +1 -1
  674. package/modules/xrange.src.js +259 -79
  675. package/package.json +1 -1
  676. package/themes/avocado.js +1 -1
  677. package/themes/avocado.src.js +1 -1
  678. package/themes/dark-blue.js +2 -2
  679. package/themes/dark-blue.src.js +3 -3
  680. package/themes/dark-green.js +2 -2
  681. package/themes/dark-green.src.js +3 -3
  682. package/themes/dark-unica.js +2 -2
  683. package/themes/dark-unica.src.js +3 -3
  684. package/themes/gray.js +2 -2
  685. package/themes/gray.src.js +3 -3
  686. package/themes/grid-light.js +2 -2
  687. package/themes/grid-light.src.js +3 -3
  688. package/themes/grid.js +2 -2
  689. package/themes/grid.src.js +3 -3
  690. package/themes/sand-signika.js +2 -2
  691. package/themes/sand-signika.src.js +3 -3
  692. package/themes/skies.js +2 -2
  693. package/themes/skies.src.js +3 -3
  694. package/themes/sunset.js +1 -1
  695. package/themes/sunset.src.js +1 -1
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * X-range series module
3
3
  *
4
- * (c) 2010-2017 Torstein Honsi, Lars A. V. Cabrera
4
+ * (c) 2010-2018 Torstein Honsi, Lars A. V. Cabrera
5
5
  *
6
6
  * License: www.highcharts.com/license
7
7
  */
8
8
 
9
9
  'use strict';
10
+
10
11
  import H from '../parts/Globals.js';
11
12
 
12
13
  var addEvent = H.addEvent,
@@ -24,16 +25,47 @@ var addEvent = H.addEvent,
24
25
  Point = H.Point,
25
26
  Series = H.Series;
26
27
 
28
+ /**
29
+ * Return color of a point based on its category.
30
+ *
31
+ * @param {object} series The series which the point belongs to.
32
+ * @param {object} point The point to calculate its color for.
33
+ * @returns {object} Returns an object containing the properties color and
34
+ * colorIndex.
35
+ */
36
+ var getColorByCategory = function getColorByCategory(series, point) {
37
+ var colors = series.options.colors || series.chart.options.colors,
38
+ colorCount = colors ?
39
+ colors.length :
40
+ series.chart.options.chart.colorCount,
41
+ colorIndex = point.y % colorCount,
42
+ color = colors && colors[colorIndex];
43
+
44
+ return {
45
+ colorIndex: colorIndex,
46
+ color: color
47
+ };
48
+ };
49
+
50
+ /**
51
+ * @private
52
+ * @class
53
+ * @name Highcharts.seriesTypes.xrange
54
+ *
55
+ * @augments Highcharts.Series
56
+ */
57
+ seriesType('xrange', 'column'
58
+
27
59
  /**
28
60
  * The X-range series displays ranges on the X axis, typically time intervals
29
61
  * with a start and end date.
30
62
  *
31
63
  * @extends {plotOptions.column}
32
64
  * @excluding boostThreshold,crisp,cropThreshold,depth,edgeColor,edgeWidth,
33
- * findNearestPointBy,getExtremesFromAll,grouping,groupPadding,
34
- * negativeColor,pointInterval,pointIntervalUnit,pointPlacement,
65
+ * findNearestPointBy,getExtremesFromAll,negativeColor,
66
+ * pointInterval,pointIntervalUnit,pointPlacement,
35
67
  * pointRange,pointStart,softThreshold,stacking,threshold,data
36
- * @product highcharts highstock
68
+ * @product highcharts highstock gantt
37
69
  * @sample {highcharts} highcharts/demo/x-range/
38
70
  * X-range
39
71
  * @sample {highcharts} highcharts/css/x-range/
@@ -41,18 +73,20 @@ var addEvent = H.addEvent,
41
73
  * @sample {highcharts} highcharts/chart/inverted-xrange/
42
74
  * Inverted X-range
43
75
  * @since 6.0.0
76
+ * @product highcharts highstock
44
77
  * @optionparent plotOptions.xrange
45
78
  */
46
- seriesType('xrange', 'column', {
79
+ , {
80
+
47
81
  /**
48
82
  * A partial fill for each point, typically used to visualize how much of
49
83
  * a task is performed. The partial fill object can be set either on series
50
84
  * or point level.
51
85
  *
52
- * @sample {highcharts} highcharts/demo/x-range
53
- * X-range with partial fill
54
- * @type {Object}
55
- * @product highcharts highstock
86
+ * @sample {highcharts} highcharts/demo/x-range
87
+ * X-range with partial fill
88
+ *
89
+ * @product highcharts highstock gantt
56
90
  * @apioption plotOptions.xrange.partialFill
57
91
  */
58
92
 
@@ -60,22 +94,42 @@ seriesType('xrange', 'column', {
60
94
  * The fill color to be used for partial fills. Defaults to a darker shade
61
95
  * of the point color.
62
96
  *
63
- * @type {Color}
64
- * @product highcharts highstock
97
+ * @type {Highcharts.ColorString}
98
+ * @product highcharts highstock gantt
65
99
  * @apioption plotOptions.xrange.partialFill.fill
66
100
  */
67
101
 
102
+ /**
103
+ * A partial fill for each point, typically used to visualize how much of
104
+ * a task is performed. The partial fill object can be set either on series
105
+ * or point level.
106
+ *
107
+ * @sample {highcharts} highcharts/demo/x-range
108
+ * X-range with partial fill
109
+ * @type {Object}
110
+ * @extends plotOptions.xrange.partialFill
111
+ * @apioption series.xrange.data.partialFill
112
+ */
113
+
114
+
68
115
  /**
69
116
  * In an X-range series, this option makes all points of the same Y-axis
70
117
  * category the same color.
71
118
  */
72
119
  colorByPoint: true,
120
+
73
121
  dataLabels: {
122
+
74
123
  verticalAlign: 'middle',
124
+
75
125
  inside: true,
126
+
76
127
  /**
77
128
  * The default formatter for X-range data labels displays the percentage
78
129
  * of the partial fill amount.
130
+ *
131
+ * @type {Highcharts.FormatterCallbackFunction}
132
+ * @default function () { return (amount * 100) + '%'; }
79
133
  */
80
134
  formatter: function () {
81
135
  var point = this.point,
@@ -89,24 +143,35 @@ seriesType('xrange', 'column', {
89
143
  return (amount * 100) + '%';
90
144
  }
91
145
  },
146
+
92
147
  tooltip: {
148
+
93
149
  headerFormat: '<span style="font-size: 0.85em">{point.x} - {point.x2}</span><br/>',
150
+
94
151
  pointFormat: '<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.yCategory}</b><br/>'
95
152
  },
153
+
96
154
  borderRadius: 3,
155
+
97
156
  pointRange: 0
98
157
 
99
158
  }, {
159
+
100
160
  type: 'xrange',
101
161
  parallelArrays: ['x', 'x2', 'y'],
102
162
  requireSorting: false,
103
163
  animate: seriesTypes.line.prototype.animate,
104
164
  cropShoulder: 1,
105
165
  getExtremesFromAll: true,
106
-
166
+ autoIncrement: H.noop,
107
167
  /**
108
168
  * Borrow the column series metrics, but with swapped axes. This gives free
109
169
  * access to features like groupPadding, grouping, pointWidth etc.
170
+ *
171
+ * @private
172
+ * @function Higcharts.seriesTypes.xrange#getColumnMetrics
173
+ *
174
+ * @return {Highcharts.ColumnMetricsObject}
110
175
  */
111
176
  getColumnMetrics: function () {
112
177
  var metrics,
@@ -132,6 +197,21 @@ seriesType('xrange', 'column', {
132
197
  /**
133
198
  * Override cropData to show a point where x or x2 is outside visible range,
134
199
  * but one of them is inside.
200
+ *
201
+ * @private
202
+ * @function Highcharts.seriesTypes.xrange#cropData
203
+ *
204
+ * @param {Array<number>} xData
205
+ *
206
+ * @param {Array<number>} yData
207
+ *
208
+ * @param {number} min
209
+ *
210
+ * @param {number} max
211
+ *
212
+ * @param {number} [cropShoulder]
213
+ *
214
+ * @return {*}
135
215
  */
136
216
  cropData: function (xData, yData, min, max) {
137
217
 
@@ -145,11 +225,19 @@ seriesType('xrange', 'column', {
145
225
  return crop;
146
226
  },
147
227
 
228
+ /**
229
+ * @private
230
+ * @function Highcharts.seriesTypes.xrange#translatePoint
231
+ *
232
+ * @param {Highcharts.Point} point
233
+ */
148
234
  translatePoint: function (point) {
149
235
  var series = this,
150
236
  xAxis = series.xAxis,
237
+ yAxis = series.yAxis,
151
238
  metrics = series.columnMetrics,
152
- minPointLength = series.options.minPointLength || 0,
239
+ options = series.options,
240
+ minPointLength = options.minPointLength || 0,
153
241
  plotX = point.plotX,
154
242
  posX = pick(point.x2, point.x + (point.len || 0)),
155
243
  plotX2 = xAxis.translate(posX, 0, 0, 0, 1),
@@ -158,8 +246,10 @@ seriesType('xrange', 'column', {
158
246
  shapeArgs,
159
247
  partialFill,
160
248
  inverted = this.chart.inverted,
161
- borderWidth = pick(series.options.borderWidth, 1),
249
+ borderWidth = pick(options.borderWidth, 1),
162
250
  crisper = borderWidth % 2 / 2,
251
+ yOffset = metrics.offset,
252
+ pointHeight = Math.round(metrics.width),
163
253
  dlLeft,
164
254
  dlRight,
165
255
  dlWidth;
@@ -176,11 +266,27 @@ seriesType('xrange', 'column', {
176
266
  plotX = Math.max(plotX, -10);
177
267
  plotX2 = Math.min(Math.max(plotX2, -10), xAxis.len + 10);
178
268
 
269
+ // Handle individual pointWidth
270
+ if (defined(point.options.pointWidth)) {
271
+ yOffset -= (Math.ceil(point.options.pointWidth) - pointHeight) / 2;
272
+ pointHeight = Math.ceil(point.options.pointWidth);
273
+ }
274
+
275
+ // Apply pointPlacement to the Y axis
276
+ if (
277
+ options.pointPlacement &&
278
+ isNumber(point.plotY) &&
279
+ yAxis.categories
280
+ ) {
281
+ point.plotY = yAxis
282
+ .translate(point.y, 0, 1, 0, 1, options.pointPlacement);
283
+ }
284
+
179
285
  point.shapeArgs = {
180
286
  x: Math.floor(Math.min(plotX, plotX2)) + crisper,
181
- y: Math.floor(point.plotY + metrics.offset) + crisper,
287
+ y: Math.floor(point.plotY + yOffset) + crisper,
182
288
  width: Math.round(Math.abs(plotX2 - plotX)),
183
- height: Math.round(metrics.width),
289
+ height: pointHeight,
184
290
  r: series.options.borderRadius
185
291
  };
186
292
 
@@ -203,7 +309,7 @@ seriesType('xrange', 'column', {
203
309
 
204
310
  // Tooltip position
205
311
  point.tooltipPos[0] += inverted ? 0 : length / 2;
206
- point.tooltipPos[1] -= inverted ? length / 2 : metrics.width / 2;
312
+ point.tooltipPos[1] -= inverted ? -length / 2 : metrics.width / 2;
207
313
 
208
314
  // Add a partShapeArgs to the point, based on the shapeArgs property
209
315
  partialFill = point.partialFill;
@@ -237,8 +343,17 @@ seriesType('xrange', 'column', {
237
343
  height: shapeArgs.height
238
344
  };
239
345
  }
346
+
347
+ // Category from Y axis
348
+ if (yAxis.categories) {
349
+ point.category = yAxis.categories[point.y];
350
+ }
240
351
  },
241
352
 
353
+ /**
354
+ * @private
355
+ * @function Highcharts.seriesTypes.xrange#translate
356
+ */
242
357
  translate: function () {
243
358
  columnType.prototype.translate.apply(this, arguments);
244
359
  each(this.points, function (point) {
@@ -252,10 +367,14 @@ seriesType('xrange', 'column', {
252
367
  * This override turns point.graphic into a group containing the original
253
368
  * graphic and an overlay displaying the partial fill.
254
369
  *
255
- * @param {Object} point an instance of Point in the series
256
- * @param {string} verb 'animate' (animates changes) or 'attr' (sets
257
- * options)
258
- * @returns {void}
370
+ * @private
371
+ * @function Highcharts.seriesTypes.xrange#drawPoint
372
+ *
373
+ * @param {Highcharts.Point} point
374
+ * An instance of Point in the series.
375
+ *
376
+ * @param {"animate"|"attr"} verb
377
+ * 'animate' (animates changes) or 'attr' (sets options)
259
378
  */
260
379
  drawPoint: function (point, verb) {
261
380
  var series = this,
@@ -350,6 +469,10 @@ seriesType('xrange', 'column', {
350
469
  }
351
470
  },
352
471
 
472
+ /**
473
+ * @private
474
+ * @function Highcharts.seriesTypes.xrange#drawPoints
475
+ */
353
476
  drawPoints: function () {
354
477
  var series = this,
355
478
  verb = series.getAnimationVerb();
@@ -365,7 +488,10 @@ seriesType('xrange', 'column', {
365
488
  * Returns "animate", or "attr" if the number of points is above the
366
489
  * animation limit.
367
490
  *
368
- * @returns {String}
491
+ * @private
492
+ * @function Highcharts.seriesTypes.xrange#getAnimationVerb
493
+ *
494
+ * @return {string}
369
495
  */
370
496
  getAnimationVerb: function () {
371
497
  return this.chart.pointCount < (this.options.animationLimit || 250) ?
@@ -375,6 +501,12 @@ seriesType('xrange', 'column', {
375
501
  /**
376
502
  * Override to remove stroke from points.
377
503
  * For partial fill.
504
+ *
505
+ * @ignore
506
+ * @private
507
+ * @function Highcharts.seriesTypes.xrange#pointAttribs
508
+ *
509
+ * @return {*}
378
510
  * /
379
511
  pointAttribs: function () {
380
512
  var series = this,
@@ -385,46 +517,67 @@ seriesType('xrange', 'column', {
385
517
  }
386
518
  //*/
387
519
 
388
- // Point class properties
389
- }, {
520
+ }, { // Point class properties
521
+ /**
522
+ * Extend applyOptions so that `colorByPoint` for x-range means that one
523
+ * color is applied per Y axis category.
524
+ *
525
+ * @private
526
+ * @function Highcharts.Point#applyOptions
527
+ *
528
+ * @return {Highcharts.Series}
529
+ */
530
+ applyOptions: function () {
531
+ var point = Point.prototype.applyOptions.apply(this, arguments),
532
+ series = point.series,
533
+ colorByPoint;
534
+
535
+ if (series.options.colorByPoint && !point.options.color) {
536
+ colorByPoint = getColorByCategory(series, point);
537
+
538
+ point.color = colorByPoint.color;
539
+
540
+ if (!point.options.colorIndex) {
541
+ point.colorIndex = colorByPoint.colorIndex;
542
+ }
543
+ }
390
544
 
545
+ return point;
546
+ },
391
547
  /**
392
- * Extend init so that `colorByPoint` for x-range means that one color is
393
- * applied per Y axis category.
548
+ * Extend init to have y default to 0.
549
+ *
550
+ * @private
551
+ * @function Highcharts.Point#init
552
+ *
553
+ * @return {Highcharts.Series}
394
554
  */
395
555
  init: function () {
396
-
397
556
  Point.prototype.init.apply(this, arguments);
398
557
 
399
- var colors,
400
- series = this.series,
401
- colorCount = series.chart.options.chart.colorCount;
402
-
403
558
  if (!this.y) {
404
559
  this.y = 0;
405
560
  }
406
561
 
407
-
408
- if (series.options.colorByPoint) {
409
- colors = series.options.colors || series.chart.options.colors;
410
- colorCount = colors.length;
411
-
412
- if (!this.options.color && colors[this.y % colorCount]) {
413
- this.color = colors[this.y % colorCount];
414
- }
415
- }
416
-
417
- this.colorIndex = pick(this.options.colorIndex, this.y % colorCount);
418
-
419
562
  return this;
420
563
  },
421
564
 
565
+ /**
566
+ * @private
567
+ * @function Highcharts.Point#setState
568
+ */
422
569
  setState: function () {
423
570
  Point.prototype.setState.apply(this, arguments);
424
571
 
425
572
  this.series.drawPoint(this, this.series.getAnimationVerb());
426
573
  },
427
574
 
575
+ /**
576
+ * @private
577
+ * @function Highcharts.Point#getLabelConfig
578
+ *
579
+ * @return {Highcharts.PointLabelObject}
580
+ */
428
581
  // Add x2 and yCategory to the available properties for tooltip formats
429
582
  getLabelConfig: function () {
430
583
  var point = this,
@@ -437,15 +590,19 @@ seriesType('xrange', 'column', {
437
590
  },
438
591
  tooltipDateKeys: ['x', 'x2'],
439
592
 
593
+ /**
594
+ * @private
595
+ * @function Highcharts.Point#isValid
596
+ *
597
+ * @return {boolean}
598
+ */
440
599
  isValid: function () {
441
600
  return typeof this.x === 'number' &&
442
601
  typeof this.x2 === 'number';
443
602
  }
444
603
  });
445
604
 
446
- /**
447
- * Max x2 should be considered in xAxis extremes
448
- */
605
+ // Max x2 should be considered in xAxis extremes
449
606
  addEvent(Axis, 'afterGetSeriesExtremes', function () {
450
607
  var axis = this,
451
608
  axisSeries = axis.series,
@@ -475,13 +632,12 @@ addEvent(Axis, 'afterGetSeriesExtremes', function () {
475
632
  * An `xrange` series. If the [type](#series.xrange.type) option is not
476
633
  * specified, it is inherited from [chart.type](#chart.type).
477
634
  *
478
- * @type {Object}
479
635
  * @extends series,plotOptions.xrange
480
636
  * @excluding boostThreshold,crisp,cropThreshold,depth,edgeColor,edgeWidth,
481
- * findNearestPointBy,getExtremesFromAll,grouping,groupPadding,
637
+ * findNearestPointBy,getExtremesFromAll,
482
638
  * negativeColor,pointInterval,pointIntervalUnit,pointPlacement,
483
639
  * pointRange,pointStart,softThreshold,stacking,threshold
484
- * @product highcharts highstock
640
+ * @product highcharts highstock gantt
485
641
  * @apioption series.xrange
486
642
  */
487
643
 
@@ -508,30 +664,54 @@ addEvent(Axis, 'afterGetSeriesExtremes', function () {
508
664
  * }]
509
665
  * ```
510
666
  *
511
- * @type {Array<Object|Array|Number>}
667
+ * @sample {highcharts} highcharts/chart/reflow-true/
668
+ * Numerical values
669
+ * @sample {highcharts} highcharts/series/data-array-of-arrays/
670
+ * Arrays of numeric x and y
671
+ * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
672
+ * Arrays of datetime x and y
673
+ * @sample {highcharts} highcharts/series/data-array-of-name-value/
674
+ * Arrays of point.name and y
675
+ * @sample {highcharts} highcharts/series/data-array-of-objects/
676
+ * Config objects
677
+ *
678
+ * @type {Array<number|Array<number>|*>}
512
679
  * @extends series.line.data
513
- * @sample {highcharts} highcharts/chart/reflow-true/
514
- * Numerical values
515
- * @sample {highcharts} highcharts/series/data-array-of-arrays/
516
- * Arrays of numeric x and y
517
- * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
518
- * Arrays of datetime x and y
519
- * @sample {highcharts} highcharts/series/data-array-of-name-value/
520
- * Arrays of point.name and y
521
- * @sample {highcharts} highcharts/series/data-array-of-objects/
522
- * Config objects
523
- * @product highcharts highstock
680
+ * @product highcharts highstock gantt
524
681
  * @apioption series.xrange.data
525
682
  */
526
683
 
684
+ /**
685
+ * The starting X value of the range point.
686
+ *
687
+ * @sample {highcharts} highcharts/demo/x-range
688
+ * X-range
689
+ *
690
+ * @type {number}
691
+ * @product highcharts highstock gantt
692
+ * @apioption series.xrange.data.x
693
+ */
694
+
527
695
  /**
528
696
  * The ending X value of the range point.
529
697
  *
530
- * @sample {highcharts} highcharts/demo/x-range
531
- * X-range
532
- * @type {Number}
533
- * @product highcharts highstock
534
- * @apioption plotOptions.xrange.data.x2
698
+ * @sample {highcharts} highcharts/demo/x-range
699
+ * X-range
700
+ *
701
+ * @type {number}
702
+ * @product highcharts highstock gantt
703
+ * @apioption series.xrange.data.x2
704
+ */
705
+
706
+ /**
707
+ * The Y value of the range point.
708
+ *
709
+ * @sample {highcharts} highcharts/demo/x-range
710
+ * X-range
711
+ *
712
+ * @type {number}
713
+ * @product highcharts highstock gantt
714
+ * @apioption series.xrange.data.y
535
715
  */
536
716
 
537
717
  /**
@@ -539,27 +719,27 @@ addEvent(Axis, 'afterGetSeriesExtremes', function () {
539
719
  * a task is performed. The partial fill object can be set either on series
540
720
  * or point level.
541
721
  *
542
- * @sample {highcharts} highcharts/demo/x-range
543
- * X-range with partial fill
544
- * @type {Object|Number}
545
- * @product highcharts highstock
546
- * @apioption plotOptions.xrange.data.partialFill
722
+ * @sample {highcharts} highcharts/demo/x-range
723
+ * X-range with partial fill
724
+ *
725
+ * @product highcharts highstock gantt
726
+ * @apioption series.xrange.data.partialFill
547
727
  */
548
728
 
549
729
  /**
550
730
  * The amount of the X-range point to be filled. Values can be 0-1 and are
551
731
  * converted to percentages in the default data label formatter.
552
732
  *
553
- * @type {Number}
554
- * @product highcharts highstock
555
- * @apioption plotOptions.xrange.data.partialFill.amount
733
+ * @type {number}
734
+ * @product highcharts highstock gantt
735
+ * @apioption series.xrange.data.partialFill.amount
556
736
  */
557
737
 
558
738
  /**
559
739
  * The fill color to be used for partial fills. Defaults to a darker shade
560
740
  * of the point color.
561
741
  *
562
- * @type {Color}
563
- * @product highcharts highstock
564
- * @apioption plotOptions.xrange.data.partialFill.fill
742
+ * @type {Highcharts.ColorString}
743
+ * @product highcharts highstock gantt
744
+ * @apioption series.xrange.data.partialFill.fill
565
745
  */