ps-toolkit-ui 0.0.207 → 0.0.211
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/karma.conf.js +32 -0
- package/ng-package.json +16 -0
- package/package.json +19 -22
- package/src/assets/plugins/highcharts/code/css/annotations/popup.css +276 -0
- package/src/assets/plugins/highcharts/code/css/annotations/popup.scss +289 -0
- package/src/assets/plugins/highcharts/code/css/highcharts.css +1013 -0
- package/src/assets/plugins/highcharts/code/css/highcharts.scss +896 -0
- package/src/assets/plugins/highcharts/code/css/stocktools/gui.css +271 -0
- package/src/assets/plugins/highcharts/code/css/stocktools/gui.scss +271 -0
- package/src/assets/plugins/highcharts/code/css/themes/dark-unica.css +1074 -0
- package/src/assets/plugins/highcharts/code/css/themes/dark-unica.scss +122 -0
- package/src/assets/plugins/highcharts/code/css/themes/grid-light.css +1027 -0
- package/src/assets/plugins/highcharts/code/css/themes/grid-light.scss +33 -0
- package/src/assets/plugins/highcharts/code/css/themes/sand-signika.css +1043 -0
- package/src/assets/plugins/highcharts/code/css/themes/sand-signika.scss +74 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/A11yI18n.js +299 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Accessibility.js +401 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/AccessibilityComponent.js +153 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/AnnotationsA11y.js +160 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/ContainerComponent.js +159 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/InfoRegionsComponent.js +543 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/LegendComponent.js +478 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/MenuComponent.js +451 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/RangeSelectorComponent.js +506 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +217 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +324 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +148 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +390 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +650 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Components/ZoomComponent.js +375 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/FocusBorder.js +302 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/HighContrastMode.js +96 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/HighContrastTheme.js +221 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/KeyboardNavigation.js +449 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/KeyboardNavigationHandler.js +128 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Options/DeprecatedOptions.js +250 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Options/LangOptions.js +339 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Options/Options.js +831 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/ProxyElement.js +218 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/ProxyProvider.js +302 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Utils/Announcer.js +91 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Utils/ChartUtilities.js +294 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Utils/DOMElementProvider.js +62 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Utils/EventProvider.js +58 -0
- package/src/assets/plugins/highcharts/code/es-modules/Accessibility/Utils/HTMLUtilities.js +305 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Animation/AnimationUtilities.js +200 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Animation/Fx.js +387 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/Axis.js +3225 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/Axis3D.js +612 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/AxisDefaults.js +2935 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/BrokenAxis.js +601 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/Color/ColorAxis.js +668 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/Color/ColorAxisComposition.js +287 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/Color/ColorAxisDefaults.js +434 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/DateTimeAxis.js +196 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/GridAxis.js +1046 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/LogarithmicAxis.js +202 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/NavigatorAxis.js +159 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/OrdinalAxis.js +992 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +873 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +287 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/RadialAxis.js +954 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/ScrollbarAxis.js +182 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/SolidGaugeAxis.js +127 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/StackingAxis.js +216 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/Tick.js +723 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/Tick3D.js +68 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/TreeGridAxis.js +720 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/TreeGridTick.js +306 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/WaterfallAxis.js +149 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Axis/ZAxis.js +156 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Chart/Chart.js +2909 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Chart/Chart3D.js +1695 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Chart/ChartDefaults.js +1053 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Chart/ChartNavigationComposition.js +92 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Chart/GanttChart.js +177 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Chart/MapChart.js +179 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Chart/StockChart.js +644 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Color/Color.js +419 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Color/Palettes.js +22 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/DefaultOptions.js +2743 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/FormatUtilities.js +246 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Foundation.js +61 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Geometry/CircleUtilities.js +386 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Geometry/GeometryUtilities.js +83 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Globals.js +131 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/HttpUtilities.js +195 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Legend/Legend.js +1284 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Legend/LegendSymbol.js +109 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/MSPointer.js +170 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Navigator.js +1958 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Pointer.js +1518 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/HTML/AST.js +475 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/HTML/HTMLElement.js +261 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/HTML/HTMLRenderer.js +272 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/RendererRegistry.js +77 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/RendererUtilities.js +159 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/SVG/SVGElement.js +2176 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/SVG/SVGElement3D.js +160 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/SVG/SVGLabel.js +408 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/SVG/SVGRenderer.js +1900 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +842 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/SVG/Symbols.js +197 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Renderer/SVG/TextBuilder.js +452 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Responsive.js +334 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Scrollbar.js +658 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/ScrollbarDefaults.js +218 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Series/DataLabel.js +568 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Series/Point.js +1307 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Series/Series.js +3718 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Series/Series3D.js +126 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Series/SeriesDefaults.js +2293 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Series/SeriesRegistry.js +127 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Time.js +741 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Tooltip.js +1378 -0
- package/src/assets/plugins/highcharts/code/es-modules/Core/Utilities.js +1967 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/DataConverter.js +483 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/DataPromise.js +252 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/DataSeriesConverter.js +207 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/DataTable.js +1205 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Modifiers/ChainModifier.js +299 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Modifiers/DataModifier.js +303 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Modifiers/GroupModifier.js +144 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Modifiers/InvertModifier.js +254 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Modifiers/RangeModifier.js +143 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Modifiers/SeriesPointsModifier.js +110 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Modifiers/SortModifier.js +249 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Parsers/CSVParser.js +400 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Parsers/DataParser.js +101 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Parsers/GoogleSheetsParser.js +223 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Parsers/HTMLTableParser.js +213 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Stores/CSVStore.js +317 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Stores/DataStore.js +276 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Stores/GoogleSheetsStore.js +169 -0
- package/src/assets/plugins/highcharts/code/es-modules/Data/Stores/HTMLTableStore.js +353 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Annotations.js +1442 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/ControlPoint.js +141 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +117 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +199 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +111 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +387 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +181 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +121 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +378 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Mixins/EventEmitterMixin.js +221 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Mixins/MarkerMixin.js +179 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/MockPoint.js +428 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/NavigationBindings.js +1212 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Popup.js +1123 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +237 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/CrookedLine.js +185 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/ElliottWave.js +95 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/Fibonacci.js +205 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +219 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/InfinityLine.js +161 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/Measure.js +791 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/Pitchfork.js +194 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/TimeCycles.js +211 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/Tunnel.js +211 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Annotations/Types/VerticalLine.js +156 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/ArrowSymbols.js +166 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/Boost.js +34 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/BoostAttach.js +150 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/BoostInit.js +318 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/BoostOptions.js +219 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/BoostOverrides.js +386 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/BoostUtils.js +255 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/BoostableMap.js +18 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/Boostables.js +25 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/NamedColors.js +162 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/WGLRenderer.js +1188 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/WGLShader.js +470 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Boost/WGLVBuffer.js +153 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/BoostCanvas.js +509 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/CurrentDateIndication.js +100 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Data.js +2037 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/DataGrouping.js +1134 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Debugger/Debugger.js +101 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Debugger/ErrorMessages.js +106 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/DownloadURL.js +106 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/DragPanes.js +512 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/DraggablePoints.js +2259 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Drilldown.js +1170 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/ExportData.js +997 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Exporting/Exporting.js +1260 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Exporting/ExportingDefaults.js +796 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Exporting/ExportingSymbols.js +73 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/FullScreen.js +240 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/GeoJSON.js +436 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/MarkerClusters.js +1436 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Math3D.js +245 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/NoDataToDisplay.js +189 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/OfflineExporting/OfflineExporting.js +617 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +58 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Oldie/Oldie.js +1182 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Oldie/VMLAxis3D.js +101 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Oldie/VMLRenderer3D.js +47 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/OldiePolyfills.js +167 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/OverlappingDataLabels.js +226 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Pane.js +404 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/ParallelCoordinates.js +464 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/PatternFill.js +580 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Polar.js +740 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/PriceIndication.js +292 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/RangeSelector.js +2175 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/ScrollablePlotArea.js +387 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/SeriesLabel.js +765 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/ChartSonify.js +724 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/Earcon.js +197 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/Instrument.js +606 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/MusicalFrequencies.js +122 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/Options.js +44 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/PointSonify.js +391 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/SeriesSonify.js +474 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/SignalHandler.js +122 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/Sonification.js +97 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/SonificationUtilities.js +150 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/Timeline.js +308 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/TimelineEvent.js +157 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Sonification/TimelinePath.js +311 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Stacking.js +516 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/StaticScale.js +76 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/Avocado.js +67 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/BrandDark.js +293 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/BrandLight.js +259 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/DarkBlue.js +279 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/DarkGreen.js +279 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/DarkUnica.js +249 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/Gray.js +287 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/Grid.js +140 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/GridLight.js +111 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/HighContrastDark.js +239 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/HighContrastLight.js +69 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/SandSignika.js +144 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/Skies.js +131 -0
- package/src/assets/plugins/highcharts/code/es-modules/Extensions/Themes/Sunset.js +66 -0
- package/src/assets/plugins/highcharts/code/es-modules/Gantt/Connection.js +838 -0
- package/src/assets/plugins/highcharts/code/es-modules/Gantt/Pathfinder.js +818 -0
- package/src/assets/plugins/highcharts/code/es-modules/Gantt/PathfinderAlgorithms.js +657 -0
- package/src/assets/plugins/highcharts/code/es-modules/Gantt/Tree.js +110 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/MapNavigation.js +278 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/MapNavigationOptionsDefault.js +264 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/MapPointer.js +83 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/MapSymbols.js +80 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/MapView.js +450 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/MapViewOptionsDefault.js +97 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/Projection.js +436 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/ProjectionDefinition.js +9 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/Projections/EqualEarth.js +42 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/Projections/LambertConformalConic.js +52 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/Projections/Miller.js +16 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/Projections/Orthographic.js +26 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/Projections/ProjectionRegistry.js +19 -0
- package/src/assets/plugins/highcharts/code/es-modules/Maps/Projections/WebMercator.js +24 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Area/AreaSeries.js +563 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Area3DSeries.js +70 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/AreaRange/AreaRangePoint.js +129 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/AreaRange/AreaRangeSeries.js +650 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/AreaSpline/AreaSplineSeries.js +203 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/AreaSplineRange/AreaSplineRangeSeries.js +199 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Bar/BarSeries.js +171 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Bellcurve/BellcurveSeries.js +241 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/BoxPlot/BoxPlotSeries.js +681 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Bubble/BubbleLegendComposition.js +279 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Bubble/BubbleLegendDefaults.js +266 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Bubble/BubbleLegendItem.js +462 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Bubble/BubblePoint.js +77 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Bubble/BubbleSeries.js +676 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Bullet/BulletPoint.js +62 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Bullet/BulletSeries.js +365 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Candlestick/CandlestickSeries.js +333 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/CenteredUtilities.js +128 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/ColorMapMixin.js +84 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Column/ColumnDataLabel.js +109 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Column/ColumnSeries.js +1171 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Column3D/Column3DComposition.js +508 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +308 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/ColumnRange/ColumnRangePoint.js +62 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/ColumnRange/ColumnRangeSeries.js +308 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Cylinder/CylinderComposition.js +274 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Cylinder/CylinderPoint.js +60 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Cylinder/CylinderSeries.js +175 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/DataModifyComposition.js +539 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +100 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +368 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/DerivedComposition.js +137 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/DotPlot/DotPlotSeries.js +158 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/DrawPointComposition.js +111 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Dumbbell/DumbbellPoint.js +104 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Dumbbell/DumbbellSeries.js +464 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/ErrorBar/ErrorBarSeries.js +228 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Flags/FlagsPoint.js +74 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Flags/FlagsSeries.js +614 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Flags/FlagsSymbols.js +90 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Funnel/FunnelSeries.js +517 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Funnel3D/Funnel3DComposition.js +383 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Funnel3D/Funnel3DPoint.js +62 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Funnel3D/Funnel3DSeries.js +447 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Gantt/GanttPoint.js +109 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Gantt/GanttSeries.js +352 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Gauge/GaugePoint.js +66 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Gauge/GaugeSeries.js +568 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/HLC/HLCPoint.js +55 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/HLC/HLCSeries.js +378 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Heatmap/HeatmapPoint.js +144 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Heatmap/HeatmapSeries.js +946 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +60 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +278 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Histogram/HistogramSeries.js +253 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +80 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +368 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Item/ItemPoint.js +59 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Item/ItemSeries.js +505 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Line/LineSeries.js +541 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Lollipop/LollipopPoint.js +60 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Lollipop/LollipopSeries.js +209 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Map/MapPoint.js +136 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Map/MapSeries.js +1100 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/MapBubble/MapBubblePoint.js +73 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/MapBubble/MapBubbleSeries.js +283 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/MapLine/MapLineSeries.js +181 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/MapPoint/MapPointPoint.js +71 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/MapPoint/MapPointSeries.js +309 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Networkgraph/DraggableNodes.js +132 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Networkgraph/Integrations.js +348 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Networkgraph/Layouts.js +555 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Networkgraph/Networkgraph.js +1178 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Networkgraph/QuadTree.js +352 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/NodesComposition.js +229 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/OHLC/OHLCPoint.js +116 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/OHLC/OHLCSeries.js +254 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/OnSeriesComposition.js +168 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Organization/OrganizationPoint.js +71 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Organization/OrganizationSeries.js +594 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/PackedBubble/PackedBubbleComposition.js +172 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/PackedBubble/PackedBubblePoint.js +98 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/PackedBubble/PackedBubbleSeries.js +1284 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/ParetoSeries/ParetoSeries.js +195 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Pie/PieDataLabel.js +447 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Pie/PiePoint.js +270 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Pie/PieSeries.js +1074 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Pie3D/Pie3DComposition.js +27 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Pie3D/Pie3DPoint.js +72 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Pie3D/Pie3DSeries.js +200 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Polygon/PolygonSeries.js +195 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Pyramid/PyramidSeries.js +161 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +172 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Sankey/SankeyPoint.js +97 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Sankey/SankeySeries.js +1195 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Scatter/ScatterSeries.js +306 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Scatter3D/Scatter3DPoint.js +66 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Scatter3D/Scatter3DSeries.js +194 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/SolidGauge/SolidGaugeComposition.js +62 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/SolidGauge/SolidGaugeSeries.js +358 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Spline/SplineSeries.js +279 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Streamgraph/StreamgraphSeries.js +213 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Sunburst/SunburstPoint.js +115 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Sunburst/SunburstSeries.js +907 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Sunburst/SunburstUtilities.js +138 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Tilemap/TilemapComposition.js +61 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Tilemap/TilemapPoint.js +77 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Tilemap/TilemapSeries.js +368 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Tilemap/TilemapShapes.js +275 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Timeline/TimelinePoint.js +168 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Timeline/TimelineSeries.js +552 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/TreeUtilities.js +192 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Treemap/TreemapAlgorithmGroup.js +93 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Treemap/TreemapComposition.js +58 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Treemap/TreemapPoint.js +107 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Treemap/TreemapSeries.js +1473 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Treemap/TreemapUtilities.js +65 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/VariablePie/VariablePieSeries.js +446 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Variwide/VariwideComposition.js +78 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Variwide/VariwidePoint.js +63 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Variwide/VariwideSeries.js +317 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Vector/VectorSeries.js +362 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Venn/VennPoint.js +76 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Venn/VennSeries.js +633 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Venn/VennUtils.js +607 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Waterfall/WaterfallPoint.js +68 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Waterfall/WaterfallSeries.js +743 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Windbarb/WindbarbPoint.js +64 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Windbarb/WindbarbSeries.js +462 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Wordcloud/WordcloudPoint.js +66 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Wordcloud/WordcloudSeries.js +503 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/Wordcloud/WordcloudUtils.js +718 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/XRange/XRangeComposition.js +49 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/XRange/XRangePoint.js +168 -0
- package/src/assets/plugins/highcharts/code/es-modules/Series/XRange/XRangeSeries.js +608 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +243 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/AD/ADIndicator.js +160 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/AO/AOIndicator.js +212 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/APO/APOIndicator.js +167 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/ATR/ATRIndicator.js +162 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +197 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +141 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/ArrayUtilities.js +47 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/BB/BBIndicator.js +241 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/CCI/CCIIndicator.js +154 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/CMF/CMFIndicator.js +243 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/CMO/CMOIndicator.js +166 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +187 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +149 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/DMI/DMIIndicator.js +276 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/DPO/DPOIndicator.js +163 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +179 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/EMA/EMAIndicator.js +154 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/IKH/IKHIndicator.js +682 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +217 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +270 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +282 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +119 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +104 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +104 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/MACD/MACDIndicator.js +402 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/MFI/MFIIndicator.js +198 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +121 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/MultipleLinesComposition.js +294 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/NATR/NATRIndicator.js +111 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/OBV/OBVIndicator.js +170 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/PC/PCIndicator.js +197 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/PPO/PPOIndicator.js +164 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +280 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +310 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/PivotPoints/PivotPointsPoint.js +78 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +240 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/ROC/ROCIndicator.js +176 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/RSI/RSIIndicator.js +171 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/SMA/SMAComposition.js +12 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/SMA/SMAIndicator.js +367 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +134 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +208 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +485 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +208 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +98 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +148 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/VBP/VBPIndicator.js +556 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/VBP/VBPPoint.js +49 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +193 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/WMA/WMAIndicator.js +153 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +135 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +228 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/StockToolsBindings.js +2009 -0
- package/src/assets/plugins/highcharts/code/es-modules/Stock/StockToolsGui.js +1816 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/highcharts-3d.src.js +28 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/highcharts-more.src.js +28 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/highcharts.src.js +147 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/accessibility.src.js +28 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/annotations-advanced.src.js +26 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/annotations.src.js +15 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/arrow-symbols.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/boost-canvas.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/boost.src.js +15 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/broken-axis.src.js +15 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/bullet.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/coloraxis.src.js +17 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/current-date-indicator.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/cylinder.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/data.src.js +23 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/datagrouping.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/debugger.src.js +16 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/dependency-wheel.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/dotplot.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/drag-panes.src.js +15 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/draggable-points.src.js +11 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/drilldown.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/dumbbell.src.js +11 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/export-data.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/exporting.src.js +22 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/full-screen.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/funnel.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/funnel3d.src.js +18 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/gantt.src.js +26 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/grid-axis.src.js +17 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/heatmap.src.js +16 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/heikinashi.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/histogram-bellcurve.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/hollowcandlestick.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/item-series.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/lollipop.src.js +11 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/marker-clusters.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/networkgraph.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/no-data-to-display.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/offline-exporting.src.js +20 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/oldie-polyfills.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/oldie.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/organization.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/overlapping-datalabels.src.js +11 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/parallel-coordinates.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/pareto.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/pathfinder.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/pattern-fill.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/price-indicator.src.js +15 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/pyramid3d.src.js +16 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/sankey.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/series-label.src.js +11 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/solid-gauge.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/sonification.src.js +44 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/static-scale.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/stock-tools.src.js +16 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/stock.src.js +33 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/streamgraph.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/sunburst.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/tilemap.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/timeline.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/treegrid.src.js +17 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/treemap.src.js +12 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/variable-pie.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/variwide.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/vector.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/venn.src.js +12 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/windbarb.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/wordcloud.src.js +12 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/modules/xrange.src.js +13 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/avocado.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/brand-dark.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/brand-light.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/dark-blue.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/dark-green.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/dark-unica.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/gray.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/grid-light.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/grid.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/high-contrast-dark.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/high-contrast-light.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/sand-signika.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/skies.src.js +14 -0
- package/src/assets/plugins/highcharts/code/es-modules/masters/themes/sunset.src.js +14 -0
- package/src/assets/plugins/highcharts/code/highcharts-3d.js +105 -0
- package/src/assets/plugins/highcharts/code/highcharts-3d.js.map +1 -0
- package/src/assets/plugins/highcharts/code/highcharts-3d.src.js +5439 -0
- package/src/assets/plugins/highcharts/code/highcharts-more.js +201 -0
- package/src/assets/plugins/highcharts/code/highcharts-more.js.map +1 -0
- package/src/assets/plugins/highcharts/code/highcharts-more.src.js +12004 -0
- package/src/assets/plugins/highcharts/code/highcharts.js +593 -0
- package/src/assets/plugins/highcharts/code/highcharts.js.map +1 -0
- package/src/assets/plugins/highcharts/code/highcharts.src.js +47519 -0
- package/src/assets/plugins/highcharts/code/lib/canvg.js +8 -0
- package/src/assets/plugins/highcharts/code/lib/jspdf.js +283 -0
- package/src/assets/plugins/highcharts/code/lib/jspdf.src.js +21627 -0
- package/src/assets/plugins/highcharts/code/lib/svg2pdf.js +38 -0
- package/src/assets/plugins/highcharts/code/lib/svg2pdf.src.js +4390 -0
- package/src/assets/plugins/highcharts/code/modules/accessibility.js +256 -0
- package/src/assets/plugins/highcharts/code/modules/accessibility.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/accessibility.src.js +11868 -0
- package/src/assets/plugins/highcharts/code/modules/annotations-advanced.js +201 -0
- package/src/assets/plugins/highcharts/code/modules/annotations-advanced.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/annotations-advanced.src.js +9616 -0
- package/src/assets/plugins/highcharts/code/modules/annotations.js +135 -0
- package/src/assets/plugins/highcharts/code/modules/annotations.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/annotations.src.js +6712 -0
- package/src/assets/plugins/highcharts/code/modules/arrow-symbols.js +12 -0
- package/src/assets/plugins/highcharts/code/modules/arrow-symbols.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/arrow-symbols.src.js +202 -0
- package/src/assets/plugins/highcharts/code/modules/boost-canvas.js +25 -0
- package/src/assets/plugins/highcharts/code/modules/boost-canvas.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/boost-canvas.src.js +593 -0
- package/src/assets/plugins/highcharts/code/modules/boost.js +90 -0
- package/src/assets/plugins/highcharts/code/modules/boost.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/boost.src.js +3834 -0
- package/src/assets/plugins/highcharts/code/modules/broken-axis.js +20 -0
- package/src/assets/plugins/highcharts/code/modules/broken-axis.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/broken-axis.src.js +682 -0
- package/src/assets/plugins/highcharts/code/modules/bullet.js +18 -0
- package/src/assets/plugins/highcharts/code/modules/bullet.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/bullet.src.js +489 -0
- package/src/assets/plugins/highcharts/code/modules/coloraxis.js +33 -0
- package/src/assets/plugins/highcharts/code/modules/coloraxis.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/coloraxis.src.js +1484 -0
- package/src/assets/plugins/highcharts/code/modules/current-date-indicator.js +13 -0
- package/src/assets/plugins/highcharts/code/modules/current-date-indicator.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/current-date-indicator.src.js +138 -0
- package/src/assets/plugins/highcharts/code/modules/cylinder.js +20 -0
- package/src/assets/plugins/highcharts/code/modules/cylinder.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/cylinder.src.js +585 -0
- package/src/assets/plugins/highcharts/code/modules/data.js +42 -0
- package/src/assets/plugins/highcharts/code/modules/data.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/data.src.js +2383 -0
- package/src/assets/plugins/highcharts/code/modules/datagrouping.js +29 -0
- package/src/assets/plugins/highcharts/code/modules/datagrouping.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/datagrouping.src.js +1275 -0
- package/src/assets/plugins/highcharts/code/modules/debugger.js +30 -0
- package/src/assets/plugins/highcharts/code/modules/debugger.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/debugger.src.js +250 -0
- package/src/assets/plugins/highcharts/code/modules/dependency-wheel.js +20 -0
- package/src/assets/plugins/highcharts/code/modules/dependency-wheel.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/dependency-wheel.src.js +533 -0
- package/src/assets/plugins/highcharts/code/modules/dotplot.js +15 -0
- package/src/assets/plugins/highcharts/code/modules/dotplot.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/dotplot.src.js +216 -0
- package/src/assets/plugins/highcharts/code/modules/drag-panes.js +20 -0
- package/src/assets/plugins/highcharts/code/modules/drag-panes.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/drag-panes.src.js +586 -0
- package/src/assets/plugins/highcharts/code/modules/draggable-points.js +41 -0
- package/src/assets/plugins/highcharts/code/modules/draggable-points.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/draggable-points.src.js +2405 -0
- package/src/assets/plugins/highcharts/code/modules/drilldown.js +34 -0
- package/src/assets/plugins/highcharts/code/modules/drilldown.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/drilldown.src.js +1266 -0
- package/src/assets/plugins/highcharts/code/modules/dumbbell.js +24 -0
- package/src/assets/plugins/highcharts/code/modules/dumbbell.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/dumbbell.src.js +798 -0
- package/src/assets/plugins/highcharts/code/modules/export-data.js +30 -0
- package/src/assets/plugins/highcharts/code/modules/export-data.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/export-data.src.js +1203 -0
- package/src/assets/plugins/highcharts/code/modules/exporting.js +48 -0
- package/src/assets/plugins/highcharts/code/modules/exporting.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/exporting.src.js +2789 -0
- package/src/assets/plugins/highcharts/code/modules/full-screen.js +17 -0
- package/src/assets/plugins/highcharts/code/modules/full-screen.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/full-screen.src.js +284 -0
- package/src/assets/plugins/highcharts/code/modules/funnel.js +21 -0
- package/src/assets/plugins/highcharts/code/modules/funnel.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/funnel.src.js +777 -0
- package/src/assets/plugins/highcharts/code/modules/funnel3d.js +30 -0
- package/src/assets/plugins/highcharts/code/modules/funnel3d.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/funnel3d.src.js +1004 -0
- package/src/assets/plugins/highcharts/code/modules/gantt.js +226 -0
- package/src/assets/plugins/highcharts/code/modules/gantt.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/gantt.src.js +13485 -0
- package/src/assets/plugins/highcharts/code/modules/grid-axis.js +32 -0
- package/src/assets/plugins/highcharts/code/modules/grid-axis.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/grid-axis.src.js +1160 -0
- package/src/assets/plugins/highcharts/code/modules/heatmap.js +46 -0
- package/src/assets/plugins/highcharts/code/modules/heatmap.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/heatmap.src.js +2726 -0
- package/src/assets/plugins/highcharts/code/modules/heikinashi.js +17 -0
- package/src/assets/plugins/highcharts/code/modules/heikinashi.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/heikinashi.src.js +396 -0
- package/src/assets/plugins/highcharts/code/modules/histogram-bellcurve.js +21 -0
- package/src/assets/plugins/highcharts/code/modules/histogram-bellcurve.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/histogram-bellcurve.src.js +699 -0
- package/src/assets/plugins/highcharts/code/modules/hollowcandlestick.js +18 -0
- package/src/assets/plugins/highcharts/code/modules/hollowcandlestick.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/hollowcandlestick.src.js +500 -0
- package/src/assets/plugins/highcharts/code/modules/item-series.js +21 -0
- package/src/assets/plugins/highcharts/code/modules/item-series.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/item-series.src.js +660 -0
- package/src/assets/plugins/highcharts/code/modules/lollipop.js +14 -0
- package/src/assets/plugins/highcharts/code/modules/lollipop.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/lollipop.src.js +318 -0
- package/src/assets/plugins/highcharts/code/modules/marker-clusters.js +45 -0
- package/src/assets/plugins/highcharts/code/modules/marker-clusters.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/marker-clusters.src.js +1713 -0
- package/src/assets/plugins/highcharts/code/modules/networkgraph.js +58 -0
- package/src/assets/plugins/highcharts/code/modules/networkgraph.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/networkgraph.src.js +2926 -0
- package/src/assets/plugins/highcharts/code/modules/no-data-to-display.js +15 -0
- package/src/assets/plugins/highcharts/code/modules/no-data-to-display.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/no-data-to-display.src.js +231 -0
- package/src/assets/plugins/highcharts/code/modules/offline-exporting.js +27 -0
- package/src/assets/plugins/highcharts/code/modules/offline-exporting.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/offline-exporting.src.js +847 -0
- package/src/assets/plugins/highcharts/code/modules/oldie-polyfills.js +17 -0
- package/src/assets/plugins/highcharts/code/modules/oldie-polyfills.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/oldie-polyfills.src.js +220 -0
- package/src/assets/plugins/highcharts/code/modules/oldie.js +40 -0
- package/src/assets/plugins/highcharts/code/modules/oldie.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/oldie.src.js +1443 -0
- package/src/assets/plugins/highcharts/code/modules/organization.js +22 -0
- package/src/assets/plugins/highcharts/code/modules/organization.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/organization.src.js +736 -0
- package/src/assets/plugins/highcharts/code/modules/overlapping-datalabels.js +9 -0
- package/src/assets/plugins/highcharts/code/modules/overlapping-datalabels.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/overlapping-datalabels.src.js +33 -0
- package/src/assets/plugins/highcharts/code/modules/parallel-coordinates.js +20 -0
- package/src/assets/plugins/highcharts/code/modules/parallel-coordinates.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/parallel-coordinates.src.js +555 -0
- package/src/assets/plugins/highcharts/code/modules/pareto.js +16 -0
- package/src/assets/plugins/highcharts/code/modules/pareto.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/pareto.src.js +382 -0
- package/src/assets/plugins/highcharts/code/modules/pathfinder.js +40 -0
- package/src/assets/plugins/highcharts/code/modules/pathfinder.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/pathfinder.src.js +2693 -0
- package/src/assets/plugins/highcharts/code/modules/pattern-fill.js +24 -0
- package/src/assets/plugins/highcharts/code/modules/pattern-fill.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/pattern-fill.src.js +640 -0
- package/src/assets/plugins/highcharts/code/modules/price-indicator.js +15 -0
- package/src/assets/plugins/highcharts/code/modules/price-indicator.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/price-indicator.src.js +346 -0
- package/src/assets/plugins/highcharts/code/modules/pyramid3d.js +13 -0
- package/src/assets/plugins/highcharts/code/modules/pyramid3d.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/pyramid3d.src.js +211 -0
- package/src/assets/plugins/highcharts/code/modules/sankey.js +38 -0
- package/src/assets/plugins/highcharts/code/modules/sankey.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/sankey.src.js +1868 -0
- package/src/assets/plugins/highcharts/code/modules/series-label.js +24 -0
- package/src/assets/plugins/highcharts/code/modules/series-label.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/series-label.src.js +852 -0
- package/src/assets/plugins/highcharts/code/modules/solid-gauge.js +19 -0
- package/src/assets/plugins/highcharts/code/modules/solid-gauge.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/solid-gauge.src.js +650 -0
- package/src/assets/plugins/highcharts/code/modules/sonification.js +68 -0
- package/src/assets/plugins/highcharts/code/modules/sonification.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/sonification.src.js +3869 -0
- package/src/assets/plugins/highcharts/code/modules/static-scale.js +13 -0
- package/src/assets/plugins/highcharts/code/modules/static-scale.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/static-scale.src.js +117 -0
- package/src/assets/plugins/highcharts/code/modules/stock-tools.js +189 -0
- package/src/assets/plugins/highcharts/code/modules/stock-tools.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/stock-tools.src.js +9592 -0
- package/src/assets/plugins/highcharts/code/modules/stock.js +213 -0
- package/src/assets/plugins/highcharts/code/modules/stock.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/stock.src.js +12237 -0
- package/src/assets/plugins/highcharts/code/modules/streamgraph.js +13 -0
- package/src/assets/plugins/highcharts/code/modules/streamgraph.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/streamgraph.src.js +253 -0
- package/src/assets/plugins/highcharts/code/modules/sunburst.js +68 -0
- package/src/assets/plugins/highcharts/code/modules/sunburst.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/sunburst.src.js +3721 -0
- package/src/assets/plugins/highcharts/code/modules/tilemap.js +26 -0
- package/src/assets/plugins/highcharts/code/modules/tilemap.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/tilemap.src.js +878 -0
- package/src/assets/plugins/highcharts/code/modules/timeline.js +28 -0
- package/src/assets/plugins/highcharts/code/modules/timeline.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/timeline.src.js +815 -0
- package/src/assets/plugins/highcharts/code/modules/treegrid.js +65 -0
- package/src/assets/plugins/highcharts/code/modules/treegrid.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/treegrid.src.js +3294 -0
- package/src/assets/plugins/highcharts/code/modules/treemap.js +49 -0
- package/src/assets/plugins/highcharts/code/modules/treemap.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/treemap.src.js +2416 -0
- package/src/assets/plugins/highcharts/code/modules/variable-pie.js +18 -0
- package/src/assets/plugins/highcharts/code/modules/variable-pie.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/variable-pie.src.js +533 -0
- package/src/assets/plugins/highcharts/code/modules/variwide.js +21 -0
- package/src/assets/plugins/highcharts/code/modules/variwide.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/variwide.src.js +529 -0
- package/src/assets/plugins/highcharts/code/modules/vector.js +16 -0
- package/src/assets/plugins/highcharts/code/modules/vector.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/vector.src.js +409 -0
- package/src/assets/plugins/highcharts/code/modules/venn.js +39 -0
- package/src/assets/plugins/highcharts/code/modules/venn.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/venn.src.js +2095 -0
- package/src/assets/plugins/highcharts/code/modules/windbarb.js +24 -0
- package/src/assets/plugins/highcharts/code/modules/windbarb.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/windbarb.src.js +772 -0
- package/src/assets/plugins/highcharts/code/modules/wordcloud.js +31 -0
- package/src/assets/plugins/highcharts/code/modules/wordcloud.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/wordcloud.src.js +1584 -0
- package/src/assets/plugins/highcharts/code/modules/xrange.js +26 -0
- package/src/assets/plugins/highcharts/code/modules/xrange.js.map +1 -0
- package/src/assets/plugins/highcharts/code/modules/xrange.src.js +940 -0
- package/src/assets/plugins/highcharts/code/themes/avocado.js +10 -0
- package/src/assets/plugins/highcharts/code/themes/avocado.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/avocado.src.js +103 -0
- package/src/assets/plugins/highcharts/code/themes/brand-dark.js +15 -0
- package/src/assets/plugins/highcharts/code/themes/brand-dark.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/brand-dark.src.js +328 -0
- package/src/assets/plugins/highcharts/code/themes/brand-light.js +15 -0
- package/src/assets/plugins/highcharts/code/themes/brand-light.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/brand-light.src.js +294 -0
- package/src/assets/plugins/highcharts/code/themes/dark-blue.js +15 -0
- package/src/assets/plugins/highcharts/code/themes/dark-blue.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/dark-blue.src.js +315 -0
- package/src/assets/plugins/highcharts/code/themes/dark-green.js +15 -0
- package/src/assets/plugins/highcharts/code/themes/dark-green.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/dark-green.src.js +315 -0
- package/src/assets/plugins/highcharts/code/themes/dark-unica.js +14 -0
- package/src/assets/plugins/highcharts/code/themes/dark-unica.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/dark-unica.src.js +284 -0
- package/src/assets/plugins/highcharts/code/themes/gray.js +15 -0
- package/src/assets/plugins/highcharts/code/themes/gray.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/gray.src.js +323 -0
- package/src/assets/plugins/highcharts/code/themes/grid-light.js +11 -0
- package/src/assets/plugins/highcharts/code/themes/grid-light.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/grid-light.src.js +146 -0
- package/src/assets/plugins/highcharts/code/themes/grid.js +12 -0
- package/src/assets/plugins/highcharts/code/themes/grid.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/grid.src.js +176 -0
- package/src/assets/plugins/highcharts/code/themes/high-contrast-dark.js +14 -0
- package/src/assets/plugins/highcharts/code/themes/high-contrast-dark.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/high-contrast-dark.src.js +275 -0
- package/src/assets/plugins/highcharts/code/themes/high-contrast-light.js +10 -0
- package/src/assets/plugins/highcharts/code/themes/high-contrast-light.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/high-contrast-light.src.js +105 -0
- package/src/assets/plugins/highcharts/code/themes/sand-signika.js +12 -0
- package/src/assets/plugins/highcharts/code/themes/sand-signika.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/sand-signika.src.js +179 -0
- package/src/assets/plugins/highcharts/code/themes/skies.js +12 -0
- package/src/assets/plugins/highcharts/code/themes/skies.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/skies.src.js +167 -0
- package/src/assets/plugins/highcharts/code/themes/sunset.js +10 -0
- package/src/assets/plugins/highcharts/code/themes/sunset.js.map +1 -0
- package/src/assets/plugins/highcharts/code/themes/sunset.src.js +102 -0
- package/src/assets/plugins/highcharts/examples/3d-area-multiple/index.html +192 -0
- package/src/assets/plugins/highcharts/examples/3d-column-interactive/index.html +111 -0
- package/src/assets/plugins/highcharts/examples/3d-column-null-values/index.html +118 -0
- package/src/assets/plugins/highcharts/examples/3d-column-stacking-grouping/index.html +144 -0
- package/src/assets/plugins/highcharts/examples/3d-pie/index.html +130 -0
- package/src/assets/plugins/highcharts/examples/3d-pie-donut/index.html +112 -0
- package/src/assets/plugins/highcharts/examples/3d-scatter-draggable/index.html +221 -0
- package/src/assets/plugins/highcharts/examples/accessible-line/index.html +198 -0
- package/src/assets/plugins/highcharts/examples/accessible-pie/index.html +213 -0
- package/src/assets/plugins/highcharts/examples/advanced-accessible/index.html +271 -0
- package/src/assets/plugins/highcharts/examples/annotations/index.html +2170 -0
- package/src/assets/plugins/highcharts/examples/area-basic/index.html +157 -0
- package/src/assets/plugins/highcharts/examples/area-inverted/index.html +135 -0
- package/src/assets/plugins/highcharts/examples/area-missing/index.html +125 -0
- package/src/assets/plugins/highcharts/examples/area-negative/index.html +101 -0
- package/src/assets/plugins/highcharts/examples/area-stacked/index.html +136 -0
- package/src/assets/plugins/highcharts/examples/area-stacked-percent/index.html +141 -0
- package/src/assets/plugins/highcharts/examples/arearange/index.html +132 -0
- package/src/assets/plugins/highcharts/examples/arearange-line/index.html +195 -0
- package/src/assets/plugins/highcharts/examples/areaspline/index.html +137 -0
- package/src/assets/plugins/highcharts/examples/bar-basic/index.html +143 -0
- package/src/assets/plugins/highcharts/examples/bar-negative-stack/index.html +173 -0
- package/src/assets/plugins/highcharts/examples/bar-stacked/index.html +112 -0
- package/src/assets/plugins/highcharts/examples/bellcurve/index.html +133 -0
- package/src/assets/plugins/highcharts/examples/box-plot/index.html +149 -0
- package/src/assets/plugins/highcharts/examples/bubble/index.html +209 -0
- package/src/assets/plugins/highcharts/examples/bubble-3d/index.html +159 -0
- package/src/assets/plugins/highcharts/examples/bullet-graph/index.html +233 -0
- package/src/assets/plugins/highcharts/examples/chart-update/index.html +137 -0
- package/src/assets/plugins/highcharts/examples/column-basic/index.html +144 -0
- package/src/assets/plugins/highcharts/examples/column-comparison/index.html +350 -0
- package/src/assets/plugins/highcharts/examples/column-drilldown/index.html +387 -0
- package/src/assets/plugins/highcharts/examples/column-negative/index.html +101 -0
- package/src/assets/plugins/highcharts/examples/column-parsed/index.html +138 -0
- package/src/assets/plugins/highcharts/examples/column-placement/index.html +160 -0
- package/src/assets/plugins/highcharts/examples/column-pyramid/index.html +117 -0
- package/src/assets/plugins/highcharts/examples/column-rotated-labels/index.html +147 -0
- package/src/assets/plugins/highcharts/examples/column-stacked/index.html +138 -0
- package/src/assets/plugins/highcharts/examples/column-stacked-and-grouped/index.html +133 -0
- package/src/assets/plugins/highcharts/examples/column-stacked-percent/index.html +113 -0
- package/src/assets/plugins/highcharts/examples/columnrange/index.html +145 -0
- package/src/assets/plugins/highcharts/examples/combo/index.html +146 -0
- package/src/assets/plugins/highcharts/examples/combo-dual-axes/index.html +153 -0
- package/src/assets/plugins/highcharts/examples/combo-meteogram/index.html +768 -0
- package/src/assets/plugins/highcharts/examples/combo-multi-axes/index.html +222 -0
- package/src/assets/plugins/highcharts/examples/combo-regression/index.html +110 -0
- package/src/assets/plugins/highcharts/examples/combo-timeline/index.html +592 -0
- package/src/assets/plugins/highcharts/examples/cylinder/index.html +104 -0
- package/src/assets/plugins/highcharts/examples/dependency-wheel/index.html +165 -0
- package/src/assets/plugins/highcharts/examples/dumbbell/index.html +230 -0
- package/src/assets/plugins/highcharts/examples/dynamic-click-to-add/index.html +147 -0
- package/src/assets/plugins/highcharts/examples/dynamic-master-detail/index.html +316 -0
- package/src/assets/plugins/highcharts/examples/dynamic-update/index.html +163 -0
- package/src/assets/plugins/highcharts/examples/error-bar/index.html +154 -0
- package/src/assets/plugins/highcharts/examples/euler-diagram/index.html +119 -0
- package/src/assets/plugins/highcharts/examples/flame/index.html +1324 -0
- package/src/assets/plugins/highcharts/examples/funnel/index.html +131 -0
- package/src/assets/plugins/highcharts/examples/funnel3d/index.html +117 -0
- package/src/assets/plugins/highcharts/examples/gauge-activity/index.html +272 -0
- package/src/assets/plugins/highcharts/examples/gauge-clock/index.html +261 -0
- package/src/assets/plugins/highcharts/examples/gauge-dual/index.html +181 -0
- package/src/assets/plugins/highcharts/examples/gauge-solid/index.html +248 -0
- package/src/assets/plugins/highcharts/examples/gauge-speedometer/index.html +189 -0
- package/src/assets/plugins/highcharts/examples/gauge-vu-meter/index.html +210 -0
- package/src/assets/plugins/highcharts/examples/heatmap/index.html +168 -0
- package/src/assets/plugins/highcharts/examples/heatmap-canvas/index.html +8928 -0
- package/src/assets/plugins/highcharts/examples/histogram/index.html +133 -0
- package/src/assets/plugins/highcharts/examples/honeycomb-usa/index.html +518 -0
- package/src/assets/plugins/highcharts/examples/line-ajax/index.html +206 -0
- package/src/assets/plugins/highcharts/examples/line-basic/index.html +147 -0
- package/src/assets/plugins/highcharts/examples/line-boost/index.html +144 -0
- package/src/assets/plugins/highcharts/examples/line-labels/index.html +108 -0
- package/src/assets/plugins/highcharts/examples/line-log-axis/index.html +106 -0
- package/src/assets/plugins/highcharts/examples/line-time-series/index.html +136 -0
- package/src/assets/plugins/highcharts/examples/live-data/index.html +155 -0
- package/src/assets/plugins/highcharts/examples/lollipop/index.html +161 -0
- package/src/assets/plugins/highcharts/examples/network-graph/index.html +277 -0
- package/src/assets/plugins/highcharts/examples/organization-chart/index.html +224 -0
- package/src/assets/plugins/highcharts/examples/packed-bubble/index.html +588 -0
- package/src/assets/plugins/highcharts/examples/packed-bubble-split/index.html +589 -0
- package/src/assets/plugins/highcharts/examples/parallel-coordinates/index.html +176 -0
- package/src/assets/plugins/highcharts/examples/pareto/index.html +133 -0
- package/src/assets/plugins/highcharts/examples/parliament-chart/index.html +138 -0
- package/src/assets/plugins/highcharts/examples/pie-basic/index.html +141 -0
- package/src/assets/plugins/highcharts/examples/pie-donut/index.html +347 -0
- package/src/assets/plugins/highcharts/examples/pie-drilldown/index.html +418 -0
- package/src/assets/plugins/highcharts/examples/pie-gradient/index.html +133 -0
- package/src/assets/plugins/highcharts/examples/pie-legend/index.html +128 -0
- package/src/assets/plugins/highcharts/examples/pie-monochrome/index.html +139 -0
- package/src/assets/plugins/highcharts/examples/pie-semi-circle/index.html +133 -0
- package/src/assets/plugins/highcharts/examples/polar/index.html +136 -0
- package/src/assets/plugins/highcharts/examples/polar-radial-bar/index.html +169 -0
- package/src/assets/plugins/highcharts/examples/polar-spider/index.html +148 -0
- package/src/assets/plugins/highcharts/examples/polar-wind-rose/index.html +351 -0
- package/src/assets/plugins/highcharts/examples/polygon/index.html +190 -0
- package/src/assets/plugins/highcharts/examples/pyramid/index.html +126 -0
- package/src/assets/plugins/highcharts/examples/pyramid3d/index.html +117 -0
- package/src/assets/plugins/highcharts/examples/renderer/index.html +334 -0
- package/src/assets/plugins/highcharts/examples/responsive/index.html +176 -0
- package/src/assets/plugins/highcharts/examples/sankey-diagram/index.html +145 -0
- package/src/assets/plugins/highcharts/examples/scatter/index.html +246 -0
- package/src/assets/plugins/highcharts/examples/scatter-boost/index.html +142 -0
- package/src/assets/plugins/highcharts/examples/sonification/index.html +331 -0
- package/src/assets/plugins/highcharts/examples/sparkline/index.html +676 -0
- package/src/assets/plugins/highcharts/examples/spline-inverted/index.html +135 -0
- package/src/assets/plugins/highcharts/examples/spline-irregular-time/index.html +255 -0
- package/src/assets/plugins/highcharts/examples/spline-plot-bands/index.html +223 -0
- package/src/assets/plugins/highcharts/examples/spline-symbols/index.html +139 -0
- package/src/assets/plugins/highcharts/examples/streamgraph/index.html +447 -0
- package/src/assets/plugins/highcharts/examples/styled-mode-column/index.html +146 -0
- package/src/assets/plugins/highcharts/examples/styled-mode-pie/index.html +119 -0
- package/src/assets/plugins/highcharts/examples/sunburst/index.html +1520 -0
- package/src/assets/plugins/highcharts/examples/synchronized-charts/index.html +238 -0
- package/src/assets/plugins/highcharts/examples/timeline/index.html +142 -0
- package/src/assets/plugins/highcharts/examples/treemap-coloraxis/index.html +119 -0
- package/src/assets/plugins/highcharts/examples/treemap-large-dataset/index.html +172 -0
- package/src/assets/plugins/highcharts/examples/treemap-with-levels/index.html +151 -0
- package/src/assets/plugins/highcharts/examples/variable-radius-pie/index.html +131 -0
- package/src/assets/plugins/highcharts/examples/variwide/index.html +146 -0
- package/src/assets/plugins/highcharts/examples/vector-plot/index.html +494 -0
- package/src/assets/plugins/highcharts/examples/venn-diagram/index.html +124 -0
- package/src/assets/plugins/highcharts/examples/waterfall/index.html +143 -0
- package/src/assets/plugins/highcharts/examples/windbarb-series/index.html +189 -0
- package/src/assets/plugins/highcharts/examples/wordcloud/index.html +110 -0
- package/src/assets/plugins/highcharts/examples/x-range/index.html +142 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/annotations-hidden.svg +19 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/annotations-visible.svg +20 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/arrow-bottom.svg +9 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/arrow-left.svg +9 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/arrow-line.svg +11 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/arrow-ray.svg +10 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/arrow-right.svg +9 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/arrow-segment.svg +11 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/arrow.svg +13 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/circle.svg +13 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/close.svg +8 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/crooked-3.svg +13 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/crooked-5.svg +11 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/current-price-hide.svg +40 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/current-price-show.svg +41 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/destroy.svg +14 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/drawing.svg +18 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/edit.svg +10 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/elliott-3.svg +59 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/elliott-5.svg +41 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/ellipse.svg +11 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/fibonacci-timezone.svg +16 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/fibonacci.svg +25 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/flag-basic.svg +10 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/flag-diamond.svg +12 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/flag-elipse.svg +13 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/flag-trapeze.svg +14 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/fullscreen.svg +15 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/horizontal-line.svg +8 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/indicators.svg +27 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/label.svg +16 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/line.svg +11 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/linear.svg +11 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/logarithmic.svg +1 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/measure-x.svg +23 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/measure-xy.svg +28 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/measure-y.svg +24 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/panning.svg +17 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/parallel-channel.svg +15 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/pitchfork.svg +13 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/ray.svg +10 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/rectangle.svg +8 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/remove-annotations.svg +15 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/save-chart.svg +12 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/segment.svg +10 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/separator.svg +10 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/series-candlestick.svg +12 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/series-heikin-ashi.svg +1 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/series-hlc.svg +1 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/series-hollow-candlestick.svg +1 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/series-line.svg +11 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/series-ohlc.svg +14 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/text.svg +13 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/time-cycles.svg +35 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/vertical-arrow.svg +7 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/vertical-counter.svg +23 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/vertical-double-arrow.svg +10 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/vertical-label.svg +14 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/vertical-line.svg +8 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/zoom-x.svg +17 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/zoom-xy.svg +13 -0
- package/src/assets/plugins/highcharts/gfx/stock-icons/zoom-y.svg +17 -0
- package/src/assets/plugins/highcharts/gfx/vml-radial-gradient.png +0 -0
- package/src/assets/plugins/highcharts/graphics/color-picker.svg +12 -0
- package/src/assets/plugins/highcharts/graphics/cursor.svg +11 -0
- package/src/assets/plugins/highcharts/graphics/earth.svg +432 -0
- package/src/assets/plugins/highcharts/graphics/feature.svg +13 -0
- package/src/assets/plugins/highcharts/graphics/flag-circle.svg +17 -0
- package/src/assets/plugins/highcharts/graphics/flag-circlepin.svg +15 -0
- package/src/assets/plugins/highcharts/graphics/flag-diamondpin.svg +15 -0
- package/src/assets/plugins/highcharts/graphics/flag-flag.svg +14 -0
- package/src/assets/plugins/highcharts/graphics/flag-rectangle.svg +18 -0
- package/src/assets/plugins/highcharts/graphics/flag-squarepin.svg +16 -0
- package/src/assets/plugins/highcharts/graphics/flag.svg +15 -0
- package/src/assets/plugins/highcharts/graphics/homepage/apple.svg +55 -0
- package/src/assets/plugins/highcharts/graphics/homepage/award.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/cloud.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/earth.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/jupiter.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/mars.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/mercury.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/moon.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/neptune.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p1.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p1.svg +9 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p2.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p2.svg +9 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p3.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p3.svg +9 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p4.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p4.svg +9 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p5.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p5.svg +9 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p6.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/p6.svg +9 -0
- package/src/assets/plugins/highcharts/graphics/homepage/product.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/saturn.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/sun.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/uranus.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/venus.png +0 -0
- package/src/assets/plugins/highcharts/graphics/homepage/version.png +0 -0
- package/src/assets/plugins/highcharts/graphics/rect.svg +12 -0
- package/src/assets/plugins/highcharts/graphics/reset.svg +16 -0
- package/src/assets/plugins/highcharts/graphics/sand.png +0 -0
- package/src/assets/plugins/highcharts/graphics/save-chart-cloud.svg +14 -0
- package/src/assets/plugins/highcharts/graphics/save.svg +14 -0
- package/src/assets/plugins/highcharts/graphics/search.png +0 -0
- package/src/assets/plugins/highcharts/graphics/skies.jpg +0 -0
- package/src/assets/plugins/highcharts/graphics/snow.png +0 -0
- package/src/assets/plugins/highcharts/graphics/sun.png +0 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/blue-flake-big.svg +32 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/blue-star-big.svg +16 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/car-tree.svg +429 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/green-flake-big.svg +119 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/green-star.svg +20 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/hill.svg +193 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/hill2.svg +164 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/horse.svg +1 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/people.svg +2336 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/pines.svg +777 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/pond-skate.svg +1 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/red-flake.svg +30 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/red-house.svg +85 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/red-star-big.svg +36 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/red-star.svg +20 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/santa-b.svg +91 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/santa.svg +91 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/snow-mound.svg +146 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/snow.svg +20788 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/sun-disk.svg +597 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/tree-cluster.svg +2735 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/white-flake-big.svg +99 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/white-flake.big.svg +96 -0
- package/src/assets/plugins/highcharts/graphics/xmas-card-2020/white-star-big.svg +36 -0
- package/src/assets/plugins/highcharts/index.html +133 -0
- package/src/lib/classes/chart.class.ts +140 -0
- package/src/lib/classes/enum.class.ts +193 -0
- package/src/lib/classes/excel.class.ts +46 -0
- package/src/lib/classes/form.class.ts +528 -0
- package/src/lib/classes/helper.class.ts +283 -0
- package/src/lib/classes/lang.class.ts +32 -0
- package/src/lib/classes/login.class.ts +27 -0
- package/src/lib/classes/modal.class.ts +59 -0
- package/src/lib/classes/permission.class.ts +55 -0
- package/src/lib/classes/request.class.ts +255 -0
- package/src/lib/classes/safestyle.class.ts +4 -0
- package/src/lib/classes/sidebar.class.ts +20 -0
- package/src/lib/classes/steps.class.ts +19 -0
- package/src/lib/classes/string.class.ts +219 -0
- package/src/lib/classes/table.class.ts +228 -0
- package/src/lib/components/accordion/accordion.component.css +116 -0
- package/src/lib/components/accordion/accordion.component.html +19 -0
- package/src/lib/components/accordion/accordion.component.ts +41 -0
- package/src/lib/components/alert/alert.component.css +112 -0
- package/src/lib/components/alert/alert.component.html +1 -0
- package/src/lib/components/alert/alert.component.ts +35 -0
- package/src/lib/components/base.component.ts +38 -0
- package/src/lib/components/calendar/calendar.component.css +206 -0
- package/src/lib/components/calendar/calendar.component.html +36 -0
- package/src/lib/components/calendar/calendar.component.ts +99 -0
- package/src/lib/components/chart/chart.component.css +24 -0
- package/src/lib/components/chart/chart.component.html +6 -0
- package/src/lib/components/chart/chart.component.ts +14 -0
- package/src/lib/components/clock/clock.component.css +141 -0
- package/src/lib/components/clock/clock.component.html +10 -0
- package/src/lib/components/clock/clock.component.ts +37 -0
- package/src/lib/components/confirm/confirm.component.css +112 -0
- package/src/lib/components/confirm/confirm.component.html +1 -0
- package/src/lib/components/confirm/confirm.component.ts +47 -0
- package/src/lib/components/footer/footer.component.css +46 -0
- package/src/lib/components/footer/footer.component.html +9 -0
- package/src/lib/components/footer/footer.component.ts +18 -0
- package/src/lib/components/form/bank-card/form.bank-card.component.css +115 -0
- package/src/lib/components/form/bank-card/form.bank-card.component.html +13 -0
- package/src/lib/components/form/bank-card/form.bank-card.component.ts +144 -0
- package/src/lib/components/form/button/form.button.component.css +222 -0
- package/src/lib/components/form/button/form.button.component.html +16 -0
- package/src/lib/components/form/button/form.button.component.ts +65 -0
- package/src/lib/components/form/car/form.car.component.css +287 -0
- package/src/lib/components/form/car/form.car.component.html +11 -0
- package/src/lib/components/form/car/form.car.component.ts +82 -0
- package/src/lib/components/form/car/search/form.car.search.component.css +287 -0
- package/src/lib/components/form/car/search/form.car.search.component.html +15 -0
- package/src/lib/components/form/car/search/form.car.search.component.ts +170 -0
- package/src/lib/components/form/checkbox/form.checkbox.component.css +128 -0
- package/src/lib/components/form/checkbox/form.checkbox.component.html +8 -0
- package/src/lib/components/form/checkbox/form.checkbox.component.ts +64 -0
- package/src/lib/components/form/date/form.date.component.css +310 -0
- package/src/lib/components/form/date/form.date.component.html +46 -0
- package/src/lib/components/form/date/form.date.component.ts +247 -0
- package/src/lib/components/form/datetime/form.datetime.component.css +157 -0
- package/src/lib/components/form/datetime/form.datetime.component.html +11 -0
- package/src/lib/components/form/datetime/form.datetime.component.ts +98 -0
- package/src/lib/components/form/file/form.file.component.css +151 -0
- package/src/lib/components/form/file/form.file.component.html +12 -0
- package/src/lib/components/form/file/form.file.component.ts +130 -0
- package/src/lib/components/form/finger/form.finger.component.css +215 -0
- package/src/lib/components/form/finger/form.finger.component.html +59 -0
- package/src/lib/components/form/finger/form.finger.component.ts +131 -0
- package/src/lib/components/form/hidden/form.hidden.component.css +0 -0
- package/src/lib/components/form/hidden/form.hidden.component.html +0 -0
- package/src/lib/components/form/hidden/form.hidden.component.ts +29 -0
- package/src/lib/components/form/icon/form.icon.component.css +108 -0
- package/src/lib/components/form/icon/form.icon.component.html +14 -0
- package/src/lib/components/form/icon/form.icon.component.ts +73 -0
- package/src/lib/components/form/index/form.component.css +89 -0
- package/src/lib/components/form/index/form.component.html +35 -0
- package/src/lib/components/form/index/form.component.ts +45 -0
- package/src/lib/components/form/label/form.label.component.css +45 -0
- package/src/lib/components/form/label/form.label.component.html +2 -0
- package/src/lib/components/form/label/form.label.component.ts +30 -0
- package/src/lib/components/form/plaque/form.plaque.component.css +76 -0
- package/src/lib/components/form/plaque/form.plaque.component.html +10 -0
- package/src/lib/components/form/plaque/form.plaque.component.ts +178 -0
- package/src/lib/components/form/plaque/select/form.plaque.select.component.css +167 -0
- package/src/lib/components/form/plaque/select/form.plaque.select.component.html +19 -0
- package/src/lib/components/form/plaque/select/form.plaque.select.component.ts +385 -0
- package/src/lib/components/form/radio/form.radio.component.css +158 -0
- package/src/lib/components/form/radio/form.radio.component.html +16 -0
- package/src/lib/components/form/radio/form.radio.component.ts +78 -0
- package/src/lib/components/form/select/form.select.component.css +326 -0
- package/src/lib/components/form/select/form.select.component.html +16 -0
- package/src/lib/components/form/select/form.select.component.ts +358 -0
- package/src/lib/components/form/select/item/form.select.item.component.css +59 -0
- package/src/lib/components/form/select/item/form.select.item.component.html +10 -0
- package/src/lib/components/form/select/item/form.select.item.component.ts +40 -0
- package/src/lib/components/form/table/form.table.component.css +50 -0
- package/src/lib/components/form/table/form.table.component.html +8 -0
- package/src/lib/components/form/table/form.table.component.ts +94 -0
- package/src/lib/components/form/textarea/form.textarea.component.css +109 -0
- package/src/lib/components/form/textarea/form.textarea.component.html +10 -0
- package/src/lib/components/form/textarea/form.textarea.component.ts +76 -0
- package/src/lib/components/form/textbox/form.textbox.component.css +296 -0
- package/src/lib/components/form/textbox/form.textbox.component.html +13 -0
- package/src/lib/components/form/textbox/form.textbox.component.ts +185 -0
- package/src/lib/components/form/time/form.time.component.css +205 -0
- package/src/lib/components/form/time/form.time.component.html +22 -0
- package/src/lib/components/form/time/form.time.component.ts +139 -0
- package/src/lib/components/form/tree/form.tree.component.css +109 -0
- package/src/lib/components/form/tree/form.tree.component.html +11 -0
- package/src/lib/components/form/tree/form.tree.component.ts +98 -0
- package/src/lib/components/form/tree/item/form.tree.item.component.css +142 -0
- package/src/lib/components/form/tree/item/form.tree.item.component.html +9 -0
- package/src/lib/components/form/tree/item/form.tree.item.component.ts +49 -0
- package/src/lib/components/header/header.component.css +57 -0
- package/src/lib/components/header/header.component.html +5 -0
- package/src/lib/components/header/header.component.ts +28 -0
- package/src/lib/components/header/sub/sub.header.component.css +62 -0
- package/src/lib/components/header/sub/sub.header.component.html +8 -0
- package/src/lib/components/header/sub/sub.header.component.ts +11 -0
- package/src/lib/components/layout/layout.component.css +300 -0
- package/src/lib/components/layout/layout.component.html +20 -0
- package/src/lib/components/layout/layout.component.ts +21 -0
- package/src/lib/components/loading/loading.component.css +39 -0
- package/src/lib/components/loading/loading.component.html +8 -0
- package/src/lib/components/loading/loading.component.ts +18 -0
- package/src/lib/components/login/login.component.css +389 -0
- package/src/lib/components/login/login.component.html +27 -0
- package/src/lib/components/login/login.component.ts +145 -0
- package/src/lib/components/modal/modal.component.css +60 -0
- package/src/lib/components/modal/modal.component.html +12 -0
- package/src/lib/components/modal/modal.component.ts +23 -0
- package/src/lib/components/notfound/notfound.component.css +134 -0
- package/src/lib/components/notfound/notfound.component.html +10 -0
- package/src/lib/components/notfound/notfound.component.ts +25 -0
- package/src/lib/components/notification/notification.component.css +45 -0
- package/src/lib/components/notification/notification.component.html +2 -0
- package/src/lib/components/notification/notification.component.ts +11 -0
- package/src/lib/components/sidebar/item/sidebar.item.component.css +236 -0
- package/src/lib/components/sidebar/item/sidebar.item.component.html +16 -0
- package/src/lib/components/sidebar/item/sidebar.item.component.ts +54 -0
- package/src/lib/components/sidebar/sidebar.component.css +42 -0
- package/src/lib/components/sidebar/sidebar.component.html +10 -0
- package/src/lib/components/sidebar/sidebar.component.ts +60 -0
- package/src/lib/components/steps/steps.component.css +320 -0
- package/src/lib/components/steps/steps.component.html +18 -0
- package/src/lib/components/steps/steps.component.ts +44 -0
- package/src/lib/components/table/loading/table.loading.component.css +29 -0
- package/src/lib/components/table/loading/table.loading.component.html +9 -0
- package/src/lib/components/table/loading/table.loading.component.ts +14 -0
- package/src/lib/components/table/pagination/table.pagination.component.css +138 -0
- package/src/lib/components/table/pagination/table.pagination.component.html +9 -0
- package/src/lib/components/table/pagination/table.pagination.component.ts +89 -0
- package/src/lib/components/table/report/table.report.component.css +125 -0
- package/src/lib/components/table/report/table.report.component.html +19 -0
- package/src/lib/components/table/report/table.report.component.ts +238 -0
- package/src/lib/components/table/row/table.row.component.css +170 -0
- package/src/lib/components/table/row/table.row.component.html +21 -0
- package/src/lib/components/table/row/table.row.component.ts +373 -0
- package/src/lib/components/table/table.component.css +116 -0
- package/src/lib/components/table/table.component.html +62 -0
- package/src/lib/components/table/table.component.ts +180 -0
- package/src/lib/components/tooltip/tooltip.component.css +159 -0
- package/src/lib/components/tooltip/tooltip.component.html +1 -0
- package/src/lib/components/tooltip/tooltip.component.ts +15 -0
- package/src/lib/ps-toolkit-ui.module.ts +94 -0
- package/src/lib/services/config.service.ts +8 -0
- package/src/public-api.ts +53 -0
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +25 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/bundles/ps-toolkit-ui.umd.js +0 -7628
- package/bundles/ps-toolkit-ui.umd.js.map +0 -1
- package/bundles/ps-toolkit-ui.umd.min.js +0 -2
- package/bundles/ps-toolkit-ui.umd.min.js.map +0 -1
- package/esm2015/lib/classes/enum.class.js +0 -187
- package/esm2015/lib/classes/form.class.js +0 -481
- package/esm2015/lib/classes/helper.class.js +0 -284
- package/esm2015/lib/classes/lang.class.js +0 -32
- package/esm2015/lib/classes/login.class.js +0 -22
- package/esm2015/lib/classes/modal.class.js +0 -52
- package/esm2015/lib/classes/permission.class.js +0 -61
- package/esm2015/lib/classes/request.class.js +0 -256
- package/esm2015/lib/classes/safestyle.class.js +0 -15
- package/esm2015/lib/classes/sidebar.class.js +0 -14
- package/esm2015/lib/classes/steps.class.js +0 -20
- package/esm2015/lib/classes/string.class.js +0 -220
- package/esm2015/lib/classes/table.class.js +0 -215
- package/esm2015/lib/components/accordion/accordion.component.js +0 -45
- package/esm2015/lib/components/alert/alert.component.js +0 -39
- package/esm2015/lib/components/base.component.js +0 -45
- package/esm2015/lib/components/calendar/calendar.component.js +0 -97
- package/esm2015/lib/components/clock/clock.component.js +0 -33
- package/esm2015/lib/components/confirm/confirm.component.js +0 -50
- package/esm2015/lib/components/footer/footer.component.js +0 -23
- package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +0 -148
- package/esm2015/lib/components/form/button/form.button.component.js +0 -68
- package/esm2015/lib/components/form/car/form.car.component.js +0 -84
- package/esm2015/lib/components/form/car/search/form.car.search.component.js +0 -172
- package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +0 -66
- package/esm2015/lib/components/form/date/form.date.component.js +0 -254
- package/esm2015/lib/components/form/datetime/form.datetime.component.js +0 -104
- package/esm2015/lib/components/form/file/form.file.component.js +0 -133
- package/esm2015/lib/components/form/finger/form.finger.component.js +0 -138
- package/esm2015/lib/components/form/hidden/form.hidden.component.js +0 -31
- package/esm2015/lib/components/form/icon/form.icon.component.js +0 -76
- package/esm2015/lib/components/form/index/form.component.js +0 -48
- package/esm2015/lib/components/form/label/form.label.component.js +0 -32
- package/esm2015/lib/components/form/plaque/form.plaque.component.js +0 -176
- package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +0 -390
- package/esm2015/lib/components/form/radio/form.radio.component.js +0 -79
- package/esm2015/lib/components/form/select/form.select.component.js +0 -374
- package/esm2015/lib/components/form/select/item/form.select.item.component.js +0 -43
- package/esm2015/lib/components/form/table/form.table.component.js +0 -98
- package/esm2015/lib/components/form/textarea/form.textarea.component.js +0 -78
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +0 -186
- package/esm2015/lib/components/form/time/form.time.component.js +0 -145
- package/esm2015/lib/components/form/tree/form.tree.component.js +0 -99
- package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +0 -48
- package/esm2015/lib/components/header/header.component.js +0 -33
- package/esm2015/lib/components/header/sub/sub.header.component.js +0 -14
- package/esm2015/lib/components/layout/layout.component.js +0 -25
- package/esm2015/lib/components/loading/loading.component.js +0 -22
- package/esm2015/lib/components/login/login.component.js +0 -148
- package/esm2015/lib/components/modal/modal.component.js +0 -25
- package/esm2015/lib/components/notfound/notfound.component.js +0 -29
- package/esm2015/lib/components/notification/notification.component.js +0 -14
- package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +0 -53
- package/esm2015/lib/components/sidebar/sidebar.component.js +0 -67
- package/esm2015/lib/components/steps/steps.component.js +0 -51
- package/esm2015/lib/components/table/loading/table.loading.component.js +0 -17
- package/esm2015/lib/components/table/pagination/table.pagination.component.js +0 -84
- package/esm2015/lib/components/table/report/table.report.component.js +0 -246
- package/esm2015/lib/components/table/row/table.row.component.js +0 -379
- package/esm2015/lib/components/table/table.component.js +0 -179
- package/esm2015/lib/components/tooltip/tooltip.component.js +0 -19
- package/esm2015/lib/ps-toolkit-ui.module.js +0 -94
- package/esm2015/lib/services/config.service.js +0 -14
- package/esm2015/ps-toolkit-ui.js +0 -19
- package/esm2015/public-api.js +0 -52
- package/fesm2015/ps-toolkit-ui.js +0 -6550
- package/fesm2015/ps-toolkit-ui.js.map +0 -1
- package/lib/classes/enum.class.d.ts +0 -158
- package/lib/classes/form.class.d.ts +0 -173
- package/lib/classes/helper.class.d.ts +0 -28
- package/lib/classes/lang.class.d.ts +0 -5
- package/lib/classes/login.class.d.ts +0 -17
- package/lib/classes/modal.class.d.ts +0 -19
- package/lib/classes/permission.class.d.ts +0 -31
- package/lib/classes/request.class.d.ts +0 -12
- package/lib/classes/safestyle.class.d.ts +0 -7
- package/lib/classes/sidebar.class.d.ts +0 -11
- package/lib/classes/steps.class.d.ts +0 -17
- package/lib/classes/string.class.d.ts +0 -218
- package/lib/classes/table.class.d.ts +0 -69
- package/lib/components/accordion/accordion.component.d.ts +0 -7
- package/lib/components/alert/alert.component.d.ts +0 -10
- package/lib/components/base.component.d.ts +0 -14
- package/lib/components/calendar/calendar.component.d.ts +0 -26
- package/lib/components/clock/clock.component.d.ts +0 -11
- package/lib/components/confirm/confirm.component.d.ts +0 -14
- package/lib/components/footer/footer.component.d.ts +0 -6
- package/lib/components/form/bank-card/form.bank-card.component.d.ts +0 -22
- package/lib/components/form/button/form.button.component.d.ts +0 -15
- package/lib/components/form/car/form.car.component.d.ts +0 -16
- package/lib/components/form/car/search/form.car.search.component.d.ts +0 -17
- package/lib/components/form/checkbox/form.checkbox.component.d.ts +0 -14
- package/lib/components/form/date/form.date.component.d.ts +0 -42
- package/lib/components/form/datetime/form.datetime.component.d.ts +0 -13
- package/lib/components/form/file/form.file.component.d.ts +0 -17
- package/lib/components/form/finger/form.finger.component.d.ts +0 -15
- package/lib/components/form/hidden/form.hidden.component.d.ts +0 -7
- package/lib/components/form/icon/form.icon.component.d.ts +0 -15
- package/lib/components/form/index/form.component.d.ts +0 -10
- package/lib/components/form/label/form.label.component.d.ts +0 -8
- package/lib/components/form/plaque/form.plaque.component.d.ts +0 -22
- package/lib/components/form/plaque/select/form.plaque.select.component.d.ts +0 -36
- package/lib/components/form/radio/form.radio.component.d.ts +0 -13
- package/lib/components/form/select/form.select.component.d.ts +0 -39
- package/lib/components/form/select/item/form.select.item.component.d.ts +0 -12
- package/lib/components/form/table/form.table.component.d.ts +0 -9
- package/lib/components/form/textarea/form.textarea.component.d.ts +0 -13
- package/lib/components/form/textbox/form.textbox.component.d.ts +0 -20
- package/lib/components/form/time/form.time.component.d.ts +0 -25
- package/lib/components/form/tree/form.tree.component.d.ts +0 -16
- package/lib/components/form/tree/item/form.tree.item.component.d.ts +0 -17
- package/lib/components/header/header.component.d.ts +0 -9
- package/lib/components/header/sub/sub.header.component.d.ts +0 -3
- package/lib/components/layout/layout.component.d.ts +0 -8
- package/lib/components/loading/loading.component.d.ts +0 -5
- package/lib/components/login/login.component.d.ts +0 -13
- package/lib/components/modal/modal.component.d.ts +0 -9
- package/lib/components/notfound/notfound.component.d.ts +0 -8
- package/lib/components/notification/notification.component.d.ts +0 -3
- package/lib/components/sidebar/item/sidebar.item.component.d.ts +0 -14
- package/lib/components/sidebar/sidebar.component.d.ts +0 -19
- package/lib/components/steps/steps.component.d.ts +0 -10
- package/lib/components/table/loading/table.loading.component.d.ts +0 -5
- package/lib/components/table/pagination/table.pagination.component.d.ts +0 -15
- package/lib/components/table/report/table.report.component.d.ts +0 -34
- package/lib/components/table/row/table.row.component.d.ts +0 -34
- package/lib/components/table/table.component.d.ts +0 -40
- package/lib/components/tooltip/tooltip.component.d.ts +0 -5
- package/lib/ps-toolkit-ui.module.d.ts +0 -4
- package/lib/services/config.service.d.ts +0 -6
- package/ps-toolkit-ui.d.ts +0 -18
- package/ps-toolkit-ui.metadata.json +0 -1
- package/public-api.d.ts +0 -48
|
@@ -0,0 +1,2909 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2021 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
'use strict';
|
|
11
|
+
import A from '../Animation/AnimationUtilities.js';
|
|
12
|
+
var animate = A.animate, animObject = A.animObject, setAnimation = A.setAnimation;
|
|
13
|
+
import Axis from '../Axis/Axis.js';
|
|
14
|
+
import FormatUtilities from '../FormatUtilities.js';
|
|
15
|
+
var numberFormat = FormatUtilities.numberFormat;
|
|
16
|
+
import Foundation from '../Foundation.js';
|
|
17
|
+
var registerEventOptions = Foundation.registerEventOptions;
|
|
18
|
+
import H from '../Globals.js';
|
|
19
|
+
var charts = H.charts, doc = H.doc, marginNames = H.marginNames, svg = H.svg, win = H.win;
|
|
20
|
+
import Legend from '../Legend/Legend.js';
|
|
21
|
+
import MSPointer from '../MSPointer.js';
|
|
22
|
+
import D from '../DefaultOptions.js';
|
|
23
|
+
var defaultOptions = D.defaultOptions, defaultTime = D.defaultTime;
|
|
24
|
+
import Pointer from '../Pointer.js';
|
|
25
|
+
import RendererRegistry from '../Renderer/RendererRegistry.js';
|
|
26
|
+
import SeriesRegistry from '../Series/SeriesRegistry.js';
|
|
27
|
+
var seriesTypes = SeriesRegistry.seriesTypes;
|
|
28
|
+
import SVGRenderer from '../Renderer/SVG/SVGRenderer.js';
|
|
29
|
+
import Time from '../Time.js';
|
|
30
|
+
import U from '../Utilities.js';
|
|
31
|
+
import AST from '../Renderer/HTML/AST.js';
|
|
32
|
+
var addEvent = U.addEvent, attr = U.attr, cleanRecursively = U.cleanRecursively, createElement = U.createElement, css = U.css, defined = U.defined, discardElement = U.discardElement, erase = U.erase, error = U.error, extend = U.extend, find = U.find, fireEvent = U.fireEvent, getStyle = U.getStyle, isArray = U.isArray, isFunction = U.isFunction, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, merge = U.merge, objectEach = U.objectEach, pick = U.pick, pInt = U.pInt, relativeLength = U.relativeLength, removeEvent = U.removeEvent, splat = U.splat, syncTimeout = U.syncTimeout, uniqueKey = U.uniqueKey;
|
|
33
|
+
/* *
|
|
34
|
+
*
|
|
35
|
+
* Class
|
|
36
|
+
*
|
|
37
|
+
* */
|
|
38
|
+
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
39
|
+
/**
|
|
40
|
+
* The Chart class. The recommended constructor is {@link Highcharts#chart}.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* let chart = Highcharts.chart('container', {
|
|
44
|
+
* title: {
|
|
45
|
+
* text: 'My chart'
|
|
46
|
+
* },
|
|
47
|
+
* series: [{
|
|
48
|
+
* data: [1, 3, 2, 4]
|
|
49
|
+
* }]
|
|
50
|
+
* })
|
|
51
|
+
*
|
|
52
|
+
* @class
|
|
53
|
+
* @name Highcharts.Chart
|
|
54
|
+
*
|
|
55
|
+
* @param {string|Highcharts.HTMLDOMElement} [renderTo]
|
|
56
|
+
* The DOM element to render to, or its id.
|
|
57
|
+
*
|
|
58
|
+
* @param {Highcharts.Options} options
|
|
59
|
+
* The chart options structure.
|
|
60
|
+
*
|
|
61
|
+
* @param {Highcharts.ChartCallbackFunction} [callback]
|
|
62
|
+
* Function to run when the chart has loaded and and all external images
|
|
63
|
+
* are loaded. Defining a
|
|
64
|
+
* [chart.events.load](https://api.highcharts.com/highcharts/chart.events.load)
|
|
65
|
+
* handler is equivalent.
|
|
66
|
+
*/
|
|
67
|
+
var Chart = /** @class */ (function () {
|
|
68
|
+
function Chart(a, b, c) {
|
|
69
|
+
this.axes = void 0;
|
|
70
|
+
this.axisOffset = void 0;
|
|
71
|
+
this.bounds = void 0;
|
|
72
|
+
this.chartHeight = void 0;
|
|
73
|
+
this.chartWidth = void 0;
|
|
74
|
+
this.clipBox = void 0;
|
|
75
|
+
this.colorCounter = void 0;
|
|
76
|
+
this.container = void 0;
|
|
77
|
+
this.eventOptions = void 0;
|
|
78
|
+
this.index = void 0;
|
|
79
|
+
this.isResizing = void 0;
|
|
80
|
+
this.labelCollectors = void 0;
|
|
81
|
+
this.legend = void 0;
|
|
82
|
+
this.margin = void 0;
|
|
83
|
+
this.numberFormatter = void 0;
|
|
84
|
+
this.options = void 0;
|
|
85
|
+
this.plotBox = void 0;
|
|
86
|
+
this.plotHeight = void 0;
|
|
87
|
+
this.plotLeft = void 0;
|
|
88
|
+
this.plotTop = void 0;
|
|
89
|
+
this.plotWidth = void 0;
|
|
90
|
+
this.pointCount = void 0;
|
|
91
|
+
this.pointer = void 0;
|
|
92
|
+
this.renderer = void 0;
|
|
93
|
+
this.renderTo = void 0;
|
|
94
|
+
this.series = void 0;
|
|
95
|
+
this.sharedClips = {};
|
|
96
|
+
this.spacing = void 0;
|
|
97
|
+
this.spacingBox = void 0;
|
|
98
|
+
this.symbolCounter = void 0;
|
|
99
|
+
this.time = void 0;
|
|
100
|
+
this.titleOffset = void 0;
|
|
101
|
+
this.userOptions = void 0;
|
|
102
|
+
this.xAxis = void 0;
|
|
103
|
+
this.yAxis = void 0;
|
|
104
|
+
this.getArgs(a, b, c);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Factory function for basic charts.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* // Render a chart in to div#container
|
|
111
|
+
* let chart = Highcharts.chart('container', {
|
|
112
|
+
* title: {
|
|
113
|
+
* text: 'My chart'
|
|
114
|
+
* },
|
|
115
|
+
* series: [{
|
|
116
|
+
* data: [1, 3, 2, 4]
|
|
117
|
+
* }]
|
|
118
|
+
* });
|
|
119
|
+
*
|
|
120
|
+
* @function Highcharts.chart
|
|
121
|
+
*
|
|
122
|
+
* @param {string|Highcharts.HTMLDOMElement} [renderTo]
|
|
123
|
+
* The DOM element to render to, or its id.
|
|
124
|
+
*
|
|
125
|
+
* @param {Highcharts.Options} options
|
|
126
|
+
* The chart options structure.
|
|
127
|
+
*
|
|
128
|
+
* @param {Highcharts.ChartCallbackFunction} [callback]
|
|
129
|
+
* Function to run when the chart has loaded and and all external images are
|
|
130
|
+
* loaded. Defining a
|
|
131
|
+
* [chart.events.load](https://api.highcharts.com/highcharts/chart.events.load)
|
|
132
|
+
* handler is equivalent.
|
|
133
|
+
*
|
|
134
|
+
* @return {Highcharts.Chart}
|
|
135
|
+
* Returns the Chart object.
|
|
136
|
+
*/
|
|
137
|
+
Chart.chart = function (a, b, c) {
|
|
138
|
+
return new Chart(a, b, c);
|
|
139
|
+
};
|
|
140
|
+
/* *
|
|
141
|
+
*
|
|
142
|
+
* Functions
|
|
143
|
+
*
|
|
144
|
+
* */
|
|
145
|
+
/**
|
|
146
|
+
* Handle the arguments passed to the constructor.
|
|
147
|
+
*
|
|
148
|
+
* @private
|
|
149
|
+
* @function Highcharts.Chart#getArgs
|
|
150
|
+
*
|
|
151
|
+
* @param {...Array<*>} arguments
|
|
152
|
+
* All arguments for the constructor.
|
|
153
|
+
*
|
|
154
|
+
* @emits Highcharts.Chart#event:init
|
|
155
|
+
* @emits Highcharts.Chart#event:afterInit
|
|
156
|
+
*/
|
|
157
|
+
Chart.prototype.getArgs = function (a, b, c) {
|
|
158
|
+
// Remove the optional first argument, renderTo, and
|
|
159
|
+
// set it on this.
|
|
160
|
+
if (isString(a) || a.nodeName) {
|
|
161
|
+
this.renderTo = a;
|
|
162
|
+
this.init(b, c);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
this.init(a, b);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Overridable function that initializes the chart. The constructor's
|
|
170
|
+
* arguments are passed on directly.
|
|
171
|
+
*
|
|
172
|
+
* @function Highcharts.Chart#init
|
|
173
|
+
*
|
|
174
|
+
* @param {Highcharts.Options} userOptions
|
|
175
|
+
* Custom options.
|
|
176
|
+
*
|
|
177
|
+
* @param {Function} [callback]
|
|
178
|
+
* Function to run when the chart has loaded and and all external
|
|
179
|
+
* images are loaded.
|
|
180
|
+
*
|
|
181
|
+
*
|
|
182
|
+
* @emits Highcharts.Chart#event:init
|
|
183
|
+
* @emits Highcharts.Chart#event:afterInit
|
|
184
|
+
*/
|
|
185
|
+
Chart.prototype.init = function (userOptions, callback) {
|
|
186
|
+
// Handle regular options
|
|
187
|
+
var userPlotOptions = userOptions.plotOptions || {};
|
|
188
|
+
// Fire the event with a default function
|
|
189
|
+
fireEvent(this, 'init', { args: arguments }, function () {
|
|
190
|
+
var options = merge(defaultOptions, userOptions); // do the merge
|
|
191
|
+
var optionsChart = options.chart;
|
|
192
|
+
// Override (by copy of user options) or clear tooltip options
|
|
193
|
+
// in chart.options.plotOptions (#6218)
|
|
194
|
+
objectEach(options.plotOptions, function (typeOptions, type) {
|
|
195
|
+
if (isObject(typeOptions)) { // #8766
|
|
196
|
+
typeOptions.tooltip = (userPlotOptions[type] && // override by copy:
|
|
197
|
+
merge(userPlotOptions[type].tooltip)) || void 0; // or clear
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
// User options have higher priority than default options
|
|
201
|
+
// (#6218). In case of exporting: path is changed
|
|
202
|
+
options.tooltip.userOptions = (userOptions.chart &&
|
|
203
|
+
userOptions.chart.forExport &&
|
|
204
|
+
userOptions.tooltip.userOptions) || userOptions.tooltip;
|
|
205
|
+
/**
|
|
206
|
+
* The original options given to the constructor or a chart factory
|
|
207
|
+
* like {@link Highcharts.chart} and {@link Highcharts.stockChart}.
|
|
208
|
+
*
|
|
209
|
+
* @name Highcharts.Chart#userOptions
|
|
210
|
+
* @type {Highcharts.Options}
|
|
211
|
+
*/
|
|
212
|
+
this.userOptions = userOptions;
|
|
213
|
+
this.margin = [];
|
|
214
|
+
this.spacing = [];
|
|
215
|
+
// Pixel data bounds for touch zoom
|
|
216
|
+
this.bounds = { h: {}, v: {} };
|
|
217
|
+
// An array of functions that returns labels that should be
|
|
218
|
+
// considered for anti-collision
|
|
219
|
+
this.labelCollectors = [];
|
|
220
|
+
this.callback = callback;
|
|
221
|
+
this.isResizing = 0;
|
|
222
|
+
/**
|
|
223
|
+
* The options structure for the chart after merging
|
|
224
|
+
* {@link #defaultOptions} and {@link #userOptions}. It contains
|
|
225
|
+
* members for the sub elements like series, legend, tooltip etc.
|
|
226
|
+
*
|
|
227
|
+
* @name Highcharts.Chart#options
|
|
228
|
+
* @type {Highcharts.Options}
|
|
229
|
+
*/
|
|
230
|
+
this.options = options;
|
|
231
|
+
/**
|
|
232
|
+
* All the axes in the chart.
|
|
233
|
+
*
|
|
234
|
+
* @see Highcharts.Chart.xAxis
|
|
235
|
+
* @see Highcharts.Chart.yAxis
|
|
236
|
+
*
|
|
237
|
+
* @name Highcharts.Chart#axes
|
|
238
|
+
* @type {Array<Highcharts.Axis>}
|
|
239
|
+
*/
|
|
240
|
+
this.axes = [];
|
|
241
|
+
/**
|
|
242
|
+
* All the current series in the chart.
|
|
243
|
+
*
|
|
244
|
+
* @name Highcharts.Chart#series
|
|
245
|
+
* @type {Array<Highcharts.Series>}
|
|
246
|
+
*/
|
|
247
|
+
this.series = [];
|
|
248
|
+
/**
|
|
249
|
+
* The `Time` object associated with the chart. Since v6.0.5,
|
|
250
|
+
* time settings can be applied individually for each chart. If
|
|
251
|
+
* no individual settings apply, the `Time` object is shared by
|
|
252
|
+
* all instances.
|
|
253
|
+
*
|
|
254
|
+
* @name Highcharts.Chart#time
|
|
255
|
+
* @type {Highcharts.Time}
|
|
256
|
+
*/
|
|
257
|
+
this.time =
|
|
258
|
+
userOptions.time && Object.keys(userOptions.time).length ?
|
|
259
|
+
new Time(userOptions.time) :
|
|
260
|
+
H.time;
|
|
261
|
+
/**
|
|
262
|
+
* Callback function to override the default function that formats
|
|
263
|
+
* all the numbers in the chart. Returns a string with the formatted
|
|
264
|
+
* number.
|
|
265
|
+
*
|
|
266
|
+
* @name Highcharts.Chart#numberFormatter
|
|
267
|
+
* @type {Highcharts.NumberFormatterCallbackFunction}
|
|
268
|
+
*/
|
|
269
|
+
this.numberFormatter = optionsChart.numberFormatter || numberFormat;
|
|
270
|
+
/**
|
|
271
|
+
* Whether the chart is in styled mode, meaning all presentatinoal
|
|
272
|
+
* attributes are avoided.
|
|
273
|
+
*
|
|
274
|
+
* @name Highcharts.Chart#styledMode
|
|
275
|
+
* @type {boolean}
|
|
276
|
+
*/
|
|
277
|
+
this.styledMode = optionsChart.styledMode;
|
|
278
|
+
this.hasCartesianSeries = optionsChart.showAxes;
|
|
279
|
+
var chart = this;
|
|
280
|
+
/**
|
|
281
|
+
* Index position of the chart in the {@link Highcharts#charts}
|
|
282
|
+
* property.
|
|
283
|
+
*
|
|
284
|
+
* @name Highcharts.Chart#index
|
|
285
|
+
* @type {number}
|
|
286
|
+
* @readonly
|
|
287
|
+
*/
|
|
288
|
+
chart.index = charts.length; // Add the chart to the global lookup
|
|
289
|
+
charts.push(chart);
|
|
290
|
+
H.chartCount++;
|
|
291
|
+
// Chart event handlers
|
|
292
|
+
registerEventOptions(this, optionsChart);
|
|
293
|
+
/**
|
|
294
|
+
* A collection of the X axes in the chart.
|
|
295
|
+
*
|
|
296
|
+
* @name Highcharts.Chart#xAxis
|
|
297
|
+
* @type {Array<Highcharts.Axis>}
|
|
298
|
+
*/
|
|
299
|
+
chart.xAxis = [];
|
|
300
|
+
/**
|
|
301
|
+
* A collection of the Y axes in the chart.
|
|
302
|
+
*
|
|
303
|
+
* @name Highcharts.Chart#yAxis
|
|
304
|
+
* @type {Array<Highcharts.Axis>}
|
|
305
|
+
*
|
|
306
|
+
* @todo
|
|
307
|
+
* Make events official: Fire the event `afterInit`.
|
|
308
|
+
*/
|
|
309
|
+
chart.yAxis = [];
|
|
310
|
+
chart.pointCount = chart.colorCounter = chart.symbolCounter = 0;
|
|
311
|
+
// Fire after init but before first render, before axes and series
|
|
312
|
+
// have been initialized.
|
|
313
|
+
fireEvent(chart, 'afterInit');
|
|
314
|
+
chart.firstRender();
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Internal function to unitialize an individual series.
|
|
319
|
+
*
|
|
320
|
+
* @private
|
|
321
|
+
* @function Highcharts.Chart#initSeries
|
|
322
|
+
*/
|
|
323
|
+
Chart.prototype.initSeries = function (options) {
|
|
324
|
+
var chart = this, optionsChart = chart.options.chart, type = (options.type ||
|
|
325
|
+
optionsChart.type ||
|
|
326
|
+
optionsChart.defaultSeriesType), SeriesClass = seriesTypes[type];
|
|
327
|
+
// No such series type
|
|
328
|
+
if (!SeriesClass) {
|
|
329
|
+
error(17, true, chart, { missingModuleFor: type });
|
|
330
|
+
}
|
|
331
|
+
var series = new SeriesClass();
|
|
332
|
+
if (typeof series.init === 'function') {
|
|
333
|
+
series.init(chart, options);
|
|
334
|
+
}
|
|
335
|
+
return series;
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Internal function to set data for all series with enabled sorting.
|
|
339
|
+
*
|
|
340
|
+
* @private
|
|
341
|
+
* @function Highcharts.Chart#setSeriesData
|
|
342
|
+
*/
|
|
343
|
+
Chart.prototype.setSeriesData = function () {
|
|
344
|
+
this.getSeriesOrderByLinks().forEach(function (series) {
|
|
345
|
+
// We need to set data for series with sorting after series init
|
|
346
|
+
if (!series.points && !series.data && series.enabledDataSorting) {
|
|
347
|
+
series.setData(series.options.data, false);
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Sort and return chart series in order depending on the number of linked
|
|
353
|
+
* series.
|
|
354
|
+
*
|
|
355
|
+
* @private
|
|
356
|
+
* @function Highcharts.Series#getSeriesOrderByLinks
|
|
357
|
+
*/
|
|
358
|
+
Chart.prototype.getSeriesOrderByLinks = function () {
|
|
359
|
+
return this.series.concat().sort(function (a, b) {
|
|
360
|
+
if (a.linkedSeries.length || b.linkedSeries.length) {
|
|
361
|
+
return b.linkedSeries.length - a.linkedSeries.length;
|
|
362
|
+
}
|
|
363
|
+
return 0;
|
|
364
|
+
});
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Order all series above a given index. When series are added and ordered
|
|
368
|
+
* by configuration, only the last series is handled (#248, #1123, #2456,
|
|
369
|
+
* #6112). This function is called on series initialization and destroy.
|
|
370
|
+
*
|
|
371
|
+
* @private
|
|
372
|
+
* @function Highcharts.Series#orderSeries
|
|
373
|
+
* @param {number} [fromIndex]
|
|
374
|
+
* If this is given, only the series above this index are handled.
|
|
375
|
+
*/
|
|
376
|
+
Chart.prototype.orderSeries = function (fromIndex) {
|
|
377
|
+
var series = this.series;
|
|
378
|
+
for (var i = (fromIndex || 0), iEnd = series.length; i < iEnd; ++i) {
|
|
379
|
+
if (series[i]) {
|
|
380
|
+
/**
|
|
381
|
+
* Contains the series' index in the `Chart.series` array.
|
|
382
|
+
*
|
|
383
|
+
* @name Highcharts.Series#index
|
|
384
|
+
* @type {number}
|
|
385
|
+
* @readonly
|
|
386
|
+
*/
|
|
387
|
+
series[i].index = i;
|
|
388
|
+
series[i].name = series[i].getName();
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* Check whether a given point is within the plot area.
|
|
394
|
+
*
|
|
395
|
+
* @function Highcharts.Chart#isInsidePlot
|
|
396
|
+
*
|
|
397
|
+
* @param {number} plotX
|
|
398
|
+
* Pixel x relative to the plot area.
|
|
399
|
+
*
|
|
400
|
+
* @param {number} plotY
|
|
401
|
+
* Pixel y relative to the plot area.
|
|
402
|
+
*
|
|
403
|
+
* @param {Highcharts.ChartIsInsideOptionsObject} [options]
|
|
404
|
+
* Options object.
|
|
405
|
+
*
|
|
406
|
+
* @return {boolean}
|
|
407
|
+
* Returns true if the given point is inside the plot area.
|
|
408
|
+
*/
|
|
409
|
+
Chart.prototype.isInsidePlot = function (plotX, plotY, options) {
|
|
410
|
+
var _a;
|
|
411
|
+
if (options === void 0) { options = {}; }
|
|
412
|
+
var _b = this, inverted = _b.inverted, plotBox = _b.plotBox, plotLeft = _b.plotLeft, plotTop = _b.plotTop, scrollablePlotBox = _b.scrollablePlotBox;
|
|
413
|
+
var scrollLeft = 0, scrollTop = 0;
|
|
414
|
+
if (options.visiblePlotOnly && this.scrollingContainer) {
|
|
415
|
+
(_a = this.scrollingContainer, scrollLeft = _a.scrollLeft, scrollTop = _a.scrollTop);
|
|
416
|
+
}
|
|
417
|
+
var series = options.series, box = (options.visiblePlotOnly && scrollablePlotBox) || plotBox, x = options.inverted ? plotY : plotX, y = options.inverted ? plotX : plotY, e = {
|
|
418
|
+
x: x,
|
|
419
|
+
y: y,
|
|
420
|
+
isInsidePlot: true
|
|
421
|
+
};
|
|
422
|
+
if (!options.ignoreX) {
|
|
423
|
+
var xAxis = (series && (inverted ? series.yAxis : series.xAxis)) || {
|
|
424
|
+
pos: plotLeft,
|
|
425
|
+
len: Infinity
|
|
426
|
+
};
|
|
427
|
+
var chartX = options.paneCoordinates ?
|
|
428
|
+
xAxis.pos + x : plotLeft + x;
|
|
429
|
+
if (!(chartX >= Math.max(scrollLeft + plotLeft, xAxis.pos) &&
|
|
430
|
+
chartX <= Math.min(scrollLeft + plotLeft + box.width, xAxis.pos + xAxis.len))) {
|
|
431
|
+
e.isInsidePlot = false;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
if (!options.ignoreY && e.isInsidePlot) {
|
|
435
|
+
var yAxis = (series && (inverted ? series.xAxis : series.yAxis)) || {
|
|
436
|
+
pos: plotTop,
|
|
437
|
+
len: Infinity
|
|
438
|
+
};
|
|
439
|
+
var chartY = options.paneCoordinates ?
|
|
440
|
+
yAxis.pos + y : plotTop + y;
|
|
441
|
+
if (!(chartY >= Math.max(scrollTop + plotTop, yAxis.pos) &&
|
|
442
|
+
chartY <= Math.min(scrollTop + plotTop + box.height, yAxis.pos + yAxis.len))) {
|
|
443
|
+
e.isInsidePlot = false;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
fireEvent(this, 'afterIsInsidePlot', e);
|
|
447
|
+
return e.isInsidePlot;
|
|
448
|
+
};
|
|
449
|
+
/**
|
|
450
|
+
* Redraw the chart after changes have been done to the data, axis extremes
|
|
451
|
+
* chart size or chart elements. All methods for updating axes, series or
|
|
452
|
+
* points have a parameter for redrawing the chart. This is `true` by
|
|
453
|
+
* default. But in many cases you want to do more than one operation on the
|
|
454
|
+
* chart before redrawing, for example add a number of points. In those
|
|
455
|
+
* cases it is a waste of resources to redraw the chart for each new point
|
|
456
|
+
* added. So you add the points and call `chart.redraw()` after.
|
|
457
|
+
*
|
|
458
|
+
* @function Highcharts.Chart#redraw
|
|
459
|
+
*
|
|
460
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
|
|
461
|
+
* If or how to apply animation to the redraw.
|
|
462
|
+
*
|
|
463
|
+
* @emits Highcharts.Chart#event:afterSetExtremes
|
|
464
|
+
* @emits Highcharts.Chart#event:beforeRedraw
|
|
465
|
+
* @emits Highcharts.Chart#event:predraw
|
|
466
|
+
* @emits Highcharts.Chart#event:redraw
|
|
467
|
+
* @emits Highcharts.Chart#event:render
|
|
468
|
+
* @emits Highcharts.Chart#event:updatedData
|
|
469
|
+
*/
|
|
470
|
+
Chart.prototype.redraw = function (animation) {
|
|
471
|
+
fireEvent(this, 'beforeRedraw');
|
|
472
|
+
var chart = this, axes = chart.hasCartesianSeries ? chart.axes : chart.colorAxis || [], series = chart.series, pointer = chart.pointer, legend = chart.legend, legendUserOptions = chart.userOptions.legend, renderer = chart.renderer, isHiddenChart = renderer.isHidden(), afterRedraw = [];
|
|
473
|
+
var hasDirtyStacks, hasStackedSeries, i, isDirtyBox = chart.isDirtyBox, redrawLegend = chart.isDirtyLegend, serie;
|
|
474
|
+
// Handle responsive rules, not only on resize (#6130)
|
|
475
|
+
if (chart.setResponsive) {
|
|
476
|
+
chart.setResponsive(false);
|
|
477
|
+
}
|
|
478
|
+
// Set the global animation. When chart.hasRendered is not true, the
|
|
479
|
+
// redraw call comes from a responsive rule and animation should not
|
|
480
|
+
// occur.
|
|
481
|
+
setAnimation(chart.hasRendered ? animation : false, chart);
|
|
482
|
+
if (isHiddenChart) {
|
|
483
|
+
chart.temporaryDisplay();
|
|
484
|
+
}
|
|
485
|
+
// Adjust title layout (reflow multiline text)
|
|
486
|
+
chart.layOutTitles();
|
|
487
|
+
// link stacked series
|
|
488
|
+
i = series.length;
|
|
489
|
+
while (i--) {
|
|
490
|
+
serie = series[i];
|
|
491
|
+
if (serie.options.stacking || serie.options.centerInCategory) {
|
|
492
|
+
hasStackedSeries = true;
|
|
493
|
+
if (serie.isDirty) {
|
|
494
|
+
hasDirtyStacks = true;
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
if (hasDirtyStacks) { // mark others as dirty
|
|
500
|
+
i = series.length;
|
|
501
|
+
while (i--) {
|
|
502
|
+
serie = series[i];
|
|
503
|
+
if (serie.options.stacking) {
|
|
504
|
+
serie.isDirty = true;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
// Handle updated data in the series
|
|
509
|
+
series.forEach(function (serie) {
|
|
510
|
+
if (serie.isDirty) {
|
|
511
|
+
if (serie.options.legendType === 'point') {
|
|
512
|
+
if (typeof serie.updateTotals === 'function') {
|
|
513
|
+
serie.updateTotals();
|
|
514
|
+
}
|
|
515
|
+
redrawLegend = true;
|
|
516
|
+
}
|
|
517
|
+
else if (legendUserOptions &&
|
|
518
|
+
(legendUserOptions.labelFormatter ||
|
|
519
|
+
legendUserOptions.labelFormat)) {
|
|
520
|
+
redrawLegend = true; // #2165
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
if (serie.isDirtyData) {
|
|
524
|
+
fireEvent(serie, 'updatedData');
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
// handle added or removed series
|
|
528
|
+
if (redrawLegend && legend && legend.options.enabled) {
|
|
529
|
+
// draw legend graphics
|
|
530
|
+
legend.render();
|
|
531
|
+
chart.isDirtyLegend = false;
|
|
532
|
+
}
|
|
533
|
+
// reset stacks
|
|
534
|
+
if (hasStackedSeries) {
|
|
535
|
+
chart.getStacks();
|
|
536
|
+
}
|
|
537
|
+
// set axes scales
|
|
538
|
+
axes.forEach(function (axis) {
|
|
539
|
+
axis.updateNames();
|
|
540
|
+
axis.setScale();
|
|
541
|
+
});
|
|
542
|
+
chart.getMargins(); // #3098
|
|
543
|
+
// If one axis is dirty, all axes must be redrawn (#792, #2169)
|
|
544
|
+
axes.forEach(function (axis) {
|
|
545
|
+
if (axis.isDirty) {
|
|
546
|
+
isDirtyBox = true;
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
// redraw axes
|
|
550
|
+
axes.forEach(function (axis) {
|
|
551
|
+
// Fire 'afterSetExtremes' only if extremes are set
|
|
552
|
+
var key = axis.min + ',' + axis.max;
|
|
553
|
+
if (axis.extKey !== key) { // #821, #4452
|
|
554
|
+
axis.extKey = key;
|
|
555
|
+
// prevent a recursive call to chart.redraw() (#1119)
|
|
556
|
+
afterRedraw.push(function () {
|
|
557
|
+
fireEvent(axis, 'afterSetExtremes', extend(axis.eventArgs, axis.getExtremes())); // #747, #751
|
|
558
|
+
delete axis.eventArgs;
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
if (isDirtyBox || hasStackedSeries) {
|
|
562
|
+
axis.redraw();
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
// the plot areas size has changed
|
|
566
|
+
if (isDirtyBox) {
|
|
567
|
+
chart.drawChartBox();
|
|
568
|
+
}
|
|
569
|
+
// Fire an event before redrawing series, used by the boost module to
|
|
570
|
+
// clear previous series renderings.
|
|
571
|
+
fireEvent(chart, 'predraw');
|
|
572
|
+
// redraw affected series
|
|
573
|
+
series.forEach(function (serie) {
|
|
574
|
+
if ((isDirtyBox || serie.isDirty) && serie.visible) {
|
|
575
|
+
serie.redraw();
|
|
576
|
+
}
|
|
577
|
+
// Set it here, otherwise we will have unlimited 'updatedData' calls
|
|
578
|
+
// for a hidden series after setData(). Fixes #6012
|
|
579
|
+
serie.isDirtyData = false;
|
|
580
|
+
});
|
|
581
|
+
// move tooltip or reset
|
|
582
|
+
if (pointer) {
|
|
583
|
+
pointer.reset(true);
|
|
584
|
+
}
|
|
585
|
+
// redraw if canvas
|
|
586
|
+
renderer.draw();
|
|
587
|
+
// Fire the events
|
|
588
|
+
fireEvent(chart, 'redraw');
|
|
589
|
+
fireEvent(chart, 'render');
|
|
590
|
+
if (isHiddenChart) {
|
|
591
|
+
chart.temporaryDisplay(true);
|
|
592
|
+
}
|
|
593
|
+
// Fire callbacks that are put on hold until after the redraw
|
|
594
|
+
afterRedraw.forEach(function (callback) {
|
|
595
|
+
callback.call();
|
|
596
|
+
});
|
|
597
|
+
};
|
|
598
|
+
/**
|
|
599
|
+
* Get an axis, series or point object by `id` as given in the configuration
|
|
600
|
+
* options. Returns `undefined` if no item is found.
|
|
601
|
+
*
|
|
602
|
+
* @sample highcharts/plotoptions/series-id/
|
|
603
|
+
* Get series by id
|
|
604
|
+
*
|
|
605
|
+
* @function Highcharts.Chart#get
|
|
606
|
+
*
|
|
607
|
+
* @param {string} id
|
|
608
|
+
* The id as given in the configuration options.
|
|
609
|
+
*
|
|
610
|
+
* @return {Highcharts.Axis|Highcharts.Series|Highcharts.Point|undefined}
|
|
611
|
+
* The retrieved item.
|
|
612
|
+
*/
|
|
613
|
+
Chart.prototype.get = function (id) {
|
|
614
|
+
var series = this.series;
|
|
615
|
+
/**
|
|
616
|
+
* @private
|
|
617
|
+
*/
|
|
618
|
+
function itemById(item) {
|
|
619
|
+
return (item.id === id ||
|
|
620
|
+
(item.options && item.options.id === id));
|
|
621
|
+
}
|
|
622
|
+
var ret =
|
|
623
|
+
// Search axes
|
|
624
|
+
find(this.axes, itemById) ||
|
|
625
|
+
// Search series
|
|
626
|
+
find(this.series, itemById);
|
|
627
|
+
// Search points
|
|
628
|
+
for (var i = 0; !ret && i < series.length; i++) {
|
|
629
|
+
ret = find(series[i].points || [], itemById);
|
|
630
|
+
}
|
|
631
|
+
return ret;
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* Create the Axis instances based on the config options.
|
|
635
|
+
*
|
|
636
|
+
* @private
|
|
637
|
+
* @function Highcharts.Chart#getAxes
|
|
638
|
+
* @emits Highcharts.Chart#event:afterGetAxes
|
|
639
|
+
* @emits Highcharts.Chart#event:getAxes
|
|
640
|
+
*/
|
|
641
|
+
Chart.prototype.getAxes = function () {
|
|
642
|
+
var chart = this, options = this.options, xAxisOptions = options.xAxis = splat(options.xAxis || {}), yAxisOptions = options.yAxis = splat(options.yAxis || {});
|
|
643
|
+
fireEvent(this, 'getAxes');
|
|
644
|
+
// make sure the options are arrays and add some members
|
|
645
|
+
xAxisOptions.forEach(function (axis, i) {
|
|
646
|
+
axis.index = i;
|
|
647
|
+
axis.isX = true;
|
|
648
|
+
});
|
|
649
|
+
yAxisOptions.forEach(function (axis, i) {
|
|
650
|
+
axis.index = i;
|
|
651
|
+
});
|
|
652
|
+
// concatenate all axis options into one array
|
|
653
|
+
var optionsArray = xAxisOptions.concat(yAxisOptions);
|
|
654
|
+
optionsArray.forEach(function (axisOptions) {
|
|
655
|
+
new Axis(chart, axisOptions); // eslint-disable-line no-new
|
|
656
|
+
});
|
|
657
|
+
fireEvent(this, 'afterGetAxes');
|
|
658
|
+
};
|
|
659
|
+
/**
|
|
660
|
+
* Returns an array of all currently selected points in the chart. Points
|
|
661
|
+
* can be selected by clicking or programmatically by the
|
|
662
|
+
* {@link Highcharts.Point#select}
|
|
663
|
+
* function.
|
|
664
|
+
*
|
|
665
|
+
* @sample highcharts/plotoptions/series-allowpointselect-line/
|
|
666
|
+
* Get selected points
|
|
667
|
+
*
|
|
668
|
+
* @function Highcharts.Chart#getSelectedPoints
|
|
669
|
+
*
|
|
670
|
+
* @return {Array<Highcharts.Point>}
|
|
671
|
+
* The currently selected points.
|
|
672
|
+
*/
|
|
673
|
+
Chart.prototype.getSelectedPoints = function () {
|
|
674
|
+
return this.series.reduce(function (acc, series) {
|
|
675
|
+
// For one-to-one points inspect series.data in order to retrieve
|
|
676
|
+
// points outside the visible range (#6445). For grouped data,
|
|
677
|
+
// inspect the generated series.points.
|
|
678
|
+
series.getPointsCollection()
|
|
679
|
+
.forEach(function (point) {
|
|
680
|
+
if (pick(point.selectedStaging, point.selected)) {
|
|
681
|
+
acc.push(point);
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
return acc;
|
|
685
|
+
}, []);
|
|
686
|
+
};
|
|
687
|
+
/**
|
|
688
|
+
* Returns an array of all currently selected series in the chart. Series
|
|
689
|
+
* can be selected either programmatically by the
|
|
690
|
+
* {@link Highcharts.Series#select}
|
|
691
|
+
* function or by checking the checkbox next to the legend item if
|
|
692
|
+
* [series.showCheckBox](https://api.highcharts.com/highcharts/plotOptions.series.showCheckbox)
|
|
693
|
+
* is true.
|
|
694
|
+
*
|
|
695
|
+
* @sample highcharts/members/chart-getselectedseries/
|
|
696
|
+
* Get selected series
|
|
697
|
+
*
|
|
698
|
+
* @function Highcharts.Chart#getSelectedSeries
|
|
699
|
+
*
|
|
700
|
+
* @return {Array<Highcharts.Series>}
|
|
701
|
+
* The currently selected series.
|
|
702
|
+
*/
|
|
703
|
+
Chart.prototype.getSelectedSeries = function () {
|
|
704
|
+
return this.series.filter(function (serie) {
|
|
705
|
+
return serie.selected;
|
|
706
|
+
});
|
|
707
|
+
};
|
|
708
|
+
/**
|
|
709
|
+
* Set a new title or subtitle for the chart.
|
|
710
|
+
*
|
|
711
|
+
* @sample highcharts/members/chart-settitle/
|
|
712
|
+
* Set title text and styles
|
|
713
|
+
*
|
|
714
|
+
* @function Highcharts.Chart#setTitle
|
|
715
|
+
*
|
|
716
|
+
* @param {Highcharts.TitleOptions} [titleOptions]
|
|
717
|
+
* New title options. The title text itself is set by the
|
|
718
|
+
* `titleOptions.text` property.
|
|
719
|
+
*
|
|
720
|
+
* @param {Highcharts.SubtitleOptions} [subtitleOptions]
|
|
721
|
+
* New subtitle options. The subtitle text itself is set by the
|
|
722
|
+
* `subtitleOptions.text` property.
|
|
723
|
+
*
|
|
724
|
+
* @param {boolean} [redraw]
|
|
725
|
+
* Whether to redraw the chart or wait for a later call to
|
|
726
|
+
* `chart.redraw()`.
|
|
727
|
+
*/
|
|
728
|
+
Chart.prototype.setTitle = function (titleOptions, subtitleOptions, redraw) {
|
|
729
|
+
this.applyDescription('title', titleOptions);
|
|
730
|
+
this.applyDescription('subtitle', subtitleOptions);
|
|
731
|
+
// The initial call also adds the caption. On update, chart.update will
|
|
732
|
+
// relay to Chart.setCaption.
|
|
733
|
+
this.applyDescription('caption', void 0);
|
|
734
|
+
this.layOutTitles(redraw);
|
|
735
|
+
};
|
|
736
|
+
/**
|
|
737
|
+
* Apply a title, subtitle or caption for the chart
|
|
738
|
+
*
|
|
739
|
+
* @private
|
|
740
|
+
* @function Highcharts.Chart#applyDescription
|
|
741
|
+
* @param name {string}
|
|
742
|
+
* Either title, subtitle or caption
|
|
743
|
+
* @param {Highcharts.TitleOptions|Highcharts.SubtitleOptions|Highcharts.CaptionOptions|undefined} explicitOptions
|
|
744
|
+
* The options to set, will be merged with default options.
|
|
745
|
+
*/
|
|
746
|
+
Chart.prototype.applyDescription = function (name, explicitOptions) {
|
|
747
|
+
var chart = this;
|
|
748
|
+
// Default style
|
|
749
|
+
var style = name === 'title' ? {
|
|
750
|
+
color: "#333333" /* neutralColor80 */,
|
|
751
|
+
fontSize: this.options.isStock ? '16px' : '18px' // #2944
|
|
752
|
+
} : {
|
|
753
|
+
color: "#666666" /* neutralColor60 */
|
|
754
|
+
};
|
|
755
|
+
// Merge default options with explicit options
|
|
756
|
+
var options = this.options[name] = merge(
|
|
757
|
+
// Default styles
|
|
758
|
+
(!this.styledMode && { style: style }), this.options[name], explicitOptions);
|
|
759
|
+
var elem = this[name];
|
|
760
|
+
if (elem && explicitOptions) {
|
|
761
|
+
this[name] = elem = elem.destroy(); // remove old
|
|
762
|
+
}
|
|
763
|
+
if (options && !elem) {
|
|
764
|
+
elem = this.renderer.text(options.text, 0, 0, options.useHTML)
|
|
765
|
+
.attr({
|
|
766
|
+
align: options.align,
|
|
767
|
+
'class': 'highcharts-' + name,
|
|
768
|
+
zIndex: options.zIndex || 4
|
|
769
|
+
})
|
|
770
|
+
.add();
|
|
771
|
+
// Update methods, shortcut to Chart.setTitle, Chart.setSubtitle and
|
|
772
|
+
// Chart.setCaption
|
|
773
|
+
elem.update = function (updateOptions) {
|
|
774
|
+
var fn = {
|
|
775
|
+
title: 'setTitle',
|
|
776
|
+
subtitle: 'setSubtitle',
|
|
777
|
+
caption: 'setCaption'
|
|
778
|
+
}[name];
|
|
779
|
+
chart[fn](updateOptions);
|
|
780
|
+
};
|
|
781
|
+
// Presentational
|
|
782
|
+
if (!this.styledMode) {
|
|
783
|
+
elem.css(options.style);
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* The chart title. The title has an `update` method that allows
|
|
787
|
+
* modifying the options directly or indirectly via
|
|
788
|
+
* `chart.update`.
|
|
789
|
+
*
|
|
790
|
+
* @sample highcharts/members/title-update/
|
|
791
|
+
* Updating titles
|
|
792
|
+
*
|
|
793
|
+
* @name Highcharts.Chart#title
|
|
794
|
+
* @type {Highcharts.TitleObject}
|
|
795
|
+
*/
|
|
796
|
+
/**
|
|
797
|
+
* The chart subtitle. The subtitle has an `update` method that
|
|
798
|
+
* allows modifying the options directly or indirectly via
|
|
799
|
+
* `chart.update`.
|
|
800
|
+
*
|
|
801
|
+
* @name Highcharts.Chart#subtitle
|
|
802
|
+
* @type {Highcharts.SubtitleObject}
|
|
803
|
+
*/
|
|
804
|
+
this[name] = elem;
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
/**
|
|
808
|
+
* Internal function to lay out the chart title, subtitle and caption, and
|
|
809
|
+
* cache the full offset height for use in `getMargins`. The result is
|
|
810
|
+
* stored in `this.titleOffset`.
|
|
811
|
+
*
|
|
812
|
+
* @private
|
|
813
|
+
* @function Highcharts.Chart#layOutTitles
|
|
814
|
+
*
|
|
815
|
+
* @param {boolean} [redraw=true]
|
|
816
|
+
* @emits Highcharts.Chart#event:afterLayOutTitles
|
|
817
|
+
*/
|
|
818
|
+
Chart.prototype.layOutTitles = function (redraw) {
|
|
819
|
+
var titleOffset = [0, 0, 0], renderer = this.renderer, spacingBox = this.spacingBox;
|
|
820
|
+
// Lay out the title and the subtitle respectively
|
|
821
|
+
['title', 'subtitle', 'caption'].forEach(function (key) {
|
|
822
|
+
var title = this[key], titleOptions = (this.options[key]), verticalAlign = titleOptions.verticalAlign || 'top', offset = key === 'title' ?
|
|
823
|
+
verticalAlign === 'top' ? -3 : 0 :
|
|
824
|
+
// Floating subtitle (#6574)
|
|
825
|
+
verticalAlign === 'top' ? titleOffset[0] + 2 : 0;
|
|
826
|
+
var titleSize, height;
|
|
827
|
+
if (title) {
|
|
828
|
+
if (!this.styledMode) {
|
|
829
|
+
titleSize = (titleOptions.style &&
|
|
830
|
+
titleOptions.style.fontSize);
|
|
831
|
+
}
|
|
832
|
+
titleSize = renderer.fontMetrics(titleSize, title).b;
|
|
833
|
+
title
|
|
834
|
+
.css({
|
|
835
|
+
width: (titleOptions.width ||
|
|
836
|
+
spacingBox.width + (titleOptions.widthAdjust || 0)) + 'px'
|
|
837
|
+
});
|
|
838
|
+
// Skip the cache for HTML (#3481, #11666)
|
|
839
|
+
height = Math.round(title.getBBox(titleOptions.useHTML).height);
|
|
840
|
+
title.align(extend({
|
|
841
|
+
y: verticalAlign === 'bottom' ?
|
|
842
|
+
titleSize :
|
|
843
|
+
offset + titleSize,
|
|
844
|
+
height: height
|
|
845
|
+
}, titleOptions), false, 'spacingBox');
|
|
846
|
+
if (!titleOptions.floating) {
|
|
847
|
+
if (verticalAlign === 'top') {
|
|
848
|
+
titleOffset[0] = Math.ceil(titleOffset[0] +
|
|
849
|
+
height);
|
|
850
|
+
}
|
|
851
|
+
else if (verticalAlign === 'bottom') {
|
|
852
|
+
titleOffset[2] = Math.ceil(titleOffset[2] +
|
|
853
|
+
height);
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}, this);
|
|
858
|
+
// Handle title.margin and caption.margin
|
|
859
|
+
if (titleOffset[0] &&
|
|
860
|
+
(this.options.title.verticalAlign || 'top') === 'top') {
|
|
861
|
+
titleOffset[0] += this.options.title.margin;
|
|
862
|
+
}
|
|
863
|
+
if (titleOffset[2] &&
|
|
864
|
+
this.options.caption.verticalAlign === 'bottom') {
|
|
865
|
+
titleOffset[2] += this.options.caption.margin;
|
|
866
|
+
}
|
|
867
|
+
var requiresDirtyBox = (!this.titleOffset ||
|
|
868
|
+
this.titleOffset.join(',') !== titleOffset.join(','));
|
|
869
|
+
// Used in getMargins
|
|
870
|
+
this.titleOffset = titleOffset;
|
|
871
|
+
fireEvent(this, 'afterLayOutTitles');
|
|
872
|
+
if (!this.isDirtyBox && requiresDirtyBox) {
|
|
873
|
+
this.isDirtyBox = this.isDirtyLegend = requiresDirtyBox;
|
|
874
|
+
// Redraw if necessary (#2719, #2744)
|
|
875
|
+
if (this.hasRendered && pick(redraw, true) && this.isDirtyBox) {
|
|
876
|
+
this.redraw();
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
};
|
|
880
|
+
/**
|
|
881
|
+
* Internal function to get the chart width and height according to options
|
|
882
|
+
* and container size. Sets {@link Chart.chartWidth} and
|
|
883
|
+
* {@link Chart.chartHeight}.
|
|
884
|
+
*
|
|
885
|
+
* @private
|
|
886
|
+
* @function Highcharts.Chart#getChartSize
|
|
887
|
+
*/
|
|
888
|
+
Chart.prototype.getChartSize = function () {
|
|
889
|
+
var chart = this, optionsChart = chart.options.chart, widthOption = optionsChart.width, heightOption = optionsChart.height, renderTo = chart.renderTo;
|
|
890
|
+
// Get inner width and height
|
|
891
|
+
if (!defined(widthOption)) {
|
|
892
|
+
chart.containerWidth = getStyle(renderTo, 'width');
|
|
893
|
+
}
|
|
894
|
+
if (!defined(heightOption)) {
|
|
895
|
+
chart.containerHeight = getStyle(renderTo, 'height');
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* The current pixel width of the chart.
|
|
899
|
+
*
|
|
900
|
+
* @name Highcharts.Chart#chartWidth
|
|
901
|
+
* @type {number}
|
|
902
|
+
*/
|
|
903
|
+
chart.chartWidth = Math.max(// #1393
|
|
904
|
+
0, widthOption || chart.containerWidth || 600 // #1460
|
|
905
|
+
);
|
|
906
|
+
/**
|
|
907
|
+
* The current pixel height of the chart.
|
|
908
|
+
*
|
|
909
|
+
* @name Highcharts.Chart#chartHeight
|
|
910
|
+
* @type {number}
|
|
911
|
+
*/
|
|
912
|
+
chart.chartHeight = Math.max(0, relativeLength(heightOption, chart.chartWidth) ||
|
|
913
|
+
(chart.containerHeight > 1 ?
|
|
914
|
+
chart.containerHeight :
|
|
915
|
+
400));
|
|
916
|
+
};
|
|
917
|
+
/**
|
|
918
|
+
* If the renderTo element has no offsetWidth, most likely one or more of
|
|
919
|
+
* its parents are hidden. Loop up the DOM tree to temporarily display the
|
|
920
|
+
* parents, then save the original display properties, and when the true
|
|
921
|
+
* size is retrieved, reset them. Used on first render and on redraws.
|
|
922
|
+
*
|
|
923
|
+
* @private
|
|
924
|
+
* @function Highcharts.Chart#temporaryDisplay
|
|
925
|
+
*
|
|
926
|
+
* @param {boolean} [revert]
|
|
927
|
+
* Revert to the saved original styles.
|
|
928
|
+
*/
|
|
929
|
+
Chart.prototype.temporaryDisplay = function (revert) {
|
|
930
|
+
var node = this.renderTo, tempStyle;
|
|
931
|
+
if (!revert) {
|
|
932
|
+
while (node && node.style) {
|
|
933
|
+
// When rendering to a detached node, it needs to be temporarily
|
|
934
|
+
// attached in order to read styling and bounding boxes (#5783,
|
|
935
|
+
// #7024).
|
|
936
|
+
if (!doc.body.contains(node) && !node.parentNode) {
|
|
937
|
+
node.hcOrigDetached = true;
|
|
938
|
+
doc.body.appendChild(node);
|
|
939
|
+
}
|
|
940
|
+
if (getStyle(node, 'display', false) === 'none' ||
|
|
941
|
+
node.hcOricDetached) {
|
|
942
|
+
node.hcOrigStyle = {
|
|
943
|
+
display: node.style.display,
|
|
944
|
+
height: node.style.height,
|
|
945
|
+
overflow: node.style.overflow
|
|
946
|
+
};
|
|
947
|
+
tempStyle = {
|
|
948
|
+
display: 'block',
|
|
949
|
+
overflow: 'hidden'
|
|
950
|
+
};
|
|
951
|
+
if (node !== this.renderTo) {
|
|
952
|
+
tempStyle.height = 0;
|
|
953
|
+
}
|
|
954
|
+
css(node, tempStyle);
|
|
955
|
+
// If it still doesn't have an offset width after setting
|
|
956
|
+
// display to block, it probably has an !important priority
|
|
957
|
+
// #2631, 6803
|
|
958
|
+
if (!node.offsetWidth) {
|
|
959
|
+
node.style.setProperty('display', 'block', 'important');
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
node = node.parentNode;
|
|
963
|
+
if (node === doc.body) {
|
|
964
|
+
break;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
else {
|
|
969
|
+
while (node && node.style) {
|
|
970
|
+
if (node.hcOrigStyle) {
|
|
971
|
+
css(node, node.hcOrigStyle);
|
|
972
|
+
delete node.hcOrigStyle;
|
|
973
|
+
}
|
|
974
|
+
if (node.hcOrigDetached) {
|
|
975
|
+
doc.body.removeChild(node);
|
|
976
|
+
node.hcOrigDetached = false;
|
|
977
|
+
}
|
|
978
|
+
node = node.parentNode;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
};
|
|
982
|
+
/**
|
|
983
|
+
* Set the {@link Chart.container|chart container's} class name, in
|
|
984
|
+
* addition to `highcharts-container`.
|
|
985
|
+
*
|
|
986
|
+
* @function Highcharts.Chart#setClassName
|
|
987
|
+
*
|
|
988
|
+
* @param {string} [className]
|
|
989
|
+
* The additional class name.
|
|
990
|
+
*/
|
|
991
|
+
Chart.prototype.setClassName = function (className) {
|
|
992
|
+
this.container.className = 'highcharts-container ' + (className || '');
|
|
993
|
+
};
|
|
994
|
+
/**
|
|
995
|
+
* Get the containing element, determine the size and create the inner
|
|
996
|
+
* container div to hold the chart.
|
|
997
|
+
*
|
|
998
|
+
* @private
|
|
999
|
+
* @function Highcharts.Chart#afterGetContainer
|
|
1000
|
+
* @emits Highcharts.Chart#event:afterGetContainer
|
|
1001
|
+
*/
|
|
1002
|
+
Chart.prototype.getContainer = function () {
|
|
1003
|
+
var chart = this, options = chart.options, optionsChart = options.chart, indexAttrName = 'data-highcharts-chart', containerId = uniqueKey();
|
|
1004
|
+
var containerStyle, renderTo = chart.renderTo;
|
|
1005
|
+
if (!renderTo) {
|
|
1006
|
+
chart.renderTo = renderTo =
|
|
1007
|
+
optionsChart.renderTo;
|
|
1008
|
+
}
|
|
1009
|
+
if (isString(renderTo)) {
|
|
1010
|
+
chart.renderTo = renderTo =
|
|
1011
|
+
doc.getElementById(renderTo);
|
|
1012
|
+
}
|
|
1013
|
+
// Display an error if the renderTo is wrong
|
|
1014
|
+
if (!renderTo) {
|
|
1015
|
+
error(13, true, chart);
|
|
1016
|
+
}
|
|
1017
|
+
// If the container already holds a chart, destroy it. The check for
|
|
1018
|
+
// hasRendered is there because web pages that are saved to disk from
|
|
1019
|
+
// the browser, will preserve the data-highcharts-chart attribute and
|
|
1020
|
+
// the SVG contents, but not an interactive chart. So in this case,
|
|
1021
|
+
// charts[oldChartIndex] will point to the wrong chart if any (#2609).
|
|
1022
|
+
var oldChartIndex = pInt(attr(renderTo, indexAttrName));
|
|
1023
|
+
if (isNumber(oldChartIndex) &&
|
|
1024
|
+
charts[oldChartIndex] &&
|
|
1025
|
+
charts[oldChartIndex].hasRendered) {
|
|
1026
|
+
charts[oldChartIndex].destroy();
|
|
1027
|
+
}
|
|
1028
|
+
// Make a reference to the chart from the div
|
|
1029
|
+
attr(renderTo, indexAttrName, chart.index);
|
|
1030
|
+
// remove previous chart
|
|
1031
|
+
renderTo.innerHTML = AST.emptyHTML;
|
|
1032
|
+
// If the container doesn't have an offsetWidth, it has or is a child of
|
|
1033
|
+
// a node that has display:none. We need to temporarily move it out to a
|
|
1034
|
+
// visible state to determine the size, else the legend and tooltips
|
|
1035
|
+
// won't render properly. The skipClone option is used in sparklines as
|
|
1036
|
+
// a micro optimization, saving about 1-2 ms each chart.
|
|
1037
|
+
if (!optionsChart.skipClone && !renderTo.offsetWidth) {
|
|
1038
|
+
chart.temporaryDisplay();
|
|
1039
|
+
}
|
|
1040
|
+
// get the width and height
|
|
1041
|
+
chart.getChartSize();
|
|
1042
|
+
var chartWidth = chart.chartWidth;
|
|
1043
|
+
var chartHeight = chart.chartHeight;
|
|
1044
|
+
// Allow table cells and flex-boxes to shrink without the chart blocking
|
|
1045
|
+
// them out (#6427)
|
|
1046
|
+
css(renderTo, { overflow: 'hidden' });
|
|
1047
|
+
// Create the inner container
|
|
1048
|
+
if (!chart.styledMode) {
|
|
1049
|
+
containerStyle = extend({
|
|
1050
|
+
position: 'relative',
|
|
1051
|
+
// needed for context menu (avoidscrollbars) and content
|
|
1052
|
+
// overflow in IE
|
|
1053
|
+
overflow: 'hidden',
|
|
1054
|
+
width: chartWidth + 'px',
|
|
1055
|
+
height: chartHeight + 'px',
|
|
1056
|
+
textAlign: 'left',
|
|
1057
|
+
lineHeight: 'normal',
|
|
1058
|
+
zIndex: 0,
|
|
1059
|
+
'-webkit-tap-highlight-color': 'rgba(0,0,0,0)',
|
|
1060
|
+
userSelect: 'none',
|
|
1061
|
+
'touch-action': 'manipulation',
|
|
1062
|
+
outline: 'none'
|
|
1063
|
+
}, optionsChart.style || {});
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* The containing HTML element of the chart. The container is
|
|
1067
|
+
* dynamically inserted into the element given as the `renderTo`
|
|
1068
|
+
* parameter in the {@link Highcharts#chart} constructor.
|
|
1069
|
+
*
|
|
1070
|
+
* @name Highcharts.Chart#container
|
|
1071
|
+
* @type {Highcharts.HTMLDOMElement}
|
|
1072
|
+
*/
|
|
1073
|
+
var container = createElement('div', {
|
|
1074
|
+
id: containerId
|
|
1075
|
+
}, containerStyle, renderTo);
|
|
1076
|
+
chart.container = container;
|
|
1077
|
+
// cache the cursor (#1650)
|
|
1078
|
+
chart._cursor = container.style.cursor;
|
|
1079
|
+
// Initialize the renderer
|
|
1080
|
+
var Renderer = optionsChart.renderer || !svg ?
|
|
1081
|
+
RendererRegistry.getRendererType(optionsChart.renderer) :
|
|
1082
|
+
SVGRenderer;
|
|
1083
|
+
/**
|
|
1084
|
+
* The renderer instance of the chart. Each chart instance has only one
|
|
1085
|
+
* associated renderer.
|
|
1086
|
+
*
|
|
1087
|
+
* @name Highcharts.Chart#renderer
|
|
1088
|
+
* @type {Highcharts.SVGRenderer}
|
|
1089
|
+
*/
|
|
1090
|
+
chart.renderer = new Renderer(container, chartWidth, chartHeight, void 0, optionsChart.forExport, options.exporting && options.exporting.allowHTML, chart.styledMode);
|
|
1091
|
+
// Set the initial animation from the options
|
|
1092
|
+
setAnimation(void 0, chart);
|
|
1093
|
+
chart.setClassName(optionsChart.className);
|
|
1094
|
+
if (!chart.styledMode) {
|
|
1095
|
+
chart.renderer.setStyle(optionsChart.style);
|
|
1096
|
+
}
|
|
1097
|
+
else {
|
|
1098
|
+
// Initialize definitions
|
|
1099
|
+
for (var key in options.defs) { // eslint-disable-line guard-for-in
|
|
1100
|
+
this.renderer.definition(options.defs[key]);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
// Add a reference to the charts index
|
|
1104
|
+
chart.renderer.chartIndex = chart.index;
|
|
1105
|
+
fireEvent(this, 'afterGetContainer');
|
|
1106
|
+
};
|
|
1107
|
+
/**
|
|
1108
|
+
* Calculate margins by rendering axis labels in a preliminary position.
|
|
1109
|
+
* Title, subtitle and legend have already been rendered at this stage, but
|
|
1110
|
+
* will be moved into their final positions.
|
|
1111
|
+
*
|
|
1112
|
+
* @private
|
|
1113
|
+
* @function Highcharts.Chart#getMargins
|
|
1114
|
+
* @emits Highcharts.Chart#event:getMargins
|
|
1115
|
+
*/
|
|
1116
|
+
Chart.prototype.getMargins = function (skipAxes) {
|
|
1117
|
+
var _a = this, spacing = _a.spacing, margin = _a.margin, titleOffset = _a.titleOffset;
|
|
1118
|
+
this.resetMargins();
|
|
1119
|
+
// Adjust for title and subtitle
|
|
1120
|
+
if (titleOffset[0] && !defined(margin[0])) {
|
|
1121
|
+
this.plotTop = Math.max(this.plotTop, titleOffset[0] + spacing[0]);
|
|
1122
|
+
}
|
|
1123
|
+
if (titleOffset[2] && !defined(margin[2])) {
|
|
1124
|
+
this.marginBottom = Math.max(this.marginBottom, titleOffset[2] + spacing[2]);
|
|
1125
|
+
}
|
|
1126
|
+
// Adjust for legend
|
|
1127
|
+
if (this.legend && this.legend.display) {
|
|
1128
|
+
this.legend.adjustMargins(margin, spacing);
|
|
1129
|
+
}
|
|
1130
|
+
fireEvent(this, 'getMargins');
|
|
1131
|
+
if (!skipAxes) {
|
|
1132
|
+
this.getAxisMargins();
|
|
1133
|
+
}
|
|
1134
|
+
};
|
|
1135
|
+
/**
|
|
1136
|
+
* @private
|
|
1137
|
+
* @function Highcharts.Chart#getAxisMargins
|
|
1138
|
+
*/
|
|
1139
|
+
Chart.prototype.getAxisMargins = function () {
|
|
1140
|
+
var chart = this,
|
|
1141
|
+
// [top, right, bottom, left]
|
|
1142
|
+
axisOffset = chart.axisOffset = [0, 0, 0, 0], colorAxis = chart.colorAxis, margin = chart.margin, getOffset = function (axes) {
|
|
1143
|
+
axes.forEach(function (axis) {
|
|
1144
|
+
if (axis.visible) {
|
|
1145
|
+
axis.getOffset();
|
|
1146
|
+
}
|
|
1147
|
+
});
|
|
1148
|
+
};
|
|
1149
|
+
// pre-render axes to get labels offset width
|
|
1150
|
+
if (chart.hasCartesianSeries) {
|
|
1151
|
+
getOffset(chart.axes);
|
|
1152
|
+
}
|
|
1153
|
+
else if (colorAxis && colorAxis.length) {
|
|
1154
|
+
getOffset(colorAxis);
|
|
1155
|
+
}
|
|
1156
|
+
// Add the axis offsets
|
|
1157
|
+
marginNames.forEach(function (m, side) {
|
|
1158
|
+
if (!defined(margin[side])) {
|
|
1159
|
+
chart[m] += axisOffset[side];
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
chart.setChartSize();
|
|
1163
|
+
};
|
|
1164
|
+
/**
|
|
1165
|
+
* Reflows the chart to its container. By default, the chart reflows
|
|
1166
|
+
* automatically to its container following a `window.resize` event, as per
|
|
1167
|
+
* the [chart.reflow](https://api.highcharts.com/highcharts/chart.reflow)
|
|
1168
|
+
* option. However, there are no reliable events for div resize, so if the
|
|
1169
|
+
* container is resized without a window resize event, this must be called
|
|
1170
|
+
* explicitly.
|
|
1171
|
+
*
|
|
1172
|
+
* @sample highcharts/members/chart-reflow/
|
|
1173
|
+
* Resize div and reflow
|
|
1174
|
+
* @sample highcharts/chart/events-container/
|
|
1175
|
+
* Pop up and reflow
|
|
1176
|
+
*
|
|
1177
|
+
* @function Highcharts.Chart#reflow
|
|
1178
|
+
*
|
|
1179
|
+
* @param {global.Event} [e]
|
|
1180
|
+
* Event arguments. Used primarily when the function is called
|
|
1181
|
+
* internally as a response to window resize.
|
|
1182
|
+
*/
|
|
1183
|
+
Chart.prototype.reflow = function (e) {
|
|
1184
|
+
var chart = this, optionsChart = chart.options.chart, renderTo = chart.renderTo, hasUserSize = (defined(optionsChart.width) &&
|
|
1185
|
+
defined(optionsChart.height)), width = optionsChart.width || getStyle(renderTo, 'width'), height = optionsChart.height || getStyle(renderTo, 'height'), target = e ? e.target : win;
|
|
1186
|
+
delete chart.pointer.chartPosition;
|
|
1187
|
+
// Width and height checks for display:none. Target is doc in IE8 and
|
|
1188
|
+
// Opera, win in Firefox, Chrome and IE9.
|
|
1189
|
+
if (!hasUserSize &&
|
|
1190
|
+
!chart.isPrinting &&
|
|
1191
|
+
width &&
|
|
1192
|
+
height &&
|
|
1193
|
+
(target === win || target === doc)) {
|
|
1194
|
+
if (width !== chart.containerWidth ||
|
|
1195
|
+
height !== chart.containerHeight) {
|
|
1196
|
+
U.clearTimeout(chart.reflowTimeout);
|
|
1197
|
+
// When called from window.resize, e is set, else it's called
|
|
1198
|
+
// directly (#2224)
|
|
1199
|
+
chart.reflowTimeout = syncTimeout(function () {
|
|
1200
|
+
// Set size, it may have been destroyed in the meantime
|
|
1201
|
+
// (#1257)
|
|
1202
|
+
if (chart.container) {
|
|
1203
|
+
chart.setSize(void 0, void 0, false);
|
|
1204
|
+
}
|
|
1205
|
+
}, e ? 100 : 0);
|
|
1206
|
+
}
|
|
1207
|
+
chart.containerWidth = width;
|
|
1208
|
+
chart.containerHeight = height;
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
* Toggle the event handlers necessary for auto resizing, depending on the
|
|
1213
|
+
* `chart.reflow` option.
|
|
1214
|
+
*
|
|
1215
|
+
* @private
|
|
1216
|
+
* @function Highcharts.Chart#setReflow
|
|
1217
|
+
*/
|
|
1218
|
+
Chart.prototype.setReflow = function (reflow) {
|
|
1219
|
+
var chart = this;
|
|
1220
|
+
if (reflow !== false && !this.unbindReflow) {
|
|
1221
|
+
this.unbindReflow = addEvent(win, 'resize', function (e) {
|
|
1222
|
+
// a removed event listener still runs in Edge and IE if the
|
|
1223
|
+
// listener was removed while the event runs, so check if the
|
|
1224
|
+
// chart is not destroyed (#11609)
|
|
1225
|
+
if (chart.options) {
|
|
1226
|
+
chart.reflow(e);
|
|
1227
|
+
}
|
|
1228
|
+
});
|
|
1229
|
+
addEvent(this, 'destroy', this.unbindReflow);
|
|
1230
|
+
}
|
|
1231
|
+
else if (reflow === false && this.unbindReflow) {
|
|
1232
|
+
// Unbind and unset
|
|
1233
|
+
this.unbindReflow = this.unbindReflow();
|
|
1234
|
+
}
|
|
1235
|
+
// The following will add listeners to re-fit the chart before and after
|
|
1236
|
+
// printing (#2284). However it only works in WebKit. Should have worked
|
|
1237
|
+
// in Firefox, but not supported in IE.
|
|
1238
|
+
/*
|
|
1239
|
+
if (win.matchMedia) {
|
|
1240
|
+
win.matchMedia('print').addListener(function reflow() {
|
|
1241
|
+
chart.reflow();
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1244
|
+
//*/
|
|
1245
|
+
};
|
|
1246
|
+
/**
|
|
1247
|
+
* Resize the chart to a given width and height. In order to set the width
|
|
1248
|
+
* only, the height argument may be skipped. To set the height only, pass
|
|
1249
|
+
* `undefined` for the width.
|
|
1250
|
+
*
|
|
1251
|
+
* @sample highcharts/members/chart-setsize-button/
|
|
1252
|
+
* Test resizing from buttons
|
|
1253
|
+
* @sample highcharts/members/chart-setsize-jquery-resizable/
|
|
1254
|
+
* Add a jQuery UI resizable
|
|
1255
|
+
* @sample stock/members/chart-setsize/
|
|
1256
|
+
* Highcharts Stock with UI resizable
|
|
1257
|
+
*
|
|
1258
|
+
* @function Highcharts.Chart#setSize
|
|
1259
|
+
*
|
|
1260
|
+
* @param {number|null} [width]
|
|
1261
|
+
* The new pixel width of the chart. Since v4.2.6, the argument can
|
|
1262
|
+
* be `undefined` in order to preserve the current value (when
|
|
1263
|
+
* setting height only), or `null` to adapt to the width of the
|
|
1264
|
+
* containing element.
|
|
1265
|
+
*
|
|
1266
|
+
* @param {number|null} [height]
|
|
1267
|
+
* The new pixel height of the chart. Since v4.2.6, the argument can
|
|
1268
|
+
* be `undefined` in order to preserve the current value, or `null`
|
|
1269
|
+
* in order to adapt to the height of the containing element.
|
|
1270
|
+
*
|
|
1271
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation=true]
|
|
1272
|
+
* Whether and how to apply animation.
|
|
1273
|
+
*
|
|
1274
|
+
*
|
|
1275
|
+
* @emits Highcharts.Chart#event:endResize
|
|
1276
|
+
* @emits Highcharts.Chart#event:resize
|
|
1277
|
+
*/
|
|
1278
|
+
Chart.prototype.setSize = function (width, height, animation) {
|
|
1279
|
+
var chart = this, renderer = chart.renderer;
|
|
1280
|
+
// Handle the isResizing counter
|
|
1281
|
+
chart.isResizing += 1;
|
|
1282
|
+
// set the animation for the current process
|
|
1283
|
+
setAnimation(animation, chart);
|
|
1284
|
+
var globalAnimation = renderer.globalAnimation;
|
|
1285
|
+
chart.oldChartHeight = chart.chartHeight;
|
|
1286
|
+
chart.oldChartWidth = chart.chartWidth;
|
|
1287
|
+
if (typeof width !== 'undefined') {
|
|
1288
|
+
chart.options.chart.width = width;
|
|
1289
|
+
}
|
|
1290
|
+
if (typeof height !== 'undefined') {
|
|
1291
|
+
chart.options.chart.height = height;
|
|
1292
|
+
}
|
|
1293
|
+
chart.getChartSize();
|
|
1294
|
+
// Resize the container with the global animation applied if enabled
|
|
1295
|
+
// (#2503)
|
|
1296
|
+
if (!chart.styledMode) {
|
|
1297
|
+
(globalAnimation ? animate : css)(chart.container, {
|
|
1298
|
+
width: chart.chartWidth + 'px',
|
|
1299
|
+
height: chart.chartHeight + 'px'
|
|
1300
|
+
}, globalAnimation);
|
|
1301
|
+
}
|
|
1302
|
+
chart.setChartSize(true);
|
|
1303
|
+
renderer.setSize(chart.chartWidth, chart.chartHeight, globalAnimation);
|
|
1304
|
+
// handle axes
|
|
1305
|
+
chart.axes.forEach(function (axis) {
|
|
1306
|
+
axis.isDirty = true;
|
|
1307
|
+
axis.setScale();
|
|
1308
|
+
});
|
|
1309
|
+
chart.isDirtyLegend = true; // force legend redraw
|
|
1310
|
+
chart.isDirtyBox = true; // force redraw of plot and chart border
|
|
1311
|
+
chart.layOutTitles(); // #2857
|
|
1312
|
+
chart.getMargins();
|
|
1313
|
+
chart.redraw(globalAnimation);
|
|
1314
|
+
chart.oldChartHeight = null;
|
|
1315
|
+
fireEvent(chart, 'resize');
|
|
1316
|
+
// Fire endResize and set isResizing back. If animation is disabled,
|
|
1317
|
+
// fire without delay
|
|
1318
|
+
syncTimeout(function () {
|
|
1319
|
+
if (chart) {
|
|
1320
|
+
fireEvent(chart, 'endResize', null, function () {
|
|
1321
|
+
chart.isResizing -= 1;
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1324
|
+
}, animObject(globalAnimation).duration);
|
|
1325
|
+
};
|
|
1326
|
+
/**
|
|
1327
|
+
* Set the public chart properties. This is done before and after the
|
|
1328
|
+
* pre-render to determine margin sizes.
|
|
1329
|
+
*
|
|
1330
|
+
* @private
|
|
1331
|
+
* @function Highcharts.Chart#setChartSize
|
|
1332
|
+
* @emits Highcharts.Chart#event:afterSetChartSize
|
|
1333
|
+
*/
|
|
1334
|
+
Chart.prototype.setChartSize = function (skipAxes) {
|
|
1335
|
+
var chart = this, inverted = chart.inverted, renderer = chart.renderer, chartWidth = chart.chartWidth, chartHeight = chart.chartHeight, optionsChart = chart.options.chart, spacing = chart.spacing, clipOffset = chart.clipOffset;
|
|
1336
|
+
var plotLeft, plotTop, plotWidth, plotHeight;
|
|
1337
|
+
/**
|
|
1338
|
+
* The current left position of the plot area in pixels.
|
|
1339
|
+
*
|
|
1340
|
+
* @name Highcharts.Chart#plotLeft
|
|
1341
|
+
* @type {number}
|
|
1342
|
+
*/
|
|
1343
|
+
chart.plotLeft = plotLeft = Math.round(chart.plotLeft);
|
|
1344
|
+
/**
|
|
1345
|
+
* The current top position of the plot area in pixels.
|
|
1346
|
+
*
|
|
1347
|
+
* @name Highcharts.Chart#plotTop
|
|
1348
|
+
* @type {number}
|
|
1349
|
+
*/
|
|
1350
|
+
chart.plotTop = plotTop = Math.round(chart.plotTop);
|
|
1351
|
+
/**
|
|
1352
|
+
* The current width of the plot area in pixels.
|
|
1353
|
+
*
|
|
1354
|
+
* @name Highcharts.Chart#plotWidth
|
|
1355
|
+
* @type {number}
|
|
1356
|
+
*/
|
|
1357
|
+
chart.plotWidth = plotWidth = Math.max(0, Math.round(chartWidth - plotLeft - chart.marginRight));
|
|
1358
|
+
/**
|
|
1359
|
+
* The current height of the plot area in pixels.
|
|
1360
|
+
*
|
|
1361
|
+
* @name Highcharts.Chart#plotHeight
|
|
1362
|
+
* @type {number}
|
|
1363
|
+
*/
|
|
1364
|
+
chart.plotHeight = plotHeight = Math.max(0, Math.round(chartHeight - plotTop - chart.marginBottom));
|
|
1365
|
+
chart.plotSizeX = inverted ? plotHeight : plotWidth;
|
|
1366
|
+
chart.plotSizeY = inverted ? plotWidth : plotHeight;
|
|
1367
|
+
chart.plotBorderWidth = optionsChart.plotBorderWidth || 0;
|
|
1368
|
+
// Set boxes used for alignment
|
|
1369
|
+
chart.spacingBox = renderer.spacingBox = {
|
|
1370
|
+
x: spacing[3],
|
|
1371
|
+
y: spacing[0],
|
|
1372
|
+
width: chartWidth - spacing[3] - spacing[1],
|
|
1373
|
+
height: chartHeight - spacing[0] - spacing[2]
|
|
1374
|
+
};
|
|
1375
|
+
chart.plotBox = renderer.plotBox = {
|
|
1376
|
+
x: plotLeft,
|
|
1377
|
+
y: plotTop,
|
|
1378
|
+
width: plotWidth,
|
|
1379
|
+
height: plotHeight
|
|
1380
|
+
};
|
|
1381
|
+
var plotBorderWidth = 2 * Math.floor(chart.plotBorderWidth / 2), clipX = Math.ceil(Math.max(plotBorderWidth, clipOffset[3]) / 2), clipY = Math.ceil(Math.max(plotBorderWidth, clipOffset[0]) / 2);
|
|
1382
|
+
chart.clipBox = {
|
|
1383
|
+
x: clipX,
|
|
1384
|
+
y: clipY,
|
|
1385
|
+
width: Math.floor(chart.plotSizeX -
|
|
1386
|
+
Math.max(plotBorderWidth, clipOffset[1]) / 2 -
|
|
1387
|
+
clipX),
|
|
1388
|
+
height: Math.max(0, Math.floor(chart.plotSizeY -
|
|
1389
|
+
Math.max(plotBorderWidth, clipOffset[2]) / 2 -
|
|
1390
|
+
clipY))
|
|
1391
|
+
};
|
|
1392
|
+
if (!skipAxes) {
|
|
1393
|
+
chart.axes.forEach(function (axis) {
|
|
1394
|
+
axis.setAxisSize();
|
|
1395
|
+
axis.setAxisTranslation();
|
|
1396
|
+
});
|
|
1397
|
+
renderer.alignElements();
|
|
1398
|
+
}
|
|
1399
|
+
fireEvent(chart, 'afterSetChartSize', { skipAxes: skipAxes });
|
|
1400
|
+
};
|
|
1401
|
+
/**
|
|
1402
|
+
* Initial margins before auto size margins are applied.
|
|
1403
|
+
*
|
|
1404
|
+
* @private
|
|
1405
|
+
* @function Highcharts.Chart#resetMargins
|
|
1406
|
+
*/
|
|
1407
|
+
Chart.prototype.resetMargins = function () {
|
|
1408
|
+
fireEvent(this, 'resetMargins');
|
|
1409
|
+
var chart = this, chartOptions = chart.options.chart;
|
|
1410
|
+
// Create margin and spacing array
|
|
1411
|
+
['margin', 'spacing'].forEach(function splashArrays(target) {
|
|
1412
|
+
var value = chartOptions[target], values = isObject(value) ? value : [value, value, value, value];
|
|
1413
|
+
[
|
|
1414
|
+
'Top',
|
|
1415
|
+
'Right',
|
|
1416
|
+
'Bottom',
|
|
1417
|
+
'Left'
|
|
1418
|
+
].forEach(function (sideName, side) {
|
|
1419
|
+
chart[target][side] = pick(chartOptions[target + sideName], values[side]);
|
|
1420
|
+
});
|
|
1421
|
+
});
|
|
1422
|
+
// Set margin names like chart.plotTop, chart.plotLeft,
|
|
1423
|
+
// chart.marginRight, chart.marginBottom.
|
|
1424
|
+
marginNames.forEach(function (m, side) {
|
|
1425
|
+
chart[m] = pick(chart.margin[side], chart.spacing[side]);
|
|
1426
|
+
});
|
|
1427
|
+
chart.axisOffset = [0, 0, 0, 0]; // top, right, bottom, left
|
|
1428
|
+
chart.clipOffset = [0, 0, 0, 0];
|
|
1429
|
+
};
|
|
1430
|
+
/**
|
|
1431
|
+
* Internal function to draw or redraw the borders and backgrounds for chart
|
|
1432
|
+
* and plot area.
|
|
1433
|
+
*
|
|
1434
|
+
* @private
|
|
1435
|
+
* @function Highcharts.Chart#drawChartBox
|
|
1436
|
+
* @emits Highcharts.Chart#event:afterDrawChartBox
|
|
1437
|
+
*/
|
|
1438
|
+
Chart.prototype.drawChartBox = function () {
|
|
1439
|
+
var chart = this, optionsChart = chart.options.chart, renderer = chart.renderer, chartWidth = chart.chartWidth, chartHeight = chart.chartHeight, styledMode = chart.styledMode, plotBGImage = chart.plotBGImage, chartBackgroundColor = optionsChart.backgroundColor, plotBackgroundColor = optionsChart.plotBackgroundColor, plotBackgroundImage = optionsChart.plotBackgroundImage, plotLeft = chart.plotLeft, plotTop = chart.plotTop, plotWidth = chart.plotWidth, plotHeight = chart.plotHeight, plotBox = chart.plotBox, clipRect = chart.clipRect, clipBox = chart.clipBox;
|
|
1440
|
+
var chartBackground = chart.chartBackground, plotBackground = chart.plotBackground, plotBorder = chart.plotBorder, chartBorderWidth, mgn, bgAttr, verb = 'animate';
|
|
1441
|
+
// Chart area
|
|
1442
|
+
if (!chartBackground) {
|
|
1443
|
+
chart.chartBackground = chartBackground = renderer.rect()
|
|
1444
|
+
.addClass('highcharts-background')
|
|
1445
|
+
.add();
|
|
1446
|
+
verb = 'attr';
|
|
1447
|
+
}
|
|
1448
|
+
if (!styledMode) {
|
|
1449
|
+
// Presentational
|
|
1450
|
+
chartBorderWidth = optionsChart.borderWidth || 0;
|
|
1451
|
+
mgn = chartBorderWidth + (optionsChart.shadow ? 8 : 0);
|
|
1452
|
+
bgAttr = {
|
|
1453
|
+
fill: chartBackgroundColor || 'none'
|
|
1454
|
+
};
|
|
1455
|
+
if (chartBorderWidth || chartBackground['stroke-width']) { // #980
|
|
1456
|
+
bgAttr.stroke = optionsChart.borderColor;
|
|
1457
|
+
bgAttr['stroke-width'] = chartBorderWidth;
|
|
1458
|
+
}
|
|
1459
|
+
chartBackground
|
|
1460
|
+
.attr(bgAttr)
|
|
1461
|
+
.shadow(optionsChart.shadow);
|
|
1462
|
+
}
|
|
1463
|
+
else {
|
|
1464
|
+
chartBorderWidth = mgn = chartBackground.strokeWidth();
|
|
1465
|
+
}
|
|
1466
|
+
chartBackground[verb]({
|
|
1467
|
+
x: mgn / 2,
|
|
1468
|
+
y: mgn / 2,
|
|
1469
|
+
width: chartWidth - mgn - chartBorderWidth % 2,
|
|
1470
|
+
height: chartHeight - mgn - chartBorderWidth % 2,
|
|
1471
|
+
r: optionsChart.borderRadius
|
|
1472
|
+
});
|
|
1473
|
+
// Plot background
|
|
1474
|
+
verb = 'animate';
|
|
1475
|
+
if (!plotBackground) {
|
|
1476
|
+
verb = 'attr';
|
|
1477
|
+
chart.plotBackground = plotBackground = renderer.rect()
|
|
1478
|
+
.addClass('highcharts-plot-background')
|
|
1479
|
+
.add();
|
|
1480
|
+
}
|
|
1481
|
+
plotBackground[verb](plotBox);
|
|
1482
|
+
if (!styledMode) {
|
|
1483
|
+
// Presentational attributes for the background
|
|
1484
|
+
plotBackground
|
|
1485
|
+
.attr({
|
|
1486
|
+
fill: plotBackgroundColor || 'none'
|
|
1487
|
+
})
|
|
1488
|
+
.shadow(optionsChart.plotShadow);
|
|
1489
|
+
// Create the background image
|
|
1490
|
+
if (plotBackgroundImage) {
|
|
1491
|
+
if (!plotBGImage) {
|
|
1492
|
+
chart.plotBGImage = renderer.image(plotBackgroundImage, plotLeft, plotTop, plotWidth, plotHeight).add();
|
|
1493
|
+
}
|
|
1494
|
+
else {
|
|
1495
|
+
if (plotBackgroundImage !== plotBGImage.attr('href')) {
|
|
1496
|
+
plotBGImage.attr('href', plotBackgroundImage);
|
|
1497
|
+
}
|
|
1498
|
+
plotBGImage.animate(plotBox);
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
// Plot clip
|
|
1503
|
+
if (!clipRect) {
|
|
1504
|
+
chart.clipRect = renderer.clipRect(clipBox);
|
|
1505
|
+
}
|
|
1506
|
+
else {
|
|
1507
|
+
clipRect.animate({
|
|
1508
|
+
width: clipBox.width,
|
|
1509
|
+
height: clipBox.height
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
// Plot area border
|
|
1513
|
+
verb = 'animate';
|
|
1514
|
+
if (!plotBorder) {
|
|
1515
|
+
verb = 'attr';
|
|
1516
|
+
chart.plotBorder = plotBorder = renderer.rect()
|
|
1517
|
+
.addClass('highcharts-plot-border')
|
|
1518
|
+
.attr({
|
|
1519
|
+
zIndex: 1 // Above the grid
|
|
1520
|
+
})
|
|
1521
|
+
.add();
|
|
1522
|
+
}
|
|
1523
|
+
if (!styledMode) {
|
|
1524
|
+
// Presentational
|
|
1525
|
+
plotBorder.attr({
|
|
1526
|
+
stroke: optionsChart.plotBorderColor,
|
|
1527
|
+
'stroke-width': optionsChart.plotBorderWidth || 0,
|
|
1528
|
+
fill: 'none'
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1531
|
+
plotBorder[verb](plotBorder.crisp({
|
|
1532
|
+
x: plotLeft,
|
|
1533
|
+
y: plotTop,
|
|
1534
|
+
width: plotWidth,
|
|
1535
|
+
height: plotHeight
|
|
1536
|
+
}, -plotBorder.strokeWidth())); // #3282 plotBorder should be negative;
|
|
1537
|
+
// reset
|
|
1538
|
+
chart.isDirtyBox = false;
|
|
1539
|
+
fireEvent(this, 'afterDrawChartBox');
|
|
1540
|
+
};
|
|
1541
|
+
/**
|
|
1542
|
+
* Detect whether a certain chart property is needed based on inspecting its
|
|
1543
|
+
* options and series. This mainly applies to the chart.inverted property,
|
|
1544
|
+
* and in extensions to the chart.angular and chart.polar properties.
|
|
1545
|
+
*
|
|
1546
|
+
* @private
|
|
1547
|
+
* @function Highcharts.Chart#propFromSeries
|
|
1548
|
+
*/
|
|
1549
|
+
Chart.prototype.propFromSeries = function () {
|
|
1550
|
+
var chart = this, optionsChart = chart.options.chart, seriesOptions = chart.options.series;
|
|
1551
|
+
var i, klass, value;
|
|
1552
|
+
/**
|
|
1553
|
+
* The flag is set to `true` if a series of the chart is inverted.
|
|
1554
|
+
*
|
|
1555
|
+
* @name Highcharts.Chart#inverted
|
|
1556
|
+
* @type {boolean|undefined}
|
|
1557
|
+
*/
|
|
1558
|
+
['inverted', 'angular', 'polar'].forEach(function (key) {
|
|
1559
|
+
// The default series type's class
|
|
1560
|
+
klass = seriesTypes[(optionsChart.type || optionsChart.defaultSeriesType)];
|
|
1561
|
+
// Get the value from available chart-wide properties
|
|
1562
|
+
value =
|
|
1563
|
+
// It is set in the options:
|
|
1564
|
+
optionsChart[key] ||
|
|
1565
|
+
// The default series class:
|
|
1566
|
+
(klass && klass.prototype[key]);
|
|
1567
|
+
// requires it
|
|
1568
|
+
// 4. Check if any the chart's series require it
|
|
1569
|
+
i = seriesOptions && seriesOptions.length;
|
|
1570
|
+
while (!value && i--) {
|
|
1571
|
+
klass = seriesTypes[seriesOptions[i].type];
|
|
1572
|
+
if (klass && klass.prototype[key]) {
|
|
1573
|
+
value = true;
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
// Set the chart property
|
|
1577
|
+
chart[key] = value;
|
|
1578
|
+
});
|
|
1579
|
+
};
|
|
1580
|
+
/**
|
|
1581
|
+
* Internal function to link two or more series together, based on the
|
|
1582
|
+
* `linkedTo` option. This is done from `Chart.render`, and after
|
|
1583
|
+
* `Chart.addSeries` and `Series.remove`.
|
|
1584
|
+
*
|
|
1585
|
+
* @private
|
|
1586
|
+
* @function Highcharts.Chart#linkSeries
|
|
1587
|
+
* @emits Highcharts.Chart#event:afterLinkSeries
|
|
1588
|
+
*/
|
|
1589
|
+
Chart.prototype.linkSeries = function () {
|
|
1590
|
+
var chart = this, chartSeries = chart.series;
|
|
1591
|
+
// Reset links
|
|
1592
|
+
chartSeries.forEach(function (series) {
|
|
1593
|
+
series.linkedSeries.length = 0;
|
|
1594
|
+
});
|
|
1595
|
+
// Apply new links
|
|
1596
|
+
chartSeries.forEach(function (series) {
|
|
1597
|
+
var linkedTo = series.options.linkedTo;
|
|
1598
|
+
if (isString(linkedTo)) {
|
|
1599
|
+
if (linkedTo === ':previous') {
|
|
1600
|
+
linkedTo = chart.series[series.index - 1];
|
|
1601
|
+
}
|
|
1602
|
+
else {
|
|
1603
|
+
linkedTo = chart.get(linkedTo);
|
|
1604
|
+
}
|
|
1605
|
+
// #3341 avoid mutual linking
|
|
1606
|
+
if (linkedTo && linkedTo.linkedParent !== series) {
|
|
1607
|
+
linkedTo.linkedSeries.push(series);
|
|
1608
|
+
series.linkedParent = linkedTo;
|
|
1609
|
+
if (linkedTo.enabledDataSorting) {
|
|
1610
|
+
series.setDataSortingOptions();
|
|
1611
|
+
}
|
|
1612
|
+
series.visible = pick(series.options.visible, linkedTo.options.visible, series.visible); // #3879
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
});
|
|
1616
|
+
fireEvent(this, 'afterLinkSeries');
|
|
1617
|
+
};
|
|
1618
|
+
/**
|
|
1619
|
+
* Render series for the chart.
|
|
1620
|
+
*
|
|
1621
|
+
* @private
|
|
1622
|
+
* @function Highcharts.Chart#renderSeries
|
|
1623
|
+
*/
|
|
1624
|
+
Chart.prototype.renderSeries = function () {
|
|
1625
|
+
this.series.forEach(function (serie) {
|
|
1626
|
+
serie.translate();
|
|
1627
|
+
serie.render();
|
|
1628
|
+
});
|
|
1629
|
+
};
|
|
1630
|
+
/**
|
|
1631
|
+
* Render labels for the chart.
|
|
1632
|
+
*
|
|
1633
|
+
* @private
|
|
1634
|
+
* @function Highcharts.Chart#renderLabels
|
|
1635
|
+
*/
|
|
1636
|
+
Chart.prototype.renderLabels = function () {
|
|
1637
|
+
var chart = this, labels = chart.options.labels;
|
|
1638
|
+
if (labels.items) {
|
|
1639
|
+
labels.items.forEach(function (label) {
|
|
1640
|
+
var style = extend(labels.style, label.style), x = pInt(style.left) + chart.plotLeft, y = pInt(style.top) + chart.plotTop + 12;
|
|
1641
|
+
// delete to prevent rewriting in IE
|
|
1642
|
+
delete style.left;
|
|
1643
|
+
delete style.top;
|
|
1644
|
+
chart.renderer.text(label.html, x, y)
|
|
1645
|
+
.attr({ zIndex: 2 })
|
|
1646
|
+
.css(style)
|
|
1647
|
+
.add();
|
|
1648
|
+
});
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1651
|
+
/**
|
|
1652
|
+
* Render all graphics for the chart. Runs internally on initialization.
|
|
1653
|
+
*
|
|
1654
|
+
* @private
|
|
1655
|
+
* @function Highcharts.Chart#render
|
|
1656
|
+
*/
|
|
1657
|
+
Chart.prototype.render = function () {
|
|
1658
|
+
var chart = this, axes = chart.axes, colorAxis = chart.colorAxis, renderer = chart.renderer, options = chart.options, renderAxes = function (axes) {
|
|
1659
|
+
axes.forEach(function (axis) {
|
|
1660
|
+
if (axis.visible) {
|
|
1661
|
+
axis.render();
|
|
1662
|
+
}
|
|
1663
|
+
});
|
|
1664
|
+
};
|
|
1665
|
+
var correction = 0; // correction for X axis labels
|
|
1666
|
+
// Title
|
|
1667
|
+
chart.setTitle();
|
|
1668
|
+
/**
|
|
1669
|
+
* The overview of the chart's series.
|
|
1670
|
+
*
|
|
1671
|
+
* @name Highcharts.Chart#legend
|
|
1672
|
+
* @type {Highcharts.Legend}
|
|
1673
|
+
*/
|
|
1674
|
+
chart.legend = new Legend(chart, options.legend);
|
|
1675
|
+
// Get stacks
|
|
1676
|
+
if (chart.getStacks) {
|
|
1677
|
+
chart.getStacks();
|
|
1678
|
+
}
|
|
1679
|
+
// Get chart margins
|
|
1680
|
+
chart.getMargins(true);
|
|
1681
|
+
chart.setChartSize();
|
|
1682
|
+
// Record preliminary dimensions for later comparison
|
|
1683
|
+
var tempWidth = chart.plotWidth;
|
|
1684
|
+
axes.some(function (axis) {
|
|
1685
|
+
if (axis.horiz &&
|
|
1686
|
+
axis.visible &&
|
|
1687
|
+
axis.options.labels.enabled &&
|
|
1688
|
+
axis.series.length) {
|
|
1689
|
+
// 21 is the most common correction for X axis labels
|
|
1690
|
+
correction = 21;
|
|
1691
|
+
return true;
|
|
1692
|
+
}
|
|
1693
|
+
});
|
|
1694
|
+
// use Math.max to prevent negative plotHeight
|
|
1695
|
+
chart.plotHeight = Math.max(chart.plotHeight - correction, 0);
|
|
1696
|
+
var tempHeight = chart.plotHeight;
|
|
1697
|
+
// Get margins by pre-rendering axes
|
|
1698
|
+
axes.forEach(function (axis) {
|
|
1699
|
+
axis.setScale();
|
|
1700
|
+
});
|
|
1701
|
+
chart.getAxisMargins();
|
|
1702
|
+
// If the plot area size has changed significantly, calculate tick
|
|
1703
|
+
// positions again
|
|
1704
|
+
var redoHorizontal = tempWidth / chart.plotWidth > 1.1;
|
|
1705
|
+
// Height is more sensitive, use lower threshold
|
|
1706
|
+
var redoVertical = tempHeight / chart.plotHeight > 1.05;
|
|
1707
|
+
if (redoHorizontal || redoVertical) {
|
|
1708
|
+
axes.forEach(function (axis) {
|
|
1709
|
+
if ((axis.horiz && redoHorizontal) ||
|
|
1710
|
+
(!axis.horiz && redoVertical)) {
|
|
1711
|
+
// update to reflect the new margins
|
|
1712
|
+
axis.setTickInterval(true);
|
|
1713
|
+
}
|
|
1714
|
+
});
|
|
1715
|
+
chart.getMargins(); // second pass to check for new labels
|
|
1716
|
+
}
|
|
1717
|
+
// Draw the borders and backgrounds
|
|
1718
|
+
chart.drawChartBox();
|
|
1719
|
+
// Axes
|
|
1720
|
+
if (chart.hasCartesianSeries) {
|
|
1721
|
+
renderAxes(axes);
|
|
1722
|
+
}
|
|
1723
|
+
else if (colorAxis && colorAxis.length) {
|
|
1724
|
+
renderAxes(colorAxis);
|
|
1725
|
+
}
|
|
1726
|
+
// The series
|
|
1727
|
+
if (!chart.seriesGroup) {
|
|
1728
|
+
chart.seriesGroup = renderer.g('series-group')
|
|
1729
|
+
.attr({ zIndex: 3 })
|
|
1730
|
+
.add();
|
|
1731
|
+
}
|
|
1732
|
+
chart.renderSeries();
|
|
1733
|
+
// Labels
|
|
1734
|
+
chart.renderLabels();
|
|
1735
|
+
// Credits
|
|
1736
|
+
chart.addCredits();
|
|
1737
|
+
// Handle responsiveness
|
|
1738
|
+
if (chart.setResponsive) {
|
|
1739
|
+
chart.setResponsive();
|
|
1740
|
+
}
|
|
1741
|
+
// Set flag
|
|
1742
|
+
chart.hasRendered = true;
|
|
1743
|
+
};
|
|
1744
|
+
/**
|
|
1745
|
+
* Set a new credits label for the chart.
|
|
1746
|
+
*
|
|
1747
|
+
* @sample highcharts/credits/credits-update/
|
|
1748
|
+
* Add and update credits
|
|
1749
|
+
*
|
|
1750
|
+
* @function Highcharts.Chart#addCredits
|
|
1751
|
+
*
|
|
1752
|
+
* @param {Highcharts.CreditsOptions} [credits]
|
|
1753
|
+
* A configuration object for the new credits.
|
|
1754
|
+
*/
|
|
1755
|
+
Chart.prototype.addCredits = function (credits) {
|
|
1756
|
+
var chart = this, creds = merge(true, this.options.credits, credits);
|
|
1757
|
+
if (creds.enabled && !this.credits) {
|
|
1758
|
+
/**
|
|
1759
|
+
* The chart's credits label. The label has an `update` method that
|
|
1760
|
+
* allows setting new options as per the
|
|
1761
|
+
* [credits options set](https://api.highcharts.com/highcharts/credits).
|
|
1762
|
+
*
|
|
1763
|
+
* @name Highcharts.Chart#credits
|
|
1764
|
+
* @type {Highcharts.SVGElement}
|
|
1765
|
+
*/
|
|
1766
|
+
this.credits = this.renderer.text(creds.text + (this.mapCredits || ''), 0, 0)
|
|
1767
|
+
.addClass('highcharts-credits')
|
|
1768
|
+
.on('click', function () {
|
|
1769
|
+
if (creds.href) {
|
|
1770
|
+
win.location.href = creds.href;
|
|
1771
|
+
}
|
|
1772
|
+
})
|
|
1773
|
+
.attr({
|
|
1774
|
+
align: creds.position.align,
|
|
1775
|
+
zIndex: 8
|
|
1776
|
+
});
|
|
1777
|
+
if (!chart.styledMode) {
|
|
1778
|
+
this.credits.css(creds.style);
|
|
1779
|
+
}
|
|
1780
|
+
this.credits
|
|
1781
|
+
.add()
|
|
1782
|
+
.align(creds.position);
|
|
1783
|
+
// Dynamically update
|
|
1784
|
+
this.credits.update = function (options) {
|
|
1785
|
+
chart.credits = chart.credits.destroy();
|
|
1786
|
+
chart.addCredits(options);
|
|
1787
|
+
};
|
|
1788
|
+
}
|
|
1789
|
+
};
|
|
1790
|
+
/**
|
|
1791
|
+
* Remove the chart and purge memory. This method is called internally
|
|
1792
|
+
* before adding a second chart into the same container, as well as on
|
|
1793
|
+
* window unload to prevent leaks.
|
|
1794
|
+
*
|
|
1795
|
+
* @sample highcharts/members/chart-destroy/
|
|
1796
|
+
* Destroy the chart from a button
|
|
1797
|
+
* @sample stock/members/chart-destroy/
|
|
1798
|
+
* Destroy with Highcharts Stock
|
|
1799
|
+
*
|
|
1800
|
+
* @function Highcharts.Chart#destroy
|
|
1801
|
+
*
|
|
1802
|
+
* @emits Highcharts.Chart#event:destroy
|
|
1803
|
+
*/
|
|
1804
|
+
Chart.prototype.destroy = function () {
|
|
1805
|
+
var chart = this, axes = chart.axes, series = chart.series, container = chart.container, parentNode = container && container.parentNode;
|
|
1806
|
+
var i;
|
|
1807
|
+
// fire the chart.destoy event
|
|
1808
|
+
fireEvent(chart, 'destroy');
|
|
1809
|
+
// Delete the chart from charts lookup array
|
|
1810
|
+
if (chart.renderer.forExport) {
|
|
1811
|
+
erase(charts, chart); // #6569
|
|
1812
|
+
}
|
|
1813
|
+
else {
|
|
1814
|
+
charts[chart.index] = void 0;
|
|
1815
|
+
}
|
|
1816
|
+
H.chartCount--;
|
|
1817
|
+
chart.renderTo.removeAttribute('data-highcharts-chart');
|
|
1818
|
+
// remove events
|
|
1819
|
+
removeEvent(chart);
|
|
1820
|
+
// ==== Destroy collections:
|
|
1821
|
+
// Destroy axes
|
|
1822
|
+
i = axes.length;
|
|
1823
|
+
while (i--) {
|
|
1824
|
+
axes[i] = axes[i].destroy();
|
|
1825
|
+
}
|
|
1826
|
+
// Destroy scroller & scroller series before destroying base series
|
|
1827
|
+
if (this.scroller && this.scroller.destroy) {
|
|
1828
|
+
this.scroller.destroy();
|
|
1829
|
+
}
|
|
1830
|
+
// Destroy each series
|
|
1831
|
+
i = series.length;
|
|
1832
|
+
while (i--) {
|
|
1833
|
+
series[i] = series[i].destroy();
|
|
1834
|
+
}
|
|
1835
|
+
// ==== Destroy chart properties:
|
|
1836
|
+
[
|
|
1837
|
+
'title', 'subtitle', 'chartBackground', 'plotBackground',
|
|
1838
|
+
'plotBGImage', 'plotBorder', 'seriesGroup', 'clipRect', 'credits',
|
|
1839
|
+
'pointer', 'rangeSelector', 'legend', 'resetZoomButton', 'tooltip',
|
|
1840
|
+
'renderer'
|
|
1841
|
+
].forEach(function (name) {
|
|
1842
|
+
var prop = chart[name];
|
|
1843
|
+
if (prop && prop.destroy) {
|
|
1844
|
+
chart[name] = prop.destroy();
|
|
1845
|
+
}
|
|
1846
|
+
});
|
|
1847
|
+
// Remove container and all SVG, check container as it can break in IE
|
|
1848
|
+
// when destroyed before finished loading
|
|
1849
|
+
if (container) {
|
|
1850
|
+
container.innerHTML = AST.emptyHTML;
|
|
1851
|
+
removeEvent(container);
|
|
1852
|
+
if (parentNode) {
|
|
1853
|
+
discardElement(container);
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
// clean it all up
|
|
1857
|
+
objectEach(chart, function (val, key) {
|
|
1858
|
+
delete chart[key];
|
|
1859
|
+
});
|
|
1860
|
+
};
|
|
1861
|
+
/**
|
|
1862
|
+
* Prepare for first rendering after all data are loaded.
|
|
1863
|
+
*
|
|
1864
|
+
* @private
|
|
1865
|
+
* @function Highcharts.Chart#firstRender
|
|
1866
|
+
* @emits Highcharts.Chart#event:beforeRender
|
|
1867
|
+
*/
|
|
1868
|
+
Chart.prototype.firstRender = function () {
|
|
1869
|
+
var chart = this, options = chart.options;
|
|
1870
|
+
// Hook for oldIE to check whether the chart is ready to render
|
|
1871
|
+
if (chart.isReadyToRender && !chart.isReadyToRender()) {
|
|
1872
|
+
return;
|
|
1873
|
+
}
|
|
1874
|
+
// Create the container
|
|
1875
|
+
chart.getContainer();
|
|
1876
|
+
chart.resetMargins();
|
|
1877
|
+
chart.setChartSize();
|
|
1878
|
+
// Set the common chart properties (mainly invert) from the given series
|
|
1879
|
+
chart.propFromSeries();
|
|
1880
|
+
// get axes
|
|
1881
|
+
chart.getAxes();
|
|
1882
|
+
// Initialize the series
|
|
1883
|
+
(isArray(options.series) ? options.series : []).forEach(
|
|
1884
|
+
// #9680
|
|
1885
|
+
function (serieOptions) {
|
|
1886
|
+
chart.initSeries(serieOptions);
|
|
1887
|
+
});
|
|
1888
|
+
chart.linkSeries();
|
|
1889
|
+
chart.setSeriesData();
|
|
1890
|
+
// Run an event after axes and series are initialized, but before
|
|
1891
|
+
// render. At this stage, the series data is indexed and cached in the
|
|
1892
|
+
// xData and yData arrays, so we can access those before rendering. Used
|
|
1893
|
+
// in Highcharts Stock.
|
|
1894
|
+
fireEvent(chart, 'beforeRender');
|
|
1895
|
+
// depends on inverted and on margins being set
|
|
1896
|
+
if (Pointer) {
|
|
1897
|
+
if (MSPointer.isRequired()) {
|
|
1898
|
+
chart.pointer = new MSPointer(chart, options);
|
|
1899
|
+
}
|
|
1900
|
+
else {
|
|
1901
|
+
/**
|
|
1902
|
+
* The Pointer that keeps track of mouse and touch interaction.
|
|
1903
|
+
*
|
|
1904
|
+
* @memberof Highcharts.Chart
|
|
1905
|
+
* @name pointer
|
|
1906
|
+
* @type {Highcharts.Pointer}
|
|
1907
|
+
* @instance
|
|
1908
|
+
*/
|
|
1909
|
+
chart.pointer = new Pointer(chart, options);
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
chart.render();
|
|
1913
|
+
chart.pointer.getChartPosition(); // #14973
|
|
1914
|
+
// Fire the load event if there are no external images
|
|
1915
|
+
if (!chart.renderer.imgCount && !chart.hasLoaded) {
|
|
1916
|
+
chart.onload();
|
|
1917
|
+
}
|
|
1918
|
+
// If the chart was rendered outside the top container, put it back in
|
|
1919
|
+
// (#3679)
|
|
1920
|
+
chart.temporaryDisplay(true);
|
|
1921
|
+
};
|
|
1922
|
+
/**
|
|
1923
|
+
* Internal function that runs on chart load, async if any images are loaded
|
|
1924
|
+
* in the chart. Runs the callbacks and triggers the `load` and `render`
|
|
1925
|
+
* events.
|
|
1926
|
+
*
|
|
1927
|
+
* @private
|
|
1928
|
+
* @function Highcharts.Chart#onload
|
|
1929
|
+
* @emits Highcharts.Chart#event:load
|
|
1930
|
+
* @emits Highcharts.Chart#event:render
|
|
1931
|
+
*/
|
|
1932
|
+
Chart.prototype.onload = function () {
|
|
1933
|
+
// Run callbacks, first the ones registered by modules, then user's one
|
|
1934
|
+
this.callbacks.concat([this.callback]).forEach(function (fn) {
|
|
1935
|
+
// Chart destroyed in its own callback (#3600)
|
|
1936
|
+
if (fn && typeof this.index !== 'undefined') {
|
|
1937
|
+
fn.apply(this, [this]);
|
|
1938
|
+
}
|
|
1939
|
+
}, this);
|
|
1940
|
+
fireEvent(this, 'load');
|
|
1941
|
+
fireEvent(this, 'render');
|
|
1942
|
+
// Set up auto resize, check for not destroyed (#6068)
|
|
1943
|
+
if (defined(this.index)) {
|
|
1944
|
+
this.setReflow(this.options.chart.reflow);
|
|
1945
|
+
}
|
|
1946
|
+
// Don't run again
|
|
1947
|
+
this.hasLoaded = true;
|
|
1948
|
+
};
|
|
1949
|
+
/**
|
|
1950
|
+
* Add a series to the chart after render time. Note that this method should
|
|
1951
|
+
* never be used when adding data synchronously at chart render time, as it
|
|
1952
|
+
* adds expense to the calculations and rendering. When adding data at the
|
|
1953
|
+
* same time as the chart is initialized, add the series as a configuration
|
|
1954
|
+
* option instead. With multiple axes, the `offset` is dynamically adjusted.
|
|
1955
|
+
*
|
|
1956
|
+
* @sample highcharts/members/chart-addseries/
|
|
1957
|
+
* Add a series from a button
|
|
1958
|
+
* @sample stock/members/chart-addseries/
|
|
1959
|
+
* Add a series in Highcharts Stock
|
|
1960
|
+
*
|
|
1961
|
+
* @function Highcharts.Chart#addSeries
|
|
1962
|
+
*
|
|
1963
|
+
* @param {Highcharts.SeriesOptionsType} options
|
|
1964
|
+
* The config options for the series.
|
|
1965
|
+
*
|
|
1966
|
+
* @param {boolean} [redraw=true]
|
|
1967
|
+
* Whether to redraw the chart after adding.
|
|
1968
|
+
*
|
|
1969
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
|
|
1970
|
+
* Whether to apply animation, and optionally animation
|
|
1971
|
+
* configuration.
|
|
1972
|
+
*
|
|
1973
|
+
* @return {Highcharts.Series}
|
|
1974
|
+
* The newly created series object.
|
|
1975
|
+
*
|
|
1976
|
+
* @emits Highcharts.Chart#event:addSeries
|
|
1977
|
+
* @emits Highcharts.Chart#event:afterAddSeries
|
|
1978
|
+
*/
|
|
1979
|
+
Chart.prototype.addSeries = function (options, redraw, animation) {
|
|
1980
|
+
var chart = this;
|
|
1981
|
+
var series;
|
|
1982
|
+
if (options) { // <- not necessary
|
|
1983
|
+
redraw = pick(redraw, true); // defaults to true
|
|
1984
|
+
fireEvent(chart, 'addSeries', { options: options }, function () {
|
|
1985
|
+
series = chart.initSeries(options);
|
|
1986
|
+
chart.isDirtyLegend = true;
|
|
1987
|
+
chart.linkSeries();
|
|
1988
|
+
if (series.enabledDataSorting) {
|
|
1989
|
+
// We need to call `setData` after `linkSeries`
|
|
1990
|
+
series.setData(options.data, false);
|
|
1991
|
+
}
|
|
1992
|
+
fireEvent(chart, 'afterAddSeries', { series: series });
|
|
1993
|
+
if (redraw) {
|
|
1994
|
+
chart.redraw(animation);
|
|
1995
|
+
}
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
return series;
|
|
1999
|
+
};
|
|
2000
|
+
/**
|
|
2001
|
+
* Add an axis to the chart after render time. Note that this method should
|
|
2002
|
+
* never be used when adding data synchronously at chart render time, as it
|
|
2003
|
+
* adds expense to the calculations and rendering. When adding data at the
|
|
2004
|
+
* same time as the chart is initialized, add the axis as a configuration
|
|
2005
|
+
* option instead.
|
|
2006
|
+
*
|
|
2007
|
+
* @sample highcharts/members/chart-addaxis/
|
|
2008
|
+
* Add and remove axes
|
|
2009
|
+
*
|
|
2010
|
+
* @function Highcharts.Chart#addAxis
|
|
2011
|
+
*
|
|
2012
|
+
* @param {Highcharts.AxisOptions} options
|
|
2013
|
+
* The axis options.
|
|
2014
|
+
*
|
|
2015
|
+
* @param {boolean} [isX=false]
|
|
2016
|
+
* Whether it is an X axis or a value axis.
|
|
2017
|
+
*
|
|
2018
|
+
* @param {boolean} [redraw=true]
|
|
2019
|
+
* Whether to redraw the chart after adding.
|
|
2020
|
+
*
|
|
2021
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation=true]
|
|
2022
|
+
* Whether and how to apply animation in the redraw.
|
|
2023
|
+
*
|
|
2024
|
+
* @return {Highcharts.Axis}
|
|
2025
|
+
* The newly generated Axis object.
|
|
2026
|
+
*/
|
|
2027
|
+
Chart.prototype.addAxis = function (options, isX, redraw, animation) {
|
|
2028
|
+
return this.createAxis(isX ? 'xAxis' : 'yAxis', { axis: options, redraw: redraw, animation: animation });
|
|
2029
|
+
};
|
|
2030
|
+
/**
|
|
2031
|
+
* Add a color axis to the chart after render time. Note that this method
|
|
2032
|
+
* should never be used when adding data synchronously at chart render time,
|
|
2033
|
+
* as it adds expense to the calculations and rendering. When adding data at
|
|
2034
|
+
* the same time as the chart is initialized, add the axis as a
|
|
2035
|
+
* configuration option instead.
|
|
2036
|
+
*
|
|
2037
|
+
* @sample highcharts/members/chart-addaxis/
|
|
2038
|
+
* Add and remove axes
|
|
2039
|
+
*
|
|
2040
|
+
* @function Highcharts.Chart#addColorAxis
|
|
2041
|
+
*
|
|
2042
|
+
* @param {Highcharts.ColorAxisOptions} options
|
|
2043
|
+
* The axis options.
|
|
2044
|
+
*
|
|
2045
|
+
* @param {boolean} [redraw=true]
|
|
2046
|
+
* Whether to redraw the chart after adding.
|
|
2047
|
+
*
|
|
2048
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation=true]
|
|
2049
|
+
* Whether and how to apply animation in the redraw.
|
|
2050
|
+
*
|
|
2051
|
+
* @return {Highcharts.ColorAxis}
|
|
2052
|
+
* The newly generated Axis object.
|
|
2053
|
+
*/
|
|
2054
|
+
Chart.prototype.addColorAxis = function (options, redraw, animation) {
|
|
2055
|
+
return this.createAxis('colorAxis', { axis: options, redraw: redraw, animation: animation });
|
|
2056
|
+
};
|
|
2057
|
+
/**
|
|
2058
|
+
* Factory for creating different axis types.
|
|
2059
|
+
*
|
|
2060
|
+
* @private
|
|
2061
|
+
* @function Highcharts.Chart#createAxis
|
|
2062
|
+
*
|
|
2063
|
+
* @param {string} type
|
|
2064
|
+
* An axis type.
|
|
2065
|
+
*
|
|
2066
|
+
* @param {...Array<*>} arguments
|
|
2067
|
+
* All arguments for the constructor.
|
|
2068
|
+
*
|
|
2069
|
+
* @return {Highcharts.Axis | Highcharts.ColorAxis}
|
|
2070
|
+
* The newly generated Axis object.
|
|
2071
|
+
*/
|
|
2072
|
+
Chart.prototype.createAxis = function (type, options) {
|
|
2073
|
+
var axis = new Axis(this, merge(options.axis, {
|
|
2074
|
+
index: this[type].length,
|
|
2075
|
+
isX: type === 'xAxis'
|
|
2076
|
+
}));
|
|
2077
|
+
if (pick(options.redraw, true)) {
|
|
2078
|
+
this.redraw(options.animation);
|
|
2079
|
+
}
|
|
2080
|
+
return axis;
|
|
2081
|
+
};
|
|
2082
|
+
/**
|
|
2083
|
+
* Dim the chart and show a loading text or symbol. Options for the loading
|
|
2084
|
+
* screen are defined in {@link
|
|
2085
|
+
* https://api.highcharts.com/highcharts/loading|the loading options}.
|
|
2086
|
+
*
|
|
2087
|
+
* @sample highcharts/members/chart-hideloading/
|
|
2088
|
+
* Show and hide loading from a button
|
|
2089
|
+
* @sample highcharts/members/chart-showloading/
|
|
2090
|
+
* Apply different text labels
|
|
2091
|
+
* @sample stock/members/chart-show-hide-loading/
|
|
2092
|
+
* Toggle loading in Highcharts Stock
|
|
2093
|
+
*
|
|
2094
|
+
* @function Highcharts.Chart#showLoading
|
|
2095
|
+
*
|
|
2096
|
+
* @param {string} [str]
|
|
2097
|
+
* An optional text to show in the loading label instead of the
|
|
2098
|
+
* default one. The default text is set in
|
|
2099
|
+
* [lang.loading](https://api.highcharts.com/highcharts/lang.loading).
|
|
2100
|
+
*/
|
|
2101
|
+
Chart.prototype.showLoading = function (str) {
|
|
2102
|
+
var chart = this, options = chart.options, loadingOptions = options.loading, setLoadingSize = function () {
|
|
2103
|
+
if (loadingDiv) {
|
|
2104
|
+
css(loadingDiv, {
|
|
2105
|
+
left: chart.plotLeft + 'px',
|
|
2106
|
+
top: chart.plotTop + 'px',
|
|
2107
|
+
width: chart.plotWidth + 'px',
|
|
2108
|
+
height: chart.plotHeight + 'px'
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2111
|
+
};
|
|
2112
|
+
var loadingDiv = chart.loadingDiv, loadingSpan = chart.loadingSpan;
|
|
2113
|
+
// create the layer at the first call
|
|
2114
|
+
if (!loadingDiv) {
|
|
2115
|
+
chart.loadingDiv = loadingDiv = createElement('div', {
|
|
2116
|
+
className: 'highcharts-loading highcharts-loading-hidden'
|
|
2117
|
+
}, null, chart.container);
|
|
2118
|
+
}
|
|
2119
|
+
if (!loadingSpan) {
|
|
2120
|
+
chart.loadingSpan = loadingSpan = createElement('span', { className: 'highcharts-loading-inner' }, null, loadingDiv);
|
|
2121
|
+
addEvent(chart, 'redraw', setLoadingSize); // #1080
|
|
2122
|
+
}
|
|
2123
|
+
loadingDiv.className = 'highcharts-loading';
|
|
2124
|
+
// Update text
|
|
2125
|
+
AST.setElementHTML(loadingSpan, pick(str, options.lang.loading, ''));
|
|
2126
|
+
if (!chart.styledMode) {
|
|
2127
|
+
// Update visuals
|
|
2128
|
+
css(loadingDiv, extend(loadingOptions.style, {
|
|
2129
|
+
zIndex: 10
|
|
2130
|
+
}));
|
|
2131
|
+
css(loadingSpan, loadingOptions.labelStyle);
|
|
2132
|
+
// Show it
|
|
2133
|
+
if (!chart.loadingShown) {
|
|
2134
|
+
css(loadingDiv, {
|
|
2135
|
+
opacity: 0,
|
|
2136
|
+
display: ''
|
|
2137
|
+
});
|
|
2138
|
+
animate(loadingDiv, {
|
|
2139
|
+
opacity: loadingOptions.style.opacity || 0.5
|
|
2140
|
+
}, {
|
|
2141
|
+
duration: loadingOptions.showDuration || 0
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
chart.loadingShown = true;
|
|
2146
|
+
setLoadingSize();
|
|
2147
|
+
};
|
|
2148
|
+
/**
|
|
2149
|
+
* Hide the loading layer.
|
|
2150
|
+
*
|
|
2151
|
+
* @see Highcharts.Chart#showLoading
|
|
2152
|
+
*
|
|
2153
|
+
* @sample highcharts/members/chart-hideloading/
|
|
2154
|
+
* Show and hide loading from a button
|
|
2155
|
+
* @sample stock/members/chart-show-hide-loading/
|
|
2156
|
+
* Toggle loading in Highcharts Stock
|
|
2157
|
+
*
|
|
2158
|
+
* @function Highcharts.Chart#hideLoading
|
|
2159
|
+
*/
|
|
2160
|
+
Chart.prototype.hideLoading = function () {
|
|
2161
|
+
var options = this.options, loadingDiv = this.loadingDiv;
|
|
2162
|
+
if (loadingDiv) {
|
|
2163
|
+
loadingDiv.className =
|
|
2164
|
+
'highcharts-loading highcharts-loading-hidden';
|
|
2165
|
+
if (!this.styledMode) {
|
|
2166
|
+
animate(loadingDiv, {
|
|
2167
|
+
opacity: 0
|
|
2168
|
+
}, {
|
|
2169
|
+
duration: options.loading.hideDuration || 100,
|
|
2170
|
+
complete: function () {
|
|
2171
|
+
css(loadingDiv, { display: 'none' });
|
|
2172
|
+
}
|
|
2173
|
+
});
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
this.loadingShown = false;
|
|
2177
|
+
};
|
|
2178
|
+
/**
|
|
2179
|
+
* A generic function to update any element of the chart. Elements can be
|
|
2180
|
+
* enabled and disabled, moved, re-styled, re-formatted etc.
|
|
2181
|
+
*
|
|
2182
|
+
* A special case is configuration objects that take arrays, for example
|
|
2183
|
+
* [xAxis](https://api.highcharts.com/highcharts/xAxis),
|
|
2184
|
+
* [yAxis](https://api.highcharts.com/highcharts/yAxis) or
|
|
2185
|
+
* [series](https://api.highcharts.com/highcharts/series). For these
|
|
2186
|
+
* collections, an `id` option is used to map the new option set to an
|
|
2187
|
+
* existing object. If an existing object of the same id is not found, the
|
|
2188
|
+
* corresponding item is updated. So for example, running `chart.update`
|
|
2189
|
+
* with a series item without an id, will cause the existing chart's series
|
|
2190
|
+
* with the same index in the series array to be updated. When the
|
|
2191
|
+
* `oneToOne` parameter is true, `chart.update` will also take care of
|
|
2192
|
+
* adding and removing items from the collection. Read more under the
|
|
2193
|
+
* parameter description below.
|
|
2194
|
+
*
|
|
2195
|
+
* Note that when changing series data, `chart.update` may mutate the passed
|
|
2196
|
+
* data options.
|
|
2197
|
+
*
|
|
2198
|
+
* See also the
|
|
2199
|
+
* [responsive option set](https://api.highcharts.com/highcharts/responsive).
|
|
2200
|
+
* Switching between `responsive.rules` basically runs `chart.update` under
|
|
2201
|
+
* the hood.
|
|
2202
|
+
*
|
|
2203
|
+
* @sample highcharts/members/chart-update/
|
|
2204
|
+
* Update chart geometry
|
|
2205
|
+
*
|
|
2206
|
+
* @function Highcharts.Chart#update
|
|
2207
|
+
*
|
|
2208
|
+
* @param {Highcharts.Options} options
|
|
2209
|
+
* A configuration object for the new chart options.
|
|
2210
|
+
*
|
|
2211
|
+
* @param {boolean} [redraw=true]
|
|
2212
|
+
* Whether to redraw the chart.
|
|
2213
|
+
*
|
|
2214
|
+
* @param {boolean} [oneToOne=false]
|
|
2215
|
+
* When `true`, the `series`, `xAxis`, `yAxis` and `annotations`
|
|
2216
|
+
* collections will be updated one to one, and items will be either
|
|
2217
|
+
* added or removed to match the new updated options. For example,
|
|
2218
|
+
* if the chart has two series and we call `chart.update` with a
|
|
2219
|
+
* configuration containing three series, one will be added. If we
|
|
2220
|
+
* call `chart.update` with one series, one will be removed. Setting
|
|
2221
|
+
* an empty `series` array will remove all series, but leaving out
|
|
2222
|
+
* the`series` property will leave all series untouched. If the
|
|
2223
|
+
* series have id's, the new series options will be matched by id,
|
|
2224
|
+
* and the remaining ones removed.
|
|
2225
|
+
*
|
|
2226
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation=true]
|
|
2227
|
+
* Whether to apply animation, and optionally animation
|
|
2228
|
+
* configuration.
|
|
2229
|
+
*
|
|
2230
|
+
* @emits Highcharts.Chart#event:update
|
|
2231
|
+
* @emits Highcharts.Chart#event:afterUpdate
|
|
2232
|
+
*/
|
|
2233
|
+
Chart.prototype.update = function (options, redraw, oneToOne, animation) {
|
|
2234
|
+
var chart = this, adders = {
|
|
2235
|
+
credits: 'addCredits',
|
|
2236
|
+
title: 'setTitle',
|
|
2237
|
+
subtitle: 'setSubtitle',
|
|
2238
|
+
caption: 'setCaption'
|
|
2239
|
+
}, isResponsiveOptions = options.isResponsiveOptions, itemsForRemoval = [];
|
|
2240
|
+
var updateAllAxes, updateAllSeries, runSetSize;
|
|
2241
|
+
fireEvent(chart, 'update', { options: options });
|
|
2242
|
+
// If there are responsive rules in action, undo the responsive rules
|
|
2243
|
+
// before we apply the updated options and replay the responsive rules
|
|
2244
|
+
// on top from the chart.redraw function (#9617).
|
|
2245
|
+
if (!isResponsiveOptions) {
|
|
2246
|
+
chart.setResponsive(false, true);
|
|
2247
|
+
}
|
|
2248
|
+
options = cleanRecursively(options, chart.options);
|
|
2249
|
+
chart.userOptions = merge(chart.userOptions, options);
|
|
2250
|
+
// If the top-level chart option is present, some special updates are
|
|
2251
|
+
// required
|
|
2252
|
+
var optionsChart = options.chart;
|
|
2253
|
+
if (optionsChart) {
|
|
2254
|
+
merge(true, chart.options.chart, optionsChart);
|
|
2255
|
+
// Setter function
|
|
2256
|
+
if ('className' in optionsChart) {
|
|
2257
|
+
chart.setClassName(optionsChart.className);
|
|
2258
|
+
}
|
|
2259
|
+
if ('reflow' in optionsChart) {
|
|
2260
|
+
chart.setReflow(optionsChart.reflow);
|
|
2261
|
+
}
|
|
2262
|
+
if ('inverted' in optionsChart ||
|
|
2263
|
+
'polar' in optionsChart ||
|
|
2264
|
+
'type' in optionsChart) {
|
|
2265
|
+
// Parse options.chart.inverted and options.chart.polar together
|
|
2266
|
+
// with the available series.
|
|
2267
|
+
chart.propFromSeries();
|
|
2268
|
+
updateAllAxes = true;
|
|
2269
|
+
}
|
|
2270
|
+
if ('alignTicks' in optionsChart) { // #6452
|
|
2271
|
+
updateAllAxes = true;
|
|
2272
|
+
}
|
|
2273
|
+
if ('events' in optionsChart) {
|
|
2274
|
+
// Chart event handlers
|
|
2275
|
+
registerEventOptions(this, optionsChart);
|
|
2276
|
+
}
|
|
2277
|
+
objectEach(optionsChart, function (val, key) {
|
|
2278
|
+
if (chart.propsRequireUpdateSeries.indexOf('chart.' + key) !==
|
|
2279
|
+
-1) {
|
|
2280
|
+
updateAllSeries = true;
|
|
2281
|
+
}
|
|
2282
|
+
// Only dirty box
|
|
2283
|
+
if (chart.propsRequireDirtyBox.indexOf(key) !== -1) {
|
|
2284
|
+
chart.isDirtyBox = true;
|
|
2285
|
+
}
|
|
2286
|
+
// Chart setSize
|
|
2287
|
+
if (chart.propsRequireReflow.indexOf(key) !== -1) {
|
|
2288
|
+
if (isResponsiveOptions) {
|
|
2289
|
+
chart.isDirtyBox = true;
|
|
2290
|
+
}
|
|
2291
|
+
else {
|
|
2292
|
+
runSetSize = true;
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
});
|
|
2296
|
+
if (!chart.styledMode && optionsChart.style) {
|
|
2297
|
+
chart.renderer.setStyle(chart.options.chart.style || {});
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
// Moved up, because tooltip needs updated plotOptions (#6218)
|
|
2301
|
+
if (!chart.styledMode && options.colors) {
|
|
2302
|
+
this.options.colors = options.colors;
|
|
2303
|
+
}
|
|
2304
|
+
if (options.time) {
|
|
2305
|
+
// Maintaining legacy global time. If the chart is instanciated
|
|
2306
|
+
// first with global time, then updated with time options, we need
|
|
2307
|
+
// to create a new Time instance to avoid mutating the global time
|
|
2308
|
+
// (#10536).
|
|
2309
|
+
if (this.time === defaultTime) {
|
|
2310
|
+
this.time = new Time(options.time);
|
|
2311
|
+
}
|
|
2312
|
+
// If we're updating, the time class is different from other chart
|
|
2313
|
+
// classes (chart.legend, chart.tooltip etc) in that it doesn't know
|
|
2314
|
+
// about the chart. The other chart[something].update functions also
|
|
2315
|
+
// set the chart.options[something]. For the time class however we
|
|
2316
|
+
// need to update the chart options separately. #14230.
|
|
2317
|
+
merge(true, chart.options.time, options.time);
|
|
2318
|
+
}
|
|
2319
|
+
// Some option stuctures correspond one-to-one to chart objects that
|
|
2320
|
+
// have update methods, for example
|
|
2321
|
+
// options.credits => chart.credits
|
|
2322
|
+
// options.legend => chart.legend
|
|
2323
|
+
// options.title => chart.title
|
|
2324
|
+
// options.tooltip => chart.tooltip
|
|
2325
|
+
// options.subtitle => chart.subtitle
|
|
2326
|
+
// options.mapNavigation => chart.mapNavigation
|
|
2327
|
+
// options.navigator => chart.navigator
|
|
2328
|
+
// options.scrollbar => chart.scrollbar
|
|
2329
|
+
objectEach(options, function (val, key) {
|
|
2330
|
+
if (chart[key] &&
|
|
2331
|
+
typeof chart[key].update === 'function') {
|
|
2332
|
+
chart[key].update(val, false);
|
|
2333
|
+
// If a one-to-one object does not exist, look for an adder function
|
|
2334
|
+
}
|
|
2335
|
+
else if (typeof chart[adders[key]] === 'function') {
|
|
2336
|
+
chart[adders[key]](val);
|
|
2337
|
+
// Else, just merge the options. For nodes like loading, noData,
|
|
2338
|
+
// plotOptions
|
|
2339
|
+
}
|
|
2340
|
+
else if (key !== 'colors' &&
|
|
2341
|
+
chart.collectionsWithUpdate.indexOf(key) === -1) {
|
|
2342
|
+
merge(true, chart.options[key], options[key]);
|
|
2343
|
+
}
|
|
2344
|
+
if (key !== 'chart' &&
|
|
2345
|
+
chart.propsRequireUpdateSeries.indexOf(key) !== -1) {
|
|
2346
|
+
updateAllSeries = true;
|
|
2347
|
+
}
|
|
2348
|
+
});
|
|
2349
|
+
// Setters for collections. For axes and series, each item is referred
|
|
2350
|
+
// by an id. If the id is not found, it defaults to the corresponding
|
|
2351
|
+
// item in the collection, so setting one series without an id, will
|
|
2352
|
+
// update the first series in the chart. Setting two series without
|
|
2353
|
+
// an id will update the first and the second respectively (#6019)
|
|
2354
|
+
// chart.update and responsive.
|
|
2355
|
+
this.collectionsWithUpdate.forEach(function (coll) {
|
|
2356
|
+
var indexMap;
|
|
2357
|
+
if (options[coll]) {
|
|
2358
|
+
// In stock charts, the navigator series are also part of the
|
|
2359
|
+
// chart.series array, but those series should not be handled
|
|
2360
|
+
// here (#8196) and neither should the navigator axis (#9671).
|
|
2361
|
+
indexMap = [];
|
|
2362
|
+
chart[coll].forEach(function (s, i) {
|
|
2363
|
+
if (!s.options.isInternal) {
|
|
2364
|
+
indexMap.push(pick(s.options.index, i));
|
|
2365
|
+
}
|
|
2366
|
+
});
|
|
2367
|
+
splat(options[coll]).forEach(function (newOptions, i) {
|
|
2368
|
+
var hasId = defined(newOptions.id);
|
|
2369
|
+
var item;
|
|
2370
|
+
// Match by id
|
|
2371
|
+
if (hasId) {
|
|
2372
|
+
item = chart.get(newOptions.id);
|
|
2373
|
+
}
|
|
2374
|
+
// No match by id found, match by index instead
|
|
2375
|
+
if (!item && chart[coll]) {
|
|
2376
|
+
item = chart[coll][indexMap ? indexMap[i] : i];
|
|
2377
|
+
// Check if we grabbed an item with an exising but
|
|
2378
|
+
// different id (#13541)
|
|
2379
|
+
if (item && hasId && defined(item.options.id)) {
|
|
2380
|
+
item = void 0;
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
if (item && item.coll === coll) {
|
|
2384
|
+
item.update(newOptions, false);
|
|
2385
|
+
if (oneToOne) {
|
|
2386
|
+
item.touched = true;
|
|
2387
|
+
}
|
|
2388
|
+
}
|
|
2389
|
+
// If oneToOne and no matching item is found, add one
|
|
2390
|
+
if (!item && oneToOne && chart.collectionsWithInit[coll]) {
|
|
2391
|
+
chart.collectionsWithInit[coll][0].apply(chart,
|
|
2392
|
+
// [newOptions, ...extraArguments, redraw=false]
|
|
2393
|
+
[
|
|
2394
|
+
newOptions
|
|
2395
|
+
].concat(
|
|
2396
|
+
// Not all initializers require extra args
|
|
2397
|
+
chart.collectionsWithInit[coll][1] || []).concat([
|
|
2398
|
+
false
|
|
2399
|
+
])).touched = true;
|
|
2400
|
+
}
|
|
2401
|
+
});
|
|
2402
|
+
// Add items for removal
|
|
2403
|
+
if (oneToOne) {
|
|
2404
|
+
chart[coll].forEach(function (item) {
|
|
2405
|
+
if (!item.touched && !item.options.isInternal) {
|
|
2406
|
+
itemsForRemoval.push(item);
|
|
2407
|
+
}
|
|
2408
|
+
else {
|
|
2409
|
+
delete item.touched;
|
|
2410
|
+
}
|
|
2411
|
+
});
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
});
|
|
2415
|
+
itemsForRemoval.forEach(function (item) {
|
|
2416
|
+
if (item.chart && item.remove) { // #9097, avoid removing twice
|
|
2417
|
+
item.remove(false);
|
|
2418
|
+
}
|
|
2419
|
+
});
|
|
2420
|
+
if (updateAllAxes) {
|
|
2421
|
+
chart.axes.forEach(function (axis) {
|
|
2422
|
+
axis.update({}, false);
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
// Certain options require the whole series structure to be thrown away
|
|
2426
|
+
// and rebuilt
|
|
2427
|
+
if (updateAllSeries) {
|
|
2428
|
+
chart.getSeriesOrderByLinks().forEach(function (series) {
|
|
2429
|
+
// Avoid removed navigator series
|
|
2430
|
+
if (series.chart) {
|
|
2431
|
+
series.update({}, false);
|
|
2432
|
+
}
|
|
2433
|
+
}, this);
|
|
2434
|
+
}
|
|
2435
|
+
// Update size. Redraw is forced.
|
|
2436
|
+
var newWidth = optionsChart && optionsChart.width;
|
|
2437
|
+
var newHeight = optionsChart && (isString(optionsChart.height) ?
|
|
2438
|
+
relativeLength(optionsChart.height, newWidth || chart.chartWidth) :
|
|
2439
|
+
optionsChart.height);
|
|
2440
|
+
if (
|
|
2441
|
+
// In this case, run chart.setSize with newWidth and newHeight which
|
|
2442
|
+
// are undefined, only for reflowing chart elements because margin
|
|
2443
|
+
// or spacing has been set (#8190)
|
|
2444
|
+
runSetSize ||
|
|
2445
|
+
// In this case, the size is actually set
|
|
2446
|
+
(isNumber(newWidth) && newWidth !== chart.chartWidth) ||
|
|
2447
|
+
(isNumber(newHeight) && newHeight !== chart.chartHeight)) {
|
|
2448
|
+
chart.setSize(newWidth, newHeight, animation);
|
|
2449
|
+
}
|
|
2450
|
+
else if (pick(redraw, true)) {
|
|
2451
|
+
chart.redraw(animation);
|
|
2452
|
+
}
|
|
2453
|
+
fireEvent(chart, 'afterUpdate', {
|
|
2454
|
+
options: options,
|
|
2455
|
+
redraw: redraw,
|
|
2456
|
+
animation: animation
|
|
2457
|
+
});
|
|
2458
|
+
};
|
|
2459
|
+
/**
|
|
2460
|
+
* Shortcut to set the subtitle options. This can also be done from {@link
|
|
2461
|
+
* Chart#update} or {@link Chart#setTitle}.
|
|
2462
|
+
*
|
|
2463
|
+
* @function Highcharts.Chart#setSubtitle
|
|
2464
|
+
*
|
|
2465
|
+
* @param {Highcharts.SubtitleOptions} options
|
|
2466
|
+
* New subtitle options. The subtitle text itself is set by the
|
|
2467
|
+
* `options.text` property.
|
|
2468
|
+
*/
|
|
2469
|
+
Chart.prototype.setSubtitle = function (options, redraw) {
|
|
2470
|
+
this.applyDescription('subtitle', options);
|
|
2471
|
+
this.layOutTitles(redraw);
|
|
2472
|
+
};
|
|
2473
|
+
/**
|
|
2474
|
+
* Set the caption options. This can also be done from {@link
|
|
2475
|
+
* Chart#update}.
|
|
2476
|
+
*
|
|
2477
|
+
* @function Highcharts.Chart#setCaption
|
|
2478
|
+
*
|
|
2479
|
+
* @param {Highcharts.CaptionOptions} options
|
|
2480
|
+
* New caption options. The caption text itself is set by the
|
|
2481
|
+
* `options.text` property.
|
|
2482
|
+
*/
|
|
2483
|
+
Chart.prototype.setCaption = function (options, redraw) {
|
|
2484
|
+
this.applyDescription('caption', options);
|
|
2485
|
+
this.layOutTitles(redraw);
|
|
2486
|
+
};
|
|
2487
|
+
/**
|
|
2488
|
+
* Display the zoom button, so users can reset zoom to the default view
|
|
2489
|
+
* settings.
|
|
2490
|
+
*
|
|
2491
|
+
* @function Highcharts.Chart#showResetZoom
|
|
2492
|
+
*
|
|
2493
|
+
* @emits Highcharts.Chart#event:afterShowResetZoom
|
|
2494
|
+
* @emits Highcharts.Chart#event:beforeShowResetZoom
|
|
2495
|
+
*/
|
|
2496
|
+
Chart.prototype.showResetZoom = function () {
|
|
2497
|
+
var chart = this, lang = defaultOptions.lang, btnOptions = chart.options.chart.resetZoomButton, theme = btnOptions.theme, states = theme.states, alignTo = (btnOptions.relativeTo === 'chart' ||
|
|
2498
|
+
btnOptions.relativeTo === 'spacingBox' ?
|
|
2499
|
+
null :
|
|
2500
|
+
'scrollablePlotBox');
|
|
2501
|
+
/**
|
|
2502
|
+
* @private
|
|
2503
|
+
*/
|
|
2504
|
+
function zoomOut() {
|
|
2505
|
+
chart.zoomOut();
|
|
2506
|
+
}
|
|
2507
|
+
fireEvent(this, 'beforeShowResetZoom', null, function () {
|
|
2508
|
+
chart.resetZoomButton = chart.renderer
|
|
2509
|
+
.button(lang.resetZoom, null, null, zoomOut, theme, states && states.hover)
|
|
2510
|
+
.attr({
|
|
2511
|
+
align: btnOptions.position.align,
|
|
2512
|
+
title: lang.resetZoomTitle
|
|
2513
|
+
})
|
|
2514
|
+
.addClass('highcharts-reset-zoom')
|
|
2515
|
+
.add()
|
|
2516
|
+
.align(btnOptions.position, false, alignTo);
|
|
2517
|
+
});
|
|
2518
|
+
fireEvent(this, 'afterShowResetZoom');
|
|
2519
|
+
};
|
|
2520
|
+
/**
|
|
2521
|
+
* Zoom the chart out after a user has zoomed in. See also
|
|
2522
|
+
* [Axis.setExtremes](/class-reference/Highcharts.Axis#setExtremes).
|
|
2523
|
+
*
|
|
2524
|
+
* @function Highcharts.Chart#zoomOut
|
|
2525
|
+
*
|
|
2526
|
+
* @emits Highcharts.Chart#event:selection
|
|
2527
|
+
*/
|
|
2528
|
+
Chart.prototype.zoomOut = function () {
|
|
2529
|
+
fireEvent(this, 'selection', { resetSelection: true }, this.zoom);
|
|
2530
|
+
};
|
|
2531
|
+
/**
|
|
2532
|
+
* Zoom into a given portion of the chart given by axis coordinates.
|
|
2533
|
+
*
|
|
2534
|
+
* @private
|
|
2535
|
+
* @function Highcharts.Chart#zoom
|
|
2536
|
+
* @param {Highcharts.SelectEventObject} event
|
|
2537
|
+
*/
|
|
2538
|
+
Chart.prototype.zoom = function (event) {
|
|
2539
|
+
var chart = this, pointer = chart.pointer, mouseDownPos = chart.inverted ?
|
|
2540
|
+
pointer.mouseDownX : pointer.mouseDownY;
|
|
2541
|
+
var displayButton = false, hasZoomed;
|
|
2542
|
+
// If zoom is called with no arguments, reset the axes
|
|
2543
|
+
if (!event || event.resetSelection) {
|
|
2544
|
+
chart.axes.forEach(function (axis) {
|
|
2545
|
+
hasZoomed = axis.zoom();
|
|
2546
|
+
});
|
|
2547
|
+
pointer.initiated = false; // #6804
|
|
2548
|
+
}
|
|
2549
|
+
else { // else, zoom in on all axes
|
|
2550
|
+
event.xAxis.concat(event.yAxis).forEach(function (axisData) {
|
|
2551
|
+
var axis = axisData.axis, axisStartPos = chart.inverted ? axis.left : axis.top, axisEndPos = chart.inverted ?
|
|
2552
|
+
axisStartPos + axis.width : axisStartPos + axis.height, isXAxis = axis.isXAxis;
|
|
2553
|
+
var isWithinPane = false;
|
|
2554
|
+
// Check if zoomed area is within the pane (#1289).
|
|
2555
|
+
// In case of multiple panes only one pane should be zoomed.
|
|
2556
|
+
if ((!isXAxis &&
|
|
2557
|
+
mouseDownPos >= axisStartPos &&
|
|
2558
|
+
mouseDownPos <= axisEndPos) ||
|
|
2559
|
+
isXAxis ||
|
|
2560
|
+
!defined(mouseDownPos)) {
|
|
2561
|
+
isWithinPane = true;
|
|
2562
|
+
}
|
|
2563
|
+
// don't zoom more than minRange
|
|
2564
|
+
if (pointer[isXAxis ? 'zoomX' : 'zoomY'] && isWithinPane) {
|
|
2565
|
+
hasZoomed = axis.zoom(axisData.min, axisData.max);
|
|
2566
|
+
if (axis.displayBtn) {
|
|
2567
|
+
displayButton = true;
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
});
|
|
2571
|
+
}
|
|
2572
|
+
// Show or hide the Reset zoom button
|
|
2573
|
+
var resetZoomButton = chart.resetZoomButton;
|
|
2574
|
+
if (displayButton && !resetZoomButton) {
|
|
2575
|
+
chart.showResetZoom();
|
|
2576
|
+
}
|
|
2577
|
+
else if (!displayButton && isObject(resetZoomButton)) {
|
|
2578
|
+
chart.resetZoomButton = resetZoomButton.destroy();
|
|
2579
|
+
}
|
|
2580
|
+
// Redraw
|
|
2581
|
+
if (hasZoomed) {
|
|
2582
|
+
chart.redraw(pick(chart.options.chart.animation, event && event.animation, chart.pointCount < 100));
|
|
2583
|
+
}
|
|
2584
|
+
};
|
|
2585
|
+
/**
|
|
2586
|
+
* Pan the chart by dragging the mouse across the pane. This function is
|
|
2587
|
+
* called on mouse move, and the distance to pan is computed from chartX
|
|
2588
|
+
* compared to the first chartX position in the dragging operation.
|
|
2589
|
+
*
|
|
2590
|
+
* @private
|
|
2591
|
+
* @function Highcharts.Chart#pan
|
|
2592
|
+
* @param {Highcharts.PointerEventObject} e
|
|
2593
|
+
* @param {string} panning
|
|
2594
|
+
*/
|
|
2595
|
+
Chart.prototype.pan = function (e, panning) {
|
|
2596
|
+
var chart = this, hoverPoints = chart.hoverPoints, panningOptions = (typeof panning === 'object' ?
|
|
2597
|
+
panning :
|
|
2598
|
+
{
|
|
2599
|
+
enabled: panning,
|
|
2600
|
+
type: 'x'
|
|
2601
|
+
}), chartOptions = chart.options.chart, hasMapNavigation = chart.options.mapNavigation &&
|
|
2602
|
+
chart.options.mapNavigation.enabled;
|
|
2603
|
+
if (chartOptions && chartOptions.panning) {
|
|
2604
|
+
chartOptions.panning = panningOptions;
|
|
2605
|
+
}
|
|
2606
|
+
var type = panningOptions.type;
|
|
2607
|
+
var doRedraw;
|
|
2608
|
+
fireEvent(this, 'pan', { originalEvent: e }, function () {
|
|
2609
|
+
// remove active points for shared tooltip
|
|
2610
|
+
if (hoverPoints) {
|
|
2611
|
+
hoverPoints.forEach(function (point) {
|
|
2612
|
+
point.setState();
|
|
2613
|
+
});
|
|
2614
|
+
}
|
|
2615
|
+
var axes = chart.xAxis;
|
|
2616
|
+
if (type === 'xy') {
|
|
2617
|
+
axes = axes.concat(chart.yAxis);
|
|
2618
|
+
}
|
|
2619
|
+
else if (type === 'y') {
|
|
2620
|
+
axes = chart.yAxis;
|
|
2621
|
+
}
|
|
2622
|
+
var nextMousePos = {};
|
|
2623
|
+
axes.forEach(function (axis) {
|
|
2624
|
+
if (!axis.options.panningEnabled || axis.options.isInternal) {
|
|
2625
|
+
return;
|
|
2626
|
+
}
|
|
2627
|
+
var horiz = axis.horiz, mousePos = e[horiz ? 'chartX' : 'chartY'], mouseDown = horiz ? 'mouseDownX' : 'mouseDownY', startPos = chart[mouseDown], halfPointRange = axis.minPointOffset || 0, pointRangeDirection = (axis.reversed && !chart.inverted) ||
|
|
2628
|
+
(!axis.reversed && chart.inverted) ?
|
|
2629
|
+
-1 :
|
|
2630
|
+
1, extremes = axis.getExtremes(), panMin = axis.toValue(startPos - mousePos, true) +
|
|
2631
|
+
halfPointRange * pointRangeDirection, panMax = axis.toValue(startPos + axis.len - mousePos, true) -
|
|
2632
|
+
((halfPointRange * pointRangeDirection) ||
|
|
2633
|
+
(axis.isXAxis && axis.pointRangePadding) ||
|
|
2634
|
+
0), flipped = panMax < panMin, hasVerticalPanning = axis.hasVerticalPanning();
|
|
2635
|
+
var newMin = flipped ? panMax : panMin, newMax = flipped ? panMin : panMax, panningState = axis.panningState, spill;
|
|
2636
|
+
// General calculations of panning state.
|
|
2637
|
+
// This is related to using vertical panning. (#11315).
|
|
2638
|
+
if (hasVerticalPanning &&
|
|
2639
|
+
!axis.isXAxis && (!panningState || panningState.isDirty)) {
|
|
2640
|
+
axis.series.forEach(function (series) {
|
|
2641
|
+
var processedData = series.getProcessedData(true), dataExtremes = series.getExtremes(processedData.yData, true);
|
|
2642
|
+
if (!panningState) {
|
|
2643
|
+
panningState = {
|
|
2644
|
+
startMin: Number.MAX_VALUE,
|
|
2645
|
+
startMax: -Number.MAX_VALUE
|
|
2646
|
+
};
|
|
2647
|
+
}
|
|
2648
|
+
if (isNumber(dataExtremes.dataMin) &&
|
|
2649
|
+
isNumber(dataExtremes.dataMax)) {
|
|
2650
|
+
panningState.startMin = Math.min(pick(series.options.threshold, Infinity), dataExtremes.dataMin, panningState.startMin);
|
|
2651
|
+
panningState.startMax = Math.max(pick(series.options.threshold, -Infinity), dataExtremes.dataMax, panningState.startMax);
|
|
2652
|
+
}
|
|
2653
|
+
});
|
|
2654
|
+
}
|
|
2655
|
+
var paddedMin = Math.min(pick(panningState && panningState.startMin, extremes.dataMin), halfPointRange ?
|
|
2656
|
+
extremes.min :
|
|
2657
|
+
axis.toValue(axis.toPixels(extremes.min) -
|
|
2658
|
+
axis.minPixelPadding));
|
|
2659
|
+
var paddedMax = Math.max(pick(panningState && panningState.startMax, extremes.dataMax), halfPointRange ?
|
|
2660
|
+
extremes.max :
|
|
2661
|
+
axis.toValue(axis.toPixels(extremes.max) +
|
|
2662
|
+
axis.minPixelPadding));
|
|
2663
|
+
axis.panningState = panningState;
|
|
2664
|
+
// It is not necessary to calculate extremes on ordinal axis,
|
|
2665
|
+
// because they are already calculated, so we don't want to
|
|
2666
|
+
// override them.
|
|
2667
|
+
if (!axis.isOrdinal) {
|
|
2668
|
+
// If the new range spills over, either to the min or max,
|
|
2669
|
+
// adjust the new range.
|
|
2670
|
+
spill = paddedMin - newMin;
|
|
2671
|
+
if (spill > 0) {
|
|
2672
|
+
newMax += spill;
|
|
2673
|
+
newMin = paddedMin;
|
|
2674
|
+
}
|
|
2675
|
+
spill = newMax - paddedMax;
|
|
2676
|
+
if (spill > 0) {
|
|
2677
|
+
newMax = paddedMax;
|
|
2678
|
+
newMin -= spill;
|
|
2679
|
+
}
|
|
2680
|
+
// Set new extremes if they are actually new
|
|
2681
|
+
if (axis.series.length &&
|
|
2682
|
+
newMin !== extremes.min &&
|
|
2683
|
+
newMax !== extremes.max &&
|
|
2684
|
+
newMin >= paddedMin &&
|
|
2685
|
+
newMax <= paddedMax) {
|
|
2686
|
+
axis.setExtremes(newMin, newMax, false, false, { trigger: 'pan' });
|
|
2687
|
+
if (!chart.resetZoomButton &&
|
|
2688
|
+
!hasMapNavigation &&
|
|
2689
|
+
// Show reset zoom button only when both newMin and
|
|
2690
|
+
// newMax values are between padded axis range.
|
|
2691
|
+
newMin !== paddedMin &&
|
|
2692
|
+
newMax !== paddedMax &&
|
|
2693
|
+
type.match('y')) {
|
|
2694
|
+
chart.showResetZoom();
|
|
2695
|
+
axis.displayBtn = false;
|
|
2696
|
+
}
|
|
2697
|
+
doRedraw = true;
|
|
2698
|
+
}
|
|
2699
|
+
// set new reference for next run:
|
|
2700
|
+
nextMousePos[mouseDown] = mousePos;
|
|
2701
|
+
}
|
|
2702
|
+
});
|
|
2703
|
+
objectEach(nextMousePos, function (pos, down) {
|
|
2704
|
+
chart[down] = pos;
|
|
2705
|
+
});
|
|
2706
|
+
if (doRedraw) {
|
|
2707
|
+
chart.redraw(false);
|
|
2708
|
+
}
|
|
2709
|
+
css(chart.container, { cursor: 'move' });
|
|
2710
|
+
});
|
|
2711
|
+
};
|
|
2712
|
+
return Chart;
|
|
2713
|
+
}());
|
|
2714
|
+
extend(Chart.prototype, {
|
|
2715
|
+
// Hook for adding callbacks in modules
|
|
2716
|
+
callbacks: [],
|
|
2717
|
+
/**
|
|
2718
|
+
* These collections (arrays) implement `Chart.addSomethig` method used in
|
|
2719
|
+
* chart.update() to create new object in the collection. Equivalent for
|
|
2720
|
+
* deleting is resolved by simple `Somethig.remove()`.
|
|
2721
|
+
*
|
|
2722
|
+
* Note: We need to define these references after initializers are bound to
|
|
2723
|
+
* chart's prototype.
|
|
2724
|
+
*/
|
|
2725
|
+
collectionsWithInit: {
|
|
2726
|
+
// collectionName: [ initializingMethod, [extraArguments] ]
|
|
2727
|
+
xAxis: [Chart.prototype.addAxis, [true]],
|
|
2728
|
+
yAxis: [Chart.prototype.addAxis, [false]],
|
|
2729
|
+
series: [Chart.prototype.addSeries]
|
|
2730
|
+
},
|
|
2731
|
+
/**
|
|
2732
|
+
* These collections (arrays) implement update() methods with support for
|
|
2733
|
+
* one-to-one option.
|
|
2734
|
+
*/
|
|
2735
|
+
collectionsWithUpdate: [
|
|
2736
|
+
'xAxis',
|
|
2737
|
+
'yAxis',
|
|
2738
|
+
'series'
|
|
2739
|
+
],
|
|
2740
|
+
/**
|
|
2741
|
+
* These properties cause isDirtyBox to be set to true when updating. Can be
|
|
2742
|
+
* extended from plugins.
|
|
2743
|
+
*/
|
|
2744
|
+
propsRequireDirtyBox: [
|
|
2745
|
+
'backgroundColor',
|
|
2746
|
+
'borderColor',
|
|
2747
|
+
'borderWidth',
|
|
2748
|
+
'borderRadius',
|
|
2749
|
+
'plotBackgroundColor',
|
|
2750
|
+
'plotBackgroundImage',
|
|
2751
|
+
'plotBorderColor',
|
|
2752
|
+
'plotBorderWidth',
|
|
2753
|
+
'plotShadow',
|
|
2754
|
+
'shadow'
|
|
2755
|
+
],
|
|
2756
|
+
/**
|
|
2757
|
+
* These properties require a full reflow of chart elements, best
|
|
2758
|
+
* implemented through running `Chart.setSize` internally (#8190).
|
|
2759
|
+
* @type {Array}
|
|
2760
|
+
*/
|
|
2761
|
+
propsRequireReflow: [
|
|
2762
|
+
'margin',
|
|
2763
|
+
'marginTop',
|
|
2764
|
+
'marginRight',
|
|
2765
|
+
'marginBottom',
|
|
2766
|
+
'marginLeft',
|
|
2767
|
+
'spacing',
|
|
2768
|
+
'spacingTop',
|
|
2769
|
+
'spacingRight',
|
|
2770
|
+
'spacingBottom',
|
|
2771
|
+
'spacingLeft'
|
|
2772
|
+
],
|
|
2773
|
+
/**
|
|
2774
|
+
* These properties cause all series to be updated when updating. Can be
|
|
2775
|
+
* extended from plugins.
|
|
2776
|
+
*/
|
|
2777
|
+
propsRequireUpdateSeries: [
|
|
2778
|
+
'chart.inverted',
|
|
2779
|
+
'chart.polar',
|
|
2780
|
+
'chart.ignoreHiddenSeries',
|
|
2781
|
+
'chart.type',
|
|
2782
|
+
'colors',
|
|
2783
|
+
'plotOptions',
|
|
2784
|
+
'time',
|
|
2785
|
+
'tooltip'
|
|
2786
|
+
]
|
|
2787
|
+
});
|
|
2788
|
+
/* *
|
|
2789
|
+
*
|
|
2790
|
+
* Default Export
|
|
2791
|
+
*
|
|
2792
|
+
* */
|
|
2793
|
+
export default Chart;
|
|
2794
|
+
/* *
|
|
2795
|
+
*
|
|
2796
|
+
* API Declarations
|
|
2797
|
+
*
|
|
2798
|
+
* */
|
|
2799
|
+
/**
|
|
2800
|
+
* Callback for chart constructors.
|
|
2801
|
+
*
|
|
2802
|
+
* @callback Highcharts.ChartCallbackFunction
|
|
2803
|
+
*
|
|
2804
|
+
* @param {Highcharts.Chart} chart
|
|
2805
|
+
* Created chart.
|
|
2806
|
+
*/
|
|
2807
|
+
/**
|
|
2808
|
+
* Format a number and return a string based on input settings.
|
|
2809
|
+
*
|
|
2810
|
+
* @callback Highcharts.NumberFormatterCallbackFunction
|
|
2811
|
+
*
|
|
2812
|
+
* @param {number} number
|
|
2813
|
+
* The input number to format.
|
|
2814
|
+
*
|
|
2815
|
+
* @param {number} decimals
|
|
2816
|
+
* The amount of decimals. A value of -1 preserves the amount in the
|
|
2817
|
+
* input number.
|
|
2818
|
+
*
|
|
2819
|
+
* @param {string} [decimalPoint]
|
|
2820
|
+
* The decimal point, defaults to the one given in the lang options, or
|
|
2821
|
+
* a dot.
|
|
2822
|
+
*
|
|
2823
|
+
* @param {string} [thousandsSep]
|
|
2824
|
+
* The thousands separator, defaults to the one given in the lang
|
|
2825
|
+
* options, or a space character.
|
|
2826
|
+
*
|
|
2827
|
+
* @return {string} The formatted number.
|
|
2828
|
+
*/
|
|
2829
|
+
/**
|
|
2830
|
+
* The chart title. The title has an `update` method that allows modifying the
|
|
2831
|
+
* options directly or indirectly via `chart.update`.
|
|
2832
|
+
*
|
|
2833
|
+
* @interface Highcharts.TitleObject
|
|
2834
|
+
* @extends Highcharts.SVGElement
|
|
2835
|
+
*/ /**
|
|
2836
|
+
* Modify options for the title.
|
|
2837
|
+
*
|
|
2838
|
+
* @function Highcharts.TitleObject#update
|
|
2839
|
+
*
|
|
2840
|
+
* @param {Highcharts.TitleOptions} titleOptions
|
|
2841
|
+
* Options to modify.
|
|
2842
|
+
*
|
|
2843
|
+
* @param {boolean} [redraw=true]
|
|
2844
|
+
* Whether to redraw the chart after the title is altered. If doing more
|
|
2845
|
+
* operations on the chart, it is a good idea to set redraw to false and
|
|
2846
|
+
* call {@link Chart#redraw} after.
|
|
2847
|
+
*/
|
|
2848
|
+
/**
|
|
2849
|
+
* The chart subtitle. The subtitle has an `update` method that
|
|
2850
|
+
* allows modifying the options directly or indirectly via
|
|
2851
|
+
* `chart.update`.
|
|
2852
|
+
*
|
|
2853
|
+
* @interface Highcharts.SubtitleObject
|
|
2854
|
+
* @extends Highcharts.SVGElement
|
|
2855
|
+
*/ /**
|
|
2856
|
+
* Modify options for the subtitle.
|
|
2857
|
+
*
|
|
2858
|
+
* @function Highcharts.SubtitleObject#update
|
|
2859
|
+
*
|
|
2860
|
+
* @param {Highcharts.SubtitleOptions} subtitleOptions
|
|
2861
|
+
* Options to modify.
|
|
2862
|
+
*
|
|
2863
|
+
* @param {boolean} [redraw=true]
|
|
2864
|
+
* Whether to redraw the chart after the subtitle is altered. If doing
|
|
2865
|
+
* more operations on the chart, it is a good idea to set redraw to false
|
|
2866
|
+
* and call {@link Chart#redraw} after.
|
|
2867
|
+
*/
|
|
2868
|
+
/**
|
|
2869
|
+
* The chart caption. The caption has an `update` method that
|
|
2870
|
+
* allows modifying the options directly or indirectly via
|
|
2871
|
+
* `chart.update`.
|
|
2872
|
+
*
|
|
2873
|
+
* @interface Highcharts.CaptionObject
|
|
2874
|
+
* @extends Highcharts.SVGElement
|
|
2875
|
+
*/ /**
|
|
2876
|
+
* Modify options for the caption.
|
|
2877
|
+
*
|
|
2878
|
+
* @function Highcharts.CaptionObject#update
|
|
2879
|
+
*
|
|
2880
|
+
* @param {Highcharts.CaptionOptions} captionOptions
|
|
2881
|
+
* Options to modify.
|
|
2882
|
+
*
|
|
2883
|
+
* @param {boolean} [redraw=true]
|
|
2884
|
+
* Whether to redraw the chart after the caption is altered. If doing
|
|
2885
|
+
* more operations on the chart, it is a good idea to set redraw to false
|
|
2886
|
+
* and call {@link Chart#redraw} after.
|
|
2887
|
+
*/
|
|
2888
|
+
/**
|
|
2889
|
+
* @interface Highcharts.ChartIsInsideOptionsObject
|
|
2890
|
+
*/ /**
|
|
2891
|
+
* @name Highcharts.ChartIsInsideOptionsObject#ignoreX
|
|
2892
|
+
* @type {boolean|undefined}
|
|
2893
|
+
*/ /**
|
|
2894
|
+
* @name Highcharts.ChartIsInsideOptionsObject#ignoreY
|
|
2895
|
+
* @type {boolean|undefined}
|
|
2896
|
+
*/ /**
|
|
2897
|
+
* @name Highcharts.ChartIsInsideOptionsObject#inverted
|
|
2898
|
+
* @type {boolean|undefined}
|
|
2899
|
+
*/ /**
|
|
2900
|
+
* @name Highcharts.ChartIsInsideOptionsObject#paneCoordinates
|
|
2901
|
+
* @type {boolean|undefined}
|
|
2902
|
+
*/ /**
|
|
2903
|
+
* @name Highcharts.ChartIsInsideOptionsObject#series
|
|
2904
|
+
* @type {Highcharts.Series|undefined}
|
|
2905
|
+
*/ /**
|
|
2906
|
+
* @name Highcharts.ChartIsInsideOptionsObject#visiblePlotOnly
|
|
2907
|
+
* @type {boolean|undefined}
|
|
2908
|
+
*/
|
|
2909
|
+
''; // keeps doclets above in JS file
|