highcharts 12.2.0 → 12.4.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/annotations/popup.css +86 -45
- package/css/highcharts.css +40 -35
- package/css/stocktools/gui.css +28 -11
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +3 -3
- package/es-modules/Accessibility/Components/LegendComponent.js +10 -1
- package/es-modules/Accessibility/Components/MenuComponent.js +26 -23
- package/es-modules/Accessibility/Components/NavigatorComponent.js +5 -1
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +3 -1
- package/es-modules/Accessibility/FocusBorder.js +4 -0
- package/es-modules/Accessibility/HighContrastMode.js +0 -5
- package/es-modules/Accessibility/Options/A11yDefaults.js +12 -0
- package/es-modules/Core/Axis/Axis.js +4 -3
- package/es-modules/Core/Axis/Axis3DComposition.js +0 -3
- package/es-modules/Core/Axis/AxisDefaults.js +5 -8
- package/es-modules/Core/Axis/BrokenAxis.js +114 -90
- package/es-modules/Core/Axis/Color/ColorAxis.js +3 -3
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +2 -3
- package/es-modules/Core/Axis/OrdinalAxis.js +19 -12
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +15 -2
- package/es-modules/Core/Axis/RadialAxis.js +18 -7
- package/es-modules/Core/Axis/ScrollbarAxis.js +19 -17
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +0 -1
- package/es-modules/Core/Axis/Tick.js +1 -1
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +36 -51
- package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +39 -17
- package/es-modules/Core/Axis/WaterfallAxis.js +4 -4
- package/es-modules/Core/Chart/Chart.js +41 -34
- package/es-modules/Core/Chart/ChartDefaults.js +16 -2
- package/es-modules/Core/Chart/GanttChart.js +4 -2
- package/es-modules/Core/Chart/StockChart.js +42 -49
- package/es-modules/Core/Color/Color.js +4 -8
- package/es-modules/Core/Defaults.js +16 -7
- package/es-modules/Core/Geometry/CircleUtilities.js +3 -1
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/HttpUtilities.js +45 -38
- package/es-modules/Core/Legend/Legend.js +8 -7
- package/es-modules/Core/Pointer.js +17 -9
- package/es-modules/Core/Renderer/HTML/AST.js +15 -15
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +8 -3
- package/es-modules/Core/Renderer/SVG/SVGElement.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +10 -1
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +10 -7
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +2 -2
- package/es-modules/Core/Series/DataLabel.js +4 -2
- package/es-modules/Core/Series/Point.js +9 -0
- package/es-modules/Core/Series/Series.js +17 -7
- package/es-modules/Core/Series/SeriesDefaults.js +1 -3
- package/es-modules/Core/Series/SeriesRegistry.js +8 -1
- package/es-modules/Core/Templating.js +6 -5
- package/es-modules/Core/Tooltip.js +3 -1
- package/es-modules/Data/Connectors/CSVConnector.js +32 -15
- package/es-modules/Data/Connectors/DataConnector.js +107 -12
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +29 -17
- package/es-modules/Data/Connectors/HTMLTableConnector.js +3 -3
- package/es-modules/Data/Connectors/JSONConnector.js +37 -17
- package/es-modules/Data/Converters/HTMLTableConverter.js +2 -2
- package/es-modules/Data/Converters/JSONConverter.js +0 -1
- package/es-modules/Data/DataPool.js +15 -4
- package/es-modules/Data/DataTable.js +1 -2
- package/es-modules/Data/Formula/FormulaParser.js +33 -1
- package/es-modules/Data/Formula/FormulaProcessor.js +97 -45
- package/es-modules/Data/Modifiers/DataModifier.js +1 -1
- package/es-modules/Data/Modifiers/FilterModifier.js +168 -0
- package/es-modules/Data/Modifiers/FilterModifierOptions.js +14 -0
- package/es-modules/Data/Modifiers/SortModifier.js +12 -3
- package/es-modules/Extensions/Annotations/Annotation.js +10 -7
- package/es-modules/Extensions/Annotations/AnnotationChart.js +7 -3
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +38 -12
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +10 -3
- package/es-modules/Extensions/Annotations/MockPoint.js +6 -3
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +10 -4
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +1 -1
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +0 -3
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +97 -94
- package/es-modules/Extensions/Annotations/Types/ElliottWave.js +43 -36
- package/es-modules/Extensions/Annotations/Types/Fibonacci.js +86 -82
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +74 -71
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +17 -3
- package/es-modules/Extensions/Annotations/Types/Measure.js +229 -226
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +39 -40
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +56 -52
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +80 -76
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +57 -53
- package/es-modules/Extensions/Boost/Boost.js +5 -1
- package/es-modules/Extensions/Boost/BoostSeries.js +53 -21
- package/es-modules/Extensions/Boost/WGLRenderer.js +30 -21
- package/es-modules/Extensions/Boost/WGLShader.js +18 -5
- package/es-modules/Extensions/BoostCanvas.js +0 -5
- package/es-modules/Extensions/BorderRadius.js +6 -2
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +1 -1
- package/es-modules/Extensions/DownloadURL.js +43 -8
- package/es-modules/Extensions/ExportData/ExportData.js +875 -781
- package/es-modules/Extensions/ExportData/ExportDataDefaults.js +67 -13
- package/es-modules/Extensions/Exporting/Exporting.js +1177 -546
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +52 -36
- package/es-modules/Extensions/Exporting/Fullscreen.js +2 -2
- package/es-modules/Extensions/NonCartesianSeriesZoom/NonCartesianSeriesZoom.js +311 -0
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +254 -575
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +9 -38
- package/es-modules/Extensions/Pane/Pane.js +1 -1
- package/es-modules/Extensions/Pane/PaneComposition.js +19 -12
- package/es-modules/Extensions/Pane/PaneDefaults.js +9 -1
- package/es-modules/Extensions/ScrollablePlotArea.js +29 -21
- package/es-modules/Extensions/Sonification/Sonification.js +1 -1
- package/es-modules/Extensions/StaticScale.js +13 -11
- package/es-modules/Extensions/TextPath.js +2 -2
- package/es-modules/Extensions/Themes/Adaptive.js +1009 -0
- package/es-modules/Maps/MapNavigation.js +1 -1
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +16 -9
- package/es-modules/Series/Bubble/BubblePoint.js +2 -2
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +1 -2
- package/es-modules/Series/DataModifyComposition.js +0 -2
- package/es-modules/Series/DragNodesComposition.js +4 -0
- package/es-modules/Series/DrawPointUtilities.js +1 -1
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +2 -0
- package/es-modules/Series/GraphLayoutComposition.js +2 -1
- package/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js +1 -2
- package/es-modules/Series/Histogram/HistogramSeries.js +19 -17
- package/es-modules/Series/Item/ItemSeries.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +5 -0
- package/es-modules/Series/Pie/PieDataLabel.js +2 -2
- package/es-modules/Series/Pie/PieSeries.js +2 -2
- package/es-modules/Series/Pie/PieSeriesDefaults.js +1 -2
- package/es-modules/Series/PolarComposition.js +37 -2
- package/es-modules/Series/SeriesOnPointComposition.js +0 -1
- package/es-modules/Series/SimulationSeriesUtilities.js +7 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +7 -2
- package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +13 -0
- package/es-modules/Series/Treegraph/TreegraphLayout.js +10 -4
- package/es-modules/Series/Treegraph/TreegraphSeries.js +3 -1
- package/es-modules/Series/Treemap/TreemapSeries.js +4 -4
- package/es-modules/Series/Variwide/VariwideComposition.js +9 -11
- package/es-modules/Series/Variwide/VariwideSeries.js +8 -1
- package/es-modules/Series/Waterfall/WaterfallSeries.js +12 -17
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +87 -10
- package/es-modules/Series/XRange/XRangePoint.js +2 -1
- package/es-modules/Shared/BaseForm.js +6 -3
- package/es-modules/Shared/TimeBase.js +5 -1
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -1
- package/es-modules/Stock/Navigator/NavigatorComposition.js +2 -2
- package/es-modules/Stock/Scrollbar/Scrollbar.js +5 -7
- package/es-modules/Stock/StockTools/StockToolbar.js +1 -1
- package/es-modules/Stock/StockTools/StockToolsBindings.js +34 -113
- package/es-modules/masters/highcharts-3d.src.js +3 -1
- package/es-modules/masters/highcharts-gantt.src.js +8 -2
- package/es-modules/masters/highcharts-more.src.js +2 -2
- package/es-modules/masters/highcharts.src.js +2 -2
- package/es-modules/masters/highmaps.src.js +2 -2
- package/es-modules/masters/highstock.src.js +2 -2
- package/es-modules/masters/i18n/fr-FR.src.d.ts +1 -1
- package/es-modules/masters/i18n/fr-FR.src.js +1 -1
- package/es-modules/masters/i18n/nb-NO.src.d.ts +1 -1
- package/es-modules/masters/i18n/nb-NO.src.js +1 -1
- package/es-modules/masters/i18n/zh-CN.src.d.ts +1 -1
- package/es-modules/masters/i18n/zh-CN.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ema.src.js +0 -3
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arc-diagram.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data-tools.src.d.ts +1 -0
- package/es-modules/masters/modules/data-tools.src.js +2 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +3 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +3 -3
- package/es-modules/masters/modules/exporting.src.js +5 -1
- package/es-modules/masters/modules/flowmap.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/geoheatmap.src.js +1 -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/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/mouse-wheel-zoom.src.js +1 -1
- package/es-modules/masters/modules/navigator.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/non-cartesian-zoom.src.d.ts +2 -0
- package/es-modules/masters/modules/non-cartesian-zoom.src.js +18 -0
- package/es-modules/masters/modules/offline-exporting.src.js +2 -2
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/pictorial.src.js +1 -1
- package/es-modules/masters/modules/pointandfigure.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/renko.src.js +1 -1
- 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/series-on-point.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.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/sunburst.src.js +1 -1
- package/es-modules/masters/modules/textpath.src.js +1 -1
- package/es-modules/masters/modules/tiledwebmap.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegraph.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- 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/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/standalone-navigator.src.js +7 -6
- package/es-modules/masters/themes/adaptive.src.d.ts +2 -0
- package/es-modules/masters/themes/adaptive.src.js +15 -0
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/brand-dark.src.js +1 -1
- package/es-modules/masters/themes/brand-light.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/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.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/masters/themes/sunset.src.js +1 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -1
- package/esm/highcharts-3d.js +11 -1
- package/esm/highcharts-3d.src.js +3 -4
- package/esm/highcharts-gantt.js +14 -1
- package/esm/highcharts-gantt.src.js +8 -2
- package/esm/highcharts-more.js +9 -1
- package/esm/highcharts-more.src.js +516 -57
- package/esm/highcharts.js +9 -2
- package/esm/highcharts.src.js +273 -168
- package/esm/highmaps.js +8 -1
- package/esm/highmaps.src.js +2 -2
- package/esm/highstock.js +8 -1
- package/esm/highstock.src.js +2 -2
- package/esm/i18n/fr-FR.js +13 -1
- package/esm/i18n/fr-FR.src.js +1 -1
- package/esm/i18n/nb-NO.js +13 -1
- package/esm/i18n/nb-NO.src.js +1 -1
- package/esm/i18n/zh-CN.js +13 -1
- package/esm/i18n/zh-CN.src.js +1 -1
- package/esm/indicators/acceleration-bands.js +12 -1
- package/esm/indicators/acceleration-bands.src.js +1 -1
- package/esm/indicators/accumulation-distribution.js +12 -1
- package/esm/indicators/accumulation-distribution.src.js +1 -1
- package/esm/indicators/ao.js +12 -1
- package/esm/indicators/ao.src.js +1 -1
- package/esm/indicators/apo.js +12 -1
- package/esm/indicators/apo.src.js +1 -1
- package/esm/indicators/aroon-oscillator.js +12 -1
- package/esm/indicators/aroon-oscillator.src.js +1 -1
- package/esm/indicators/aroon.js +12 -1
- package/esm/indicators/aroon.src.js +1 -1
- package/esm/indicators/atr.js +12 -1
- package/esm/indicators/atr.src.js +1 -1
- package/esm/indicators/bollinger-bands.js +12 -1
- package/esm/indicators/bollinger-bands.src.js +1 -1
- package/esm/indicators/cci.js +12 -1
- package/esm/indicators/cci.src.js +1 -1
- package/esm/indicators/chaikin.js +12 -1
- package/esm/indicators/chaikin.src.js +1 -1
- package/esm/indicators/cmf.js +11 -1
- package/esm/indicators/cmf.src.js +1 -1
- package/esm/indicators/cmo.js +12 -1
- package/esm/indicators/cmo.src.js +1 -1
- package/esm/indicators/dema.js +12 -1
- package/esm/indicators/dema.src.js +1 -1
- package/esm/indicators/disparity-index.js +12 -1
- package/esm/indicators/disparity-index.src.js +1 -1
- package/esm/indicators/dmi.js +12 -1
- package/esm/indicators/dmi.src.js +1 -1
- package/esm/indicators/dpo.js +12 -1
- package/esm/indicators/dpo.src.js +1 -1
- package/esm/indicators/ema.src.js +0 -3
- package/esm/indicators/ichimoku-kinko-hyo.js +12 -1
- package/esm/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/esm/indicators/indicators-all.js +12 -1
- package/esm/indicators/indicators-all.src.js +2 -2
- package/esm/indicators/indicators.js +12 -1
- package/esm/indicators/indicators.src.js +1 -1
- package/esm/indicators/keltner-channels.js +12 -1
- package/esm/indicators/keltner-channels.src.js +1 -1
- package/esm/indicators/klinger.js +12 -1
- package/esm/indicators/klinger.src.js +1 -1
- package/esm/indicators/macd.js +12 -1
- package/esm/indicators/macd.src.js +2 -2
- package/esm/indicators/mfi.js +12 -1
- package/esm/indicators/mfi.src.js +1 -1
- package/esm/indicators/momentum.js +12 -1
- package/esm/indicators/momentum.src.js +1 -1
- package/esm/indicators/natr.js +12 -1
- package/esm/indicators/natr.src.js +1 -1
- package/esm/indicators/obv.js +12 -1
- package/esm/indicators/obv.src.js +1 -1
- package/esm/indicators/pivot-points.js +12 -1
- package/esm/indicators/pivot-points.src.js +1 -1
- package/esm/indicators/ppo.js +12 -1
- package/esm/indicators/ppo.src.js +1 -1
- package/esm/indicators/price-channel.js +12 -1
- package/esm/indicators/price-channel.src.js +1 -1
- package/esm/indicators/price-envelopes.js +12 -1
- package/esm/indicators/price-envelopes.src.js +1 -1
- package/esm/indicators/psar.js +12 -1
- package/esm/indicators/psar.src.js +1 -1
- package/esm/indicators/regressions.js +12 -1
- package/esm/indicators/regressions.src.js +1 -1
- package/esm/indicators/roc.js +12 -1
- package/esm/indicators/roc.src.js +1 -1
- package/esm/indicators/rsi.js +12 -1
- package/esm/indicators/rsi.src.js +1 -1
- package/esm/indicators/slow-stochastic.js +12 -1
- package/esm/indicators/slow-stochastic.src.js +1 -1
- package/esm/indicators/stochastic.js +12 -1
- package/esm/indicators/stochastic.src.js +1 -1
- package/esm/indicators/supertrend.js +12 -1
- package/esm/indicators/supertrend.src.js +1 -1
- package/esm/indicators/tema.js +12 -1
- package/esm/indicators/tema.src.js +1 -1
- package/esm/indicators/trendline.js +12 -1
- package/esm/indicators/trendline.src.js +1 -1
- package/esm/indicators/trix.js +12 -1
- package/esm/indicators/trix.src.js +1 -1
- package/esm/indicators/volume-by-price.js +12 -1
- package/esm/indicators/volume-by-price.src.js +1 -1
- package/esm/indicators/vwap.js +12 -1
- package/esm/indicators/vwap.src.js +1 -1
- package/esm/indicators/williams-r.js +12 -1
- package/esm/indicators/williams-r.src.js +1 -1
- package/esm/indicators/wma.js +12 -1
- package/esm/indicators/wma.src.js +1 -1
- package/esm/indicators/zigzag.js +12 -1
- package/esm/indicators/zigzag.src.js +1 -1
- package/esm/modules/accessibility.js +12 -1
- package/esm/modules/accessibility.src.js +92 -63
- package/esm/modules/annotations-advanced.js +11 -1
- package/esm/modules/annotations-advanced.src.js +872 -778
- package/esm/modules/annotations.js +11 -1
- package/esm/modules/annotations.src.js +95 -43
- package/esm/modules/arc-diagram.js +11 -1
- package/esm/modules/arc-diagram.src.js +3 -3
- package/esm/modules/arrow-symbols.js +11 -1
- package/esm/modules/arrow-symbols.src.js +1 -1
- package/esm/modules/boost-canvas.js +12 -1
- package/esm/modules/boost-canvas.src.js +102 -53
- package/esm/modules/boost.js +13 -1
- package/esm/modules/boost.src.js +107 -49
- package/esm/modules/broken-axis.js +9 -1
- package/esm/modules/broken-axis.src.js +115 -91
- package/esm/modules/bullet.js +11 -1
- package/esm/modules/bullet.src.js +1 -1
- package/esm/modules/coloraxis.js +11 -1
- package/esm/modules/coloraxis.src.js +6 -7
- package/esm/modules/current-date-indicator.js +11 -1
- package/esm/modules/current-date-indicator.src.js +1 -1
- package/esm/modules/cylinder.js +12 -1
- package/esm/modules/cylinder.src.js +1 -1
- package/esm/modules/data-tools.js +11 -1
- package/esm/modules/data-tools.src.js +542 -125
- package/esm/modules/data.js +11 -1
- package/esm/modules/data.src.js +46 -39
- package/esm/modules/datagrouping.js +11 -1
- package/esm/modules/datagrouping.src.js +1 -1
- package/esm/modules/debugger.js +11 -1
- package/esm/modules/debugger.src.js +1 -1
- package/esm/modules/dependency-wheel.js +12 -1
- package/esm/modules/dependency-wheel.src.js +3 -3
- package/esm/modules/dotplot.js +11 -1
- package/esm/modules/dotplot.src.js +1 -1
- package/esm/modules/drag-panes.js +13 -1
- package/esm/modules/drag-panes.src.js +1 -1
- package/esm/modules/draggable-points.js +9 -1
- package/esm/modules/draggable-points.src.js +1 -1
- package/esm/modules/drilldown.js +13 -1
- package/esm/modules/drilldown.src.js +4 -2
- package/esm/modules/dumbbell.js +9 -1
- package/esm/modules/dumbbell.src.js +1 -1
- package/esm/modules/export-data.js +12 -1
- package/esm/modules/export-data.src.js +985 -799
- package/esm/modules/exporting.js +11 -1
- package/esm/modules/exporting.src.js +1453 -634
- package/esm/modules/flowmap.js +9 -1
- package/esm/modules/flowmap.src.js +1 -1
- package/esm/modules/full-screen.js +12 -1
- package/esm/modules/full-screen.src.js +3 -3
- package/esm/modules/funnel.js +11 -1
- package/esm/modules/funnel.src.js +7 -3
- package/esm/modules/funnel3d.js +13 -1
- package/esm/modules/funnel3d.src.js +1 -1
- package/esm/modules/gantt.js +11 -1
- package/esm/modules/gantt.src.js +254 -212
- package/esm/modules/geoheatmap.js +9 -1
- package/esm/modules/geoheatmap.src.js +1 -1
- package/esm/modules/grid-axis.js +11 -1
- package/esm/modules/grid-axis.src.js +1 -1
- package/esm/modules/heatmap.js +9 -1
- package/esm/modules/heatmap.src.js +2 -3
- package/esm/modules/heikinashi.js +12 -1
- package/esm/modules/heikinashi.src.js +1 -1
- package/esm/modules/histogram-bellcurve.js +10 -1
- package/esm/modules/histogram-bellcurve.src.js +36 -27
- package/esm/modules/hollowcandlestick.js +12 -1
- package/esm/modules/hollowcandlestick.src.js +1 -1
- package/esm/modules/item-series.js +11 -1
- package/esm/modules/item-series.src.js +3 -5
- package/esm/modules/lollipop.js +9 -1
- package/esm/modules/lollipop.src.js +1 -1
- package/esm/modules/map.js +11 -1
- package/esm/modules/map.src.js +5 -6
- package/esm/modules/marker-clusters.js +11 -1
- package/esm/modules/marker-clusters.src.js +1 -1
- package/esm/modules/mouse-wheel-zoom.js +11 -1
- package/esm/modules/mouse-wheel-zoom.src.js +1 -1
- package/esm/modules/navigator.js +11 -1
- package/esm/modules/navigator.src.js +29 -29
- package/esm/modules/networkgraph.js +11 -1
- package/esm/modules/networkgraph.src.js +16 -4
- package/esm/modules/no-data-to-display.js +12 -1
- package/esm/modules/no-data-to-display.src.js +1 -1
- package/esm/modules/non-cartesian-zoom.d.ts +2 -0
- package/esm/modules/non-cartesian-zoom.js +11 -0
- package/esm/modules/non-cartesian-zoom.src.d.ts +2 -0
- package/esm/modules/non-cartesian-zoom.src.js +374 -0
- package/esm/modules/offline-exporting.js +12 -1
- package/esm/modules/offline-exporting.src.js +339 -3363
- package/esm/modules/organization.js +11 -1
- package/esm/modules/organization.src.js +3 -3
- package/esm/modules/parallel-coordinates.js +11 -1
- package/esm/modules/parallel-coordinates.src.js +1 -1
- package/esm/modules/pareto.js +11 -1
- package/esm/modules/pareto.src.js +1 -1
- package/esm/modules/pathfinder.js +11 -1
- package/esm/modules/pathfinder.src.js +1 -1
- package/esm/modules/pattern-fill.js +12 -1
- package/esm/modules/pattern-fill.src.js +1 -1
- package/esm/modules/pictorial.js +11 -1
- package/esm/modules/pictorial.src.js +1 -1
- package/esm/modules/pointandfigure.js +12 -1
- package/esm/modules/pointandfigure.src.js +1 -1
- package/esm/modules/price-indicator.js +13 -1
- package/esm/modules/price-indicator.src.js +1 -1
- package/esm/modules/pyramid3d.js +14 -1
- package/esm/modules/pyramid3d.src.js +1 -1
- package/esm/modules/renko.js +12 -1
- package/esm/modules/renko.src.js +1 -1
- package/esm/modules/sankey.js +11 -1
- package/esm/modules/sankey.src.js +3 -3
- package/esm/modules/series-label.js +9 -1
- package/esm/modules/series-label.src.js +1 -1
- package/esm/modules/series-on-point.js +12 -1
- package/esm/modules/series-on-point.src.js +1 -9
- package/esm/modules/solid-gauge.js +12 -1
- package/esm/modules/solid-gauge.src.js +27 -5
- package/esm/modules/sonification.js +12 -1
- package/esm/modules/sonification.src.js +45 -10
- package/esm/modules/static-scale.js +11 -1
- package/esm/modules/static-scale.src.js +14 -12
- package/esm/modules/stock-tools.js +13 -1
- package/esm/modules/stock-tools.src.js +37 -116
- package/esm/modules/stock.js +11 -1
- package/esm/modules/stock.src.js +98 -98
- package/esm/modules/streamgraph.js +11 -1
- package/esm/modules/streamgraph.src.js +1 -1
- package/esm/modules/sunburst.js +10 -1
- package/esm/modules/sunburst.src.js +9 -9
- package/esm/modules/textpath.js +9 -1
- package/esm/modules/textpath.src.js +3 -3
- package/esm/modules/tiledwebmap.js +10 -2
- package/esm/modules/tiledwebmap.src.js +1 -1
- package/esm/modules/tilemap.js +12 -1
- package/esm/modules/tilemap.src.js +1 -1
- package/esm/modules/timeline.js +12 -1
- package/esm/modules/timeline.src.js +1 -1
- package/esm/modules/treegraph.js +11 -1
- package/esm/modules/treegraph.src.js +16 -8
- package/esm/modules/treegrid.js +11 -1
- package/esm/modules/treegrid.src.js +190 -159
- package/esm/modules/treemap.js +10 -1
- package/esm/modules/treemap.src.js +7 -7
- package/esm/modules/variable-pie.js +11 -1
- package/esm/modules/variable-pie.src.js +1 -1
- package/esm/modules/variwide.js +11 -1
- package/esm/modules/variwide.src.js +18 -13
- package/esm/modules/vector.js +11 -1
- package/esm/modules/vector.src.js +1 -1
- package/esm/modules/venn.js +10 -1
- package/esm/modules/venn.src.js +5 -3
- package/esm/modules/windbarb.js +11 -1
- package/esm/modules/windbarb.src.js +1 -1
- package/esm/modules/wordcloud.js +10 -1
- package/esm/modules/wordcloud.src.js +89 -12
- package/esm/modules/xrange.js +11 -1
- package/esm/modules/xrange.src.js +3 -2
- package/esm/standalone-navigator.js +11 -2
- package/esm/standalone-navigator.src.js +312 -206
- package/esm/themes/adaptive.d.ts +2 -0
- package/esm/themes/adaptive.js +130 -0
- package/esm/themes/adaptive.src.d.ts +2 -0
- package/esm/themes/adaptive.src.js +1069 -0
- package/esm/themes/avocado.js +9 -1
- package/esm/themes/avocado.src.js +1 -1
- package/esm/themes/brand-dark.js +9 -1
- package/esm/themes/brand-dark.src.js +1 -1
- package/esm/themes/brand-light.js +9 -1
- package/esm/themes/brand-light.src.js +1 -1
- package/esm/themes/dark-blue.js +9 -1
- package/esm/themes/dark-blue.src.js +1 -1
- package/esm/themes/dark-green.js +9 -1
- package/esm/themes/dark-green.src.js +1 -1
- package/esm/themes/dark-unica.js +9 -1
- package/esm/themes/dark-unica.src.js +1 -1
- package/esm/themes/gray.js +9 -1
- package/esm/themes/gray.src.js +1 -1
- package/esm/themes/grid-light.js +9 -1
- package/esm/themes/grid-light.src.js +1 -1
- package/esm/themes/grid.js +9 -1
- package/esm/themes/grid.src.js +1 -1
- package/esm/themes/high-contrast-dark.js +9 -1
- package/esm/themes/high-contrast-dark.src.js +1 -1
- package/esm/themes/high-contrast-light.js +9 -1
- package/esm/themes/high-contrast-light.src.js +1 -1
- package/esm/themes/sand-signika.js +9 -1
- package/esm/themes/sand-signika.src.js +1 -1
- package/esm/themes/skies.js +9 -1
- package/esm/themes/skies.src.js +1 -1
- package/esm/themes/sunset.js +9 -1
- package/esm/themes/sunset.src.js +1 -1
- package/highcharts-3d.d.ts +1 -9
- package/highcharts-3d.js +11 -1
- package/highcharts-3d.src.d.ts +1 -9
- package/highcharts-3d.src.js +3 -4
- package/highcharts-gantt.js +15 -2
- package/highcharts-gantt.src.js +546 -392
- package/highcharts-more.d.ts +10 -9
- package/highcharts-more.js +9 -1
- package/highcharts-more.src.d.ts +10 -9
- package/highcharts-more.src.js +516 -57
- package/highcharts.d.ts +4526 -1522
- package/highcharts.js +9 -2
- package/highcharts.src.d.ts +4526 -1522
- package/highcharts.src.js +273 -168
- package/highmaps.js +9 -2
- package/highmaps.src.js +294 -191
- package/highstock.js +9 -2
- package/highstock.src.js +490 -361
- package/i18n/fr-FR.js +13 -1
- package/i18n/fr-FR.src.js +8 -8
- package/i18n/nb-NO.js +13 -1
- package/i18n/nb-NO.src.js +8 -8
- package/i18n/zh-CN.js +13 -1
- package/i18n/zh-CN.src.js +8 -8
- package/indicators/acceleration-bands.d.ts +1 -9
- package/indicators/acceleration-bands.js +12 -1
- package/indicators/acceleration-bands.src.d.ts +1 -9
- package/indicators/acceleration-bands.src.js +1 -1
- package/indicators/accumulation-distribution.d.ts +1 -9
- package/indicators/accumulation-distribution.js +12 -1
- package/indicators/accumulation-distribution.src.d.ts +1 -9
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.d.ts +1 -9
- package/indicators/ao.js +12 -1
- package/indicators/ao.src.d.ts +1 -9
- package/indicators/ao.src.js +1 -1
- package/indicators/apo.d.ts +1 -9
- package/indicators/apo.js +12 -1
- package/indicators/apo.src.d.ts +1 -9
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.d.ts +1 -9
- package/indicators/aroon-oscillator.js +12 -1
- package/indicators/aroon-oscillator.src.d.ts +1 -9
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.d.ts +1 -9
- package/indicators/aroon.js +12 -1
- package/indicators/aroon.src.d.ts +1 -9
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.d.ts +1 -9
- package/indicators/atr.js +12 -1
- package/indicators/atr.src.d.ts +1 -9
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.d.ts +1 -9
- package/indicators/bollinger-bands.js +12 -1
- package/indicators/bollinger-bands.src.d.ts +1 -9
- package/indicators/bollinger-bands.src.js +1 -1
- package/indicators/cci.d.ts +1 -9
- package/indicators/cci.js +12 -1
- package/indicators/cci.src.d.ts +1 -9
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.d.ts +1 -9
- package/indicators/chaikin.js +12 -1
- package/indicators/chaikin.src.d.ts +1 -9
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.d.ts +1 -9
- package/indicators/cmf.js +11 -1
- package/indicators/cmf.src.d.ts +1 -9
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.d.ts +1 -9
- package/indicators/cmo.js +12 -1
- package/indicators/cmo.src.d.ts +1 -9
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.d.ts +1 -9
- package/indicators/dema.js +12 -1
- package/indicators/dema.src.d.ts +1 -9
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.d.ts +1 -9
- package/indicators/disparity-index.js +12 -1
- package/indicators/disparity-index.src.d.ts +1 -9
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.d.ts +1 -9
- package/indicators/dmi.js +12 -1
- package/indicators/dmi.src.d.ts +1 -9
- package/indicators/dmi.src.js +1 -1
- package/indicators/dpo.d.ts +1 -9
- package/indicators/dpo.js +12 -1
- package/indicators/dpo.src.d.ts +1 -9
- package/indicators/dpo.src.js +1 -1
- package/indicators/ema.d.ts +1 -9
- package/indicators/ema.src.d.ts +1 -9
- package/indicators/ema.src.js +3 -6
- package/indicators/ichimoku-kinko-hyo.d.ts +1 -9
- package/indicators/ichimoku-kinko-hyo.js +12 -1
- package/indicators/ichimoku-kinko-hyo.src.d.ts +1 -9
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.d.ts +1 -9
- package/indicators/indicators-all.js +12 -1
- package/indicators/indicators-all.src.d.ts +1 -9
- package/indicators/indicators-all.src.js +2 -2
- package/indicators/indicators.d.ts +1 -9
- package/indicators/indicators.js +12 -1
- package/indicators/indicators.src.d.ts +1 -9
- package/indicators/indicators.src.js +1 -1
- package/indicators/keltner-channels.d.ts +1 -9
- package/indicators/keltner-channels.js +12 -1
- package/indicators/keltner-channels.src.d.ts +1 -9
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.d.ts +1 -9
- package/indicators/klinger.js +12 -1
- package/indicators/klinger.src.d.ts +1 -9
- package/indicators/klinger.src.js +1 -1
- package/indicators/macd.d.ts +1 -9
- package/indicators/macd.js +12 -1
- package/indicators/macd.src.d.ts +1 -9
- package/indicators/macd.src.js +2 -2
- package/indicators/mfi.d.ts +1 -9
- package/indicators/mfi.js +12 -1
- package/indicators/mfi.src.d.ts +1 -9
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.d.ts +1 -9
- package/indicators/momentum.js +12 -1
- package/indicators/momentum.src.d.ts +1 -9
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.d.ts +1 -9
- package/indicators/natr.js +12 -1
- package/indicators/natr.src.d.ts +1 -9
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.d.ts +1 -9
- package/indicators/obv.js +12 -1
- package/indicators/obv.src.d.ts +1 -9
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.d.ts +1 -9
- package/indicators/pivot-points.js +12 -1
- package/indicators/pivot-points.src.d.ts +1 -9
- package/indicators/pivot-points.src.js +1 -1
- package/indicators/ppo.d.ts +1 -9
- package/indicators/ppo.js +12 -1
- package/indicators/ppo.src.d.ts +1 -9
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.d.ts +1 -9
- package/indicators/price-channel.js +12 -1
- package/indicators/price-channel.src.d.ts +1 -9
- package/indicators/price-channel.src.js +1 -1
- package/indicators/price-envelopes.d.ts +1 -9
- package/indicators/price-envelopes.js +12 -1
- package/indicators/price-envelopes.src.d.ts +1 -9
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.d.ts +1 -9
- package/indicators/psar.js +12 -1
- package/indicators/psar.src.d.ts +1 -9
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.d.ts +1 -9
- package/indicators/regressions.js +12 -1
- package/indicators/regressions.src.d.ts +1 -9
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.d.ts +1 -9
- package/indicators/roc.js +12 -1
- package/indicators/roc.src.d.ts +1 -9
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.d.ts +1 -9
- package/indicators/rsi.js +12 -1
- package/indicators/rsi.src.d.ts +1 -9
- package/indicators/rsi.src.js +1 -1
- package/indicators/slow-stochastic.d.ts +1 -9
- package/indicators/slow-stochastic.js +12 -1
- package/indicators/slow-stochastic.src.d.ts +1 -9
- package/indicators/slow-stochastic.src.js +1 -1
- package/indicators/stochastic.d.ts +1 -9
- package/indicators/stochastic.js +12 -1
- package/indicators/stochastic.src.d.ts +1 -9
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.d.ts +1 -9
- package/indicators/supertrend.js +12 -1
- package/indicators/supertrend.src.d.ts +1 -9
- package/indicators/supertrend.src.js +1 -1
- package/indicators/tema.d.ts +1 -9
- package/indicators/tema.js +12 -1
- package/indicators/tema.src.d.ts +1 -9
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.d.ts +1 -9
- package/indicators/trendline.js +12 -1
- package/indicators/trendline.src.d.ts +1 -9
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.d.ts +1 -9
- package/indicators/trix.js +12 -1
- package/indicators/trix.src.d.ts +1 -9
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.d.ts +1 -9
- package/indicators/volume-by-price.js +12 -1
- package/indicators/volume-by-price.src.d.ts +1 -9
- package/indicators/volume-by-price.src.js +1 -1
- package/indicators/vwap.d.ts +1 -9
- package/indicators/vwap.js +12 -1
- package/indicators/vwap.src.d.ts +1 -9
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.d.ts +1 -9
- package/indicators/williams-r.js +12 -1
- package/indicators/williams-r.src.d.ts +1 -9
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.d.ts +1 -9
- package/indicators/wma.js +12 -1
- package/indicators/wma.src.d.ts +1 -9
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.d.ts +1 -9
- package/indicators/zigzag.js +12 -1
- package/indicators/zigzag.src.d.ts +1 -9
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.d.ts +1 -11
- package/modules/accessibility.js +12 -1
- package/modules/accessibility.src.d.ts +1 -11
- package/modules/accessibility.src.js +92 -63
- package/modules/annotations-advanced.d.ts +1 -9
- package/modules/annotations-advanced.js +21 -1
- package/modules/annotations-advanced.src.d.ts +1 -9
- package/modules/annotations-advanced.src.js +888 -794
- package/modules/annotations.d.ts +1 -9
- package/modules/annotations.js +11 -1
- package/modules/annotations.src.d.ts +1 -9
- package/modules/annotations.src.js +95 -43
- package/modules/arc-diagram.d.ts +1 -9
- package/modules/arc-diagram.js +11 -1
- package/modules/arc-diagram.src.d.ts +1 -9
- package/modules/arc-diagram.src.js +3 -3
- package/modules/arrow-symbols.d.ts +1 -9
- package/modules/arrow-symbols.js +11 -1
- package/modules/arrow-symbols.src.d.ts +1 -9
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.d.ts +1 -9
- package/modules/boost-canvas.js +12 -1
- package/modules/boost-canvas.src.d.ts +1 -9
- package/modules/boost-canvas.src.js +102 -53
- package/modules/boost.d.ts +1 -9
- package/modules/boost.js +13 -1
- package/modules/boost.src.d.ts +1 -9
- package/modules/boost.src.js +107 -49
- package/modules/broken-axis.d.ts +1 -9
- package/modules/broken-axis.js +9 -1
- package/modules/broken-axis.src.d.ts +1 -9
- package/modules/broken-axis.src.js +115 -91
- package/modules/bullet.d.ts +1 -9
- package/modules/bullet.js +11 -1
- package/modules/bullet.src.d.ts +1 -9
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.d.ts +1 -9
- package/modules/coloraxis.js +11 -1
- package/modules/coloraxis.src.d.ts +1 -9
- package/modules/coloraxis.src.js +6 -7
- package/modules/current-date-indicator.d.ts +1 -9
- package/modules/current-date-indicator.js +11 -1
- package/modules/current-date-indicator.src.d.ts +1 -9
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.d.ts +1 -9
- package/modules/cylinder.js +12 -1
- package/modules/cylinder.src.d.ts +1 -9
- package/modules/cylinder.src.js +1 -1
- package/modules/data-tools.js +11 -1
- package/modules/data-tools.src.js +542 -125
- package/modules/data.d.ts +1 -9
- package/modules/data.js +11 -1
- package/modules/data.src.d.ts +1 -9
- package/modules/data.src.js +46 -39
- package/modules/datagrouping.d.ts +1 -9
- package/modules/datagrouping.js +11 -1
- package/modules/datagrouping.src.d.ts +1 -9
- package/modules/datagrouping.src.js +1 -1
- package/modules/debugger.d.ts +1 -9
- package/modules/debugger.js +11 -1
- package/modules/debugger.src.d.ts +1 -9
- package/modules/debugger.src.js +1 -1
- package/modules/dependency-wheel.d.ts +1 -9
- package/modules/dependency-wheel.js +12 -1
- package/modules/dependency-wheel.src.d.ts +1 -9
- package/modules/dependency-wheel.src.js +3 -3
- package/modules/dotplot.d.ts +1 -9
- package/modules/dotplot.js +11 -1
- package/modules/dotplot.src.d.ts +1 -9
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.d.ts +1 -9
- package/modules/drag-panes.js +13 -1
- package/modules/drag-panes.src.d.ts +1 -9
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.d.ts +1 -9
- package/modules/draggable-points.js +9 -1
- package/modules/draggable-points.src.d.ts +1 -9
- package/modules/draggable-points.src.js +1 -1
- package/modules/drilldown.d.ts +1 -9
- package/modules/drilldown.js +13 -1
- package/modules/drilldown.src.d.ts +1 -9
- package/modules/drilldown.src.js +4 -2
- package/modules/dumbbell.d.ts +1 -9
- package/modules/dumbbell.js +9 -1
- package/modules/dumbbell.src.d.ts +1 -9
- package/modules/dumbbell.src.js +1 -1
- package/modules/export-data.d.ts +2 -79
- package/modules/export-data.js +12 -1
- package/modules/export-data.src.d.ts +2 -79
- package/modules/export-data.src.js +997 -804
- package/modules/exporting.d.ts +35 -21
- package/modules/exporting.js +11 -1
- package/modules/exporting.src.d.ts +35 -21
- package/modules/exporting.src.js +1452 -628
- package/modules/flowmap.d.ts +1 -9
- package/modules/flowmap.js +9 -1
- package/modules/flowmap.src.d.ts +1 -9
- package/modules/flowmap.src.js +1 -1
- package/modules/full-screen.d.ts +1 -9
- package/modules/full-screen.js +12 -1
- package/modules/full-screen.src.d.ts +1 -9
- package/modules/full-screen.src.js +3 -3
- package/modules/funnel.d.ts +1 -9
- package/modules/funnel.js +11 -1
- package/modules/funnel.src.d.ts +1 -9
- package/modules/funnel.src.js +7 -3
- package/modules/funnel3d.d.ts +1 -9
- package/modules/funnel3d.js +13 -1
- package/modules/funnel3d.src.d.ts +1 -9
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.d.ts +1 -9
- package/modules/gantt.js +31 -1
- package/modules/gantt.src.d.ts +1 -9
- package/modules/gantt.src.js +273 -230
- package/modules/geoheatmap.d.ts +1 -9
- package/modules/geoheatmap.js +9 -1
- package/modules/geoheatmap.src.d.ts +1 -9
- package/modules/geoheatmap.src.js +1 -1
- package/modules/grid-axis.d.ts +1 -9
- package/modules/grid-axis.js +11 -1
- package/modules/grid-axis.src.d.ts +1 -9
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.d.ts +1 -9
- package/modules/heatmap.js +19 -1
- package/modules/heatmap.src.d.ts +1 -9
- package/modules/heatmap.src.js +21 -23
- package/modules/heikinashi.d.ts +1 -9
- package/modules/heikinashi.js +12 -1
- package/modules/heikinashi.src.d.ts +1 -9
- package/modules/heikinashi.src.js +1 -1
- package/modules/histogram-bellcurve.d.ts +2 -11
- package/modules/histogram-bellcurve.js +10 -1
- package/modules/histogram-bellcurve.src.d.ts +2 -11
- package/modules/histogram-bellcurve.src.js +36 -27
- package/modules/hollowcandlestick.d.ts +1 -9
- package/modules/hollowcandlestick.js +12 -1
- package/modules/hollowcandlestick.src.d.ts +1 -9
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.d.ts +1 -9
- package/modules/item-series.js +11 -1
- package/modules/item-series.src.d.ts +1 -9
- package/modules/item-series.src.js +3 -5
- package/modules/lollipop.d.ts +1 -9
- package/modules/lollipop.js +9 -1
- package/modules/lollipop.src.d.ts +1 -9
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +1 -9
- package/modules/map.js +21 -1
- package/modules/map.src.d.ts +1 -9
- package/modules/map.src.js +25 -27
- package/modules/marker-clusters.d.ts +1 -9
- package/modules/marker-clusters.js +11 -1
- package/modules/marker-clusters.src.d.ts +1 -9
- package/modules/marker-clusters.src.js +1 -1
- package/modules/mouse-wheel-zoom.d.ts +1 -9
- package/modules/mouse-wheel-zoom.js +11 -1
- package/modules/mouse-wheel-zoom.src.d.ts +1 -9
- package/modules/mouse-wheel-zoom.src.js +1 -1
- package/modules/navigator.d.ts +1 -9
- package/modules/navigator.js +11 -1
- package/modules/navigator.src.d.ts +1 -9
- package/modules/navigator.src.js +29 -29
- package/modules/networkgraph.d.ts +1 -9
- package/modules/networkgraph.js +11 -1
- package/modules/networkgraph.src.d.ts +1 -9
- package/modules/networkgraph.src.js +16 -4
- package/modules/no-data-to-display.d.ts +1 -9
- package/modules/no-data-to-display.js +12 -1
- package/modules/no-data-to-display.src.d.ts +1 -9
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/non-cartesian-zoom.d.ts +9 -0
- package/modules/non-cartesian-zoom.js +11 -0
- package/modules/non-cartesian-zoom.src.d.ts +9 -0
- package/modules/non-cartesian-zoom.src.js +427 -0
- package/modules/offline-exporting.d.ts +2 -90
- package/modules/offline-exporting.js +12 -1
- package/modules/offline-exporting.src.d.ts +2 -90
- package/modules/offline-exporting.src.js +355 -3380
- package/modules/organization.d.ts +1 -9
- package/modules/organization.js +11 -1
- package/modules/organization.src.d.ts +1 -9
- package/modules/organization.src.js +3 -3
- package/modules/parallel-coordinates.d.ts +1 -9
- package/modules/parallel-coordinates.js +11 -1
- package/modules/parallel-coordinates.src.d.ts +1 -9
- package/modules/parallel-coordinates.src.js +1 -1
- package/modules/pareto.d.ts +1 -9
- package/modules/pareto.js +11 -1
- package/modules/pareto.src.d.ts +1 -9
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.d.ts +1 -9
- package/modules/pathfinder.js +11 -1
- package/modules/pathfinder.src.d.ts +1 -9
- package/modules/pathfinder.src.js +1 -1
- package/modules/pattern-fill.d.ts +1 -9
- package/modules/pattern-fill.js +12 -1
- package/modules/pattern-fill.src.d.ts +1 -9
- package/modules/pattern-fill.src.js +1 -1
- package/modules/pictorial.d.ts +1 -9
- package/modules/pictorial.js +11 -1
- package/modules/pictorial.src.d.ts +1 -9
- package/modules/pictorial.src.js +1 -1
- package/modules/pointandfigure.d.ts +1 -9
- package/modules/pointandfigure.js +12 -1
- package/modules/pointandfigure.src.d.ts +1 -9
- package/modules/pointandfigure.src.js +1 -1
- package/modules/price-indicator.d.ts +1 -9
- package/modules/price-indicator.js +13 -1
- package/modules/price-indicator.src.d.ts +1 -9
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.d.ts +1 -9
- package/modules/pyramid3d.js +14 -1
- package/modules/pyramid3d.src.d.ts +1 -9
- package/modules/pyramid3d.src.js +1 -1
- package/modules/renko.d.ts +1 -9
- package/modules/renko.js +12 -1
- package/modules/renko.src.d.ts +1 -9
- package/modules/renko.src.js +1 -1
- package/modules/sankey.d.ts +1 -9
- package/modules/sankey.js +11 -1
- package/modules/sankey.src.d.ts +1 -9
- package/modules/sankey.src.js +3 -3
- package/modules/series-label.d.ts +1 -9
- package/modules/series-label.js +9 -1
- package/modules/series-label.src.d.ts +1 -9
- package/modules/series-label.src.js +1 -1
- package/modules/series-on-point.d.ts +1 -9
- package/modules/series-on-point.js +12 -1
- package/modules/series-on-point.src.d.ts +1 -9
- package/modules/series-on-point.src.js +6 -16
- package/modules/solid-gauge.d.ts +1 -9
- package/modules/solid-gauge.js +12 -1
- package/modules/solid-gauge.src.d.ts +1 -9
- package/modules/solid-gauge.src.js +27 -5
- package/modules/sonification.d.ts +1 -9
- package/modules/sonification.js +12 -1
- package/modules/sonification.src.d.ts +1 -9
- package/modules/sonification.src.js +45 -10
- package/modules/static-scale.d.ts +1 -9
- package/modules/static-scale.js +11 -1
- package/modules/static-scale.src.d.ts +1 -9
- package/modules/static-scale.src.js +14 -12
- package/modules/stock-tools.d.ts +1 -9
- package/modules/stock-tools.js +13 -1
- package/modules/stock-tools.src.d.ts +1 -9
- package/modules/stock-tools.src.js +37 -116
- package/modules/stock.d.ts +1 -9
- package/modules/stock.js +21 -1
- package/modules/stock.src.d.ts +1 -9
- package/modules/stock.src.js +233 -209
- package/modules/streamgraph.d.ts +1 -9
- package/modules/streamgraph.js +11 -1
- package/modules/streamgraph.src.d.ts +1 -9
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.d.ts +1 -9
- package/modules/sunburst.js +10 -1
- package/modules/sunburst.src.d.ts +1 -9
- package/modules/sunburst.src.js +9 -9
- package/modules/textpath.d.ts +1 -9
- package/modules/textpath.js +9 -1
- package/modules/textpath.src.d.ts +1 -9
- package/modules/textpath.src.js +3 -3
- package/modules/tiledwebmap.d.ts +1 -9
- package/modules/tiledwebmap.js +10 -2
- package/modules/tiledwebmap.src.d.ts +1 -9
- package/modules/tiledwebmap.src.js +1 -1
- package/modules/tilemap.d.ts +1 -9
- package/modules/tilemap.js +12 -1
- package/modules/tilemap.src.d.ts +1 -9
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.d.ts +1 -9
- package/modules/timeline.js +12 -1
- package/modules/timeline.src.d.ts +1 -9
- package/modules/timeline.src.js +1 -1
- package/modules/treegraph.d.ts +1 -9
- package/modules/treegraph.js +11 -1
- package/modules/treegraph.src.d.ts +1 -9
- package/modules/treegraph.src.js +16 -8
- package/modules/treegrid.d.ts +1 -9
- package/modules/treegrid.js +11 -1
- package/modules/treegrid.src.d.ts +1 -9
- package/modules/treegrid.src.js +190 -159
- package/modules/treemap.d.ts +1 -9
- package/modules/treemap.js +10 -1
- package/modules/treemap.src.d.ts +1 -9
- package/modules/treemap.src.js +7 -7
- package/modules/variable-pie.d.ts +1 -9
- package/modules/variable-pie.js +11 -1
- package/modules/variable-pie.src.d.ts +1 -9
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.d.ts +1 -9
- package/modules/variwide.js +11 -1
- package/modules/variwide.src.d.ts +1 -9
- package/modules/variwide.src.js +18 -13
- package/modules/vector.d.ts +1 -9
- package/modules/vector.js +11 -1
- package/modules/vector.src.d.ts +1 -9
- package/modules/vector.src.js +1 -1
- package/modules/venn.d.ts +1 -9
- package/modules/venn.js +10 -1
- package/modules/venn.src.d.ts +1 -9
- package/modules/venn.src.js +5 -3
- package/modules/windbarb.d.ts +1 -9
- package/modules/windbarb.js +11 -1
- package/modules/windbarb.src.d.ts +1 -9
- package/modules/windbarb.src.js +1 -1
- package/modules/wordcloud.d.ts +1 -9
- package/modules/wordcloud.js +10 -1
- package/modules/wordcloud.src.d.ts +1 -9
- package/modules/wordcloud.src.js +89 -12
- package/modules/xrange.d.ts +1 -9
- package/modules/xrange.js +11 -1
- package/modules/xrange.src.d.ts +1 -9
- package/modules/xrange.src.js +3 -2
- package/options/abands.d.ts +8 -0
- package/options/abands.src.d.ts +8 -0
- package/options/ao.d.ts +8 -0
- package/options/ao.src.d.ts +8 -0
- package/options/arcdiagram.d.ts +8 -0
- package/options/arcdiagram.src.d.ts +8 -0
- package/options/area.d.ts +9 -0
- package/options/area.src.d.ts +9 -0
- package/options/arearange.d.ts +9 -0
- package/options/arearange.src.d.ts +9 -0
- package/options/areaspline.d.ts +9 -0
- package/options/areaspline.src.d.ts +9 -0
- package/options/areasplinerange.d.ts +9 -0
- package/options/areasplinerange.src.d.ts +9 -0
- package/options/aroon.d.ts +8 -0
- package/options/aroon.src.d.ts +8 -0
- package/options/atr.d.ts +8 -0
- package/options/atr.src.d.ts +8 -0
- package/options/bellcurve.d.ts +8 -0
- package/options/bellcurve.src.d.ts +8 -0
- package/options/boxplot.d.ts +8 -0
- package/options/boxplot.src.d.ts +8 -0
- package/options/bullet.d.ts +8 -0
- package/options/bullet.src.d.ts +8 -0
- package/options/chaikin.d.ts +8 -0
- package/options/chaikin.src.d.ts +8 -0
- package/options/cmo.d.ts +8 -0
- package/options/cmo.src.d.ts +8 -0
- package/options/columnpyramid.d.ts +9 -0
- package/options/columnpyramid.src.d.ts +9 -0
- package/options/columnrange.d.ts +9 -0
- package/options/columnrange.src.d.ts +9 -0
- package/options/dmi.d.ts +8 -0
- package/options/dmi.src.d.ts +8 -0
- package/options/errorbar.d.ts +8 -0
- package/options/errorbar.src.d.ts +8 -0
- package/options/flags.d.ts +8 -0
- package/options/flags.src.d.ts +8 -0
- package/options/funnel.d.ts +8 -0
- package/options/funnel.src.d.ts +8 -0
- package/options/gauge.d.ts +8 -0
- package/options/gauge.src.d.ts +8 -0
- package/options/item.d.ts +8 -0
- package/options/item.src.d.ts +8 -0
- package/options/keltnerchannels.d.ts +8 -0
- package/options/keltnerchannels.src.d.ts +8 -0
- package/options/line.d.ts +9 -0
- package/options/line.src.d.ts +9 -0
- package/options/linearregressionangle.d.ts +8 -0
- package/options/linearregressionangle.src.d.ts +8 -0
- package/options/linearregressionintercept.d.ts +8 -0
- package/options/linearregressionintercept.src.d.ts +8 -0
- package/options/map.d.ts +8 -0
- package/options/map.src.d.ts +8 -0
- package/options/mfi.d.ts +8 -0
- package/options/mfi.src.d.ts +8 -0
- package/options/natr.d.ts +8 -0
- package/options/natr.src.d.ts +8 -0
- package/options/ohlc.d.ts +8 -0
- package/options/ohlc.src.d.ts +8 -0
- package/options/packedbubble.d.ts +8 -0
- package/options/packedbubble.src.d.ts +8 -0
- package/options/pictorial.d.ts +8 -0
- package/options/pictorial.src.d.ts +8 -0
- package/options/pointandfigure.d.ts +8 -0
- package/options/pointandfigure.src.d.ts +8 -0
- package/options/polygon.d.ts +9 -0
- package/options/polygon.src.d.ts +9 -0
- package/options/ppo.d.ts +8 -0
- package/options/ppo.src.d.ts +8 -0
- package/options/psar.d.ts +8 -0
- package/options/psar.src.d.ts +8 -0
- package/options/pyramid.d.ts +8 -0
- package/options/pyramid.src.d.ts +8 -0
- package/options/renko.d.ts +8 -0
- package/options/renko.src.d.ts +8 -0
- package/options/roc.d.ts +8 -0
- package/options/roc.src.d.ts +8 -0
- package/options/sankey.d.ts +8 -0
- package/options/sankey.src.d.ts +8 -0
- package/options/scatter.d.ts +9 -0
- package/options/scatter.src.d.ts +9 -0
- package/options/series.d.ts +9 -0
- package/options/series.src.d.ts +9 -0
- package/options/sma.d.ts +8 -0
- package/options/sma.src.d.ts +8 -0
- package/options/solidgauge.d.ts +14 -0
- package/options/solidgauge.src.d.ts +14 -0
- package/options/spline.d.ts +9 -0
- package/options/spline.src.d.ts +9 -0
- package/options/stochastic.d.ts +8 -0
- package/options/stochastic.src.d.ts +8 -0
- package/options/tema.d.ts +8 -0
- package/options/tema.src.d.ts +8 -0
- package/options/tiledwebmap.d.ts +8 -0
- package/options/tiledwebmap.src.d.ts +8 -0
- package/options/timeline.d.ts +8 -0
- package/options/timeline.src.d.ts +8 -0
- package/options/treegraph.d.ts +8 -0
- package/options/treegraph.src.d.ts +8 -0
- package/options/trix.d.ts +8 -0
- package/options/trix.src.d.ts +8 -0
- package/options/variablepie.d.ts +8 -0
- package/options/variablepie.src.d.ts +8 -0
- package/options/variwide.d.ts +8 -0
- package/options/variwide.src.d.ts +8 -0
- package/options/vbp.d.ts +8 -0
- package/options/vbp.src.d.ts +8 -0
- package/options/vector.d.ts +9 -0
- package/options/vector.src.d.ts +9 -0
- package/options/venn.d.ts +8 -0
- package/options/venn.src.d.ts +8 -0
- package/options/vwap.d.ts +8 -0
- package/options/vwap.src.d.ts +8 -0
- package/options/windbarb.d.ts +9 -0
- package/options/windbarb.src.d.ts +9 -0
- package/options/wma.d.ts +8 -0
- package/options/wma.src.d.ts +8 -0
- package/options/wordcloud.d.ts +8 -0
- package/options/wordcloud.src.d.ts +8 -0
- package/options/zigzag.d.ts +8 -0
- package/options/zigzag.src.d.ts +8 -0
- package/package.json +1 -1
- package/standalone-navigator.js +11 -2
- package/standalone-navigator.src.js +312 -206
- package/themes/adaptive.d.ts +18 -0
- package/themes/adaptive.js +130 -0
- package/themes/adaptive.src.d.ts +18 -0
- package/themes/adaptive.src.js +1122 -0
- package/themes/avocado.d.ts +1 -9
- package/themes/avocado.js +9 -1
- package/themes/avocado.src.d.ts +1 -9
- package/themes/avocado.src.js +1 -1
- package/themes/brand-dark.d.ts +1 -9
- package/themes/brand-dark.js +9 -1
- package/themes/brand-dark.src.d.ts +1 -9
- package/themes/brand-dark.src.js +1 -1
- package/themes/brand-light.d.ts +1 -9
- package/themes/brand-light.js +9 -1
- package/themes/brand-light.src.d.ts +1 -9
- package/themes/brand-light.src.js +1 -1
- package/themes/dark-blue.d.ts +1 -9
- package/themes/dark-blue.js +9 -1
- package/themes/dark-blue.src.d.ts +1 -9
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.d.ts +1 -9
- package/themes/dark-green.js +9 -1
- package/themes/dark-green.src.d.ts +1 -9
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.d.ts +1 -9
- package/themes/dark-unica.js +9 -1
- package/themes/dark-unica.src.d.ts +1 -9
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.d.ts +1 -9
- package/themes/gray.js +9 -1
- package/themes/gray.src.d.ts +1 -9
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.d.ts +1 -9
- package/themes/grid-light.js +9 -1
- package/themes/grid-light.src.d.ts +1 -9
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.d.ts +1 -9
- package/themes/grid.js +9 -1
- package/themes/grid.src.d.ts +1 -9
- package/themes/grid.src.js +1 -1
- package/themes/high-contrast-dark.d.ts +1 -9
- package/themes/high-contrast-dark.js +9 -1
- package/themes/high-contrast-dark.src.d.ts +1 -9
- package/themes/high-contrast-dark.src.js +1 -1
- package/themes/high-contrast-light.d.ts +1 -9
- package/themes/high-contrast-light.js +9 -1
- package/themes/high-contrast-light.src.d.ts +1 -9
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.d.ts +1 -9
- package/themes/sand-signika.js +9 -1
- package/themes/sand-signika.src.d.ts +1 -9
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.d.ts +1 -9
- package/themes/skies.js +9 -1
- package/themes/skies.src.d.ts +1 -9
- package/themes/skies.src.js +1 -1
- package/themes/sunset.d.ts +1 -9
- package/themes/sunset.js +9 -1
- package/themes/sunset.src.d.ts +1 -9
- package/themes/sunset.src.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts JS v12.
|
|
2
|
+
* @license Highcharts JS v12.4.0 (2025-09-04)
|
|
3
3
|
* @module highcharts/modules/data-tools
|
|
4
4
|
* @requires highcharts
|
|
5
5
|
*
|
|
@@ -219,7 +219,7 @@ class DataModifier {
|
|
|
219
219
|
detail: eventDetail,
|
|
220
220
|
table
|
|
221
221
|
});
|
|
222
|
-
reject(e);
|
|
222
|
+
reject(e instanceof Error ? e : new Error('' + e));
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
}
|
|
@@ -1261,8 +1261,7 @@ class DataTable extends Data_DataTableCore {
|
|
|
1261
1261
|
* Returns all column names.
|
|
1262
1262
|
*/
|
|
1263
1263
|
getColumnNames() {
|
|
1264
|
-
|
|
1265
|
-
return columnNames;
|
|
1264
|
+
return Object.keys(this.columns);
|
|
1266
1265
|
}
|
|
1267
1266
|
/**
|
|
1268
1267
|
* Retrieves all or the given columns.
|
|
@@ -1964,10 +1963,38 @@ class DataConnector {
|
|
|
1964
1963
|
*
|
|
1965
1964
|
* @param {DataConnector.UserOptions} [options]
|
|
1966
1965
|
* Options to use in the connector.
|
|
1966
|
+
*
|
|
1967
|
+
* @param {Array<DataTableOptions>} [dataTables]
|
|
1968
|
+
* Multiple connector data tables options.
|
|
1967
1969
|
*/
|
|
1968
|
-
constructor(options = {}) {
|
|
1969
|
-
|
|
1970
|
+
constructor(options = {}, dataTables = []) {
|
|
1971
|
+
/**
|
|
1972
|
+
* Tables managed by this DataConnector instance.
|
|
1973
|
+
*/
|
|
1974
|
+
this.dataTables = {};
|
|
1975
|
+
/**
|
|
1976
|
+
* Helper flag for detecting whether the data connector is loaded.
|
|
1977
|
+
* @internal
|
|
1978
|
+
*/
|
|
1979
|
+
this.loaded = false;
|
|
1970
1980
|
this.metadata = options.metadata || { columns: {} };
|
|
1981
|
+
// Create a data table for each defined in the dataTables user options.
|
|
1982
|
+
let dataTableIndex = 0;
|
|
1983
|
+
if (dataTables?.length > 0) {
|
|
1984
|
+
for (let i = 0, iEnd = dataTables.length; i < iEnd; ++i) {
|
|
1985
|
+
const dataTable = dataTables[i];
|
|
1986
|
+
const key = dataTable?.key;
|
|
1987
|
+
this.dataTables[key ?? dataTableIndex] =
|
|
1988
|
+
new Data_DataTable(dataTable);
|
|
1989
|
+
if (!key) {
|
|
1990
|
+
dataTableIndex++;
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
// If user options dataTables is not defined, generate a default table.
|
|
1994
|
+
}
|
|
1995
|
+
else {
|
|
1996
|
+
this.dataTables[0] = new Data_DataTable(options.dataTable);
|
|
1997
|
+
}
|
|
1971
1998
|
}
|
|
1972
1999
|
/**
|
|
1973
2000
|
* Poll timer ID, if active.
|
|
@@ -1975,6 +2002,15 @@ class DataConnector {
|
|
|
1975
2002
|
get polling() {
|
|
1976
2003
|
return !!this._polling;
|
|
1977
2004
|
}
|
|
2005
|
+
/**
|
|
2006
|
+
* Gets the first data table.
|
|
2007
|
+
*
|
|
2008
|
+
* @return {DataTable}
|
|
2009
|
+
* The data table instance.
|
|
2010
|
+
*/
|
|
2011
|
+
get table() {
|
|
2012
|
+
return this.getTable();
|
|
2013
|
+
}
|
|
1978
2014
|
/* *
|
|
1979
2015
|
*
|
|
1980
2016
|
* Functions
|
|
@@ -2033,6 +2069,22 @@ class DataConnector {
|
|
|
2033
2069
|
return names.sort((a, b) => (pick(columns[a].index, 0) - pick(columns[b].index, 0)));
|
|
2034
2070
|
}
|
|
2035
2071
|
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Returns a single data table instance based on the provided key.
|
|
2074
|
+
* Otherwise, returns the first data table.
|
|
2075
|
+
*
|
|
2076
|
+
* @param {string} [key]
|
|
2077
|
+
* The data table key.
|
|
2078
|
+
*
|
|
2079
|
+
* @return {DataTable}
|
|
2080
|
+
* The data table instance.
|
|
2081
|
+
*/
|
|
2082
|
+
getTable(key) {
|
|
2083
|
+
if (key) {
|
|
2084
|
+
return this.dataTables[key];
|
|
2085
|
+
}
|
|
2086
|
+
return Object.values(this.dataTables)[0];
|
|
2087
|
+
}
|
|
2036
2088
|
/**
|
|
2037
2089
|
* Retrieves the columns of the dataTable,
|
|
2038
2090
|
* applies column order from meta.
|
|
@@ -2098,14 +2150,17 @@ class DataConnector {
|
|
|
2098
2150
|
connector.describeColumn(columnNames[i], { index: i });
|
|
2099
2151
|
}
|
|
2100
2152
|
}
|
|
2101
|
-
setModifierOptions(modifierOptions) {
|
|
2102
|
-
const
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2153
|
+
async setModifierOptions(modifierOptions, tablesOptions) {
|
|
2154
|
+
for (const [key, table] of Object.entries(this.dataTables)) {
|
|
2155
|
+
const tableOptions = tablesOptions?.find((dataTable) => dataTable.key === key);
|
|
2156
|
+
const mergedModifierOptions = DataConnector_merge(tableOptions?.dataModifier, modifierOptions);
|
|
2157
|
+
const ModifierClass = (mergedModifierOptions &&
|
|
2158
|
+
Modifiers_DataModifier.types[mergedModifierOptions.type]);
|
|
2159
|
+
await table.setModifier(ModifierClass ?
|
|
2160
|
+
new ModifierClass(mergedModifierOptions) :
|
|
2161
|
+
void 0);
|
|
2162
|
+
}
|
|
2163
|
+
return this;
|
|
2109
2164
|
}
|
|
2110
2165
|
/**
|
|
2111
2166
|
* Starts polling new data after the specific time span in milliseconds.
|
|
@@ -2115,12 +2170,16 @@ class DataConnector {
|
|
|
2115
2170
|
*/
|
|
2116
2171
|
startPolling(refreshTime = 1000) {
|
|
2117
2172
|
const connector = this;
|
|
2173
|
+
const tables = connector.dataTables;
|
|
2174
|
+
// Assign a new abort controller.
|
|
2175
|
+
this.pollingController = new AbortController();
|
|
2176
|
+
// Clear the polling timeout.
|
|
2118
2177
|
window.clearTimeout(connector._polling);
|
|
2119
2178
|
connector._polling = window.setTimeout(() => connector
|
|
2120
2179
|
.load()['catch']((error) => connector.emit({
|
|
2121
2180
|
type: 'loadError',
|
|
2122
2181
|
error,
|
|
2123
|
-
|
|
2182
|
+
tables
|
|
2124
2183
|
}))
|
|
2125
2184
|
.then(() => {
|
|
2126
2185
|
if (connector._polling) {
|
|
@@ -2129,10 +2188,16 @@ class DataConnector {
|
|
|
2129
2188
|
}), refreshTime);
|
|
2130
2189
|
}
|
|
2131
2190
|
/**
|
|
2132
|
-
* Stops polling data.
|
|
2191
|
+
* Stops polling data. Shouldn't be performed if polling is already stopped.
|
|
2133
2192
|
*/
|
|
2134
2193
|
stopPolling() {
|
|
2135
2194
|
const connector = this;
|
|
2195
|
+
if (!connector.polling) {
|
|
2196
|
+
return;
|
|
2197
|
+
}
|
|
2198
|
+
// Abort the existing request.
|
|
2199
|
+
connector?.pollingController?.abort();
|
|
2200
|
+
// Clear the polling timeout.
|
|
2136
2201
|
window.clearTimeout(connector._polling);
|
|
2137
2202
|
delete connector._polling;
|
|
2138
2203
|
}
|
|
@@ -2148,6 +2213,35 @@ class DataConnector {
|
|
|
2148
2213
|
whatIs(name) {
|
|
2149
2214
|
return this.metadata.columns[name];
|
|
2150
2215
|
}
|
|
2216
|
+
/**
|
|
2217
|
+
* Iterates over the dataTables and initiates the corresponding converters.
|
|
2218
|
+
* Updates the dataTables and assigns the first converter.
|
|
2219
|
+
*
|
|
2220
|
+
* @param {T}[data]
|
|
2221
|
+
* Data specific to the corresponding converter.
|
|
2222
|
+
*
|
|
2223
|
+
* @param {DataConnector.CreateConverterFunction}[createConverter]
|
|
2224
|
+
* Creates a specific converter combining the dataTable options.
|
|
2225
|
+
*
|
|
2226
|
+
* @param {DataConnector.ParseDataFunction<T>}[parseData]
|
|
2227
|
+
* Runs the converter parse method with the specific data type.
|
|
2228
|
+
*/
|
|
2229
|
+
initConverters(data, createConverter, parseData) {
|
|
2230
|
+
let index = 0;
|
|
2231
|
+
for (const [key, table] of Object.entries(this.dataTables)) {
|
|
2232
|
+
// Create a proper converter and parse its data.
|
|
2233
|
+
const converter = createConverter(key, table);
|
|
2234
|
+
parseData(converter, data);
|
|
2235
|
+
// Update the dataTable.
|
|
2236
|
+
table.deleteColumns();
|
|
2237
|
+
table.setColumns(converter.getTable().getColumns());
|
|
2238
|
+
// Assign the first converter.
|
|
2239
|
+
if (index === 0) {
|
|
2240
|
+
this.converter = converter;
|
|
2241
|
+
}
|
|
2242
|
+
index++;
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2151
2245
|
}
|
|
2152
2246
|
/* *
|
|
2153
2247
|
*
|
|
@@ -3321,7 +3415,7 @@ class DataPool {
|
|
|
3321
3415
|
getConnector(connectorId) {
|
|
3322
3416
|
const connector = this.connectors[connectorId];
|
|
3323
3417
|
// Already loaded
|
|
3324
|
-
if (connector) {
|
|
3418
|
+
if (connector?.loaded) {
|
|
3325
3419
|
return Promise.resolve(connector);
|
|
3326
3420
|
}
|
|
3327
3421
|
let waitingList = this.waiting[connectorId];
|
|
@@ -3436,12 +3530,14 @@ class DataPool {
|
|
|
3436
3530
|
if (!ConnectorClass) {
|
|
3437
3531
|
throw new Error(`Connector type not found. (${options.type})`);
|
|
3438
3532
|
}
|
|
3439
|
-
const connector = new ConnectorClass(options.options);
|
|
3533
|
+
const connector = this.connectors[options.id] = new ConnectorClass(options.options, options.dataTables);
|
|
3440
3534
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
3441
3535
|
connector
|
|
3442
3536
|
.load()
|
|
3443
|
-
.then((
|
|
3444
|
-
|
|
3537
|
+
.then(({ converter, dataTables }) => {
|
|
3538
|
+
connector.dataTables = dataTables;
|
|
3539
|
+
connector.converter = converter;
|
|
3540
|
+
connector.loaded = true;
|
|
3445
3541
|
this.emit({
|
|
3446
3542
|
type: 'afterLoad',
|
|
3447
3543
|
options
|
|
@@ -3450,6 +3546,15 @@ class DataPool {
|
|
|
3450
3546
|
})['catch'](reject);
|
|
3451
3547
|
});
|
|
3452
3548
|
}
|
|
3549
|
+
/**
|
|
3550
|
+
* Cancels all data connectors pending requests.
|
|
3551
|
+
*/
|
|
3552
|
+
cancelPendingRequests() {
|
|
3553
|
+
const { connectors } = this;
|
|
3554
|
+
for (const connectorKey of Object.keys(connectors)) {
|
|
3555
|
+
connectors[connectorKey].stopPolling();
|
|
3556
|
+
}
|
|
3557
|
+
}
|
|
3453
3558
|
/**
|
|
3454
3559
|
* Registers a callback for a specific event.
|
|
3455
3560
|
*
|
|
@@ -3527,6 +3632,8 @@ DataPool.version = '1.0.0';
|
|
|
3527
3632
|
*
|
|
3528
3633
|
* */
|
|
3529
3634
|
|
|
3635
|
+
|
|
3636
|
+
const { isString } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());
|
|
3530
3637
|
/* *
|
|
3531
3638
|
*
|
|
3532
3639
|
* Constants
|
|
@@ -3806,6 +3913,20 @@ function parseArguments(text, alternativeSeparators) {
|
|
|
3806
3913
|
}
|
|
3807
3914
|
return args;
|
|
3808
3915
|
}
|
|
3916
|
+
/**
|
|
3917
|
+
* Checks if there's one of the following operator before the negative number
|
|
3918
|
+
* value: '*', '/' or '^'.
|
|
3919
|
+
*
|
|
3920
|
+
* Used to properly indicate a negative value reference or negate a directly
|
|
3921
|
+
* passed number value.
|
|
3922
|
+
*/
|
|
3923
|
+
function negativeReference(formula) {
|
|
3924
|
+
const formulaLength = formula.length;
|
|
3925
|
+
const priorFormula = formula[formulaLength - 2];
|
|
3926
|
+
return (formula[formulaLength - 1] === '-' &&
|
|
3927
|
+
isString(priorFormula) &&
|
|
3928
|
+
!!priorFormula.match(/\*|\/|\^/));
|
|
3929
|
+
}
|
|
3809
3930
|
/**
|
|
3810
3931
|
* Converts a spreadsheet formula string into a formula array. Throws a
|
|
3811
3932
|
* `FormulaParserError` when the string can not be parsed.
|
|
@@ -3849,6 +3970,10 @@ function parseFormula(text, alternativeSeparators) {
|
|
|
3849
3970
|
if (rowRelative) {
|
|
3850
3971
|
reference.rowRelative = true;
|
|
3851
3972
|
}
|
|
3973
|
+
if (negativeReference(formula)) {
|
|
3974
|
+
formula.pop();
|
|
3975
|
+
reference.isNegative = true;
|
|
3976
|
+
}
|
|
3852
3977
|
formula.push(reference);
|
|
3853
3978
|
next = next.substring(match[0].length).trim();
|
|
3854
3979
|
continue;
|
|
@@ -3873,6 +3998,10 @@ function parseFormula(text, alternativeSeparators) {
|
|
|
3873
3998
|
if (rowRelative) {
|
|
3874
3999
|
reference.rowRelative = true;
|
|
3875
4000
|
}
|
|
4001
|
+
if (negativeReference(formula)) {
|
|
4002
|
+
formula.pop();
|
|
4003
|
+
reference.isNegative = true;
|
|
4004
|
+
}
|
|
3876
4005
|
formula.push(reference);
|
|
3877
4006
|
next = next.substring(match[0].length).trim();
|
|
3878
4007
|
continue;
|
|
@@ -3894,7 +4023,15 @@ function parseFormula(text, alternativeSeparators) {
|
|
|
3894
4023
|
// Check for a number value
|
|
3895
4024
|
match = next.match(decimalRegExp);
|
|
3896
4025
|
if (match) {
|
|
3897
|
-
|
|
4026
|
+
let number = parseFloat(match[0]);
|
|
4027
|
+
// If the current value is multiplication-related and the previous
|
|
4028
|
+
// one is a minus sign, set the current value to negative and remove
|
|
4029
|
+
// the minus sign.
|
|
4030
|
+
if (negativeReference(formula)) {
|
|
4031
|
+
formula.pop();
|
|
4032
|
+
number = -number;
|
|
4033
|
+
}
|
|
4034
|
+
formula.push(number);
|
|
3898
4035
|
next = next.substring(match[0].length).trim();
|
|
3899
4036
|
continue;
|
|
3900
4037
|
}
|
|
@@ -4124,6 +4261,8 @@ const MathFormula = {
|
|
|
4124
4261
|
|
|
4125
4262
|
|
|
4126
4263
|
const { isFormula: FormulaProcessor_isFormula, isFunction: FormulaProcessor_isFunction, isOperator: FormulaProcessor_isOperator, isRange: FormulaProcessor_isRange, isReference: FormulaProcessor_isReference, isValue: FormulaProcessor_isValue } = FormulaTypes;
|
|
4264
|
+
|
|
4265
|
+
const { defined: FormulaProcessor_defined } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());
|
|
4127
4266
|
/* *
|
|
4128
4267
|
*
|
|
4129
4268
|
* Constants
|
|
@@ -4389,14 +4528,57 @@ function getReferenceValue(reference, table) {
|
|
|
4389
4528
|
const result = table.modified.getCell(columnName, reference.row);
|
|
4390
4529
|
return FormulaProcessor_isValue(result) ? result : NaN;
|
|
4391
4530
|
}
|
|
4392
|
-
|
|
4531
|
+
if (FormulaProcessor_isValue(cell)) {
|
|
4532
|
+
return reference.isNegative ? -cell : cell;
|
|
4533
|
+
}
|
|
4534
|
+
return NaN;
|
|
4393
4535
|
}
|
|
4394
4536
|
return NaN;
|
|
4395
4537
|
}
|
|
4538
|
+
/**
|
|
4539
|
+
* Calculates a value based on the two top values and the related operator.
|
|
4540
|
+
*
|
|
4541
|
+
* Used to properly process the formula's values based on its operators.
|
|
4542
|
+
*
|
|
4543
|
+
* @private
|
|
4544
|
+
* @function Highcharts.applyOperator
|
|
4545
|
+
*
|
|
4546
|
+
* @param {Array<Highcharts.Value>} values
|
|
4547
|
+
* Processed formula values.
|
|
4548
|
+
*
|
|
4549
|
+
* @param {Array<Highcharts.Operator>} operators
|
|
4550
|
+
* Processed formula operators.
|
|
4551
|
+
*/
|
|
4552
|
+
function applyOperator(values, operators) {
|
|
4553
|
+
if (values.length < 2 || operators.length < 1) {
|
|
4554
|
+
values.push(NaN);
|
|
4555
|
+
}
|
|
4556
|
+
const secondValue = values.pop();
|
|
4557
|
+
const firstValue = values.pop();
|
|
4558
|
+
const operator = operators.pop();
|
|
4559
|
+
if (!FormulaProcessor_defined(secondValue) || !FormulaProcessor_defined(firstValue) || !FormulaProcessor_defined(operator)) {
|
|
4560
|
+
values.push(NaN);
|
|
4561
|
+
}
|
|
4562
|
+
else {
|
|
4563
|
+
values.push(basicOperation(operator, firstValue, secondValue));
|
|
4564
|
+
}
|
|
4565
|
+
}
|
|
4396
4566
|
/**
|
|
4397
4567
|
* Processes a formula array on the given table. If the formula does not contain
|
|
4398
4568
|
* references or ranges, then no table has to be provided.
|
|
4399
4569
|
*
|
|
4570
|
+
* Performs formulas considering the operators precedence.
|
|
4571
|
+
*
|
|
4572
|
+
* // Example of the `2 * 3 + 4` formula:
|
|
4573
|
+
* 2 -> values: [2], operators: []
|
|
4574
|
+
* * -> values: [2], operators: [*]
|
|
4575
|
+
* 3 -> values: [2, 3], operators: [*]
|
|
4576
|
+
* // Since the higher precedence operator exists (* > +), perform it first.
|
|
4577
|
+
* + -> values: [6], operators: [+]
|
|
4578
|
+
* 4 -> values: [6, 4], operators: [+]
|
|
4579
|
+
* // When non-higher precedence operators remain, perform rest calculations.
|
|
4580
|
+
* -> values: [10], operators: []
|
|
4581
|
+
*
|
|
4400
4582
|
* @private
|
|
4401
4583
|
* @function Highcharts.processFormula
|
|
4402
4584
|
*
|
|
@@ -4410,61 +4592,68 @@ function getReferenceValue(reference, table) {
|
|
|
4410
4592
|
* Result value of the process. `NaN` indicates an error.
|
|
4411
4593
|
*/
|
|
4412
4594
|
function processFormula(formula, table) {
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4595
|
+
// Keeps all the values to calculate them in a proper priority, based on the
|
|
4596
|
+
// given operators.
|
|
4597
|
+
const values = [];
|
|
4598
|
+
// Keeps all the operators to calculate the values above, following the
|
|
4599
|
+
// proper priority.
|
|
4600
|
+
const operators = [];
|
|
4601
|
+
// Indicates if the next item is a value (not an operator).
|
|
4602
|
+
let expectingValue = true;
|
|
4603
|
+
for (let i = 0, iEnd = formula.length; i < iEnd; ++i) {
|
|
4604
|
+
const item = formula[i];
|
|
4417
4605
|
if (FormulaProcessor_isOperator(item)) {
|
|
4418
|
-
|
|
4606
|
+
if (expectingValue && item === '-') {
|
|
4607
|
+
// Split the negative values to be handled as a binary
|
|
4608
|
+
// operation if the next item is a value.
|
|
4609
|
+
values.push(0);
|
|
4610
|
+
operators.push('-');
|
|
4611
|
+
expectingValue = true;
|
|
4612
|
+
}
|
|
4613
|
+
else {
|
|
4614
|
+
// Perform if the higher precedence operator exist.
|
|
4615
|
+
while (operators.length &&
|
|
4616
|
+
operatorPriority[operators[operators.length - 1]] >=
|
|
4617
|
+
operatorPriority[item]) {
|
|
4618
|
+
applyOperator(values, operators);
|
|
4619
|
+
}
|
|
4620
|
+
operators.push(item);
|
|
4621
|
+
expectingValue = true;
|
|
4622
|
+
}
|
|
4419
4623
|
continue;
|
|
4420
4624
|
}
|
|
4421
|
-
|
|
4625
|
+
let value;
|
|
4626
|
+
// Assign the proper value, starting from the most common types.
|
|
4422
4627
|
if (FormulaProcessor_isValue(item)) {
|
|
4423
|
-
|
|
4424
|
-
// Next item is a formula and needs to get processed first
|
|
4628
|
+
value = item;
|
|
4425
4629
|
}
|
|
4426
|
-
else if (
|
|
4427
|
-
|
|
4428
|
-
// Next item is a function call and needs to get processed first
|
|
4630
|
+
else if (FormulaProcessor_isReference(item)) {
|
|
4631
|
+
value = table ? getReferenceValue(item, table) : NaN;
|
|
4429
4632
|
}
|
|
4430
4633
|
else if (FormulaProcessor_isFunction(item)) {
|
|
4431
|
-
result = processFunction(item, table);
|
|
4432
|
-
|
|
4433
|
-
// Next item is a reference and needs to get resolved
|
|
4634
|
+
const result = processFunction(item, table);
|
|
4635
|
+
value = FormulaProcessor_isValue(result) ? result : NaN;
|
|
4434
4636
|
}
|
|
4435
|
-
else if (
|
|
4436
|
-
|
|
4437
|
-
}
|
|
4438
|
-
// If we have a next value, lets do the operation
|
|
4439
|
-
if (typeof y !== 'undefined') {
|
|
4440
|
-
// Next value is our first value
|
|
4441
|
-
if (typeof x === 'undefined') {
|
|
4442
|
-
if (operator) {
|
|
4443
|
-
x = basicOperation(operator, 0, y);
|
|
4444
|
-
}
|
|
4445
|
-
else {
|
|
4446
|
-
x = y;
|
|
4447
|
-
}
|
|
4448
|
-
// Fail fast if no operator available
|
|
4449
|
-
}
|
|
4450
|
-
else if (!operator) {
|
|
4451
|
-
return NaN;
|
|
4452
|
-
// Regular next value
|
|
4453
|
-
}
|
|
4454
|
-
else {
|
|
4455
|
-
const operator2 = formula[i + 1];
|
|
4456
|
-
if (FormulaProcessor_isOperator(operator2) &&
|
|
4457
|
-
operatorPriority[operator2] > operatorPriority[operator]) {
|
|
4458
|
-
y = basicOperation(operator2, y, processFormula(formula.slice(i + 2)));
|
|
4459
|
-
i = iEnd;
|
|
4460
|
-
}
|
|
4461
|
-
x = basicOperation(operator, x, y);
|
|
4462
|
-
}
|
|
4463
|
-
operator = void 0;
|
|
4464
|
-
y = void 0;
|
|
4637
|
+
else if (FormulaProcessor_isFormula(item)) {
|
|
4638
|
+
value = processFormula(item, table);
|
|
4465
4639
|
}
|
|
4640
|
+
if (typeof value !== 'undefined') {
|
|
4641
|
+
values.push(value);
|
|
4642
|
+
expectingValue = false;
|
|
4643
|
+
}
|
|
4644
|
+
else {
|
|
4645
|
+
return NaN;
|
|
4646
|
+
}
|
|
4647
|
+
}
|
|
4648
|
+
// Handle the remaining operators that weren't taken into consideration, due
|
|
4649
|
+
// to non-higher precedence.
|
|
4650
|
+
while (operators.length) {
|
|
4651
|
+
applyOperator(values, operators);
|
|
4652
|
+
}
|
|
4653
|
+
if (values.length !== 1) {
|
|
4654
|
+
return NaN;
|
|
4466
4655
|
}
|
|
4467
|
-
return
|
|
4656
|
+
return values[0];
|
|
4468
4657
|
}
|
|
4469
4658
|
/**
|
|
4470
4659
|
* Process a function on the given table. If the arguments do not contain
|
|
@@ -6438,7 +6627,7 @@ Converters_DataConverter.registerType('CSV', CSVConverter);
|
|
|
6438
6627
|
|
|
6439
6628
|
|
|
6440
6629
|
|
|
6441
|
-
const { merge: CSVConnector_merge } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());
|
|
6630
|
+
const { merge: CSVConnector_merge, defined: CSVConnector_defined } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());
|
|
6442
6631
|
/* *
|
|
6443
6632
|
*
|
|
6444
6633
|
* Class
|
|
@@ -6460,12 +6649,16 @@ class CSVConnector extends Connectors_DataConnector {
|
|
|
6460
6649
|
*
|
|
6461
6650
|
* @param {CSVConnector.UserOptions} [options]
|
|
6462
6651
|
* Options for the connector and converter.
|
|
6652
|
+
*
|
|
6653
|
+
* @param {Array<DataTableOptions>} [dataTables]
|
|
6654
|
+
* Multiple connector data tables options.
|
|
6655
|
+
*
|
|
6463
6656
|
*/
|
|
6464
|
-
constructor(options) {
|
|
6657
|
+
constructor(options, dataTables) {
|
|
6465
6658
|
const mergedOptions = CSVConnector_merge(CSVConnector.defaultOptions, options);
|
|
6466
|
-
super(mergedOptions);
|
|
6467
|
-
this.
|
|
6468
|
-
|
|
6659
|
+
super(mergedOptions, dataTables);
|
|
6660
|
+
this.options = CSVConnector_defined(dataTables) ?
|
|
6661
|
+
CSVConnector_merge(mergedOptions, { dataTables }) : mergedOptions;
|
|
6469
6662
|
if (mergedOptions.enablePolling) {
|
|
6470
6663
|
this.startPolling(Math.max(mergedOptions.dataRefreshRate || 0, 1) * 1000);
|
|
6471
6664
|
}
|
|
@@ -6485,26 +6678,39 @@ class CSVConnector extends Connectors_DataConnector {
|
|
|
6485
6678
|
* @emits CSVConnector#afterLoad
|
|
6486
6679
|
*/
|
|
6487
6680
|
load(eventDetail) {
|
|
6488
|
-
const connector = this,
|
|
6681
|
+
const connector = this, tables = connector.dataTables, { csv, csvURL, dataModifier, dataTables } = connector.options;
|
|
6489
6682
|
connector.emit({
|
|
6490
6683
|
type: 'load',
|
|
6491
6684
|
csv,
|
|
6492
6685
|
detail: eventDetail,
|
|
6493
|
-
|
|
6686
|
+
tables
|
|
6494
6687
|
});
|
|
6495
6688
|
return Promise
|
|
6496
6689
|
.resolve(csvURL ?
|
|
6497
|
-
fetch(csvURL
|
|
6690
|
+
fetch(csvURL, {
|
|
6691
|
+
signal: connector?.pollingController?.signal
|
|
6692
|
+
}).then((response) => response.text()) :
|
|
6498
6693
|
csv || '')
|
|
6499
6694
|
.then((csv) => {
|
|
6500
6695
|
if (csv) {
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6696
|
+
this.initConverters(csv, (key) => {
|
|
6697
|
+
const options = this.options;
|
|
6698
|
+
const tableOptions = dataTables?.find((dataTable) => dataTable.key === key);
|
|
6699
|
+
// Takes over the connector default options.
|
|
6700
|
+
const mergedTableOptions = {
|
|
6701
|
+
dataTableKey: key,
|
|
6702
|
+
firstRowAsNames: tableOptions?.firstRowAsNames ??
|
|
6703
|
+
options.firstRowAsNames,
|
|
6704
|
+
beforeParse: tableOptions?.beforeParse ??
|
|
6705
|
+
options.beforeParse
|
|
6706
|
+
};
|
|
6707
|
+
return new Converters_CSVConverter(CSVConnector_merge(this.options, mergedTableOptions));
|
|
6708
|
+
}, (converter, data) => {
|
|
6709
|
+
converter.parse({ csv: data });
|
|
6710
|
+
});
|
|
6505
6711
|
}
|
|
6506
6712
|
return connector
|
|
6507
|
-
.setModifierOptions(dataModifier)
|
|
6713
|
+
.setModifierOptions(dataModifier, dataTables)
|
|
6508
6714
|
.then(() => csv);
|
|
6509
6715
|
})
|
|
6510
6716
|
.then((csv) => {
|
|
@@ -6512,7 +6718,7 @@ class CSVConnector extends Connectors_DataConnector {
|
|
|
6512
6718
|
type: 'afterLoad',
|
|
6513
6719
|
csv,
|
|
6514
6720
|
detail: eventDetail,
|
|
6515
|
-
|
|
6721
|
+
tables
|
|
6516
6722
|
});
|
|
6517
6723
|
return connector;
|
|
6518
6724
|
})['catch']((error) => {
|
|
@@ -6520,7 +6726,7 @@ class CSVConnector extends Connectors_DataConnector {
|
|
|
6520
6726
|
type: 'loadError',
|
|
6521
6727
|
detail: eventDetail,
|
|
6522
6728
|
error,
|
|
6523
|
-
|
|
6729
|
+
tables
|
|
6524
6730
|
});
|
|
6525
6731
|
throw error;
|
|
6526
6732
|
});
|
|
@@ -6719,7 +6925,6 @@ class JSONConverter extends Converters_DataConverter {
|
|
|
6719
6925
|
*/
|
|
6720
6926
|
JSONConverter.defaultOptions = {
|
|
6721
6927
|
...Converters_DataConverter.defaultOptions,
|
|
6722
|
-
data: [],
|
|
6723
6928
|
orientation: 'rows'
|
|
6724
6929
|
};
|
|
6725
6930
|
Converters_DataConverter.registerType('JSON', JSONConverter);
|
|
@@ -6747,7 +6952,7 @@ Converters_DataConverter.registerType('JSON', JSONConverter);
|
|
|
6747
6952
|
|
|
6748
6953
|
|
|
6749
6954
|
|
|
6750
|
-
const { merge: JSONConnector_merge } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());
|
|
6955
|
+
const { merge: JSONConnector_merge, defined: JSONConnector_defined } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());
|
|
6751
6956
|
/* *
|
|
6752
6957
|
*
|
|
6753
6958
|
* Class
|
|
@@ -6769,12 +6974,15 @@ class JSONConnector extends Connectors_DataConnector {
|
|
|
6769
6974
|
*
|
|
6770
6975
|
* @param {JSONConnector.UserOptions} [options]
|
|
6771
6976
|
* Options for the connector and converter.
|
|
6977
|
+
*
|
|
6978
|
+
* @param {Array<DataTableOptions>} [dataTables]
|
|
6979
|
+
* Multiple connector data tables options.
|
|
6772
6980
|
*/
|
|
6773
|
-
constructor(options) {
|
|
6981
|
+
constructor(options, dataTables) {
|
|
6774
6982
|
const mergedOptions = JSONConnector_merge(JSONConnector.defaultOptions, options);
|
|
6775
|
-
super(mergedOptions);
|
|
6776
|
-
this.
|
|
6777
|
-
|
|
6983
|
+
super(mergedOptions, dataTables);
|
|
6984
|
+
this.options = JSONConnector_defined(dataTables) ?
|
|
6985
|
+
JSONConnector_merge(mergedOptions, { dataTables }) : mergedOptions;
|
|
6778
6986
|
if (mergedOptions.enablePolling) {
|
|
6779
6987
|
this.startPolling(Math.max(mergedOptions.dataRefreshRate || 0, 1) * 1000);
|
|
6780
6988
|
}
|
|
@@ -6794,40 +7002,58 @@ class JSONConnector extends Connectors_DataConnector {
|
|
|
6794
7002
|
* @emits JSONConnector#afterLoad
|
|
6795
7003
|
*/
|
|
6796
7004
|
load(eventDetail) {
|
|
6797
|
-
const connector = this,
|
|
7005
|
+
const connector = this, tables = connector.dataTables, { data, dataUrl, dataModifier, dataTables } = connector.options;
|
|
6798
7006
|
connector.emit({
|
|
6799
7007
|
type: 'load',
|
|
6800
7008
|
data,
|
|
6801
7009
|
detail: eventDetail,
|
|
6802
|
-
|
|
7010
|
+
tables
|
|
6803
7011
|
});
|
|
6804
7012
|
return Promise
|
|
6805
7013
|
.resolve(dataUrl ?
|
|
6806
|
-
fetch(dataUrl
|
|
7014
|
+
fetch(dataUrl, {
|
|
7015
|
+
signal: connector?.pollingController?.signal
|
|
7016
|
+
}).then((response) => response.json())['catch']((error) => {
|
|
6807
7017
|
connector.emit({
|
|
6808
7018
|
type: 'loadError',
|
|
6809
7019
|
detail: eventDetail,
|
|
6810
7020
|
error,
|
|
6811
|
-
|
|
7021
|
+
tables
|
|
6812
7022
|
});
|
|
6813
7023
|
console.warn(`Unable to fetch data from ${dataUrl}.`); // eslint-disable-line no-console
|
|
6814
7024
|
}) :
|
|
6815
7025
|
data || [])
|
|
6816
7026
|
.then((data) => {
|
|
6817
7027
|
if (data) {
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
7028
|
+
this.initConverters(data, (key) => {
|
|
7029
|
+
const options = this.options;
|
|
7030
|
+
const tableOptions = dataTables?.find((dataTable) => dataTable.key === key);
|
|
7031
|
+
// Takes over the connector default options.
|
|
7032
|
+
const mergedTableOptions = {
|
|
7033
|
+
dataTableKey: key,
|
|
7034
|
+
columnNames: tableOptions?.columnNames ??
|
|
7035
|
+
options.columnNames,
|
|
7036
|
+
firstRowAsNames: tableOptions?.firstRowAsNames ??
|
|
7037
|
+
options.firstRowAsNames,
|
|
7038
|
+
orientation: tableOptions?.orientation ??
|
|
7039
|
+
options.orientation,
|
|
7040
|
+
beforeParse: tableOptions?.beforeParse ??
|
|
7041
|
+
options.beforeParse
|
|
7042
|
+
};
|
|
7043
|
+
return new Converters_JSONConverter(JSONConnector_merge(this.options, mergedTableOptions));
|
|
7044
|
+
}, (converter, data) => {
|
|
7045
|
+
converter.parse({ data });
|
|
7046
|
+
});
|
|
6822
7047
|
}
|
|
6823
|
-
return connector.setModifierOptions(dataModifier
|
|
7048
|
+
return connector.setModifierOptions(dataModifier, dataTables)
|
|
7049
|
+
.then(() => data);
|
|
6824
7050
|
})
|
|
6825
7051
|
.then((data) => {
|
|
6826
7052
|
connector.emit({
|
|
6827
7053
|
type: 'afterLoad',
|
|
6828
7054
|
data,
|
|
6829
7055
|
detail: eventDetail,
|
|
6830
|
-
|
|
7056
|
+
tables
|
|
6831
7057
|
});
|
|
6832
7058
|
return connector;
|
|
6833
7059
|
})['catch']((error) => {
|
|
@@ -6835,7 +7061,7 @@ class JSONConnector extends Connectors_DataConnector {
|
|
|
6835
7061
|
type: 'loadError',
|
|
6836
7062
|
detail: eventDetail,
|
|
6837
7063
|
error,
|
|
6838
|
-
|
|
7064
|
+
tables
|
|
6839
7065
|
});
|
|
6840
7066
|
throw error;
|
|
6841
7067
|
});
|
|
@@ -6847,7 +7073,6 @@ class JSONConnector extends Connectors_DataConnector {
|
|
|
6847
7073
|
*
|
|
6848
7074
|
* */
|
|
6849
7075
|
JSONConnector.defaultOptions = {
|
|
6850
|
-
data: [],
|
|
6851
7076
|
enablePolling: false,
|
|
6852
7077
|
dataRefreshRate: 0,
|
|
6853
7078
|
firstRowAsNames: true,
|
|
@@ -7020,7 +7245,7 @@ Converters_DataConverter.registerType('GoogleSheets', GoogleSheetsConverter);
|
|
|
7020
7245
|
|
|
7021
7246
|
|
|
7022
7247
|
|
|
7023
|
-
const { merge: GoogleSheetsConnector_merge, pick: GoogleSheetsConnector_pick } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());
|
|
7248
|
+
const { merge: GoogleSheetsConnector_merge, pick: GoogleSheetsConnector_pick, defined: GoogleSheetsConnector_defined } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());
|
|
7024
7249
|
/* *
|
|
7025
7250
|
*
|
|
7026
7251
|
* Functions
|
|
@@ -7057,12 +7282,16 @@ class GoogleSheetsConnector extends Connectors_DataConnector {
|
|
|
7057
7282
|
*
|
|
7058
7283
|
* @param {GoogleSheetsConnector.UserOptions} [options]
|
|
7059
7284
|
* Options for the connector and converter.
|
|
7285
|
+
*
|
|
7286
|
+
* @param {Array<DataTableOptions>} [dataTables]
|
|
7287
|
+
* Multiple connector data tables options.
|
|
7288
|
+
*
|
|
7060
7289
|
*/
|
|
7061
|
-
constructor(options) {
|
|
7290
|
+
constructor(options, dataTables) {
|
|
7062
7291
|
const mergedOptions = GoogleSheetsConnector_merge(GoogleSheetsConnector.defaultOptions, options);
|
|
7063
|
-
super(mergedOptions);
|
|
7064
|
-
this.
|
|
7065
|
-
|
|
7292
|
+
super(mergedOptions, dataTables);
|
|
7293
|
+
this.options = GoogleSheetsConnector_defined(dataTables) ?
|
|
7294
|
+
GoogleSheetsConnector_merge(mergedOptions, { dataTables }) : mergedOptions;
|
|
7066
7295
|
}
|
|
7067
7296
|
/* *
|
|
7068
7297
|
*
|
|
@@ -7079,36 +7308,44 @@ class GoogleSheetsConnector extends Connectors_DataConnector {
|
|
|
7079
7308
|
* Same connector instance with modified table.
|
|
7080
7309
|
*/
|
|
7081
7310
|
load(eventDetail) {
|
|
7082
|
-
const connector = this,
|
|
7311
|
+
const connector = this, tables = connector.dataTables, { dataModifier, dataRefreshRate, enablePolling, googleAPIKey, googleSpreadsheetKey, dataTables } = connector.options, url = GoogleSheetsConnector.buildFetchURL(googleAPIKey, googleSpreadsheetKey, connector.options);
|
|
7083
7312
|
connector.emit({
|
|
7084
7313
|
type: 'load',
|
|
7085
7314
|
detail: eventDetail,
|
|
7086
|
-
|
|
7315
|
+
tables,
|
|
7087
7316
|
url
|
|
7088
7317
|
});
|
|
7089
7318
|
if (!URL.canParse(url)) {
|
|
7090
7319
|
throw new Error('Invalid URL: ' + url);
|
|
7091
7320
|
}
|
|
7092
|
-
return fetch(url)
|
|
7321
|
+
return fetch(url, { signal: connector?.pollingController?.signal })
|
|
7093
7322
|
.then((response) => (response.json()))
|
|
7094
7323
|
.then((json) => {
|
|
7095
7324
|
if (isGoogleError(json)) {
|
|
7096
7325
|
throw new Error(json.error.message);
|
|
7097
7326
|
}
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7327
|
+
this.initConverters(json, (key) => {
|
|
7328
|
+
const options = this.options;
|
|
7329
|
+
const tableOptions = dataTables?.find((dataTable) => dataTable.key === key);
|
|
7330
|
+
// Takes over the connector default options.
|
|
7331
|
+
const mergedTableOptions = {
|
|
7332
|
+
dataTableKey: key,
|
|
7333
|
+
firstRowAsNames: tableOptions?.firstRowAsNames ??
|
|
7334
|
+
options.firstRowAsNames,
|
|
7335
|
+
beforeParse: tableOptions?.beforeParse ??
|
|
7336
|
+
options.beforeParse
|
|
7337
|
+
};
|
|
7338
|
+
return new Converters_GoogleSheetsConverter(GoogleSheetsConnector_merge(this.options, mergedTableOptions));
|
|
7339
|
+
}, (converter, data) => {
|
|
7340
|
+
converter.parse({ json: data });
|
|
7101
7341
|
});
|
|
7102
|
-
|
|
7103
|
-
table.deleteColumns();
|
|
7104
|
-
table.setColumns(converter.getTable().getColumns());
|
|
7105
|
-
return connector.setModifierOptions(dataModifier);
|
|
7342
|
+
return connector.setModifierOptions(dataModifier, dataTables);
|
|
7106
7343
|
})
|
|
7107
7344
|
.then(() => {
|
|
7108
7345
|
connector.emit({
|
|
7109
7346
|
type: 'afterLoad',
|
|
7110
7347
|
detail: eventDetail,
|
|
7111
|
-
|
|
7348
|
+
tables,
|
|
7112
7349
|
url
|
|
7113
7350
|
});
|
|
7114
7351
|
// Polling
|
|
@@ -7121,7 +7358,7 @@ class GoogleSheetsConnector extends Connectors_DataConnector {
|
|
|
7121
7358
|
type: 'loadError',
|
|
7122
7359
|
detail: eventDetail,
|
|
7123
7360
|
error,
|
|
7124
|
-
|
|
7361
|
+
tables
|
|
7125
7362
|
});
|
|
7126
7363
|
throw error;
|
|
7127
7364
|
});
|
|
@@ -7394,7 +7631,7 @@ class HTMLTableConverter extends Converters_DataConverter {
|
|
|
7394
7631
|
getTableHeaderHTML(topheaders = [], subheaders = [], options = this.options) {
|
|
7395
7632
|
const { useMultiLevelHeaders, useRowspanHeaders } = options;
|
|
7396
7633
|
let html = '<thead>', i = 0, len = subheaders && subheaders.length, next, cur, curColspan = 0, rowspan;
|
|
7397
|
-
// Clean up multiple table headers.
|
|
7634
|
+
// Clean up multiple table headers. Exporting.getDataRows() returns two
|
|
7398
7635
|
// levels of headers when using multilevel, not merged. We need to
|
|
7399
7636
|
// merge identical headers, remove redundant headers, and keep it
|
|
7400
7637
|
// all marked up nicely.
|
|
@@ -7422,7 +7659,7 @@ class HTMLTableConverter extends Converters_DataConverter {
|
|
|
7422
7659
|
if (cur === subheaders[i]) {
|
|
7423
7660
|
if (useRowspanHeaders) {
|
|
7424
7661
|
rowspan = 2;
|
|
7425
|
-
|
|
7662
|
+
subheaders.splice(i, 1);
|
|
7426
7663
|
}
|
|
7427
7664
|
else {
|
|
7428
7665
|
rowspan = 1;
|
|
@@ -7642,7 +7879,7 @@ class HTMLTableConnector extends Connectors_DataConnector {
|
|
|
7642
7879
|
connector.emit({
|
|
7643
7880
|
type: 'load',
|
|
7644
7881
|
detail: eventDetail,
|
|
7645
|
-
table,
|
|
7882
|
+
tables: { table },
|
|
7646
7883
|
tableElement: connector.tableElement
|
|
7647
7884
|
});
|
|
7648
7885
|
let tableElement;
|
|
@@ -7661,7 +7898,7 @@ class HTMLTableConnector extends Connectors_DataConnector {
|
|
|
7661
7898
|
type: 'loadError',
|
|
7662
7899
|
detail: eventDetail,
|
|
7663
7900
|
error,
|
|
7664
|
-
table
|
|
7901
|
+
tables: { table }
|
|
7665
7902
|
});
|
|
7666
7903
|
return Promise.reject(new Error(error));
|
|
7667
7904
|
}
|
|
@@ -7675,7 +7912,7 @@ class HTMLTableConnector extends Connectors_DataConnector {
|
|
|
7675
7912
|
connector.emit({
|
|
7676
7913
|
type: 'afterLoad',
|
|
7677
7914
|
detail: eventDetail,
|
|
7678
|
-
table,
|
|
7915
|
+
tables: { table },
|
|
7679
7916
|
tableElement: connector.tableElement
|
|
7680
7917
|
});
|
|
7681
7918
|
return connector;
|
|
@@ -8621,6 +8858,17 @@ class SortModifier extends Modifiers_DataModifier {
|
|
|
8621
8858
|
(b || 0) > (a || 0) ? 1 :
|
|
8622
8859
|
0);
|
|
8623
8860
|
}
|
|
8861
|
+
static compareFactory(direction, customCompare) {
|
|
8862
|
+
if (customCompare) {
|
|
8863
|
+
if (direction === 'desc') {
|
|
8864
|
+
return (a, b) => -customCompare(a, b);
|
|
8865
|
+
}
|
|
8866
|
+
return customCompare;
|
|
8867
|
+
}
|
|
8868
|
+
return (direction === 'asc' ?
|
|
8869
|
+
SortModifier.ascending :
|
|
8870
|
+
SortModifier.descending);
|
|
8871
|
+
}
|
|
8624
8872
|
/* *
|
|
8625
8873
|
*
|
|
8626
8874
|
* Constructor
|
|
@@ -8794,9 +9042,7 @@ class SortModifier extends Modifiers_DataModifier {
|
|
|
8794
9042
|
modifyTable(table, eventDetail) {
|
|
8795
9043
|
const modifier = this;
|
|
8796
9044
|
modifier.emit({ type: 'modify', detail: eventDetail, table });
|
|
8797
|
-
const columnNames = table.getColumnNames(), rowCount = table.getRowCount(), rowReferences = this.getRowReferences(table), { direction, orderByColumn, orderInColumn } = modifier.options, compare = (direction
|
|
8798
|
-
SortModifier.ascending :
|
|
8799
|
-
SortModifier.descending), orderByColumnIndex = columnNames.indexOf(orderByColumn), modified = table.modified;
|
|
9045
|
+
const columnNames = table.getColumnNames(), rowCount = table.getRowCount(), rowReferences = this.getRowReferences(table), { direction, orderByColumn, orderInColumn, compare: customCompare } = modifier.options, compare = SortModifier.compareFactory(direction, customCompare), orderByColumnIndex = columnNames.indexOf(orderByColumn), modified = table.modified;
|
|
8800
9046
|
if (orderByColumnIndex !== -1) {
|
|
8801
9047
|
rowReferences.sort((a, b) => compare(a.row[orderByColumnIndex], b.row[orderByColumnIndex]));
|
|
8802
9048
|
}
|
|
@@ -8844,6 +9090,176 @@ Modifiers_DataModifier.registerType('Sort', SortModifier);
|
|
|
8844
9090
|
* */
|
|
8845
9091
|
/* harmony default export */ const Modifiers_SortModifier = ((/* unused pure expression or super */ null && (SortModifier)));
|
|
8846
9092
|
|
|
9093
|
+
;// ./code/es-modules/Data/Modifiers/FilterModifier.js
|
|
9094
|
+
/* *
|
|
9095
|
+
*
|
|
9096
|
+
* (c) 2009-2025 Highsoft AS
|
|
9097
|
+
*
|
|
9098
|
+
* License: www.highcharts.com/license
|
|
9099
|
+
*
|
|
9100
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
9101
|
+
*
|
|
9102
|
+
* Authors:
|
|
9103
|
+
* - Dawid Dragula
|
|
9104
|
+
*
|
|
9105
|
+
* */
|
|
9106
|
+
|
|
9107
|
+
|
|
9108
|
+
|
|
9109
|
+
const { isFunction: FilterModifier_isFunction, merge: FilterModifier_merge } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());
|
|
9110
|
+
/* *
|
|
9111
|
+
*
|
|
9112
|
+
* Class
|
|
9113
|
+
*
|
|
9114
|
+
* */
|
|
9115
|
+
/**
|
|
9116
|
+
* Filters out table rows matching a given condition.
|
|
9117
|
+
*/
|
|
9118
|
+
class FilterModifier extends Modifiers_DataModifier {
|
|
9119
|
+
/* *
|
|
9120
|
+
*
|
|
9121
|
+
* Static Functions
|
|
9122
|
+
*
|
|
9123
|
+
* */
|
|
9124
|
+
/**
|
|
9125
|
+
* Compiles a filter condition into a callback function.
|
|
9126
|
+
*
|
|
9127
|
+
* @param {FilterCondition} condition
|
|
9128
|
+
* Condition to compile.
|
|
9129
|
+
*/
|
|
9130
|
+
static compile(condition) {
|
|
9131
|
+
if (FilterModifier_isFunction(condition)) {
|
|
9132
|
+
return condition;
|
|
9133
|
+
}
|
|
9134
|
+
const op = condition.operator;
|
|
9135
|
+
switch (op) {
|
|
9136
|
+
case 'and': {
|
|
9137
|
+
const subs = condition.conditions.map((c) => this.compile(c));
|
|
9138
|
+
return (row, table, i) => subs.every((cond) => cond(row, table, i));
|
|
9139
|
+
}
|
|
9140
|
+
case 'or': {
|
|
9141
|
+
const subs = condition.conditions.map((c) => this.compile(c));
|
|
9142
|
+
return (row, table, i) => subs.some((cond) => cond(row, table, i));
|
|
9143
|
+
}
|
|
9144
|
+
case 'not': {
|
|
9145
|
+
const sub = this.compile(condition.condition);
|
|
9146
|
+
return (row, table, i) => !sub(row, table, i);
|
|
9147
|
+
}
|
|
9148
|
+
}
|
|
9149
|
+
const { columnName: col, value } = condition;
|
|
9150
|
+
switch (op) {
|
|
9151
|
+
case '==':
|
|
9152
|
+
// eslint-disable-next-line eqeqeq
|
|
9153
|
+
return (row) => row[col] == value;
|
|
9154
|
+
case '===':
|
|
9155
|
+
return (row) => row[col] === value;
|
|
9156
|
+
case '!=':
|
|
9157
|
+
// eslint-disable-next-line eqeqeq
|
|
9158
|
+
return (row) => row[col] != value;
|
|
9159
|
+
case '!==':
|
|
9160
|
+
return (row) => row[col] !== value;
|
|
9161
|
+
case '>':
|
|
9162
|
+
return (row) => (row[col] || 0) > (value || 0);
|
|
9163
|
+
case '>=':
|
|
9164
|
+
return (row) => (row[col] || 0) >= (value || 0);
|
|
9165
|
+
case '<':
|
|
9166
|
+
return (row) => (row[col] || 0) < (value || 0);
|
|
9167
|
+
case '<=':
|
|
9168
|
+
return (row) => (row[col] || 0) <= (value || 0);
|
|
9169
|
+
}
|
|
9170
|
+
const { ignoreCase } = condition;
|
|
9171
|
+
const str = (val) => {
|
|
9172
|
+
const s = '' + val;
|
|
9173
|
+
return (ignoreCase ?? true) ? s.toLowerCase() : s;
|
|
9174
|
+
};
|
|
9175
|
+
switch (op) {
|
|
9176
|
+
case 'contains':
|
|
9177
|
+
return (row) => str(row[col]).includes(str(value));
|
|
9178
|
+
default:
|
|
9179
|
+
return (row) => str(row[col])[op](str(value));
|
|
9180
|
+
}
|
|
9181
|
+
}
|
|
9182
|
+
/* *
|
|
9183
|
+
*
|
|
9184
|
+
* Constructor
|
|
9185
|
+
*
|
|
9186
|
+
* */
|
|
9187
|
+
/**
|
|
9188
|
+
* Constructs an instance of the filter modifier.
|
|
9189
|
+
*
|
|
9190
|
+
* @param {Partial<FilterModifier.Options>} [options]
|
|
9191
|
+
* Options to configure the filter modifier.
|
|
9192
|
+
*/
|
|
9193
|
+
constructor(options) {
|
|
9194
|
+
super();
|
|
9195
|
+
this.options = FilterModifier_merge(FilterModifier.defaultOptions, options);
|
|
9196
|
+
}
|
|
9197
|
+
/* *
|
|
9198
|
+
*
|
|
9199
|
+
* Functions
|
|
9200
|
+
*
|
|
9201
|
+
* */
|
|
9202
|
+
/**
|
|
9203
|
+
* Replaces table rows with filtered rows.
|
|
9204
|
+
*
|
|
9205
|
+
* @param {DataTable} table
|
|
9206
|
+
* Table to modify.
|
|
9207
|
+
*
|
|
9208
|
+
* @param {DataEvent.Detail} [eventDetail]
|
|
9209
|
+
* Custom information for pending events.
|
|
9210
|
+
*
|
|
9211
|
+
* @return {DataTable}
|
|
9212
|
+
* Table with `modified` property as a reference.
|
|
9213
|
+
*/
|
|
9214
|
+
modifyTable(table, eventDetail) {
|
|
9215
|
+
const modifier = this;
|
|
9216
|
+
modifier.emit({ type: 'modify', detail: eventDetail, table });
|
|
9217
|
+
const { condition } = modifier.options;
|
|
9218
|
+
if (!condition) {
|
|
9219
|
+
// If no condition is set, return the unmodified table.
|
|
9220
|
+
return table;
|
|
9221
|
+
}
|
|
9222
|
+
const matchRow = FilterModifier.compile(condition);
|
|
9223
|
+
// This line should be investigated further when reworking Data Layer.
|
|
9224
|
+
const modified = table.modified;
|
|
9225
|
+
const rows = [];
|
|
9226
|
+
const indexes = [];
|
|
9227
|
+
for (let i = 0, iEnd = table.getRowCount(); i < iEnd; ++i) {
|
|
9228
|
+
const row = table.getRowObject(i);
|
|
9229
|
+
if (!row) {
|
|
9230
|
+
continue;
|
|
9231
|
+
}
|
|
9232
|
+
if (matchRow(row, table, i)) {
|
|
9233
|
+
rows.push(row);
|
|
9234
|
+
indexes.push(modified.getOriginalRowIndex(i));
|
|
9235
|
+
}
|
|
9236
|
+
}
|
|
9237
|
+
modified.deleteRows();
|
|
9238
|
+
modified.setRows(rows);
|
|
9239
|
+
modified.setOriginalRowIndexes(indexes);
|
|
9240
|
+
modifier.emit({ type: 'afterModify', detail: eventDetail, table });
|
|
9241
|
+
return table;
|
|
9242
|
+
}
|
|
9243
|
+
}
|
|
9244
|
+
/* *
|
|
9245
|
+
*
|
|
9246
|
+
* Static Properties
|
|
9247
|
+
*
|
|
9248
|
+
* */
|
|
9249
|
+
/**
|
|
9250
|
+
* Default options for the filter modifier.
|
|
9251
|
+
*/
|
|
9252
|
+
FilterModifier.defaultOptions = {
|
|
9253
|
+
type: 'Filter'
|
|
9254
|
+
};
|
|
9255
|
+
Modifiers_DataModifier.registerType('Filter', FilterModifier);
|
|
9256
|
+
/* *
|
|
9257
|
+
*
|
|
9258
|
+
* Default Export
|
|
9259
|
+
*
|
|
9260
|
+
* */
|
|
9261
|
+
/* harmony default export */ const Modifiers_FilterModifier = ((/* unused pure expression or super */ null && (FilterModifier)));
|
|
9262
|
+
|
|
8847
9263
|
;// ./code/es-modules/masters/modules/data-tools.src.js
|
|
8848
9264
|
|
|
8849
9265
|
|
|
@@ -8864,6 +9280,7 @@ Modifiers_DataModifier.registerType('Sort', SortModifier);
|
|
|
8864
9280
|
|
|
8865
9281
|
|
|
8866
9282
|
|
|
9283
|
+
|
|
8867
9284
|
const G = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());
|
|
8868
9285
|
G.DataConnector = G.DataConnector || Connectors_DataConnector;
|
|
8869
9286
|
G.DataConverter = G.DataConverter || Converters_DataConverter;
|