@ntlab/ntjs-assets 2.0.37 → 2.0.39
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/assets/js/DataTables/DataTables/js/dataTables.js +26 -9
- package/assets/js/DataTables/DataTables/js/dataTables.min.js +2 -2
- package/assets/js/cdn.json +2 -2
- package/assets/js/highcharts/es-modules/Accessibility/Accessibility.js +15 -3
- package/assets/js/highcharts/es-modules/Accessibility/AccessibilityComponent.js +38 -30
- package/assets/js/highcharts/es-modules/Core/Axis/Axis.js +15 -12
- package/assets/js/highcharts/es-modules/Core/Axis/AxisDefaults.js +4 -2
- package/assets/js/highcharts/es-modules/Core/Axis/DateTimeAxis.js +3 -3
- package/assets/js/highcharts/es-modules/Core/Axis/GridAxis.js +2 -2
- package/assets/js/highcharts/es-modules/Core/Axis/LogarithmicAxis.js +5 -10
- package/assets/js/highcharts/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +54 -13
- package/assets/js/highcharts/es-modules/Core/Axis/ScrollbarAxis.js +12 -2
- package/assets/js/highcharts/es-modules/Core/Axis/Tick.js +1 -1
- package/assets/js/highcharts/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +6 -9
- package/assets/js/highcharts/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +2 -2
- package/assets/js/highcharts/es-modules/Core/Chart/Chart.js +30 -8
- package/assets/js/highcharts/es-modules/Core/Color/Color.js +1 -0
- package/assets/js/highcharts/es-modules/Core/Defaults.js +9 -7
- package/assets/js/highcharts/es-modules/Core/Legend/LegendSymbol.js +1 -1
- package/assets/js/highcharts/es-modules/Core/Renderer/SVG/SVGRenderer.js +1 -0
- package/assets/js/highcharts/es-modules/Core/Series/DataLabel.js +9 -0
- package/assets/js/highcharts/es-modules/Core/Series/Series.js +1 -1
- package/assets/js/highcharts/es-modules/Core/Tooltip.js +9 -0
- package/assets/js/highcharts/es-modules/Extensions/Annotations/Annotation.js +4 -0
- package/assets/js/highcharts/es-modules/Extensions/Boost/BoostSeries.js +2 -0
- package/assets/js/highcharts/es-modules/Extensions/Data.js +125 -98
- package/assets/js/highcharts/es-modules/Extensions/Exporting/Exporting.js +5 -1
- package/assets/js/highcharts/es-modules/Extensions/OfflineExporting/OfflineExporting.js +4 -1
- package/assets/js/highcharts/es-modules/Maps/GeoJSONComposition.js +0 -5
- package/assets/js/highcharts/es-modules/Series/Funnel3D/Funnel3DSeries.js +1 -0
- package/assets/js/highcharts/es-modules/Series/MapBubble/MapBubbleSeries.js +3 -3
- package/assets/js/highcharts/es-modules/Series/Pictorial/PictorialSeries.js +2 -1
- package/assets/js/highcharts/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +1 -0
- package/assets/js/highcharts/es-modules/Series/Treegraph/TreegraphSeries.js +1 -1
- package/assets/js/highcharts/es-modules/Stock/Navigator/Navigator.js +7 -2
- package/assets/js/highcharts/es-modules/masters/highcharts.src.js +1 -1
- package/assets/js/highcharts/highcharts-3d.js +1 -1
- package/assets/js/highcharts/highcharts-3d.src.js +1 -1
- package/assets/js/highcharts/highcharts-gantt.js +3 -3
- package/assets/js/highcharts/highcharts-gantt.src.js +176 -79
- package/assets/js/highcharts/highcharts-more.js +1 -1
- package/assets/js/highcharts/highcharts-more.src.js +1 -1
- package/assets/js/highcharts/highcharts.js +3 -3
- package/assets/js/highcharts/highcharts.src.js +147 -62
- package/assets/js/highcharts/highmaps.js +3 -3
- package/assets/js/highcharts/highmaps.src.js +150 -70
- package/assets/js/highcharts/highstock.js +3 -3
- package/assets/js/highcharts/highstock.src.js +166 -66
- package/assets/js/highcharts/indicators/acceleration-bands.js +1 -1
- package/assets/js/highcharts/indicators/acceleration-bands.src.js +1 -1
- package/assets/js/highcharts/indicators/accumulation-distribution.js +1 -1
- package/assets/js/highcharts/indicators/accumulation-distribution.src.js +1 -1
- package/assets/js/highcharts/indicators/ao.js +1 -1
- package/assets/js/highcharts/indicators/ao.src.js +1 -1
- package/assets/js/highcharts/indicators/apo.js +1 -1
- package/assets/js/highcharts/indicators/apo.src.js +1 -1
- package/assets/js/highcharts/indicators/aroon-oscillator.js +1 -1
- package/assets/js/highcharts/indicators/aroon-oscillator.src.js +1 -1
- package/assets/js/highcharts/indicators/aroon.js +1 -1
- package/assets/js/highcharts/indicators/aroon.src.js +1 -1
- package/assets/js/highcharts/indicators/atr.js +1 -1
- package/assets/js/highcharts/indicators/atr.src.js +1 -1
- package/assets/js/highcharts/indicators/bollinger-bands.js +1 -1
- package/assets/js/highcharts/indicators/bollinger-bands.src.js +1 -1
- package/assets/js/highcharts/indicators/cci.js +1 -1
- package/assets/js/highcharts/indicators/cci.src.js +1 -1
- package/assets/js/highcharts/indicators/chaikin.js +1 -1
- package/assets/js/highcharts/indicators/chaikin.src.js +1 -1
- package/assets/js/highcharts/indicators/cmf.js +1 -1
- package/assets/js/highcharts/indicators/cmf.src.js +1 -1
- package/assets/js/highcharts/indicators/cmo.js +1 -1
- package/assets/js/highcharts/indicators/cmo.src.js +1 -1
- package/assets/js/highcharts/indicators/dema.js +1 -1
- package/assets/js/highcharts/indicators/dema.src.js +1 -1
- package/assets/js/highcharts/indicators/disparity-index.js +1 -1
- package/assets/js/highcharts/indicators/disparity-index.src.js +1 -1
- package/assets/js/highcharts/indicators/dmi.js +1 -1
- package/assets/js/highcharts/indicators/dmi.src.js +1 -1
- package/assets/js/highcharts/indicators/dpo.js +1 -1
- package/assets/js/highcharts/indicators/dpo.src.js +1 -1
- package/assets/js/highcharts/indicators/ichimoku-kinko-hyo.js +1 -1
- package/assets/js/highcharts/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/assets/js/highcharts/indicators/indicators-all.js +1 -1
- package/assets/js/highcharts/indicators/indicators-all.src.js +1 -1
- package/assets/js/highcharts/indicators/indicators.js +1 -1
- package/assets/js/highcharts/indicators/indicators.src.js +1 -1
- package/assets/js/highcharts/indicators/keltner-channels.js +1 -1
- package/assets/js/highcharts/indicators/keltner-channels.src.js +1 -1
- package/assets/js/highcharts/indicators/klinger.js +1 -1
- package/assets/js/highcharts/indicators/klinger.src.js +1 -1
- package/assets/js/highcharts/indicators/macd.js +1 -1
- package/assets/js/highcharts/indicators/macd.src.js +1 -1
- package/assets/js/highcharts/indicators/mfi.js +1 -1
- package/assets/js/highcharts/indicators/mfi.src.js +1 -1
- package/assets/js/highcharts/indicators/momentum.js +1 -1
- package/assets/js/highcharts/indicators/momentum.src.js +1 -1
- package/assets/js/highcharts/indicators/natr.js +1 -1
- package/assets/js/highcharts/indicators/natr.src.js +1 -1
- package/assets/js/highcharts/indicators/obv.js +1 -1
- package/assets/js/highcharts/indicators/obv.src.js +1 -1
- package/assets/js/highcharts/indicators/pivot-points.js +1 -1
- package/assets/js/highcharts/indicators/pivot-points.src.js +1 -1
- package/assets/js/highcharts/indicators/ppo.js +1 -1
- package/assets/js/highcharts/indicators/ppo.src.js +1 -1
- package/assets/js/highcharts/indicators/price-channel.js +1 -1
- package/assets/js/highcharts/indicators/price-channel.src.js +1 -1
- package/assets/js/highcharts/indicators/price-envelopes.js +1 -1
- package/assets/js/highcharts/indicators/price-envelopes.src.js +1 -1
- package/assets/js/highcharts/indicators/psar.js +1 -1
- package/assets/js/highcharts/indicators/psar.src.js +1 -1
- package/assets/js/highcharts/indicators/regressions.js +1 -1
- package/assets/js/highcharts/indicators/regressions.src.js +1 -1
- package/assets/js/highcharts/indicators/roc.js +1 -1
- package/assets/js/highcharts/indicators/roc.src.js +1 -1
- package/assets/js/highcharts/indicators/rsi.js +1 -1
- package/assets/js/highcharts/indicators/rsi.src.js +1 -1
- package/assets/js/highcharts/indicators/slow-stochastic.js +1 -1
- package/assets/js/highcharts/indicators/slow-stochastic.src.js +1 -1
- package/assets/js/highcharts/indicators/stochastic.js +1 -1
- package/assets/js/highcharts/indicators/stochastic.src.js +1 -1
- package/assets/js/highcharts/indicators/supertrend.js +1 -1
- package/assets/js/highcharts/indicators/supertrend.src.js +1 -1
- package/assets/js/highcharts/indicators/tema.js +1 -1
- package/assets/js/highcharts/indicators/tema.src.js +1 -1
- package/assets/js/highcharts/indicators/trendline.js +1 -1
- package/assets/js/highcharts/indicators/trendline.src.js +1 -1
- package/assets/js/highcharts/indicators/trix.js +1 -1
- package/assets/js/highcharts/indicators/trix.src.js +1 -1
- package/assets/js/highcharts/indicators/volume-by-price.js +1 -1
- package/assets/js/highcharts/indicators/volume-by-price.src.js +1 -1
- package/assets/js/highcharts/indicators/vwap.js +1 -1
- package/assets/js/highcharts/indicators/vwap.src.js +1 -1
- package/assets/js/highcharts/indicators/williams-r.js +1 -1
- package/assets/js/highcharts/indicators/williams-r.src.js +1 -1
- package/assets/js/highcharts/indicators/wma.js +1 -1
- package/assets/js/highcharts/indicators/wma.src.js +1 -1
- package/assets/js/highcharts/indicators/zigzag.js +1 -1
- package/assets/js/highcharts/indicators/zigzag.src.js +1 -1
- package/assets/js/highcharts/modules/accessibility.js +2 -2
- package/assets/js/highcharts/modules/accessibility.src.js +74 -38
- package/assets/js/highcharts/modules/annotations-advanced.js +2 -2
- package/assets/js/highcharts/modules/annotations-advanced.src.js +7 -3
- package/assets/js/highcharts/modules/annotations.js +2 -2
- package/assets/js/highcharts/modules/annotations.src.js +7 -3
- package/assets/js/highcharts/modules/arc-diagram.js +2 -2
- package/assets/js/highcharts/modules/arc-diagram.src.js +5 -4
- package/assets/js/highcharts/modules/arrow-symbols.js +1 -1
- package/assets/js/highcharts/modules/arrow-symbols.src.js +1 -1
- package/assets/js/highcharts/modules/boost-canvas.js +2 -2
- package/assets/js/highcharts/modules/boost-canvas.src.js +3 -1
- package/assets/js/highcharts/modules/boost.js +2 -2
- package/assets/js/highcharts/modules/boost.src.js +3 -1
- package/assets/js/highcharts/modules/broken-axis.js +1 -1
- package/assets/js/highcharts/modules/broken-axis.src.js +1 -1
- package/assets/js/highcharts/modules/bullet.js +1 -1
- package/assets/js/highcharts/modules/bullet.src.js +1 -1
- package/assets/js/highcharts/modules/coloraxis.js +1 -1
- package/assets/js/highcharts/modules/coloraxis.src.js +1 -1
- package/assets/js/highcharts/modules/current-date-indicator.js +1 -1
- package/assets/js/highcharts/modules/current-date-indicator.src.js +1 -1
- package/assets/js/highcharts/modules/cylinder.js +1 -1
- package/assets/js/highcharts/modules/cylinder.src.js +1 -1
- package/assets/js/highcharts/modules/data-tools.js +1 -1
- package/assets/js/highcharts/modules/data-tools.src.js +1 -1
- package/assets/js/highcharts/modules/data.js +2 -2
- package/assets/js/highcharts/modules/data.src.js +126 -100
- package/assets/js/highcharts/modules/datagrouping.js +1 -1
- package/assets/js/highcharts/modules/datagrouping.src.js +1 -1
- package/assets/js/highcharts/modules/debugger.js +1 -1
- package/assets/js/highcharts/modules/debugger.src.js +1 -1
- package/assets/js/highcharts/modules/dependency-wheel.js +1 -1
- package/assets/js/highcharts/modules/dependency-wheel.src.js +1 -1
- package/assets/js/highcharts/modules/dotplot.js +1 -1
- package/assets/js/highcharts/modules/dotplot.src.js +1 -1
- package/assets/js/highcharts/modules/drag-panes.js +1 -1
- package/assets/js/highcharts/modules/drag-panes.src.js +1 -1
- package/assets/js/highcharts/modules/draggable-points.js +1 -1
- package/assets/js/highcharts/modules/draggable-points.src.js +1 -1
- package/assets/js/highcharts/modules/drilldown.js +1 -1
- package/assets/js/highcharts/modules/drilldown.src.js +1 -1
- package/assets/js/highcharts/modules/dumbbell.js +1 -1
- package/assets/js/highcharts/modules/dumbbell.src.js +1 -1
- package/assets/js/highcharts/modules/export-data.js +1 -1
- package/assets/js/highcharts/modules/export-data.src.js +1 -1
- package/assets/js/highcharts/modules/exporting.js +2 -2
- package/assets/js/highcharts/modules/exporting.src.js +6 -2
- package/assets/js/highcharts/modules/flowmap.js +1 -1
- package/assets/js/highcharts/modules/flowmap.src.js +1 -1
- package/assets/js/highcharts/modules/full-screen.js +1 -1
- package/assets/js/highcharts/modules/full-screen.src.js +1 -1
- package/assets/js/highcharts/modules/funnel.js +1 -1
- package/assets/js/highcharts/modules/funnel.src.js +1 -1
- package/assets/js/highcharts/modules/funnel3d.js +1 -1
- package/assets/js/highcharts/modules/funnel3d.src.js +2 -1
- package/assets/js/highcharts/modules/gantt.js +2 -2
- package/assets/js/highcharts/modules/gantt.src.js +30 -18
- package/assets/js/highcharts/modules/geoheatmap.js +1 -1
- package/assets/js/highcharts/modules/geoheatmap.src.js +1 -1
- package/assets/js/highcharts/modules/grid-axis.js +2 -2
- package/assets/js/highcharts/modules/grid-axis.src.js +3 -3
- package/assets/js/highcharts/modules/heatmap.js +1 -1
- package/assets/js/highcharts/modules/heatmap.src.js +1 -1
- package/assets/js/highcharts/modules/heikinashi.js +1 -1
- package/assets/js/highcharts/modules/heikinashi.src.js +1 -1
- package/assets/js/highcharts/modules/histogram-bellcurve.js +1 -1
- package/assets/js/highcharts/modules/histogram-bellcurve.src.js +1 -1
- package/assets/js/highcharts/modules/hollowcandlestick.js +1 -1
- package/assets/js/highcharts/modules/hollowcandlestick.src.js +1 -1
- package/assets/js/highcharts/modules/item-series.js +1 -1
- package/assets/js/highcharts/modules/item-series.src.js +1 -1
- package/assets/js/highcharts/modules/lollipop.js +1 -1
- package/assets/js/highcharts/modules/lollipop.src.js +1 -1
- package/assets/js/highcharts/modules/map.js +2 -2
- package/assets/js/highcharts/modules/map.src.js +4 -9
- package/assets/js/highcharts/modules/marker-clusters.js +1 -1
- package/assets/js/highcharts/modules/marker-clusters.src.js +1 -1
- package/assets/js/highcharts/modules/mouse-wheel-zoom.js +1 -1
- package/assets/js/highcharts/modules/mouse-wheel-zoom.src.js +1 -1
- package/assets/js/highcharts/modules/navigator.js +2 -2
- package/assets/js/highcharts/modules/navigator.src.js +20 -5
- package/assets/js/highcharts/modules/networkgraph.js +1 -1
- package/assets/js/highcharts/modules/networkgraph.src.js +1 -1
- package/assets/js/highcharts/modules/no-data-to-display.js +1 -1
- package/assets/js/highcharts/modules/no-data-to-display.src.js +1 -1
- package/assets/js/highcharts/modules/offline-exporting.js +2 -2
- package/assets/js/highcharts/modules/offline-exporting.src.js +6 -3
- package/assets/js/highcharts/modules/organization.js +1 -1
- package/assets/js/highcharts/modules/organization.src.js +1 -1
- package/assets/js/highcharts/modules/overlapping-datalabels.js +1 -1
- package/assets/js/highcharts/modules/overlapping-datalabels.src.js +1 -1
- package/assets/js/highcharts/modules/parallel-coordinates.js +1 -1
- package/assets/js/highcharts/modules/parallel-coordinates.src.js +1 -1
- package/assets/js/highcharts/modules/pareto.js +1 -1
- package/assets/js/highcharts/modules/pareto.src.js +1 -1
- package/assets/js/highcharts/modules/pathfinder.js +1 -1
- package/assets/js/highcharts/modules/pathfinder.src.js +1 -1
- package/assets/js/highcharts/modules/pattern-fill.js +1 -1
- package/assets/js/highcharts/modules/pattern-fill.src.js +1 -1
- package/assets/js/highcharts/modules/pictorial.js +1 -1
- package/assets/js/highcharts/modules/pictorial.src.js +3 -2
- package/assets/js/highcharts/modules/price-indicator.js +1 -1
- package/assets/js/highcharts/modules/price-indicator.src.js +1 -1
- package/assets/js/highcharts/modules/pyramid3d.js +1 -1
- package/assets/js/highcharts/modules/pyramid3d.src.js +2 -1
- package/assets/js/highcharts/modules/sankey.js +1 -1
- package/assets/js/highcharts/modules/sankey.src.js +1 -1
- package/assets/js/highcharts/modules/series-label.js +1 -1
- package/assets/js/highcharts/modules/series-label.src.js +1 -1
- package/assets/js/highcharts/modules/series-on-point.js +1 -1
- package/assets/js/highcharts/modules/series-on-point.src.js +1 -1
- package/assets/js/highcharts/modules/solid-gauge.js +1 -1
- package/assets/js/highcharts/modules/solid-gauge.src.js +1 -1
- package/assets/js/highcharts/modules/sonification.js +1 -1
- package/assets/js/highcharts/modules/sonification.src.js +1 -1
- package/assets/js/highcharts/modules/static-scale.js +1 -1
- package/assets/js/highcharts/modules/static-scale.src.js +1 -1
- package/assets/js/highcharts/modules/stock-tools.js +2 -2
- package/assets/js/highcharts/modules/stock-tools.src.js +3 -3
- package/assets/js/highcharts/modules/stock.js +2 -2
- package/assets/js/highcharts/modules/stock.src.js +20 -5
- package/assets/js/highcharts/modules/streamgraph.js +1 -1
- package/assets/js/highcharts/modules/streamgraph.src.js +1 -1
- package/assets/js/highcharts/modules/sunburst.js +1 -1
- package/assets/js/highcharts/modules/sunburst.src.js +1 -1
- package/assets/js/highcharts/modules/textpath.js +1 -1
- package/assets/js/highcharts/modules/textpath.src.js +1 -1
- package/assets/js/highcharts/modules/tiledwebmap.js +1 -1
- package/assets/js/highcharts/modules/tiledwebmap.src.js +1 -1
- package/assets/js/highcharts/modules/tilemap.js +1 -1
- package/assets/js/highcharts/modules/tilemap.src.js +1 -1
- package/assets/js/highcharts/modules/timeline.js +1 -1
- package/assets/js/highcharts/modules/timeline.src.js +1 -1
- package/assets/js/highcharts/modules/treegraph.js +2 -2
- package/assets/js/highcharts/modules/treegraph.src.js +2 -2
- package/assets/js/highcharts/modules/treegrid.js +2 -2
- package/assets/js/highcharts/modules/treegrid.src.js +11 -14
- package/assets/js/highcharts/modules/treemap.js +1 -1
- package/assets/js/highcharts/modules/treemap.src.js +1 -1
- package/assets/js/highcharts/modules/variable-pie.js +1 -1
- package/assets/js/highcharts/modules/variable-pie.src.js +1 -1
- package/assets/js/highcharts/modules/variwide.js +1 -1
- package/assets/js/highcharts/modules/variwide.src.js +1 -1
- package/assets/js/highcharts/modules/vector.js +1 -1
- package/assets/js/highcharts/modules/vector.src.js +1 -1
- package/assets/js/highcharts/modules/venn.js +1 -1
- package/assets/js/highcharts/modules/venn.src.js +1 -1
- package/assets/js/highcharts/modules/windbarb.js +1 -1
- package/assets/js/highcharts/modules/windbarb.src.js +1 -1
- package/assets/js/highcharts/modules/wordcloud.js +1 -1
- package/assets/js/highcharts/modules/wordcloud.src.js +1 -1
- package/assets/js/highcharts/modules/xrange.js +1 -1
- package/assets/js/highcharts/modules/xrange.src.js +1 -1
- package/assets/js/highcharts/standalone-navigator.js +2 -2
- package/assets/js/highcharts/standalone-navigator.src.js +165 -65
- package/assets/js/highcharts/themes/avocado.js +1 -1
- package/assets/js/highcharts/themes/avocado.src.js +1 -1
- package/assets/js/highcharts/themes/brand-dark.js +1 -1
- package/assets/js/highcharts/themes/brand-dark.src.js +1 -1
- package/assets/js/highcharts/themes/brand-light.js +1 -1
- package/assets/js/highcharts/themes/brand-light.src.js +1 -1
- package/assets/js/highcharts/themes/dark-blue.js +1 -1
- package/assets/js/highcharts/themes/dark-blue.src.js +1 -1
- package/assets/js/highcharts/themes/dark-green.js +1 -1
- package/assets/js/highcharts/themes/dark-green.src.js +1 -1
- package/assets/js/highcharts/themes/dark-unica.js +1 -1
- package/assets/js/highcharts/themes/dark-unica.src.js +1 -1
- package/assets/js/highcharts/themes/gray.js +1 -1
- package/assets/js/highcharts/themes/gray.src.js +1 -1
- package/assets/js/highcharts/themes/grid-light.js +1 -1
- package/assets/js/highcharts/themes/grid-light.src.js +1 -1
- package/assets/js/highcharts/themes/grid.js +1 -1
- package/assets/js/highcharts/themes/grid.src.js +1 -1
- package/assets/js/highcharts/themes/high-contrast-dark.js +1 -1
- package/assets/js/highcharts/themes/high-contrast-dark.src.js +1 -1
- package/assets/js/highcharts/themes/high-contrast-light.js +1 -1
- package/assets/js/highcharts/themes/high-contrast-light.src.js +1 -1
- package/assets/js/highcharts/themes/sand-signika.js +1 -1
- package/assets/js/highcharts/themes/sand-signika.src.js +1 -1
- package/assets/js/highcharts/themes/skies.js +1 -1
- package/assets/js/highcharts/themes/skies.src.js +1 -1
- package/assets/js/highcharts/themes/sunset.js +1 -1
- package/assets/js/highcharts/themes/sunset.src.js +1 -1
- package/package.json +1 -1
- package/assets/js/highcharts/es-modules/Core/Series/KDPointSearchObjectLike.js +0 -10
|
@@ -387,6 +387,15 @@ var DataLabel;
|
|
|
387
387
|
// read text bounding box
|
|
388
388
|
dataLabel.css(style).shadow(labelOptions.shadow);
|
|
389
389
|
}
|
|
390
|
+
else if (style.width) {
|
|
391
|
+
// In styled mode with a width property set,
|
|
392
|
+
// the width should be applied to the
|
|
393
|
+
// dataLabel. (#20499)
|
|
394
|
+
dataLabel.css({
|
|
395
|
+
width: style.width,
|
|
396
|
+
textOverflow: style.textOverflow
|
|
397
|
+
});
|
|
398
|
+
}
|
|
390
399
|
fireEvent(dataLabel, 'beforeAddingDataLabel', { labelOptions, point });
|
|
391
400
|
if (!dataLabel.added) {
|
|
392
401
|
dataLabel.add(dataLabelsGroup);
|
|
@@ -729,6 +729,15 @@ class Tooltip {
|
|
|
729
729
|
text.join('') :
|
|
730
730
|
text
|
|
731
731
|
});
|
|
732
|
+
// When the length of the label has increased, immediately
|
|
733
|
+
// update the x position to prevent tooltip from flowing
|
|
734
|
+
// outside the viewport during animation (#21371)
|
|
735
|
+
if (this.outside) {
|
|
736
|
+
label.attr({
|
|
737
|
+
x: clamp(label.x || 0, 0, this.getPlayingField().width -
|
|
738
|
+
(label.width || 0))
|
|
739
|
+
});
|
|
740
|
+
}
|
|
732
741
|
if (!styledMode) {
|
|
733
742
|
label.attr({
|
|
734
743
|
stroke: (options.borderColor ||
|
|
@@ -76,6 +76,8 @@ function getLabelsAndShapesOptions(baseOptions, newOptions) {
|
|
|
76
76
|
* shapes. Created items are positioned on the chart either by linking them to
|
|
77
77
|
* existing points or created mock points
|
|
78
78
|
*
|
|
79
|
+
* @requires modules/annotations
|
|
80
|
+
*
|
|
79
81
|
* @class
|
|
80
82
|
* @name Highcharts.Annotation
|
|
81
83
|
*
|
|
@@ -561,6 +563,8 @@ Annotation.MockPoint = MockPoint;
|
|
|
561
563
|
* An object uses for mapping between a shape type and a constructor.
|
|
562
564
|
* To add a new shape type extend this object with type name as a key
|
|
563
565
|
* and a constructor as its value.
|
|
566
|
+
*
|
|
567
|
+
* @private
|
|
564
568
|
*/
|
|
565
569
|
Annotation.shapesMap = {
|
|
566
570
|
'rect': ControllableRect,
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* */
|
|
12
12
|
'use strict';
|
|
13
|
+
import Axis from '../Core/Axis/Axis.js';
|
|
13
14
|
import Chart from '../Core/Chart/Chart.js';
|
|
14
15
|
import D from '../Core/Defaults.js';
|
|
15
16
|
const { getOptions } = D;
|
|
@@ -133,7 +134,7 @@ class Data {
|
|
|
133
134
|
regex: /^(\d{4})[\-\/\.](\d{1,2})[\-\/\.](\d{1,2})$/,
|
|
134
135
|
parser: function (match) {
|
|
135
136
|
return (match ?
|
|
136
|
-
Date.UTC(+match[1], match[2] - 1, +match[3]) :
|
|
137
|
+
Date.UTC(+match[1], +match[2] - 1, +match[3]) :
|
|
137
138
|
NaN);
|
|
138
139
|
}
|
|
139
140
|
},
|
|
@@ -141,7 +142,7 @@ class Data {
|
|
|
141
142
|
regex: /^(\d{1,2})[\-\/\.](\d{1,2})[\-\/\.](\d{4})$/,
|
|
142
143
|
parser: function (match) {
|
|
143
144
|
return (match ?
|
|
144
|
-
Date.UTC(+match[3], match[2] - 1, +match[1]) :
|
|
145
|
+
Date.UTC(+match[3], +match[2] - 1, +match[1]) :
|
|
145
146
|
NaN);
|
|
146
147
|
},
|
|
147
148
|
alternative: 'mm/dd/YYYY' // Different format with the same regex
|
|
@@ -150,7 +151,7 @@ class Data {
|
|
|
150
151
|
regex: /^(\d{1,2})[\-\/\.](\d{1,2})[\-\/\.](\d{4})$/,
|
|
151
152
|
parser: function (match) {
|
|
152
153
|
return (match ?
|
|
153
|
-
Date.UTC(+match[3], match[1] - 1, +match[2]) :
|
|
154
|
+
Date.UTC(+match[3], +match[1] - 1, +match[2]) :
|
|
154
155
|
NaN);
|
|
155
156
|
}
|
|
156
157
|
},
|
|
@@ -168,7 +169,7 @@ class Data {
|
|
|
168
169
|
else {
|
|
169
170
|
year += 2000;
|
|
170
171
|
}
|
|
171
|
-
return Date.UTC(year, match[2] - 1, +match[1]);
|
|
172
|
+
return Date.UTC(year, +match[2] - 1, +match[1]);
|
|
172
173
|
},
|
|
173
174
|
alternative: 'mm/dd/YY' // Different format with the same regex
|
|
174
175
|
},
|
|
@@ -176,7 +177,7 @@ class Data {
|
|
|
176
177
|
regex: /^(\d{1,2})[\-\/\.](\d{1,2})[\-\/\.](\d{2})$/,
|
|
177
178
|
parser: function (match) {
|
|
178
179
|
return (match ?
|
|
179
|
-
Date.UTC(+match[3] + 2000, match[1] - 1, +match[2]) :
|
|
180
|
+
Date.UTC(+match[3] + 2000, +match[1] - 1, +match[2]) :
|
|
180
181
|
NaN);
|
|
181
182
|
}
|
|
182
183
|
}
|
|
@@ -248,7 +249,7 @@ class Data {
|
|
|
248
249
|
hasData = this.parseGoogleSpreadsheet();
|
|
249
250
|
}
|
|
250
251
|
if (!hasData && dataOptions.afterComplete) {
|
|
251
|
-
dataOptions.afterComplete();
|
|
252
|
+
dataOptions.afterComplete(this);
|
|
252
253
|
}
|
|
253
254
|
}
|
|
254
255
|
/**
|
|
@@ -259,24 +260,20 @@ class Data {
|
|
|
259
260
|
* @function Highcharts.Data#getColumnDistribution
|
|
260
261
|
*/
|
|
261
262
|
getColumnDistribution() {
|
|
262
|
-
const chartOptions = this.chartOptions, options = this.options, xColumns = [], getValueCount = function (type) {
|
|
263
|
-
return (seriesTypes[type
|
|
264
|
-
}, getPointArrayMap = function (type) {
|
|
265
|
-
return seriesTypes[type
|
|
266
|
-
}, globalType =
|
|
267
|
-
chartOptions.chart &&
|
|
268
|
-
chartOptions.chart.type), individualCounts = [], seriesBuilders = [],
|
|
263
|
+
const chartOptions = this.chartOptions, options = this.options, xColumns = [], getValueCount = function (type = 'line') {
|
|
264
|
+
return (seriesTypes[type].prototype.pointArrayMap || [0]).length;
|
|
265
|
+
}, getPointArrayMap = function (type = 'line') {
|
|
266
|
+
return seriesTypes[type].prototype.pointArrayMap;
|
|
267
|
+
}, globalType = chartOptions?.chart?.type, individualCounts = [], seriesBuilders = [],
|
|
269
268
|
// If no series mapping is defined, check if the series array is
|
|
270
269
|
// defined with types.
|
|
271
|
-
seriesMapping = (
|
|
272
|
-
(
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
return { x: 0 };
|
|
276
|
-
})) ||
|
|
270
|
+
seriesMapping = (options?.seriesMapping ||
|
|
271
|
+
chartOptions?.series?.map(function () {
|
|
272
|
+
return { x: 0 };
|
|
273
|
+
}) ||
|
|
277
274
|
[]);
|
|
278
|
-
let seriesIndex = 0
|
|
279
|
-
(
|
|
275
|
+
let seriesIndex = 0;
|
|
276
|
+
(chartOptions?.series || []).forEach((series) => {
|
|
280
277
|
individualCounts.push(getValueCount(series.type || globalType));
|
|
281
278
|
});
|
|
282
279
|
// Collect the x-column indexes from seriesMapping
|
|
@@ -292,7 +289,7 @@ class Data {
|
|
|
292
289
|
// the mapping options.
|
|
293
290
|
seriesMapping.forEach((mapping) => {
|
|
294
291
|
const builder = new SeriesBuilder(), numberOfValueColumnsNeeded = individualCounts[seriesIndex] ||
|
|
295
|
-
getValueCount(globalType), seriesArr =
|
|
292
|
+
getValueCount(globalType), seriesArr = chartOptions?.series ?? [], series = seriesArr[seriesIndex] ?? {}, defaultPointArrayMap = getPointArrayMap(series.type || globalType), pointArrayMap = defaultPointArrayMap ?? ['y'];
|
|
296
293
|
if (
|
|
297
294
|
// User-defined x.mapping
|
|
298
295
|
defined(mapping.x) ||
|
|
@@ -312,7 +309,7 @@ class Data {
|
|
|
312
309
|
}
|
|
313
310
|
});
|
|
314
311
|
// Add missing columns
|
|
315
|
-
for (i = 0; i < numberOfValueColumnsNeeded; i++) {
|
|
312
|
+
for (let i = 0; i < numberOfValueColumnsNeeded; i++) {
|
|
316
313
|
if (!builder.hasReader(pointArrayMap[i])) {
|
|
317
314
|
// Create and add a column reader for the next free column
|
|
318
315
|
// index
|
|
@@ -361,8 +358,7 @@ class Data {
|
|
|
361
358
|
* @function Highcharts.Data#parseCSV
|
|
362
359
|
*/
|
|
363
360
|
parseCSV(inOptions) {
|
|
364
|
-
const self = this, columns = this.columns = [], options = inOptions || this.options, startColumn =
|
|
365
|
-
options.startColumn) ? options.startColumn : 0, endColumn = options.endColumn || Number.MAX_VALUE, dataTypes = [],
|
|
361
|
+
const self = this, columns = this.columns = [], options = inOptions || this.options, startColumn = options.startColumn || 0, endColumn = options.endColumn || Number.MAX_VALUE, dataTypes = [],
|
|
366
362
|
// We count potential delimiters in the prepass, and use the
|
|
367
363
|
// result as the basis of half-intelligent guesses.
|
|
368
364
|
potDelimiters = {
|
|
@@ -370,9 +366,7 @@ class Data {
|
|
|
370
366
|
';': 0,
|
|
371
367
|
'\t': 0
|
|
372
368
|
};
|
|
373
|
-
let csv = options.csv, startRow =
|
|
374
|
-
options.startRow :
|
|
375
|
-
0), endRow = options.endRow || Number.MAX_VALUE, itemDelimiter, lines, rowIt = 0;
|
|
369
|
+
let csv = options.csv, startRow = options.startRow || 0, endRow = options.endRow || Number.MAX_VALUE, itemDelimiter, lines, rowIt = 0;
|
|
376
370
|
/*
|
|
377
371
|
This implementation is quite verbose. It will be shortened once
|
|
378
372
|
it's stable and passes all the test.
|
|
@@ -491,7 +485,7 @@ class Data {
|
|
|
491
485
|
}
|
|
492
486
|
// Perform "plugin" handling
|
|
493
487
|
}
|
|
494
|
-
else if (callbacks
|
|
488
|
+
else if (callbacks?.[c]) {
|
|
495
489
|
if (callbacks[c](c, token)) {
|
|
496
490
|
push();
|
|
497
491
|
}
|
|
@@ -616,7 +610,7 @@ class Data {
|
|
|
616
610
|
}
|
|
617
611
|
for (; i < limit; i++) {
|
|
618
612
|
if (typeof data[i] !== 'undefined' &&
|
|
619
|
-
data[i]
|
|
613
|
+
data[i]?.length) {
|
|
620
614
|
thing = data[i]
|
|
621
615
|
.trim()
|
|
622
616
|
.replace(/\//g, ' ')
|
|
@@ -690,23 +684,13 @@ class Data {
|
|
|
690
684
|
// error.
|
|
691
685
|
if (!(options.dateFormats || self.dateFormats)[calculatedFormat]) {
|
|
692
686
|
// This should emit an event instead
|
|
693
|
-
fireEvent('deduceDateFailed');
|
|
687
|
+
fireEvent(self, 'deduceDateFailed');
|
|
694
688
|
return format;
|
|
695
689
|
}
|
|
696
690
|
return calculatedFormat;
|
|
697
691
|
}
|
|
698
692
|
return format;
|
|
699
693
|
}
|
|
700
|
-
/**
|
|
701
|
-
* @todo
|
|
702
|
-
* Figure out the best axis types for the data
|
|
703
|
-
* - If the first column is a number, we're good
|
|
704
|
-
* - If the first column is a date, set to date/time
|
|
705
|
-
* - If the first column is a string, set to categories
|
|
706
|
-
* @private
|
|
707
|
-
*/
|
|
708
|
-
function deduceAxisTypes() {
|
|
709
|
-
}
|
|
710
694
|
if (csv && options.beforeParse) {
|
|
711
695
|
csv = options.beforeParse.call(this, csv);
|
|
712
696
|
}
|
|
@@ -725,7 +709,6 @@ class Data {
|
|
|
725
709
|
itemDelimiter = options.itemDelimiter;
|
|
726
710
|
}
|
|
727
711
|
else {
|
|
728
|
-
itemDelimiter = null;
|
|
729
712
|
itemDelimiter = guessDelimiter(lines);
|
|
730
713
|
}
|
|
731
714
|
let offset = 0;
|
|
@@ -737,10 +720,6 @@ class Data {
|
|
|
737
720
|
parseRow(lines[rowIt], rowIt - startRow - offset);
|
|
738
721
|
}
|
|
739
722
|
}
|
|
740
|
-
// Make sure that there's header columns for everything
|
|
741
|
-
// columns.forEach(function (col) {
|
|
742
|
-
// });
|
|
743
|
-
deduceAxisTypes();
|
|
744
723
|
if ((!options.columnTypes || options.columnTypes.length === 0) &&
|
|
745
724
|
dataTypes.length &&
|
|
746
725
|
dataTypes[0].length &&
|
|
@@ -871,7 +850,7 @@ class Data {
|
|
|
871
850
|
url: url,
|
|
872
851
|
dataType: tp || 'json',
|
|
873
852
|
success: function (res) {
|
|
874
|
-
if (chart
|
|
853
|
+
if (chart?.series) {
|
|
875
854
|
done(res);
|
|
876
855
|
}
|
|
877
856
|
poll();
|
|
@@ -880,7 +859,7 @@ class Data {
|
|
|
880
859
|
if (++currentRetries < maxRetries) {
|
|
881
860
|
poll();
|
|
882
861
|
}
|
|
883
|
-
return options.error
|
|
862
|
+
return options.error?.(text, xhr);
|
|
884
863
|
}
|
|
885
864
|
});
|
|
886
865
|
return true;
|
|
@@ -967,7 +946,7 @@ class Data {
|
|
|
967
946
|
}
|
|
968
947
|
},
|
|
969
948
|
error: function (xhr, text) {
|
|
970
|
-
return options.error
|
|
949
|
+
return options.error?.(text, xhr);
|
|
971
950
|
}
|
|
972
951
|
});
|
|
973
952
|
}
|
|
@@ -989,7 +968,7 @@ class Data {
|
|
|
989
968
|
}
|
|
990
969
|
}
|
|
991
970
|
});
|
|
992
|
-
if (chart
|
|
971
|
+
if (chart?.series) {
|
|
993
972
|
chart.update({
|
|
994
973
|
data: {
|
|
995
974
|
columns: columns
|
|
@@ -1056,9 +1035,8 @@ class Data {
|
|
|
1056
1035
|
* Column index
|
|
1057
1036
|
*/
|
|
1058
1037
|
parseColumn(column, col) {
|
|
1059
|
-
const rawColumns = this.rawColumns, columns = this.columns, firstRowAsNames = this.firstRowAsNames, isXColumn = this.valueCount
|
|
1060
|
-
(chartOptions &&
|
|
1061
|
-
chartOptions.xAxis &&
|
|
1038
|
+
const rawColumns = this.rawColumns, columns = this.columns = this.columns || [], firstRowAsNames = this.firstRowAsNames, isXColumn = this.valueCount?.xColumns.indexOf(col) !== -1, backup = [], chartOptions = this.chartOptions, columnTypes = this.options.columnTypes || [], columnType = columnTypes[col], forceCategory = (isXColumn &&
|
|
1039
|
+
(chartOptions?.xAxis &&
|
|
1062
1040
|
splat(chartOptions.xAxis)[0].type === 'category')) || columnType === 'string', columnHasName = defined(column.name);
|
|
1063
1041
|
let row = column.length, val, floatVal, trimVal, trimInsideVal, dateVal, diff, descending;
|
|
1064
1042
|
if (!rawColumns[col]) {
|
|
@@ -1097,7 +1075,7 @@ class Data {
|
|
|
1097
1075
|
// string
|
|
1098
1076
|
}
|
|
1099
1077
|
else {
|
|
1100
|
-
if (trimVal
|
|
1078
|
+
if (trimVal?.length) {
|
|
1101
1079
|
dateVal = this.parseDate(val);
|
|
1102
1080
|
}
|
|
1103
1081
|
// Only allow parsing of dates if this column is an x-column
|
|
@@ -1150,7 +1128,10 @@ class Data {
|
|
|
1150
1128
|
for (col = 0; col < columns.length; col++) {
|
|
1151
1129
|
columns[col].reverse();
|
|
1152
1130
|
if (firstRowAsNames) {
|
|
1153
|
-
columns[col].
|
|
1131
|
+
const poppedColumn = columns[col].pop();
|
|
1132
|
+
if (poppedColumn) {
|
|
1133
|
+
columns[col].unshift(poppedColumn);
|
|
1134
|
+
}
|
|
1154
1135
|
}
|
|
1155
1136
|
}
|
|
1156
1137
|
}
|
|
@@ -1231,11 +1212,11 @@ class Data {
|
|
|
1231
1212
|
*
|
|
1232
1213
|
* @function Highcharts.Data#getData
|
|
1233
1214
|
*
|
|
1234
|
-
* @return {Array<Array<
|
|
1215
|
+
* @return {Array<Array<DataValueType>>|undefined} Data rows
|
|
1235
1216
|
*/
|
|
1236
1217
|
getData() {
|
|
1237
1218
|
if (this.columns) {
|
|
1238
|
-
return this.rowsToColumns(this.columns)
|
|
1219
|
+
return this.rowsToColumns(this.columns)?.slice(1);
|
|
1239
1220
|
}
|
|
1240
1221
|
}
|
|
1241
1222
|
/**
|
|
@@ -1252,11 +1233,13 @@ class Data {
|
|
|
1252
1233
|
* If a complete callback function is provided in the options, interpret the
|
|
1253
1234
|
* columns into a Highcharts options object.
|
|
1254
1235
|
*
|
|
1236
|
+
* The function requires that the context has the `valueCount` property set.
|
|
1237
|
+
*
|
|
1255
1238
|
* @function Highcharts.Data#complete
|
|
1256
1239
|
*/
|
|
1257
1240
|
complete() {
|
|
1258
|
-
const columns = this.columns, xColumns = [], options = this.options, allSeriesBuilders = [];
|
|
1259
|
-
let type, series, data, i, j, r, seriesIndex, chartOptions, builder, freeIndexes, typeCol, index;
|
|
1241
|
+
const columns = this.columns = this.columns || [], xColumns = [], options = this.options, allSeriesBuilders = [];
|
|
1242
|
+
let type = 'linear', series, data, i, j, r, seriesIndex, chartOptions, builder, freeIndexes, typeCol, index;
|
|
1260
1243
|
xColumns.length = columns.length;
|
|
1261
1244
|
if (options.complete || options.afterComplete) {
|
|
1262
1245
|
// Get the names and shift the top row
|
|
@@ -1270,7 +1253,7 @@ class Data {
|
|
|
1270
1253
|
}
|
|
1271
1254
|
// Use the next columns for series
|
|
1272
1255
|
series = [];
|
|
1273
|
-
freeIndexes = getFreeIndexes(columns
|
|
1256
|
+
freeIndexes = getFreeIndexes(columns?.length || 0, this.valueCount.seriesBuilders);
|
|
1274
1257
|
// Populate defined series
|
|
1275
1258
|
for (seriesIndex = 0; seriesIndex < this.valueCount.seriesBuilders.length; seriesIndex++) {
|
|
1276
1259
|
builder = this.valueCount.seriesBuilders[seriesIndex];
|
|
@@ -1303,7 +1286,7 @@ class Data {
|
|
|
1303
1286
|
// Get the data-type from the first series x column
|
|
1304
1287
|
if (allSeriesBuilders.length > 0 &&
|
|
1305
1288
|
allSeriesBuilders[0].readers.length > 0) {
|
|
1306
|
-
typeCol = columns[allSeriesBuilders[0].readers[0].columnIndex];
|
|
1289
|
+
typeCol = columns?.[allSeriesBuilders[0].readers[0].columnIndex ?? -1];
|
|
1307
1290
|
if (typeof typeCol !== 'undefined') {
|
|
1308
1291
|
if (typeCol.isDatetime) {
|
|
1309
1292
|
type = 'datetime';
|
|
@@ -1336,35 +1319,62 @@ class Data {
|
|
|
1336
1319
|
}
|
|
1337
1320
|
// Add the series
|
|
1338
1321
|
series[seriesIndex] = {
|
|
1339
|
-
data
|
|
1322
|
+
data,
|
|
1323
|
+
pointStart: data[0] && (builder.pointIsArray ?
|
|
1324
|
+
data[0]?.[0] :
|
|
1325
|
+
data[0]?.x) || void 0
|
|
1340
1326
|
};
|
|
1341
1327
|
if (builder.name) {
|
|
1342
1328
|
series[seriesIndex].name = builder.name;
|
|
1343
1329
|
}
|
|
1344
1330
|
if (type === 'category') {
|
|
1345
1331
|
series[seriesIndex].turboThreshold = 0;
|
|
1332
|
+
series[seriesIndex].pointStart = 0;
|
|
1346
1333
|
}
|
|
1347
1334
|
}
|
|
1348
1335
|
// Do the callback
|
|
1349
|
-
chartOptions = {
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1336
|
+
chartOptions = { series };
|
|
1337
|
+
// Prepare the axis options
|
|
1338
|
+
if (type === 'linear' && (!this.xAxisOptions ||
|
|
1339
|
+
this.xAxisOptions.type === type)) {
|
|
1340
|
+
// Clear default value ('linear') if it is not changing the
|
|
1341
|
+
// axis type to avoid loosing animation
|
|
1342
|
+
type = this.xAxisOptions = void 0;
|
|
1343
|
+
}
|
|
1344
|
+
else {
|
|
1345
|
+
this.xAxisOptions = { type };
|
|
1356
1346
|
if (type === 'category') {
|
|
1357
|
-
|
|
1347
|
+
this.xAxisOptions.uniqueNames = false;
|
|
1358
1348
|
}
|
|
1359
1349
|
}
|
|
1360
|
-
|
|
1361
|
-
|
|
1350
|
+
// Merge the xAxisOptions for the standalone Data module
|
|
1351
|
+
if (!this.chart) {
|
|
1352
|
+
merge(true, chartOptions, { xAxis: this.xAxisOptions || {} });
|
|
1362
1353
|
}
|
|
1354
|
+
options.complete?.(chartOptions);
|
|
1363
1355
|
// The afterComplete hook is used internally to avoid conflict with
|
|
1364
1356
|
// the externally available complete option.
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1357
|
+
options.afterComplete?.(this, chartOptions);
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* Sets properties directly on the xAxis object.
|
|
1362
|
+
*
|
|
1363
|
+
* @private
|
|
1364
|
+
*/
|
|
1365
|
+
xAxisUpdateHandler(axis) {
|
|
1366
|
+
const options = this.xAxisOptions;
|
|
1367
|
+
if (!options) {
|
|
1368
|
+
return;
|
|
1369
|
+
}
|
|
1370
|
+
// Set the axis properties if not blocked by the axis options that could
|
|
1371
|
+
// have changed in the update event.
|
|
1372
|
+
if (!axis.options.type && options.type) {
|
|
1373
|
+
axis.type = options.type;
|
|
1374
|
+
}
|
|
1375
|
+
if (!axis.options.uniqueNames &&
|
|
1376
|
+
options.uniqueNames === false) {
|
|
1377
|
+
axis.uniqueNames = options.uniqueNames;
|
|
1368
1378
|
}
|
|
1369
1379
|
}
|
|
1370
1380
|
/**
|
|
@@ -1373,39 +1383,58 @@ class Data {
|
|
|
1373
1383
|
* @function Highcharts.Data#update
|
|
1374
1384
|
*
|
|
1375
1385
|
* @param {Highcharts.DataOptions} options
|
|
1386
|
+
* The new data options.
|
|
1376
1387
|
*
|
|
1377
1388
|
* @param {boolean} [redraw=true]
|
|
1389
|
+
* Whether to redraw the chart after the new options are set.
|
|
1378
1390
|
*/
|
|
1379
1391
|
update(options, redraw) {
|
|
1380
1392
|
const chart = this.chart, chartOptions = chart.options;
|
|
1381
1393
|
if (options) {
|
|
1382
1394
|
// Set the complete handler
|
|
1383
|
-
options.afterComplete = function (dataOptions) {
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1395
|
+
options.afterComplete = function (dataInstance, dataOptions) {
|
|
1396
|
+
if (!dataOptions) {
|
|
1397
|
+
return;
|
|
1398
|
+
}
|
|
1399
|
+
// Avoid setting axis options unless they change. Running
|
|
1400
|
+
// Axis.update will cause the whole structure to be
|
|
1401
|
+
// destroyed and rebuilt, and animation is lost.
|
|
1402
|
+
const xAxis = chart.xAxis[0], xAxisOptions = dataInstance.xAxisOptions;
|
|
1403
|
+
// Update axis if xAxisOptions are different from the current
|
|
1404
|
+
// and not blocked by the axis options.
|
|
1405
|
+
if (xAxisOptions && xAxis && ((xAxis.type !== xAxisOptions.type && !xAxis.options.type) ||
|
|
1406
|
+
(xAxis.uniqueNames &&
|
|
1407
|
+
xAxisOptions.uniqueNames === false &&
|
|
1408
|
+
xAxis.options.uniqueNames === void 0))) {
|
|
1409
|
+
xAxis.update({}, false);
|
|
1396
1410
|
}
|
|
1411
|
+
else {
|
|
1412
|
+
// Prefer smooth points update when no axis update
|
|
1413
|
+
(dataOptions?.series || []).forEach(function (seriesOptions) {
|
|
1414
|
+
delete seriesOptions.pointStart;
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
chart.update(dataOptions, redraw, true);
|
|
1397
1418
|
};
|
|
1398
1419
|
// Apply it
|
|
1399
1420
|
merge(true, chartOptions.data, options);
|
|
1400
1421
|
// Reset columns if fetching spreadsheet, to force a re-fetch
|
|
1401
|
-
if (chartOptions.data &&
|
|
1402
|
-
!options.columns) {
|
|
1422
|
+
if (chartOptions.data?.googleSpreadsheetKey && !options.columns) {
|
|
1403
1423
|
delete chartOptions.data.columns;
|
|
1404
1424
|
}
|
|
1405
|
-
this.init(chartOptions.data);
|
|
1425
|
+
this.init(chartOptions.data || {}, chartOptions);
|
|
1406
1426
|
}
|
|
1407
1427
|
}
|
|
1408
1428
|
}
|
|
1429
|
+
// Fire 1st xAxis properties modifier after the options are set.
|
|
1430
|
+
addEvent(Axis, 'afterSetOptions', function () {
|
|
1431
|
+
// Target first xAxis only
|
|
1432
|
+
if (this.isXAxis &&
|
|
1433
|
+
// Init or update
|
|
1434
|
+
(!this.chart.xAxis.length || this.chart.xAxis[0] === this)) {
|
|
1435
|
+
this.chart.data?.xAxisUpdateHandler(this);
|
|
1436
|
+
}
|
|
1437
|
+
});
|
|
1409
1438
|
// Extend Chart.init so that the Chart constructor accepts a new configuration
|
|
1410
1439
|
// option group, data.
|
|
1411
1440
|
addEvent(Chart, 'init', function (e) {
|
|
@@ -1422,19 +1451,15 @@ addEvent(Chart, 'init', function (e) {
|
|
|
1422
1451
|
*/
|
|
1423
1452
|
const dataOptions = merge(defaultDataOptions, userOptions.data);
|
|
1424
1453
|
chart.data = new Data(extend(dataOptions, {
|
|
1425
|
-
afterComplete: function (dataOptions) {
|
|
1454
|
+
afterComplete: function (dataInstance, dataOptions) {
|
|
1426
1455
|
let i, series;
|
|
1427
1456
|
// Merge series configs
|
|
1428
1457
|
if (Object.hasOwnProperty.call(userOptions, 'series')) {
|
|
1429
1458
|
if (typeof userOptions.series === 'object') {
|
|
1430
|
-
i = Math.max(userOptions.series.length, dataOptions
|
|
1431
|
-
dataOptions.series.length :
|
|
1432
|
-
0);
|
|
1459
|
+
i = Math.max(userOptions.series.length, dataOptions?.series?.length ?? 0);
|
|
1433
1460
|
while (i--) {
|
|
1434
1461
|
series = userOptions.series[i] || {};
|
|
1435
|
-
userOptions.series[i] = merge(series, dataOptions
|
|
1436
|
-
dataOptions.series[i] :
|
|
1437
|
-
{});
|
|
1462
|
+
userOptions.series[i] = merge(series, dataOptions?.series?.[i] ?? {});
|
|
1438
1463
|
}
|
|
1439
1464
|
}
|
|
1440
1465
|
else { // Allow merging in dataOptions.series (#2856)
|
|
@@ -1443,6 +1468,8 @@ addEvent(Chart, 'init', function (e) {
|
|
|
1443
1468
|
}
|
|
1444
1469
|
// Do the merge
|
|
1445
1470
|
userOptions = merge(dataOptions, userOptions);
|
|
1471
|
+
// Register for access in events (Axis' afterSetOptions)
|
|
1472
|
+
chart.data = dataInstance;
|
|
1446
1473
|
// Run chart.init again
|
|
1447
1474
|
chart.init(userOptions, callback);
|
|
1448
1475
|
}
|
|
@@ -730,7 +730,11 @@ var Exporting;
|
|
|
730
730
|
options[axis.coll] = [];
|
|
731
731
|
}
|
|
732
732
|
options[axis.coll].push(merge(axis.userOptions, {
|
|
733
|
-
visible: axis.visible
|
|
733
|
+
visible: axis.visible,
|
|
734
|
+
// Force some options that could have be set directly on
|
|
735
|
+
// the axis while missing in the userOptions or options.
|
|
736
|
+
type: axis.type,
|
|
737
|
+
uniqueNames: axis.uniqueNames
|
|
734
738
|
}));
|
|
735
739
|
}
|
|
736
740
|
});
|
|
@@ -228,7 +228,10 @@ var OfflineExporting;
|
|
|
228
228
|
outlineElements =
|
|
229
229
|
el.getElementsByClassName('highcharts-text-outline');
|
|
230
230
|
while (outlineElements.length > 0) {
|
|
231
|
-
|
|
231
|
+
const outline = outlineElements[0];
|
|
232
|
+
if (outline.parentNode) {
|
|
233
|
+
outline.parentNode.removeChild(outline);
|
|
234
|
+
}
|
|
232
235
|
}
|
|
233
236
|
});
|
|
234
237
|
const svgNode = dummySVGContainer.querySelector('svg');
|
|
@@ -339,11 +339,6 @@ var GeoJSONComposition;
|
|
|
339
339
|
*/
|
|
340
340
|
function wrapChartAddCredit(proceed, credits) {
|
|
341
341
|
credits = merge(true, this.options.credits, credits);
|
|
342
|
-
// Disable credits link if map credits enabled. This to allow for
|
|
343
|
-
// in-text anchors.
|
|
344
|
-
if (this.mapCredits) {
|
|
345
|
-
credits.href = void 0;
|
|
346
|
-
}
|
|
347
342
|
proceed.call(this, credits);
|
|
348
343
|
// Add full map credits to hover
|
|
349
344
|
if (this.credits && this.mapCreditsFull) {
|
|
@@ -185,10 +185,10 @@ MapBubbleSeries.defaultOptions = merge(BubbleSeries.defaultOptions, {
|
|
|
185
185
|
* @apioption plotOptions.mapbubble.sizeByAbsoluteValue
|
|
186
186
|
*/
|
|
187
187
|
/**
|
|
188
|
-
* The
|
|
189
|
-
*
|
|
188
|
+
* The maximum for the Z value range. Defaults to the highest Z value in
|
|
189
|
+
* the data.
|
|
190
190
|
*
|
|
191
|
-
* @see [
|
|
191
|
+
* @see [zMin](#plotOptions.mapbubble.zMin)
|
|
192
192
|
*
|
|
193
193
|
* @sample {highmaps} highcharts/plotoptions/bubble-zmin-zmax/
|
|
194
194
|
* Z has a possible range of 0-100
|
|
@@ -150,6 +150,7 @@ class PictorialSeries extends ColumnSeries {
|
|
|
150
150
|
* Static Properties
|
|
151
151
|
*
|
|
152
152
|
* */
|
|
153
|
+
PictorialSeries.defaultOptions = merge(ColumnSeries.defaultOptions,
|
|
153
154
|
/**
|
|
154
155
|
* A pictorial chart uses vector images to represents the data.
|
|
155
156
|
* The shape of the data point is taken from the path parameter.
|
|
@@ -168,7 +169,7 @@ class PictorialSeries extends ColumnSeries {
|
|
|
168
169
|
* @requires modules/pictorial
|
|
169
170
|
* @optionparent plotOptions.pictorial
|
|
170
171
|
*/
|
|
171
|
-
|
|
172
|
+
{
|
|
172
173
|
borderWidth: 0
|
|
173
174
|
});
|
|
174
175
|
/* *
|