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.
- package/bower.json +1 -1
- package/css/highcharts.css +17 -0
- package/css/highcharts.scss +14 -0
- package/css/themes/dark-unica.css +17 -0
- package/css/themes/grid-light.css +17 -0
- package/css/themes/sand-signika.css +17 -0
- package/es-modules/indicators/momentum.src.js +1 -1
- package/es-modules/indicators/pivot-points.src.js +6 -1
- package/es-modules/masters/highcharts-gantt.src.js +11 -0
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +12 -0
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +12 -0
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +9 -0
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +2 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +12 -0
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +12 -0
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/mixins/centered-series.js +1 -1
- package/es-modules/mixins/on-series.js +1 -1
- package/es-modules/modules/boost.src.js +22 -14
- package/es-modules/modules/broken-axis.src.js +169 -134
- package/es-modules/modules/data.src.js +2 -2
- package/es-modules/modules/draggable-points.src.js +2257 -0
- package/es-modules/modules/drilldown.src.js +1 -0
- package/es-modules/modules/export-data.src.js +1 -1
- package/es-modules/modules/exporting.src.js +1 -1
- package/es-modules/modules/funnel.src.js +1 -1
- package/es-modules/modules/item-series.src.js +1 -1
- package/es-modules/modules/no-data-to-display.src.js +5 -5
- package/es-modules/modules/oldie.src.js +1 -1
- package/es-modules/modules/overlapping-datalabels.src.js +38 -22
- package/es-modules/modules/parallel-coordinates.src.js +3 -2
- package/es-modules/modules/sankey.src.js +1 -1
- package/es-modules/modules/series-label.src.js +2 -2
- package/es-modules/modules/solid-gauge.src.js +1 -1
- package/es-modules/modules/static-scale.src.js +67 -28
- package/es-modules/modules/streamgraph.src.js +1 -1
- package/es-modules/modules/tilemap.src.js +231 -134
- package/es-modules/modules/variwide.src.js +1 -1
- package/es-modules/modules/vector.src.js +92 -22
- package/es-modules/modules/windbarb.src.js +1 -1
- package/es-modules/modules/xrange.src.js +257 -77
- package/es-modules/parts/AreaSeries.js +77 -77
- package/es-modules/parts/AreaSplineSeries.js +64 -27
- package/es-modules/parts/Axis.js +160 -67
- package/es-modules/parts/BarSeries.js +68 -51
- package/es-modules/parts/CandlestickSeries.js +1 -1
- package/es-modules/parts/Chart.js +31 -55
- package/es-modules/parts/Color.js +29 -18
- package/es-modules/parts/ColumnSeries.js +264 -142
- package/es-modules/parts/DataGrouping.js +9 -6
- package/es-modules/parts/DataLabels.js +261 -210
- package/es-modules/parts/DateTimeAxis.js +26 -7
- package/es-modules/parts/Dynamics.js +5 -2
- package/es-modules/parts/FlagsSeries.js +1 -1
- package/es-modules/parts/Globals.js +1 -1
- package/es-modules/parts/Html.js +64 -12
- package/es-modules/parts/Interaction.js +187 -63
- package/es-modules/parts/Legend.js +7 -3
- package/es-modules/parts/LogarithmicAxis.js +35 -4
- package/es-modules/parts/MSPointer.js +1 -1
- package/es-modules/parts/Navigator.js +27 -5
- package/es-modules/parts/OHLCSeries.js +1 -1
- package/es-modules/parts/Options.js +15 -13
- package/es-modules/parts/OrdinalAxis.js +1 -1
- package/es-modules/parts/PieSeries.js +256 -140
- package/es-modules/parts/PlotBandSeries.experimental.js +1 -1
- package/es-modules/parts/PlotLineOrBand.js +7 -40
- package/es-modules/parts/Point.js +28 -4
- package/es-modules/parts/Pointer.js +8 -6
- package/es-modules/parts/RangeSelector.js +1 -1
- package/es-modules/parts/Responsive.js +82 -36
- package/es-modules/parts/ScatterSeries.js +57 -25
- package/es-modules/parts/ScrollablePlotArea.js +17 -7
- package/es-modules/parts/Scrollbar.js +9 -2
- package/es-modules/parts/Series.js +22 -9
- package/es-modules/parts/SplineSeries.js +51 -29
- package/es-modules/parts/Stacking.js +100 -6
- package/es-modules/parts/StockChart.js +9 -3
- package/es-modules/parts/SvgRenderer.js +15 -10
- package/es-modules/parts/Tick.js +150 -30
- package/es-modules/parts/Time.js +23 -5
- package/es-modules/parts/Tooltip.js +2 -2
- package/es-modules/parts/TouchPointer.js +1 -1
- package/es-modules/parts/Utilities.js +16 -1
- package/es-modules/parts-3d/Axis.js +1 -1
- package/es-modules/parts-3d/Chart.js +1 -1
- package/es-modules/parts-3d/Column.js +1 -1
- package/es-modules/parts-3d/Math.js +1 -1
- package/es-modules/parts-3d/Pie.js +1 -1
- package/es-modules/parts-3d/SVGRenderer.js +1 -1
- package/es-modules/parts-3d/Scatter.js +1 -1
- package/es-modules/parts-3d/Series.js +1 -1
- package/es-modules/parts-3d/VMLRenderer.js +1 -1
- package/es-modules/parts-gantt/ArrowSymbols.js +110 -0
- package/es-modules/parts-gantt/CurrentDateIndicator.js +92 -0
- package/es-modules/parts-gantt/GanttChart.js +111 -0
- package/es-modules/parts-gantt/GanttSeries.js +376 -0
- package/es-modules/parts-gantt/GridAxis.js +965 -0
- package/es-modules/parts-gantt/Pathfinder.js +1247 -0
- package/es-modules/parts-gantt/PathfinderAlgorithms.js +746 -0
- package/es-modules/parts-gantt/Tree.js +146 -0
- package/es-modules/parts-gantt/TreeGrid.js +917 -0
- package/es-modules/parts-map/ColorAxis.js +1 -1
- package/es-modules/parts-map/ColorSeriesMixin.js +1 -1
- package/es-modules/parts-map/GeoJSON.js +1 -1
- package/es-modules/parts-map/HeatmapSeries.js +124 -53
- package/es-modules/parts-map/Map.js +1 -1
- package/es-modules/parts-map/MapAxis.js +1 -1
- package/es-modules/parts-map/MapBubbleSeries.js +1 -1
- package/es-modules/parts-map/MapLineSeries.js +1 -1
- package/es-modules/parts-map/MapNavigation.js +1 -1
- package/es-modules/parts-map/MapPointSeries.js +1 -1
- package/es-modules/parts-map/MapPointer.js +1 -1
- package/es-modules/parts-map/MapSeries.js +2 -2
- package/es-modules/parts-more/AreaRangeSeries.js +80 -38
- package/es-modules/parts-more/AreaSplineRangeSeries.js +1 -1
- package/es-modules/parts-more/BoxPlotSeries.js +1 -1
- package/es-modules/parts-more/BubbleSeries.js +1 -1
- package/es-modules/parts-more/ColumnRangeSeries.js +1 -1
- package/es-modules/parts-more/ErrorBarSeries.js +1 -1
- package/es-modules/parts-more/GaugeSeries.js +1 -1
- package/es-modules/parts-more/Pane.js +2 -1
- package/es-modules/parts-more/Polar.js +1 -1
- package/es-modules/parts-more/PolygonSeries.js +1 -1
- package/es-modules/parts-more/RadialAxis.js +5 -4
- package/es-modules/parts-more/WaterfallSeries.js +1 -1
- package/es-modules/supplemental.docs.js +0 -1955
- package/es-modules/themes/dark-blue.js +1 -1
- package/es-modules/themes/dark-green.js +1 -1
- package/es-modules/themes/dark-unica.js +1 -1
- package/es-modules/themes/gray.js +1 -1
- package/es-modules/themes/grid-light.js +1 -1
- package/es-modules/themes/grid.js +1 -1
- package/es-modules/themes/sand-signika.js +1 -1
- package/es-modules/themes/skies.js +1 -1
- package/highcharts-3d.js +1 -1
- package/highcharts-3d.src.js +10 -10
- package/highcharts-gantt.js +503 -0
- package/highcharts-gantt.js.map +1 -0
- package/highcharts-gantt.src.js +49289 -0
- package/highcharts-more.js +65 -64
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +97 -53
- package/highcharts.js +415 -410
- package/highcharts.js.map +1 -1
- package/highcharts.src.js +2170 -1128
- package/highmaps.js +443 -438
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +1647 -849
- package/highstock.js +553 -548
- package/highstock.js.map +1 -1
- package/highstock.src.js +2398 -1283
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.src.js +1 -1
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/ema.js +1 -1
- package/indicators/ema.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators.js +1 -1
- package/indicators/indicators.src.js +1 -1
- package/indicators/macd.js +1 -1
- package/indicators/macd.src.js +1 -1
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +2 -2
- package/indicators/pivot-points.js +4 -4
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +7 -2
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/volume-by-price.js +1 -1
- package/indicators/volume-by-price.src.js +1 -1
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/js/es-modules/indicators/momentum.src.js +1 -1
- package/js/es-modules/indicators/pivot-points.src.js +6 -1
- package/js/es-modules/masters/highcharts-gantt.src.js +11 -0
- package/js/es-modules/masters/modules/annotations.src.js +1 -1
- package/js/es-modules/masters/modules/arrow-symbols.src.js +12 -0
- package/js/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/js/es-modules/masters/modules/current-date-indicator.src.js +12 -0
- package/js/es-modules/masters/modules/data.src.js +1 -1
- package/js/es-modules/masters/modules/draggable-points.src.js +9 -0
- package/js/es-modules/masters/modules/export-data.src.js +1 -1
- package/js/es-modules/masters/modules/exporting.src.js +1 -1
- package/js/es-modules/masters/modules/funnel.src.js +1 -1
- package/js/es-modules/masters/modules/gantt.src.js +2 -1
- package/js/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/js/es-modules/masters/modules/heatmap.src.js +1 -1
- package/js/es-modules/masters/modules/item-series.src.js +1 -1
- package/js/es-modules/masters/modules/map.src.js +1 -1
- package/js/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/js/es-modules/masters/modules/pathfinder.src.js +12 -0
- package/js/es-modules/masters/modules/sankey.src.js +1 -1
- package/js/es-modules/masters/modules/series-label.src.js +1 -1
- package/js/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/js/es-modules/masters/modules/stock.src.js +1 -1
- package/js/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/js/es-modules/masters/modules/treegrid.src.js +12 -0
- package/js/es-modules/masters/modules/variwide.src.js +1 -1
- package/js/es-modules/masters/modules/vector.src.js +1 -1
- package/js/es-modules/masters/modules/windbarb.src.js +1 -1
- package/js/es-modules/masters/modules/xrange.src.js +1 -1
- package/js/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/js/es-modules/masters/themes/dark-green.src.js +1 -1
- package/js/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/js/es-modules/masters/themes/gray.src.js +1 -1
- package/js/es-modules/masters/themes/grid-light.src.js +1 -1
- package/js/es-modules/masters/themes/grid.src.js +1 -1
- package/js/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/js/es-modules/masters/themes/skies.src.js +1 -1
- package/js/es-modules/mixins/centered-series.js +1 -1
- package/js/es-modules/mixins/on-series.js +1 -1
- package/js/es-modules/modules/boost.src.js +22 -14
- package/js/es-modules/modules/broken-axis.src.js +169 -134
- package/js/es-modules/modules/data.src.js +2 -2
- package/js/es-modules/modules/draggable-points.src.js +2257 -0
- package/js/es-modules/modules/drilldown.src.js +1 -0
- package/js/es-modules/modules/export-data.src.js +1 -1
- package/js/es-modules/modules/exporting.src.js +1 -1
- package/js/es-modules/modules/funnel.src.js +1 -1
- package/js/es-modules/modules/item-series.src.js +1 -1
- package/js/es-modules/modules/no-data-to-display.src.js +5 -5
- package/js/es-modules/modules/oldie.src.js +1 -1
- package/js/es-modules/modules/overlapping-datalabels.src.js +38 -22
- package/js/es-modules/modules/parallel-coordinates.src.js +3 -2
- package/js/es-modules/modules/sankey.src.js +1 -1
- package/js/es-modules/modules/series-label.src.js +2 -2
- package/js/es-modules/modules/solid-gauge.src.js +1 -1
- package/js/es-modules/modules/static-scale.src.js +67 -28
- package/js/es-modules/modules/streamgraph.src.js +1 -1
- package/js/es-modules/modules/tilemap.src.js +231 -134
- package/js/es-modules/modules/variwide.src.js +1 -1
- package/js/es-modules/modules/vector.src.js +92 -22
- package/js/es-modules/modules/windbarb.src.js +1 -1
- package/js/es-modules/modules/xrange.src.js +255 -68
- package/js/es-modules/parts/AreaSeries.js +77 -77
- package/js/es-modules/parts/AreaSplineSeries.js +64 -27
- package/js/es-modules/parts/Axis.js +160 -67
- package/js/es-modules/parts/BarSeries.js +68 -51
- package/js/es-modules/parts/CandlestickSeries.js +1 -1
- package/js/es-modules/parts/Chart.js +31 -55
- package/js/es-modules/parts/Color.js +29 -18
- package/js/es-modules/parts/ColumnSeries.js +231 -123
- package/js/es-modules/parts/DataGrouping.js +9 -6
- package/js/es-modules/parts/DataLabels.js +230 -182
- package/js/es-modules/parts/DateTimeAxis.js +26 -7
- package/js/es-modules/parts/Dynamics.js +5 -2
- package/js/es-modules/parts/FlagsSeries.js +1 -1
- package/js/es-modules/parts/Globals.js +1 -1
- package/js/es-modules/parts/Html.js +64 -12
- package/js/es-modules/parts/Interaction.js +178 -61
- package/js/es-modules/parts/Legend.js +7 -3
- package/js/es-modules/parts/LogarithmicAxis.js +35 -4
- package/js/es-modules/parts/MSPointer.js +1 -1
- package/js/es-modules/parts/Navigator.js +27 -5
- package/js/es-modules/parts/OHLCSeries.js +1 -1
- package/js/es-modules/parts/Options.js +13 -12
- package/js/es-modules/parts/OrdinalAxis.js +1 -1
- package/js/es-modules/parts/PieSeries.js +245 -132
- package/js/es-modules/parts/PlotBandSeries.experimental.js +1 -1
- package/js/es-modules/parts/PlotLineOrBand.js +7 -40
- package/js/es-modules/parts/Point.js +28 -4
- package/js/es-modules/parts/Pointer.js +8 -6
- package/js/es-modules/parts/RangeSelector.js +1 -1
- package/js/es-modules/parts/Responsive.js +82 -36
- package/js/es-modules/parts/ScatterSeries.js +56 -25
- package/js/es-modules/parts/ScrollablePlotArea.js +17 -7
- package/js/es-modules/parts/Scrollbar.js +9 -2
- package/js/es-modules/parts/Series.js +22 -9
- package/js/es-modules/parts/SplineSeries.js +51 -29
- package/js/es-modules/parts/Stacking.js +100 -6
- package/js/es-modules/parts/StockChart.js +9 -3
- package/js/es-modules/parts/SvgRenderer.js +15 -10
- package/js/es-modules/parts/Tick.js +150 -30
- package/js/es-modules/parts/Time.js +23 -5
- package/js/es-modules/parts/Tooltip.js +2 -2
- package/js/es-modules/parts/TouchPointer.js +1 -1
- package/js/es-modules/parts/Utilities.js +16 -1
- package/js/es-modules/parts-3d/Axis.js +1 -1
- package/js/es-modules/parts-3d/Chart.js +1 -1
- package/js/es-modules/parts-3d/Column.js +1 -1
- package/js/es-modules/parts-3d/Math.js +1 -1
- package/js/es-modules/parts-3d/Pie.js +1 -1
- package/js/es-modules/parts-3d/SVGRenderer.js +1 -1
- package/js/es-modules/parts-3d/Scatter.js +1 -1
- package/js/es-modules/parts-3d/Series.js +1 -1
- package/js/es-modules/parts-3d/VMLRenderer.js +1 -1
- package/js/es-modules/parts-gantt/ArrowSymbols.js +110 -0
- package/js/es-modules/parts-gantt/CurrentDateIndicator.js +92 -0
- package/js/es-modules/parts-gantt/GanttChart.js +111 -0
- package/js/es-modules/parts-gantt/GanttSeries.js +371 -0
- package/js/es-modules/parts-gantt/GridAxis.js +962 -0
- package/js/es-modules/parts-gantt/Pathfinder.js +1225 -0
- package/js/es-modules/parts-gantt/PathfinderAlgorithms.js +746 -0
- package/js/es-modules/parts-gantt/Tree.js +146 -0
- package/js/es-modules/parts-gantt/TreeGrid.js +891 -0
- package/js/es-modules/parts-map/ColorAxis.js +1 -1
- package/js/es-modules/parts-map/ColorSeriesMixin.js +1 -1
- package/js/es-modules/parts-map/GeoJSON.js +1 -1
- package/js/es-modules/parts-map/HeatmapSeries.js +122 -52
- package/js/es-modules/parts-map/Map.js +1 -1
- package/js/es-modules/parts-map/MapAxis.js +1 -1
- package/js/es-modules/parts-map/MapBubbleSeries.js +1 -1
- package/js/es-modules/parts-map/MapLineSeries.js +1 -1
- package/js/es-modules/parts-map/MapNavigation.js +1 -1
- package/js/es-modules/parts-map/MapPointSeries.js +1 -1
- package/js/es-modules/parts-map/MapPointer.js +1 -1
- package/js/es-modules/parts-map/MapSeries.js +2 -2
- package/js/es-modules/parts-more/AreaRangeSeries.js +80 -38
- package/js/es-modules/parts-more/AreaSplineRangeSeries.js +1 -1
- package/js/es-modules/parts-more/BoxPlotSeries.js +1 -1
- package/js/es-modules/parts-more/BubbleSeries.js +1 -1
- package/js/es-modules/parts-more/ColumnRangeSeries.js +1 -1
- package/js/es-modules/parts-more/ErrorBarSeries.js +1 -1
- package/js/es-modules/parts-more/GaugeSeries.js +1 -1
- package/js/es-modules/parts-more/Pane.js +2 -1
- package/js/es-modules/parts-more/Polar.js +1 -1
- package/js/es-modules/parts-more/PolygonSeries.js +1 -1
- package/js/es-modules/parts-more/RadialAxis.js +5 -4
- package/js/es-modules/parts-more/WaterfallSeries.js +1 -1
- package/js/es-modules/supplemental.docs.js +0 -1955
- package/js/es-modules/themes/dark-blue.js +1 -1
- package/js/es-modules/themes/dark-green.js +1 -1
- package/js/es-modules/themes/dark-unica.js +1 -1
- package/js/es-modules/themes/gray.js +1 -1
- package/js/es-modules/themes/grid-light.js +1 -1
- package/js/es-modules/themes/grid.js +1 -1
- package/js/es-modules/themes/sand-signika.js +1 -1
- package/js/es-modules/themes/skies.js +1 -1
- package/js/highcharts-3d.js +1 -1
- package/js/highcharts-3d.src.js +10 -10
- package/js/highcharts-gantt.js +480 -0
- package/js/highcharts-gantt.js.map +1 -0
- package/js/highcharts-gantt.src.js +47011 -0
- package/js/highcharts-more.js +62 -61
- package/js/highcharts-more.js.map +1 -1
- package/js/highcharts-more.src.js +97 -53
- package/js/highcharts.js +394 -390
- package/js/highcharts.js.map +1 -1
- package/js/highcharts.src.js +2083 -1070
- package/js/highmaps.js +420 -416
- package/js/highmaps.js.map +1 -1
- package/js/highmaps.src.js +1569 -798
- package/js/highstock.js +526 -520
- package/js/highstock.js.map +1 -1
- package/js/highstock.src.js +2311 -1225
- package/js/indicators/accumulation-distribution.js +1 -1
- package/js/indicators/accumulation-distribution.src.js +1 -1
- package/js/indicators/atr.js +1 -1
- package/js/indicators/atr.src.js +1 -1
- package/js/indicators/bollinger-bands.js +1 -1
- package/js/indicators/bollinger-bands.src.js +1 -1
- package/js/indicators/cci.js +1 -1
- package/js/indicators/cci.src.js +1 -1
- package/js/indicators/cmf.js +1 -1
- package/js/indicators/cmf.src.js +1 -1
- package/js/indicators/ema.js +1 -1
- package/js/indicators/ema.src.js +1 -1
- package/js/indicators/ichimoku-kinko-hyo.js +1 -1
- package/js/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/js/indicators/indicators.js +1 -1
- package/js/indicators/indicators.src.js +1 -1
- package/js/indicators/macd.js +1 -1
- package/js/indicators/macd.src.js +1 -1
- package/js/indicators/mfi.js +1 -1
- package/js/indicators/mfi.src.js +1 -1
- package/js/indicators/momentum.js +1 -1
- package/js/indicators/momentum.src.js +2 -2
- package/js/indicators/pivot-points.js +4 -4
- package/js/indicators/pivot-points.js.map +1 -1
- package/js/indicators/pivot-points.src.js +7 -2
- package/js/indicators/price-envelopes.js +1 -1
- package/js/indicators/price-envelopes.src.js +1 -1
- package/js/indicators/psar.js +1 -1
- package/js/indicators/psar.src.js +1 -1
- package/js/indicators/roc.js +1 -1
- package/js/indicators/roc.src.js +1 -1
- package/js/indicators/rsi.js +1 -1
- package/js/indicators/rsi.src.js +1 -1
- package/js/indicators/stochastic.js +1 -1
- package/js/indicators/stochastic.src.js +1 -1
- package/js/indicators/volume-by-price.js +1 -1
- package/js/indicators/volume-by-price.src.js +1 -1
- package/js/indicators/vwap.js +1 -1
- package/js/indicators/vwap.src.js +1 -1
- package/js/indicators/wma.js +1 -1
- package/js/indicators/wma.src.js +1 -1
- package/js/indicators/zigzag.js +1 -1
- package/js/indicators/zigzag.src.js +1 -1
- package/js/modules/accessibility.js +1 -1
- package/js/modules/accessibility.src.js +1 -1
- package/js/modules/annotations.js +2 -2
- package/js/modules/annotations.src.js +2 -2
- package/js/modules/arrow-symbols.js +13 -0
- package/js/modules/arrow-symbols.js.map +1 -0
- package/js/modules/arrow-symbols.src.js +138 -0
- package/js/modules/boost-canvas.js +1 -1
- package/js/modules/boost-canvas.src.js +1 -1
- package/js/modules/boost.js +43 -43
- package/js/modules/boost.js.map +1 -1
- package/js/modules/boost.src.js +23 -15
- package/js/modules/broken-axis.js +11 -10
- package/js/modules/broken-axis.js.map +1 -1
- package/js/modules/broken-axis.src.js +171 -136
- package/js/modules/bullet.js +1 -1
- package/js/modules/bullet.src.js +1 -1
- package/js/modules/current-date-indicator.js +13 -0
- package/js/modules/current-date-indicator.js.map +1 -0
- package/js/modules/current-date-indicator.src.js +120 -0
- package/js/modules/data.js +2 -2
- package/js/modules/data.src.js +4 -4
- package/js/modules/drag-panes.js +1 -1
- package/js/modules/drag-panes.src.js +1 -1
- package/js/modules/draggable-points.js +38 -0
- package/js/modules/draggable-points.js.map +1 -0
- package/js/modules/draggable-points.src.js +2281 -0
- package/js/modules/drilldown.js +1 -1
- package/js/modules/drilldown.js.map +1 -1
- package/js/modules/drilldown.src.js +2 -1
- package/js/modules/export-data.js +2 -2
- package/js/modules/export-data.src.js +3 -3
- package/js/modules/exporting.js +2 -2
- package/js/modules/exporting.src.js +3 -3
- package/js/modules/funnel.js +2 -2
- package/js/modules/funnel.src.js +3 -3
- package/js/modules/gantt.js +80 -18
- package/js/modules/gantt.js.map +1 -1
- package/js/modules/gantt.src.js +5490 -372
- package/js/modules/grid-axis.js +15 -11
- package/js/modules/grid-axis.js.map +1 -1
- package/js/modules/grid-axis.src.js +731 -293
- package/js/modules/heatmap.js +2 -2
- package/js/modules/heatmap.js.map +1 -1
- package/js/modules/heatmap.src.js +126 -56
- package/js/modules/histogram-bellcurve.js +1 -1
- package/js/modules/histogram-bellcurve.src.js +1 -1
- package/js/modules/item-series.js +2 -2
- package/js/modules/item-series.src.js +3 -3
- package/js/modules/map.js +2 -2
- package/js/modules/map.js.map +1 -1
- package/js/modules/map.src.js +137 -67
- package/js/modules/no-data-to-display.js +1 -1
- package/js/modules/no-data-to-display.src.js +6 -6
- package/js/modules/offline-exporting.js +2 -2
- package/js/modules/offline-exporting.src.js +2 -2
- package/js/modules/oldie.js +2 -2
- package/js/modules/oldie.src.js +3 -3
- package/js/modules/overlapping-datalabels.js +2 -2
- package/js/modules/overlapping-datalabels.src.js +2 -2
- package/js/modules/parallel-coordinates.js +9 -9
- package/js/modules/parallel-coordinates.js.map +1 -1
- package/js/modules/parallel-coordinates.src.js +4 -3
- package/js/modules/pareto.js +1 -1
- package/js/modules/pareto.src.js +1 -1
- package/js/modules/pathfinder.js +34 -0
- package/js/modules/pathfinder.js.map +1 -0
- package/js/modules/pathfinder.src.js +2106 -0
- package/js/modules/pattern-fill.js +1 -1
- package/js/modules/pattern-fill.src.js +1 -1
- package/js/modules/sankey.js +2 -2
- package/js/modules/sankey.src.js +3 -3
- package/js/modules/series-label.js +2 -2
- package/js/modules/series-label.src.js +4 -4
- package/js/modules/solid-gauge.js +2 -2
- package/js/modules/solid-gauge.src.js +3 -3
- package/js/modules/static-scale.js +3 -3
- package/js/modules/static-scale.js.map +1 -1
- package/js/modules/static-scale.src.js +65 -26
- package/js/modules/stock.js +135 -134
- package/js/modules/stock.js.map +1 -1
- package/js/modules/stock.src.js +230 -157
- package/js/modules/streamgraph.js +2 -2
- package/js/modules/streamgraph.src.js +3 -3
- package/js/modules/sunburst.js +1 -1
- package/js/modules/sunburst.src.js +1 -1
- package/js/modules/tilemap.js +1 -1
- package/js/modules/tilemap.js.map +1 -1
- package/js/modules/tilemap.src.js +355 -188
- package/js/modules/treegrid.js +51 -0
- package/js/modules/treegrid.js.map +1 -0
- package/js/modules/treegrid.src.js +2759 -0
- package/js/modules/treemap.js +1 -1
- package/js/modules/treemap.src.js +1 -1
- package/js/modules/variable-pie.js +1 -1
- package/js/modules/variable-pie.src.js +1 -1
- package/js/modules/variwide.js +2 -2
- package/js/modules/variwide.src.js +3 -3
- package/js/modules/vector.js +2 -2
- package/js/modules/vector.js.map +1 -1
- package/js/modules/vector.src.js +94 -24
- package/js/modules/windbarb.js +2 -2
- package/js/modules/windbarb.src.js +4 -4
- package/js/modules/wordcloud.js +1 -1
- package/js/modules/wordcloud.src.js +1 -1
- package/js/modules/xrange.js +11 -10
- package/js/modules/xrange.js.map +1 -1
- package/js/modules/xrange.src.js +257 -70
- package/js/themes/avocado.js +1 -1
- package/js/themes/avocado.src.js +1 -1
- package/js/themes/dark-blue.js +2 -2
- package/js/themes/dark-blue.src.js +3 -3
- package/js/themes/dark-green.js +2 -2
- package/js/themes/dark-green.src.js +3 -3
- package/js/themes/dark-unica.js +2 -2
- package/js/themes/dark-unica.src.js +3 -3
- package/js/themes/gray.js +2 -2
- package/js/themes/gray.src.js +3 -3
- package/js/themes/grid-light.js +2 -2
- package/js/themes/grid-light.src.js +3 -3
- package/js/themes/grid.js +2 -2
- package/js/themes/grid.src.js +3 -3
- package/js/themes/sand-signika.js +2 -2
- package/js/themes/sand-signika.src.js +3 -3
- package/js/themes/skies.js +2 -2
- package/js/themes/skies.src.js +3 -3
- package/js/themes/sunset.js +1 -1
- package/js/themes/sunset.src.js +1 -1
- package/modules/accessibility.js +1 -1
- package/modules/accessibility.src.js +1 -1
- package/modules/annotations.js +2 -2
- package/modules/annotations.src.js +2 -2
- package/modules/arrow-symbols.js +13 -0
- package/modules/arrow-symbols.js.map +1 -0
- package/modules/arrow-symbols.src.js +138 -0
- package/modules/boost-canvas.js +1 -1
- package/modules/boost-canvas.src.js +1 -1
- package/modules/boost.js +36 -36
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +23 -15
- package/modules/broken-axis.js +11 -10
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +171 -136
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/current-date-indicator.js +13 -0
- package/modules/current-date-indicator.js.map +1 -0
- package/modules/current-date-indicator.src.js +120 -0
- package/modules/data.js +2 -2
- package/modules/data.src.js +4 -4
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +38 -0
- package/modules/draggable-points.js.map +1 -0
- package/modules/draggable-points.src.js +2281 -0
- package/modules/drilldown.js +1 -1
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +2 -1
- package/modules/export-data.js +2 -2
- package/modules/export-data.src.js +3 -3
- package/modules/exporting.js +2 -2
- package/modules/exporting.src.js +3 -3
- package/modules/funnel.js +2 -2
- package/modules/funnel.src.js +3 -3
- package/modules/gantt.js +83 -19
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +5553 -379
- package/modules/grid-axis.js +16 -11
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +732 -293
- package/modules/heatmap.js +2 -2
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +128 -57
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/item-series.js +2 -2
- package/modules/item-series.src.js +3 -3
- package/modules/map.js +2 -2
- package/modules/map.js.map +1 -1
- package/modules/map.src.js +139 -68
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +6 -6
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +2 -2
- package/modules/oldie.js +2 -2
- package/modules/oldie.src.js +3 -3
- package/modules/overlapping-datalabels.js +2 -2
- package/modules/overlapping-datalabels.src.js +2 -2
- package/modules/parallel-coordinates.js +8 -8
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +4 -3
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +35 -0
- package/modules/pathfinder.js.map +1 -0
- package/modules/pathfinder.src.js +2128 -0
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.src.js +1 -1
- package/modules/sankey.js +2 -2
- package/modules/sankey.src.js +3 -3
- package/modules/series-label.js +2 -2
- package/modules/series-label.src.js +4 -4
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.src.js +3 -3
- package/modules/static-scale.js +3 -3
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +65 -26
- package/modules/stock.js +142 -142
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +230 -157
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.src.js +3 -3
- package/modules/sunburst.js +1 -1
- package/modules/sunburst.src.js +1 -1
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +357 -189
- package/modules/treegrid.js +52 -0
- package/modules/treegrid.js.map +1 -0
- package/modules/treegrid.src.js +2797 -0
- package/modules/treemap.js +1 -1
- package/modules/treemap.src.js +1 -1
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +2 -2
- package/modules/variwide.src.js +3 -3
- package/modules/vector.js +2 -2
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +94 -24
- package/modules/windbarb.js +2 -2
- package/modules/windbarb.src.js +4 -4
- package/modules/wordcloud.js +1 -1
- package/modules/wordcloud.src.js +1 -1
- package/modules/xrange.js +12 -11
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +259 -79
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/dark-blue.js +2 -2
- package/themes/dark-blue.src.js +3 -3
- package/themes/dark-green.js +2 -2
- package/themes/dark-green.src.js +3 -3
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.src.js +3 -3
- package/themes/gray.js +2 -2
- package/themes/gray.src.js +3 -3
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.src.js +3 -3
- package/themes/grid.js +2 -2
- package/themes/grid.src.js +3 -3
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.src.js +3 -3
- package/themes/skies.js +2 -2
- package/themes/skies.src.js +3 -3
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* X-range series module
|
|
3
3
|
*
|
|
4
|
-
* (c) 2010-
|
|
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,
|
|
34
|
-
*
|
|
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
|
-
|
|
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
|
|
53
|
-
*
|
|
54
|
-
*
|
|
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 {
|
|
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
|
-
|
|
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(
|
|
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 +
|
|
287
|
+
y: Math.floor(point.plotY + yOffset) + crisper,
|
|
182
288
|
width: Math.round(Math.abs(plotX2 - plotX)),
|
|
183
|
-
height:
|
|
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
|
-
* @
|
|
256
|
-
* @
|
|
257
|
-
*
|
|
258
|
-
* @
|
|
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,
|
|
@@ -324,6 +443,10 @@ seriesType('xrange', 'column', {
|
|
|
324
443
|
}
|
|
325
444
|
},
|
|
326
445
|
|
|
446
|
+
/**
|
|
447
|
+
* @private
|
|
448
|
+
* @function Highcharts.seriesTypes.xrange#drawPoints
|
|
449
|
+
*/
|
|
327
450
|
drawPoints: function () {
|
|
328
451
|
var series = this,
|
|
329
452
|
verb = series.getAnimationVerb();
|
|
@@ -339,7 +462,10 @@ seriesType('xrange', 'column', {
|
|
|
339
462
|
* Returns "animate", or "attr" if the number of points is above the
|
|
340
463
|
* animation limit.
|
|
341
464
|
*
|
|
342
|
-
* @
|
|
465
|
+
* @private
|
|
466
|
+
* @function Highcharts.seriesTypes.xrange#getAnimationVerb
|
|
467
|
+
*
|
|
468
|
+
* @return {string}
|
|
343
469
|
*/
|
|
344
470
|
getAnimationVerb: function () {
|
|
345
471
|
return this.chart.pointCount < (this.options.animationLimit || 250) ?
|
|
@@ -349,6 +475,12 @@ seriesType('xrange', 'column', {
|
|
|
349
475
|
/**
|
|
350
476
|
* Override to remove stroke from points.
|
|
351
477
|
* For partial fill.
|
|
478
|
+
*
|
|
479
|
+
* @ignore
|
|
480
|
+
* @private
|
|
481
|
+
* @function Highcharts.seriesTypes.xrange#pointAttribs
|
|
482
|
+
*
|
|
483
|
+
* @return {*}
|
|
352
484
|
* /
|
|
353
485
|
pointAttribs: function () {
|
|
354
486
|
var series = this,
|
|
@@ -359,37 +491,65 @@ seriesType('xrange', 'column', {
|
|
|
359
491
|
}
|
|
360
492
|
//*/
|
|
361
493
|
|
|
362
|
-
// Point class properties
|
|
363
|
-
|
|
494
|
+
}, { // Point class properties
|
|
495
|
+
/**
|
|
496
|
+
* Extend applyOptions so that `colorByPoint` for x-range means that one
|
|
497
|
+
* color is applied per Y axis category.
|
|
498
|
+
*
|
|
499
|
+
* @private
|
|
500
|
+
* @function Highcharts.Point#applyOptions
|
|
501
|
+
*
|
|
502
|
+
* @return {Highcharts.Series}
|
|
503
|
+
*/
|
|
504
|
+
applyOptions: function () {
|
|
505
|
+
var point = Point.prototype.applyOptions.apply(this, arguments),
|
|
506
|
+
series = point.series,
|
|
507
|
+
colorByPoint;
|
|
364
508
|
|
|
509
|
+
if (series.options.colorByPoint && !point.options.color) {
|
|
510
|
+
colorByPoint = getColorByCategory(series, point);
|
|
511
|
+
|
|
512
|
+
if (!point.options.colorIndex) {
|
|
513
|
+
point.colorIndex = colorByPoint.colorIndex;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
return point;
|
|
518
|
+
},
|
|
365
519
|
/**
|
|
366
|
-
* Extend init
|
|
367
|
-
*
|
|
520
|
+
* Extend init to have y default to 0.
|
|
521
|
+
*
|
|
522
|
+
* @private
|
|
523
|
+
* @function Highcharts.Point#init
|
|
524
|
+
*
|
|
525
|
+
* @return {Highcharts.Series}
|
|
368
526
|
*/
|
|
369
527
|
init: function () {
|
|
370
|
-
|
|
371
528
|
Point.prototype.init.apply(this, arguments);
|
|
372
529
|
|
|
373
|
-
var colors,
|
|
374
|
-
series = this.series,
|
|
375
|
-
colorCount = series.chart.options.chart.colorCount;
|
|
376
|
-
|
|
377
530
|
if (!this.y) {
|
|
378
531
|
this.y = 0;
|
|
379
532
|
}
|
|
380
533
|
|
|
381
|
-
|
|
382
|
-
this.colorIndex = pick(this.options.colorIndex, this.y % colorCount);
|
|
383
|
-
|
|
384
534
|
return this;
|
|
385
535
|
},
|
|
386
536
|
|
|
537
|
+
/**
|
|
538
|
+
* @private
|
|
539
|
+
* @function Highcharts.Point#setState
|
|
540
|
+
*/
|
|
387
541
|
setState: function () {
|
|
388
542
|
Point.prototype.setState.apply(this, arguments);
|
|
389
543
|
|
|
390
544
|
this.series.drawPoint(this, this.series.getAnimationVerb());
|
|
391
545
|
},
|
|
392
546
|
|
|
547
|
+
/**
|
|
548
|
+
* @private
|
|
549
|
+
* @function Highcharts.Point#getLabelConfig
|
|
550
|
+
*
|
|
551
|
+
* @return {Highcharts.PointLabelObject}
|
|
552
|
+
*/
|
|
393
553
|
// Add x2 and yCategory to the available properties for tooltip formats
|
|
394
554
|
getLabelConfig: function () {
|
|
395
555
|
var point = this,
|
|
@@ -402,15 +562,19 @@ seriesType('xrange', 'column', {
|
|
|
402
562
|
},
|
|
403
563
|
tooltipDateKeys: ['x', 'x2'],
|
|
404
564
|
|
|
565
|
+
/**
|
|
566
|
+
* @private
|
|
567
|
+
* @function Highcharts.Point#isValid
|
|
568
|
+
*
|
|
569
|
+
* @return {boolean}
|
|
570
|
+
*/
|
|
405
571
|
isValid: function () {
|
|
406
572
|
return typeof this.x === 'number' &&
|
|
407
573
|
typeof this.x2 === 'number';
|
|
408
574
|
}
|
|
409
575
|
});
|
|
410
576
|
|
|
411
|
-
|
|
412
|
-
* Max x2 should be considered in xAxis extremes
|
|
413
|
-
*/
|
|
577
|
+
// Max x2 should be considered in xAxis extremes
|
|
414
578
|
addEvent(Axis, 'afterGetSeriesExtremes', function () {
|
|
415
579
|
var axis = this,
|
|
416
580
|
axisSeries = axis.series,
|
|
@@ -440,13 +604,12 @@ addEvent(Axis, 'afterGetSeriesExtremes', function () {
|
|
|
440
604
|
* An `xrange` series. If the [type](#series.xrange.type) option is not
|
|
441
605
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
442
606
|
*
|
|
443
|
-
* @type {Object}
|
|
444
607
|
* @extends series,plotOptions.xrange
|
|
445
608
|
* @excluding boostThreshold,crisp,cropThreshold,depth,edgeColor,edgeWidth,
|
|
446
|
-
* findNearestPointBy,getExtremesFromAll,
|
|
609
|
+
* findNearestPointBy,getExtremesFromAll,
|
|
447
610
|
* negativeColor,pointInterval,pointIntervalUnit,pointPlacement,
|
|
448
611
|
* pointRange,pointStart,softThreshold,stacking,threshold
|
|
449
|
-
* @product highcharts highstock
|
|
612
|
+
* @product highcharts highstock gantt
|
|
450
613
|
* @apioption series.xrange
|
|
451
614
|
*/
|
|
452
615
|
|
|
@@ -473,30 +636,54 @@ addEvent(Axis, 'afterGetSeriesExtremes', function () {
|
|
|
473
636
|
* }]
|
|
474
637
|
* ```
|
|
475
638
|
*
|
|
476
|
-
* @
|
|
639
|
+
* @sample {highcharts} highcharts/chart/reflow-true/
|
|
640
|
+
* Numerical values
|
|
641
|
+
* @sample {highcharts} highcharts/series/data-array-of-arrays/
|
|
642
|
+
* Arrays of numeric x and y
|
|
643
|
+
* @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
|
|
644
|
+
* Arrays of datetime x and y
|
|
645
|
+
* @sample {highcharts} highcharts/series/data-array-of-name-value/
|
|
646
|
+
* Arrays of point.name and y
|
|
647
|
+
* @sample {highcharts} highcharts/series/data-array-of-objects/
|
|
648
|
+
* Config objects
|
|
649
|
+
*
|
|
650
|
+
* @type {Array<number|Array<number>|*>}
|
|
477
651
|
* @extends series.line.data
|
|
478
|
-
* @
|
|
479
|
-
* Numerical values
|
|
480
|
-
* @sample {highcharts} highcharts/series/data-array-of-arrays/
|
|
481
|
-
* Arrays of numeric x and y
|
|
482
|
-
* @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
|
|
483
|
-
* Arrays of datetime x and y
|
|
484
|
-
* @sample {highcharts} highcharts/series/data-array-of-name-value/
|
|
485
|
-
* Arrays of point.name and y
|
|
486
|
-
* @sample {highcharts} highcharts/series/data-array-of-objects/
|
|
487
|
-
* Config objects
|
|
488
|
-
* @product highcharts highstock
|
|
652
|
+
* @product highcharts highstock gantt
|
|
489
653
|
* @apioption series.xrange.data
|
|
490
654
|
*/
|
|
491
655
|
|
|
656
|
+
/**
|
|
657
|
+
* The starting X value of the range point.
|
|
658
|
+
*
|
|
659
|
+
* @sample {highcharts} highcharts/demo/x-range
|
|
660
|
+
* X-range
|
|
661
|
+
*
|
|
662
|
+
* @type {number}
|
|
663
|
+
* @product highcharts highstock gantt
|
|
664
|
+
* @apioption series.xrange.data.x
|
|
665
|
+
*/
|
|
666
|
+
|
|
492
667
|
/**
|
|
493
668
|
* The ending X value of the range point.
|
|
494
669
|
*
|
|
495
|
-
* @sample
|
|
496
|
-
*
|
|
497
|
-
*
|
|
498
|
-
* @
|
|
499
|
-
* @
|
|
670
|
+
* @sample {highcharts} highcharts/demo/x-range
|
|
671
|
+
* X-range
|
|
672
|
+
*
|
|
673
|
+
* @type {number}
|
|
674
|
+
* @product highcharts highstock gantt
|
|
675
|
+
* @apioption series.xrange.data.x2
|
|
676
|
+
*/
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* The Y value of the range point.
|
|
680
|
+
*
|
|
681
|
+
* @sample {highcharts} highcharts/demo/x-range
|
|
682
|
+
* X-range
|
|
683
|
+
*
|
|
684
|
+
* @type {number}
|
|
685
|
+
* @product highcharts highstock gantt
|
|
686
|
+
* @apioption series.xrange.data.y
|
|
500
687
|
*/
|
|
501
688
|
|
|
502
689
|
/**
|
|
@@ -504,27 +691,27 @@ addEvent(Axis, 'afterGetSeriesExtremes', function () {
|
|
|
504
691
|
* a task is performed. The partial fill object can be set either on series
|
|
505
692
|
* or point level.
|
|
506
693
|
*
|
|
507
|
-
* @sample
|
|
508
|
-
*
|
|
509
|
-
*
|
|
510
|
-
* @product highcharts highstock
|
|
511
|
-
* @apioption
|
|
694
|
+
* @sample {highcharts} highcharts/demo/x-range
|
|
695
|
+
* X-range with partial fill
|
|
696
|
+
*
|
|
697
|
+
* @product highcharts highstock gantt
|
|
698
|
+
* @apioption series.xrange.data.partialFill
|
|
512
699
|
*/
|
|
513
700
|
|
|
514
701
|
/**
|
|
515
702
|
* The amount of the X-range point to be filled. Values can be 0-1 and are
|
|
516
703
|
* converted to percentages in the default data label formatter.
|
|
517
704
|
*
|
|
518
|
-
* @type {
|
|
519
|
-
* @product highcharts highstock
|
|
520
|
-
* @apioption
|
|
705
|
+
* @type {number}
|
|
706
|
+
* @product highcharts highstock gantt
|
|
707
|
+
* @apioption series.xrange.data.partialFill.amount
|
|
521
708
|
*/
|
|
522
709
|
|
|
523
710
|
/**
|
|
524
711
|
* The fill color to be used for partial fills. Defaults to a darker shade
|
|
525
712
|
* of the point color.
|
|
526
713
|
*
|
|
527
|
-
* @type {
|
|
528
|
-
* @product highcharts highstock
|
|
529
|
-
* @apioption
|
|
714
|
+
* @type {Highcharts.ColorString}
|
|
715
|
+
* @product highcharts highstock gantt
|
|
716
|
+
* @apioption series.xrange.data.partialFill.fill
|
|
530
717
|
*/
|