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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (c) 2010-
|
|
2
|
+
* (c) 2010-2018 Torstein Honsi
|
|
3
3
|
*
|
|
4
4
|
* License: www.highcharts.com/license
|
|
5
5
|
*/
|
|
@@ -420,7 +420,10 @@ wrap(Axis.prototype, 'getPlotLinePath', function (
|
|
|
420
420
|
x1 = x2 = Math.round(transVal + axis.transB);
|
|
421
421
|
|
|
422
422
|
// outside plot area
|
|
423
|
-
if (
|
|
423
|
+
if (
|
|
424
|
+
force !== 'pass' &&
|
|
425
|
+
(x1 < axisLeft || x1 > axisLeft + axis.width)
|
|
426
|
+
) {
|
|
424
427
|
if (force) {
|
|
425
428
|
x1 = x2 = Math.min(
|
|
426
429
|
Math.max(axisLeft, x1),
|
|
@@ -443,7 +446,10 @@ wrap(Axis.prototype, 'getPlotLinePath', function (
|
|
|
443
446
|
y1 = y2 = Math.round(axisTop + axis.height - transVal);
|
|
444
447
|
|
|
445
448
|
// outside plot area
|
|
446
|
-
if (
|
|
449
|
+
if (
|
|
450
|
+
force !== 'pass' &&
|
|
451
|
+
(y1 < axisTop || y1 > axisTop + axis.height)
|
|
452
|
+
) {
|
|
447
453
|
if (force) {
|
|
448
454
|
y1 = y2 = Math.min(
|
|
449
455
|
Math.max(axisTop, y1),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (c) 2010-
|
|
2
|
+
* (c) 2010-2018 Torstein Honsi
|
|
3
3
|
*
|
|
4
4
|
* License: www.highcharts.com/license
|
|
5
5
|
*/
|
|
@@ -1473,6 +1473,7 @@ extend(SVGElement.prototype, /** @lends Highcharts.SVGElement.prototype */ {
|
|
|
1473
1473
|
toggleTextShadowShim,
|
|
1474
1474
|
cache = renderer.cache,
|
|
1475
1475
|
cacheKeys = renderer.cacheKeys,
|
|
1476
|
+
isSVG = element.namespaceURI === wrapper.SVG_NS,
|
|
1476
1477
|
cacheKey;
|
|
1477
1478
|
|
|
1478
1479
|
rotation = pick(rot, wrapper.rotation);
|
|
@@ -1516,7 +1517,7 @@ extend(SVGElement.prototype, /** @lends Highcharts.SVGElement.prototype */ {
|
|
|
1516
1517
|
if (!bBox) {
|
|
1517
1518
|
|
|
1518
1519
|
// SVG elements
|
|
1519
|
-
if (
|
|
1520
|
+
if (isSVG || renderer.forExport) {
|
|
1520
1521
|
try { // Fails in Firefox if the container has display: none.
|
|
1521
1522
|
|
|
1522
1523
|
// When the text shadow shim is used, we need to hide the
|
|
@@ -1583,12 +1584,16 @@ extend(SVGElement.prototype, /** @lends Highcharts.SVGElement.prototype */ {
|
|
|
1583
1584
|
// Also vertical positioning is affected.
|
|
1584
1585
|
// https://jsfiddle.net/highcharts/em37nvuj/
|
|
1585
1586
|
// (#1101, #1505, #1669, #2568, #6213).
|
|
1586
|
-
if (
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1587
|
+
if (isSVG) {
|
|
1588
|
+
bBox.height = height = (
|
|
1589
|
+
{
|
|
1590
|
+
'11px,17': 14,
|
|
1591
|
+
'13px,20': 16
|
|
1592
|
+
}[
|
|
1593
|
+
styles && styles.fontSize + ',' + Math.round(height)
|
|
1594
|
+
] ||
|
|
1595
|
+
height
|
|
1596
|
+
);
|
|
1592
1597
|
}
|
|
1593
1598
|
|
|
1594
1599
|
// Adjust for rotated text
|
|
@@ -2562,7 +2567,7 @@ extend(SVGRenderer.prototype, /** @lends Highcharts.SVGRenderer.prototype */ {
|
|
|
2562
2567
|
} catch (e) {}
|
|
2563
2568
|
|
|
2564
2569
|
// Legacy
|
|
2565
|
-
} else {
|
|
2570
|
+
} else if (renderer.getSpanWidth) { // #9058 jsdom
|
|
2566
2571
|
updateTSpan(getString(text || words, charEnd));
|
|
2567
2572
|
lengths[end] = startAt +
|
|
2568
2573
|
renderer.getSpanWidth(wrapper, tspan);
|
|
@@ -4049,7 +4054,7 @@ extend(SVGRenderer.prototype, /** @lends Highcharts.SVGRenderer.prototype */ {
|
|
|
4049
4054
|
if (y) {
|
|
4050
4055
|
attribs.y = Math.round(y);
|
|
4051
4056
|
}
|
|
4052
|
-
if (str
|
|
4057
|
+
if (defined(str)) {
|
|
4053
4058
|
attribs.text = str;
|
|
4054
4059
|
}
|
|
4055
4060
|
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (c) 2010-
|
|
2
|
+
* (c) 2010-2018 Torstein Honsi
|
|
3
3
|
*
|
|
4
4
|
* License: www.highcharts.com/license
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
'use strict';
|
|
8
|
+
|
|
7
9
|
import H from './Globals.js';
|
|
8
10
|
import './Utilities.js';
|
|
11
|
+
|
|
9
12
|
var correctFloat = H.correctFloat,
|
|
10
13
|
defined = H.defined,
|
|
11
14
|
destroyObjectProperties = H.destroyObjectProperties,
|
|
@@ -16,24 +19,51 @@ var correctFloat = H.correctFloat,
|
|
|
16
19
|
deg2rad = H.deg2rad;
|
|
17
20
|
|
|
18
21
|
/**
|
|
19
|
-
* The Tick class
|
|
20
|
-
*
|
|
22
|
+
* The Tick class.
|
|
23
|
+
*
|
|
24
|
+
* @private
|
|
25
|
+
* @class
|
|
26
|
+
* @name Highcharts.Tick
|
|
27
|
+
*
|
|
28
|
+
* @param {Highcharts.Axis} axis
|
|
29
|
+
*
|
|
30
|
+
* @param {number} pos The position of the tick on the axis.
|
|
31
|
+
*
|
|
32
|
+
* @param {string} [type] The type of tick.
|
|
33
|
+
*
|
|
34
|
+
* @param {boolean} [noLabel=false] Wether to disable the label or not. Defaults to
|
|
35
|
+
* false.
|
|
36
|
+
*
|
|
37
|
+
* @param {object} [parameters] Optional parameters for the tick.
|
|
38
|
+
*
|
|
39
|
+
* @param {object} [parameters.tickmarkOffset] Set tickmarkOffset for the tick.
|
|
40
|
+
*
|
|
41
|
+
* @param {object} [parameters.category] Set category for the tick.
|
|
21
42
|
*/
|
|
22
|
-
H.Tick = function (axis, pos, type, noLabel) {
|
|
43
|
+
H.Tick = function (axis, pos, type, noLabel, parameters) {
|
|
23
44
|
this.axis = axis;
|
|
24
45
|
this.pos = pos;
|
|
25
46
|
this.type = type || '';
|
|
26
47
|
this.isNew = true;
|
|
27
48
|
this.isNewLabel = true;
|
|
49
|
+
this.parameters = parameters || {};
|
|
50
|
+
// Usually undefined, numeric for grid axes
|
|
51
|
+
this.tickmarkOffset = this.parameters.tickmarkOffset;
|
|
28
52
|
|
|
53
|
+
this.options = this.parameters.options;
|
|
29
54
|
if (!type && !noLabel) {
|
|
30
55
|
this.addLabel();
|
|
31
56
|
}
|
|
32
57
|
};
|
|
33
58
|
|
|
59
|
+
/** @lends Highcharts.Tick.prototype */
|
|
34
60
|
H.Tick.prototype = {
|
|
61
|
+
|
|
35
62
|
/**
|
|
36
|
-
* Write the tick label
|
|
63
|
+
* Write the tick label.
|
|
64
|
+
*
|
|
65
|
+
* @private
|
|
66
|
+
* @function Highcharts.Tick#addLabel
|
|
37
67
|
*/
|
|
38
68
|
addLabel: function () {
|
|
39
69
|
var tick = this,
|
|
@@ -43,44 +73,82 @@ H.Tick.prototype = {
|
|
|
43
73
|
categories = axis.categories,
|
|
44
74
|
names = axis.names,
|
|
45
75
|
pos = tick.pos,
|
|
46
|
-
labelOptions =
|
|
76
|
+
labelOptions = pick(
|
|
77
|
+
tick.options && tick.options.labels,
|
|
78
|
+
options.labels
|
|
79
|
+
),
|
|
47
80
|
str,
|
|
48
81
|
tickPositions = axis.tickPositions,
|
|
49
82
|
isFirst = pos === tickPositions[0],
|
|
50
83
|
isLast = pos === tickPositions[tickPositions.length - 1],
|
|
51
|
-
value =
|
|
52
|
-
|
|
53
|
-
|
|
84
|
+
value = this.parameters.category || (
|
|
85
|
+
categories ?
|
|
86
|
+
pick(categories[pos], names[pos], pos) :
|
|
87
|
+
pos
|
|
88
|
+
),
|
|
54
89
|
label = tick.label,
|
|
55
90
|
tickPositionInfo = tickPositions.info,
|
|
56
91
|
dateTimeLabelFormat,
|
|
57
|
-
|
|
92
|
+
dateTimeLabelFormats,
|
|
93
|
+
i,
|
|
94
|
+
list;
|
|
58
95
|
|
|
59
96
|
// Set the datetime label format. If a higher rank is set for this
|
|
60
97
|
// position, use that. If not, use the general format.
|
|
61
98
|
if (axis.isDatetimeAxis && tickPositionInfo) {
|
|
62
|
-
|
|
99
|
+
dateTimeLabelFormats = chart.time.resolveDTLFormat(
|
|
63
100
|
options.dateTimeLabelFormats[
|
|
64
|
-
|
|
101
|
+
(
|
|
102
|
+
!options.grid &&
|
|
103
|
+
tickPositionInfo.higherRanks[pos]
|
|
104
|
+
) ||
|
|
65
105
|
tickPositionInfo.unitName
|
|
66
|
-
]
|
|
106
|
+
]
|
|
107
|
+
);
|
|
108
|
+
dateTimeLabelFormat = dateTimeLabelFormats.main;
|
|
67
109
|
}
|
|
110
|
+
|
|
68
111
|
// set properties for access in render method
|
|
69
112
|
tick.isFirst = isFirst;
|
|
70
113
|
tick.isLast = isLast;
|
|
71
114
|
|
|
72
|
-
// Get the string
|
|
73
|
-
|
|
74
|
-
params = {
|
|
115
|
+
// Get the string
|
|
116
|
+
tick.formatCtx = {
|
|
75
117
|
axis: axis,
|
|
76
118
|
chart: chart,
|
|
77
119
|
isFirst: isFirst,
|
|
78
120
|
isLast: isLast,
|
|
79
121
|
dateTimeLabelFormat: dateTimeLabelFormat,
|
|
122
|
+
tickPositionInfo: tickPositionInfo,
|
|
80
123
|
value: axis.isLog ? correctFloat(axis.lin2log(value)) : value,
|
|
81
124
|
pos: pos
|
|
82
125
|
};
|
|
83
|
-
str = axis.labelFormatter.call(
|
|
126
|
+
str = axis.labelFormatter.call(tick.formatCtx, this.formatCtx);
|
|
127
|
+
|
|
128
|
+
// Set up conditional formatting based on the format list if existing.
|
|
129
|
+
list = dateTimeLabelFormats && dateTimeLabelFormats.list;
|
|
130
|
+
if (list) {
|
|
131
|
+
tick.shortenLabel = function () {
|
|
132
|
+
for (i = 0; i < list.length; i++) {
|
|
133
|
+
label.attr({
|
|
134
|
+
text: axis.labelFormatter.call(H.extend(
|
|
135
|
+
tick.formatCtx,
|
|
136
|
+
{ dateTimeLabelFormat: list[i] }
|
|
137
|
+
))
|
|
138
|
+
});
|
|
139
|
+
if (
|
|
140
|
+
label.getBBox().width <
|
|
141
|
+
axis.getSlotWidth(tick) - 2 *
|
|
142
|
+
pick(labelOptions.padding, 5)
|
|
143
|
+
) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
label.attr({
|
|
148
|
+
text: ''
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
}
|
|
84
152
|
|
|
85
153
|
// first call
|
|
86
154
|
if (!defined(label)) {
|
|
@@ -124,6 +192,11 @@ H.Tick.prototype = {
|
|
|
124
192
|
|
|
125
193
|
/**
|
|
126
194
|
* Get the offset height or width of the label
|
|
195
|
+
*
|
|
196
|
+
* @private
|
|
197
|
+
* @function Highcharts.Tick#getLabelSize
|
|
198
|
+
*
|
|
199
|
+
* @return {number}
|
|
127
200
|
*/
|
|
128
201
|
getLabelSize: function () {
|
|
129
202
|
return this.label ?
|
|
@@ -134,6 +207,11 @@ H.Tick.prototype = {
|
|
|
134
207
|
/**
|
|
135
208
|
* Handle the label overflow by adjusting the labels to the left and right
|
|
136
209
|
* edge, or hide them if they collide into the neighbour label.
|
|
210
|
+
*
|
|
211
|
+
* @private
|
|
212
|
+
* @function Highcharts.Tick#handleOverflow
|
|
213
|
+
*
|
|
214
|
+
* @param {Highcharts.PositionObject} xy
|
|
137
215
|
*/
|
|
138
216
|
handleOverflow: function (xy) {
|
|
139
217
|
var tick = this,
|
|
@@ -217,16 +295,35 @@ H.Tick.prototype = {
|
|
|
217
295
|
}
|
|
218
296
|
|
|
219
297
|
if (textWidth) {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
298
|
+
if (tick.shortenLabel) {
|
|
299
|
+
tick.shortenLabel();
|
|
300
|
+
} else {
|
|
301
|
+
css.width = textWidth;
|
|
302
|
+
if (!(labelOptions.style || {}).textOverflow) {
|
|
303
|
+
css.textOverflow = 'ellipsis';
|
|
304
|
+
}
|
|
305
|
+
label.css(css);
|
|
223
306
|
}
|
|
224
|
-
label.css(css);
|
|
225
307
|
}
|
|
226
308
|
},
|
|
227
309
|
|
|
228
310
|
/**
|
|
229
311
|
* Get the x and y position for ticks and labels
|
|
312
|
+
*
|
|
313
|
+
* @private
|
|
314
|
+
* @function Highcharts.Tick#getPosition
|
|
315
|
+
*
|
|
316
|
+
* @param {boolean} horiz
|
|
317
|
+
*
|
|
318
|
+
* @param {number} tickPos
|
|
319
|
+
*
|
|
320
|
+
* @param {number} tickmarkOffset
|
|
321
|
+
*
|
|
322
|
+
* @param {boolean} [old]
|
|
323
|
+
*
|
|
324
|
+
* @return {number}
|
|
325
|
+
*
|
|
326
|
+
* @fires Highcharts.Tick#event:afterGetPosition
|
|
230
327
|
*/
|
|
231
328
|
getPosition: function (horiz, tickPos, tickmarkOffset, old) {
|
|
232
329
|
var axis = this.axis,
|
|
@@ -279,6 +376,9 @@ H.Tick.prototype = {
|
|
|
279
376
|
|
|
280
377
|
/**
|
|
281
378
|
* Get the x, y position of the tick label
|
|
379
|
+
*
|
|
380
|
+
* @private
|
|
381
|
+
*
|
|
282
382
|
*/
|
|
283
383
|
getLabelPosition: function (
|
|
284
384
|
x,
|
|
@@ -351,6 +451,9 @@ H.Tick.prototype = {
|
|
|
351
451
|
|
|
352
452
|
/**
|
|
353
453
|
* Extendible method to return the path of the marker
|
|
454
|
+
*
|
|
455
|
+
* @private
|
|
456
|
+
*
|
|
354
457
|
*/
|
|
355
458
|
getMarkPath: function (x, y, tickLength, tickWidth, horiz, renderer) {
|
|
356
459
|
return renderer.crispLine([
|
|
@@ -365,6 +468,9 @@ H.Tick.prototype = {
|
|
|
365
468
|
|
|
366
469
|
/**
|
|
367
470
|
* Renders the gridLine.
|
|
471
|
+
*
|
|
472
|
+
* @private
|
|
473
|
+
*
|
|
368
474
|
* @param {Boolean} old Whether or not the tick is old
|
|
369
475
|
* @param {number} opacity The opacity of the grid line
|
|
370
476
|
* @param {number} reverseCrisp Modifier for avoiding overlapping 1 or -1
|
|
@@ -379,7 +485,7 @@ H.Tick.prototype = {
|
|
|
379
485
|
attribs = {},
|
|
380
486
|
pos = tick.pos,
|
|
381
487
|
type = tick.type,
|
|
382
|
-
tickmarkOffset = axis.tickmarkOffset,
|
|
488
|
+
tickmarkOffset = pick(tick.tickmarkOffset, axis.tickmarkOffset),
|
|
383
489
|
renderer = axis.chart.renderer;
|
|
384
490
|
|
|
385
491
|
|
|
@@ -390,7 +496,7 @@ H.Tick.prototype = {
|
|
|
390
496
|
attribs.zIndex = 1;
|
|
391
497
|
}
|
|
392
498
|
if (old) {
|
|
393
|
-
|
|
499
|
+
opacity = 0;
|
|
394
500
|
}
|
|
395
501
|
tick.gridLine = gridLine = renderer.path()
|
|
396
502
|
.attr(attribs)
|
|
@@ -398,18 +504,21 @@ H.Tick.prototype = {
|
|
|
398
504
|
'highcharts-' + (type ? type + '-' : '') + 'grid-line'
|
|
399
505
|
)
|
|
400
506
|
.add(axis.gridGroup);
|
|
507
|
+
|
|
401
508
|
}
|
|
402
509
|
|
|
403
|
-
|
|
404
|
-
// by another call, therefore do not do any animations this time
|
|
405
|
-
if (!old && gridLine) {
|
|
510
|
+
if (gridLine) {
|
|
406
511
|
gridLinePath = axis.getPlotLinePath(
|
|
407
512
|
pos + tickmarkOffset,
|
|
408
513
|
gridLine.strokeWidth() * reverseCrisp,
|
|
409
|
-
old,
|
|
514
|
+
old,
|
|
515
|
+
'pass'
|
|
410
516
|
);
|
|
517
|
+
|
|
518
|
+
// If the parameter 'old' is set, the current call will be followed
|
|
519
|
+
// by another call, therefore do not do any animations this time
|
|
411
520
|
if (gridLinePath) {
|
|
412
|
-
gridLine[tick.isNew ? 'attr' : 'animate']({
|
|
521
|
+
gridLine[old || tick.isNew ? 'attr' : 'animate']({
|
|
413
522
|
d: gridLinePath,
|
|
414
523
|
opacity: opacity
|
|
415
524
|
});
|
|
@@ -419,6 +528,9 @@ H.Tick.prototype = {
|
|
|
419
528
|
|
|
420
529
|
/**
|
|
421
530
|
* Renders the tick mark.
|
|
531
|
+
*
|
|
532
|
+
* @private
|
|
533
|
+
*
|
|
422
534
|
* @param {Object} xy The position vector of the mark
|
|
423
535
|
* @param {number} xy.x The x position of the mark
|
|
424
536
|
* @param {number} xy.y The y position of the mark
|
|
@@ -474,6 +586,9 @@ H.Tick.prototype = {
|
|
|
474
586
|
* Renders the tick label.
|
|
475
587
|
* Note: The label should already be created in init(), so it should only
|
|
476
588
|
* have to be moved into place.
|
|
589
|
+
*
|
|
590
|
+
* @private
|
|
591
|
+
*
|
|
477
592
|
* @param {Object} xy The position vector of the label
|
|
478
593
|
* @param {number} xy.x The x position of the label
|
|
479
594
|
* @param {number} xy.y The y position of the label
|
|
@@ -490,7 +605,7 @@ H.Tick.prototype = {
|
|
|
490
605
|
label = tick.label,
|
|
491
606
|
labelOptions = options.labels,
|
|
492
607
|
step = labelOptions.step,
|
|
493
|
-
tickmarkOffset = axis.tickmarkOffset,
|
|
608
|
+
tickmarkOffset = pick(tick.tickmarkOffset, axis.tickmarkOffset),
|
|
494
609
|
show = true,
|
|
495
610
|
x = xy.x,
|
|
496
611
|
y = xy.y;
|
|
@@ -555,6 +670,8 @@ H.Tick.prototype = {
|
|
|
555
670
|
/**
|
|
556
671
|
* Put everything in place
|
|
557
672
|
*
|
|
673
|
+
* @private
|
|
674
|
+
*
|
|
558
675
|
* @param index {Number}
|
|
559
676
|
* @param old {Boolean} Use old coordinates to prepare an animation into new
|
|
560
677
|
* position
|
|
@@ -564,7 +681,7 @@ H.Tick.prototype = {
|
|
|
564
681
|
axis = tick.axis,
|
|
565
682
|
horiz = axis.horiz,
|
|
566
683
|
pos = tick.pos,
|
|
567
|
-
tickmarkOffset = axis.tickmarkOffset,
|
|
684
|
+
tickmarkOffset = pick(tick.tickmarkOffset, axis.tickmarkOffset),
|
|
568
685
|
xy = tick.getPosition(horiz, pos, tickmarkOffset, old),
|
|
569
686
|
x = xy.x,
|
|
570
687
|
y = xy.y,
|
|
@@ -590,6 +707,9 @@ H.Tick.prototype = {
|
|
|
590
707
|
|
|
591
708
|
/**
|
|
592
709
|
* Destructor for the tick prototype
|
|
710
|
+
*
|
|
711
|
+
* @private
|
|
712
|
+
* @function Highcharts.Tick#destroy
|
|
593
713
|
*/
|
|
594
714
|
destroy: function () {
|
|
595
715
|
destroyObjectProperties(this, this.axis);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (c) 2010-
|
|
2
|
+
* (c) 2010-2018 Torstein Honsi
|
|
3
3
|
*
|
|
4
4
|
* License: www.highcharts.com/license
|
|
5
5
|
*/
|
|
@@ -172,7 +172,7 @@ Highcharts.Time.prototype = {
|
|
|
172
172
|
*
|
|
173
173
|
* @type {*}
|
|
174
174
|
* @since 4.0.4
|
|
175
|
-
* @product highcharts highstock
|
|
175
|
+
* @product highcharts highstock gantt
|
|
176
176
|
* @apioption time.Date
|
|
177
177
|
*/
|
|
178
178
|
|
|
@@ -190,7 +190,7 @@ Highcharts.Time.prototype = {
|
|
|
190
190
|
*
|
|
191
191
|
* @type {Function}
|
|
192
192
|
* @since 4.1.0
|
|
193
|
-
* @product highcharts highstock
|
|
193
|
+
* @product highcharts highstock gantt
|
|
194
194
|
* @apioption time.getTimezoneOffset
|
|
195
195
|
*/
|
|
196
196
|
|
|
@@ -209,7 +209,7 @@ Highcharts.Time.prototype = {
|
|
|
209
209
|
*
|
|
210
210
|
* @type {string}
|
|
211
211
|
* @since 5.0.7
|
|
212
|
-
* @product highcharts highstock
|
|
212
|
+
* @product highcharts highstock gantt
|
|
213
213
|
* @apioption time.timezone
|
|
214
214
|
*/
|
|
215
215
|
|
|
@@ -227,7 +227,7 @@ Highcharts.Time.prototype = {
|
|
|
227
227
|
* @type {number}
|
|
228
228
|
* @default 0
|
|
229
229
|
* @since 3.0.8
|
|
230
|
-
* @product highcharts highstock
|
|
230
|
+
* @product highcharts highstock gantt
|
|
231
231
|
* @apioption time.timezoneOffset
|
|
232
232
|
*/
|
|
233
233
|
|
|
@@ -600,6 +600,24 @@ Highcharts.Time.prototype = {
|
|
|
600
600
|
format;
|
|
601
601
|
},
|
|
602
602
|
|
|
603
|
+
/**
|
|
604
|
+
* Resolve legacy formats of dateTimeLabelFormats (strings and arrays) into
|
|
605
|
+
* an object.
|
|
606
|
+
* @param {String|Array|Object} f General format description
|
|
607
|
+
* @return {Object} The object definition
|
|
608
|
+
*/
|
|
609
|
+
resolveDTLFormat: function (f) {
|
|
610
|
+
if (!H.isObject(f, true)) {
|
|
611
|
+
f = H.splat(f);
|
|
612
|
+
return {
|
|
613
|
+
main: f[0],
|
|
614
|
+
from: f[1],
|
|
615
|
+
to: f[2]
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
return f;
|
|
619
|
+
},
|
|
620
|
+
|
|
603
621
|
/**
|
|
604
622
|
* Return an array with time positions distributed on round time values
|
|
605
623
|
* right and right after min and max. Used in datetime axes as well as for
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (c) 2010-
|
|
2
|
+
* (c) 2010-2018 Torstein Honsi
|
|
3
3
|
*
|
|
4
4
|
* License: www.highcharts.com/license
|
|
5
5
|
*/
|
|
@@ -1062,7 +1062,7 @@ H.Tooltip.prototype = {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
1064
|
if (n) {
|
|
1065
|
-
format = dateTimeLabelFormats[n];
|
|
1065
|
+
format = time.resolveDTLFormat(dateTimeLabelFormats[n]).main;
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
1068
|
return format;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (c) 2010-
|
|
2
|
+
* (c) 2010-2018 Torstein Honsi
|
|
3
3
|
*
|
|
4
4
|
* License: www.highcharts.com/license
|
|
5
5
|
*/
|
|
@@ -1317,6 +1317,21 @@ H.wrap = function (obj, method, func) {
|
|
|
1317
1317
|
|
|
1318
1318
|
|
|
1319
1319
|
|
|
1320
|
+
/**
|
|
1321
|
+
* Recursively converts all Date properties to timestamps.
|
|
1322
|
+
*
|
|
1323
|
+
* @param {Object} object - any object to convert properties of
|
|
1324
|
+
*/
|
|
1325
|
+
H.datePropsToTimestamps = function (object) {
|
|
1326
|
+
H.objectEach(object, function (val, key) {
|
|
1327
|
+
if (H.isObject(val) && typeof val.getTime === 'function') {
|
|
1328
|
+
object[key] = val.getTime();
|
|
1329
|
+
} else if (H.isObject(val) || H.isArray(val)) {
|
|
1330
|
+
H.datePropsToTimestamps(val);
|
|
1331
|
+
}
|
|
1332
|
+
});
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1320
1335
|
/**
|
|
1321
1336
|
* Format a single variable. Similar to sprintf, without the % prefix.
|
|
1322
1337
|
*
|