@highcharts/grid-pro 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/css/grid-pro.css +1756 -0
- package/es-modules/Accessibility/A11yI18n.d.ts +95 -0
- package/es-modules/Accessibility/A11yI18n.js +290 -0
- package/es-modules/Accessibility/Accessibility.d.ts +116 -0
- package/es-modules/Accessibility/Accessibility.js +402 -0
- package/es-modules/Accessibility/AccessibilityComponent.d.ts +97 -0
- package/es-modules/Accessibility/AccessibilityComponent.js +147 -0
- package/es-modules/Accessibility/Components/AnnotationsA11y.d.ts +43 -0
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +160 -0
- package/es-modules/Accessibility/Components/ContainerComponent.d.ts +48 -0
- package/es-modules/Accessibility/Components/ContainerComponent.js +142 -0
- package/es-modules/Accessibility/Components/InfoRegionsComponent.d.ts +144 -0
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +555 -0
- package/es-modules/Accessibility/Components/LegendComponent.d.ts +124 -0
- package/es-modules/Accessibility/Components/LegendComponent.js +474 -0
- package/es-modules/Accessibility/Components/MenuComponent.d.ts +93 -0
- package/es-modules/Accessibility/Components/MenuComponent.js +430 -0
- package/es-modules/Accessibility/Components/NavigatorComponent.d.ts +57 -0
- package/es-modules/Accessibility/Components/NavigatorComponent.js +235 -0
- package/es-modules/Accessibility/Components/RangeSelectorComponent.d.ts +126 -0
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +473 -0
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.d.ts +18 -0
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +234 -0
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.d.ts +87 -0
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +309 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.d.ts +53 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +130 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.d.ts +28 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +415 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.d.ts +114 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +721 -0
- package/es-modules/Accessibility/Components/ZoomComponent.d.ts +96 -0
- package/es-modules/Accessibility/Components/ZoomComponent.js +314 -0
- package/es-modules/Accessibility/FocusBorder.d.ts +40 -0
- package/es-modules/Accessibility/FocusBorder.js +301 -0
- package/es-modules/Accessibility/HighContrastMode.d.ts +35 -0
- package/es-modules/Accessibility/HighContrastMode.js +100 -0
- package/es-modules/Accessibility/HighContrastTheme.d.ts +11 -0
- package/es-modules/Accessibility/HighContrastTheme.js +212 -0
- package/es-modules/Accessibility/KeyboardNavigation.d.ts +133 -0
- package/es-modules/Accessibility/KeyboardNavigation.js +450 -0
- package/es-modules/Accessibility/KeyboardNavigationHandler.d.ts +48 -0
- package/es-modules/Accessibility/KeyboardNavigationHandler.js +126 -0
- package/es-modules/Accessibility/Options/A11yDefaults.d.ts +68 -0
- package/es-modules/Accessibility/Options/A11yDefaults.js +971 -0
- package/es-modules/Accessibility/Options/DeprecatedOptions.d.ts +22 -0
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +265 -0
- package/es-modules/Accessibility/Options/LangDefaults.d.ts +4 -0
- package/es-modules/Accessibility/Options/LangDefaults.js +440 -0
- package/es-modules/Accessibility/ProxyElement.d.ts +78 -0
- package/es-modules/Accessibility/ProxyElement.js +223 -0
- package/es-modules/Accessibility/ProxyProvider.d.ts +90 -0
- package/es-modules/Accessibility/ProxyProvider.js +315 -0
- package/es-modules/Accessibility/Utils/Announcer.d.ts +26 -0
- package/es-modules/Accessibility/Utils/Announcer.js +90 -0
- package/es-modules/Accessibility/Utils/ChartUtilities.d.ts +90 -0
- package/es-modules/Accessibility/Utils/ChartUtilities.js +298 -0
- package/es-modules/Accessibility/Utils/DOMElementProvider.d.ts +20 -0
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +69 -0
- package/es-modules/Accessibility/Utils/EventProvider.d.ts +26 -0
- package/es-modules/Accessibility/Utils/EventProvider.js +65 -0
- package/es-modules/Accessibility/Utils/HTMLUtilities.d.ts +108 -0
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +319 -0
- package/es-modules/Core/Animation/AnimationUtilities.d.ts +107 -0
- package/es-modules/Core/Animation/AnimationUtilities.js +200 -0
- package/es-modules/Core/Animation/Fx.d.ts +130 -0
- package/es-modules/Core/Animation/Fx.js +388 -0
- package/es-modules/Core/Chart/Chart.d.ts +1009 -0
- package/es-modules/Core/Chart/Chart.js +3008 -0
- package/es-modules/Core/Chart/Chart3D.d.ts +276 -0
- package/es-modules/Core/Chart/Chart3D.js +1686 -0
- package/es-modules/Core/Chart/ChartDefaults.d.ts +8 -0
- package/es-modules/Core/Chart/ChartDefaults.js +1304 -0
- package/es-modules/Core/Chart/ChartNavigationComposition.d.ts +55 -0
- package/es-modules/Core/Chart/ChartNavigationComposition.js +90 -0
- package/es-modules/Core/Chart/GanttChart.d.ts +74 -0
- package/es-modules/Core/Chart/GanttChart.js +189 -0
- package/es-modules/Core/Chart/MapChart.d.ts +132 -0
- package/es-modules/Core/Chart/MapChart.js +232 -0
- package/es-modules/Core/Chart/StockChart.d.ts +117 -0
- package/es-modules/Core/Chart/StockChart.js +641 -0
- package/es-modules/Core/Color/Color.d.ts +112 -0
- package/es-modules/Core/Color/Color.js +418 -0
- package/es-modules/Core/Color/Palettes.d.ts +84 -0
- package/es-modules/Core/Color/Palettes.js +23 -0
- package/es-modules/Core/Defaults.d.ts +42 -0
- package/es-modules/Core/Defaults.js +2977 -0
- package/es-modules/Core/Foundation.d.ts +19 -0
- package/es-modules/Core/Foundation.js +63 -0
- package/es-modules/Core/Geometry/CircleUtilities.d.ts +189 -0
- package/es-modules/Core/Geometry/CircleUtilities.js +388 -0
- package/es-modules/Core/Geometry/GeometryUtilities.d.ts +48 -0
- package/es-modules/Core/Geometry/GeometryUtilities.js +105 -0
- package/es-modules/Core/Geometry/PolygonClip.d.ts +19 -0
- package/es-modules/Core/Geometry/PolygonClip.js +96 -0
- package/es-modules/Core/Globals.d.ts +110 -0
- package/es-modules/Core/Globals.js +127 -0
- package/es-modules/Core/HttpUtilities.d.ts +61 -0
- package/es-modules/Core/HttpUtilities.js +214 -0
- package/es-modules/Core/MSPointer.d.ts +74 -0
- package/es-modules/Core/MSPointer.js +218 -0
- package/es-modules/Core/Math3D.d.ts +117 -0
- package/es-modules/Core/Math3D.js +250 -0
- package/es-modules/Core/Pointer.d.ts +590 -0
- package/es-modules/Core/Pointer.js +1631 -0
- package/es-modules/Core/Renderer/HTML/AST.d.ts +163 -0
- package/es-modules/Core/Renderer/HTML/AST.js +562 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.d.ts +76 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +471 -0
- package/es-modules/Core/Renderer/RendererRegistry.d.ts +29 -0
- package/es-modules/Core/Renderer/RendererRegistry.js +76 -0
- package/es-modules/Core/Renderer/RendererUtilities.d.ts +26 -0
- package/es-modules/Core/Renderer/RendererUtilities.js +172 -0
- package/es-modules/Core/Responsive.d.ts +55 -0
- package/es-modules/Core/Responsive.js +260 -0
- package/es-modules/Core/Templating.d.ts +125 -0
- package/es-modules/Core/Templating.js +428 -0
- package/es-modules/Core/Time.d.ts +69 -0
- package/es-modules/Core/Time.js +172 -0
- package/es-modules/Core/Tooltip.d.ts +297 -0
- package/es-modules/Core/Tooltip.js +1377 -0
- package/es-modules/Core/Utilities.d.ts +770 -0
- package/es-modules/Core/Utilities.js +1989 -0
- package/es-modules/Data/ColumnUtils.d.ts +87 -0
- package/es-modules/Data/ColumnUtils.js +140 -0
- package/es-modules/Data/Connectors/CSVConnector.d.ts +63 -0
- package/es-modules/Data/Connectors/CSVConnector.js +149 -0
- package/es-modules/Data/Connectors/CSVConnectorOptions.d.ts +149 -0
- package/es-modules/Data/Connectors/DataConnector.d.ts +204 -0
- package/es-modules/Data/Connectors/DataConnector.js +345 -0
- package/es-modules/Data/Connectors/DataConnectorOptions.d.ts +87 -0
- package/es-modules/Data/Connectors/DataConnectorType.d.ts +45 -0
- package/es-modules/Data/Connectors/GoogleSheetsConnector.d.ts +65 -0
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +226 -0
- package/es-modules/Data/Connectors/GoogleSheetsConnectorOptions.d.ts +167 -0
- package/es-modules/Data/Connectors/HTMLTableConnector.d.ts +77 -0
- package/es-modules/Data/Connectors/HTMLTableConnector.js +119 -0
- package/es-modules/Data/Connectors/HTMLTableConnectorOptions.d.ts +49 -0
- package/es-modules/Data/Connectors/JSONConnector.d.ts +64 -0
- package/es-modules/Data/Connectors/JSONConnector.js +156 -0
- package/es-modules/Data/Connectors/JSONConnectorOptions.d.ts +185 -0
- package/es-modules/Data/Converters/CSVConverter.d.ts +64 -0
- package/es-modules/Data/Converters/CSVConverter.js +374 -0
- package/es-modules/Data/Converters/CSVConverterOptions.d.ts +53 -0
- package/es-modules/Data/Converters/DataConverter.d.ts +168 -0
- package/es-modules/Data/Converters/DataConverter.js +387 -0
- package/es-modules/Data/Converters/DataConverterType.d.ts +40 -0
- package/es-modules/Data/Converters/DataConverterUtils.d.ts +82 -0
- package/es-modules/Data/Converters/DataConverterUtils.js +216 -0
- package/es-modules/Data/Converters/GoogleSheetsConverter.d.ts +46 -0
- package/es-modules/Data/Converters/GoogleSheetsConverter.js +135 -0
- package/es-modules/Data/Converters/GoogleSheetsConverterOptions.d.ts +52 -0
- package/es-modules/Data/Converters/HTMLTableConverter.d.ts +72 -0
- package/es-modules/Data/Converters/HTMLTableConverter.js +362 -0
- package/es-modules/Data/Converters/HTMLTableConverterOptions.d.ts +51 -0
- package/es-modules/Data/Converters/JSONConverter.d.ts +99 -0
- package/es-modules/Data/Converters/JSONConverter.js +239 -0
- package/es-modules/Data/Converters/JSONConverterOptions.d.ts +52 -0
- package/es-modules/Data/DataCursor.d.ts +176 -0
- package/es-modules/Data/DataCursor.js +379 -0
- package/es-modules/Data/DataEvent.d.ts +81 -0
- package/es-modules/Data/DataEvent.js +14 -0
- package/es-modules/Data/DataPool.d.ts +130 -0
- package/es-modules/Data/DataPool.js +257 -0
- package/es-modules/Data/DataPoolOptions.d.ts +66 -0
- package/es-modules/Data/DataTable.d.ts +563 -0
- package/es-modules/Data/DataTable.js +930 -0
- package/es-modules/Data/DataTableCore.d.ts +165 -0
- package/es-modules/Data/DataTableCore.js +316 -0
- package/es-modules/Data/DataTableOptions.d.ts +25 -0
- package/es-modules/Data/DataTableOptions.js +15 -0
- package/es-modules/Data/Formula/Formula.d.ts +21 -0
- package/es-modules/Data/Formula/Formula.js +54 -0
- package/es-modules/Data/Formula/FormulaParser.d.ts +31 -0
- package/es-modules/Data/Formula/FormulaParser.js +488 -0
- package/es-modules/Data/Formula/FormulaProcessor.d.ts +155 -0
- package/es-modules/Data/Formula/FormulaProcessor.js +529 -0
- package/es-modules/Data/Formula/FormulaTypes.d.ts +138 -0
- package/es-modules/Data/Formula/FormulaTypes.js +135 -0
- package/es-modules/Data/Formula/Functions/ABS.d.ts +19 -0
- package/es-modules/Data/Formula/Functions/ABS.js +67 -0
- package/es-modules/Data/Formula/Functions/AND.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/AND.js +59 -0
- package/es-modules/Data/Formula/Functions/AVERAGE.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/AVERAGE.js +74 -0
- package/es-modules/Data/Formula/Functions/AVERAGEA.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/AVERAGEA.js +90 -0
- package/es-modules/Data/Formula/Functions/COUNT.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/COUNT.js +65 -0
- package/es-modules/Data/Formula/Functions/COUNTA.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/COUNTA.js +71 -0
- package/es-modules/Data/Formula/Functions/IF.d.ts +21 -0
- package/es-modules/Data/Formula/Functions/IF.js +54 -0
- package/es-modules/Data/Formula/Functions/ISNA.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/ISNA.js +52 -0
- package/es-modules/Data/Formula/Functions/MAX.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/MAX.js +69 -0
- package/es-modules/Data/Formula/Functions/MEDIAN.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/MEDIAN.js +78 -0
- package/es-modules/Data/Formula/Functions/MIN.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/MIN.js +69 -0
- package/es-modules/Data/Formula/Functions/MOD.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/MOD.js +63 -0
- package/es-modules/Data/Formula/Functions/MODE.d.ts +41 -0
- package/es-modules/Data/Formula/Functions/MODE.js +149 -0
- package/es-modules/Data/Formula/Functions/NOT.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/NOT.js +60 -0
- package/es-modules/Data/Formula/Functions/OR.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/OR.js +62 -0
- package/es-modules/Data/Formula/Functions/PRODUCT.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/PRODUCT.js +68 -0
- package/es-modules/Data/Formula/Functions/SUM.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/SUM.js +65 -0
- package/es-modules/Data/Formula/Functions/XOR.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/XOR.js +81 -0
- package/es-modules/Data/Modifiers/ChainModifier.d.ts +128 -0
- package/es-modules/Data/Modifiers/ChainModifier.js +231 -0
- package/es-modules/Data/Modifiers/ChainModifierOptions.d.ts +20 -0
- package/es-modules/Data/Modifiers/ChainModifierOptions.js +14 -0
- package/es-modules/Data/Modifiers/DataModifier.d.ts +117 -0
- package/es-modules/Data/Modifiers/DataModifier.js +202 -0
- package/es-modules/Data/Modifiers/DataModifierEvent.d.ts +28 -0
- package/es-modules/Data/Modifiers/DataModifierEvent.js +15 -0
- package/es-modules/Data/Modifiers/DataModifierOptions.d.ts +11 -0
- package/es-modules/Data/Modifiers/DataModifierOptions.js +15 -0
- package/es-modules/Data/Modifiers/DataModifierType.d.ts +44 -0
- package/es-modules/Data/Modifiers/FilterModifier.d.ts +53 -0
- package/es-modules/Data/Modifiers/FilterModifier.js +172 -0
- package/es-modules/Data/Modifiers/FilterModifierOptions.d.ts +110 -0
- package/es-modules/Data/Modifiers/FilterModifierOptions.js +14 -0
- package/es-modules/Data/Modifiers/InvertModifier.d.ts +48 -0
- package/es-modules/Data/Modifiers/InvertModifier.js +116 -0
- package/es-modules/Data/Modifiers/InvertModifierOptions.d.ts +11 -0
- package/es-modules/Data/Modifiers/InvertModifierOptions.js +15 -0
- package/es-modules/Data/Modifiers/MathModifier.d.ts +68 -0
- package/es-modules/Data/Modifiers/MathModifier.js +165 -0
- package/es-modules/Data/Modifiers/MathModifierOptions.d.ts +50 -0
- package/es-modules/Data/Modifiers/MathModifierOptions.js +14 -0
- package/es-modules/Data/Modifiers/RangeModifier.d.ts +46 -0
- package/es-modules/Data/Modifiers/RangeModifier.js +96 -0
- package/es-modules/Data/Modifiers/RangeModifierOptions.d.ts +22 -0
- package/es-modules/Data/Modifiers/RangeModifierOptions.js +15 -0
- package/es-modules/Data/Modifiers/SortModifier.d.ts +54 -0
- package/es-modules/Data/Modifiers/SortModifier.js +144 -0
- package/es-modules/Data/Modifiers/SortModifierOptions.d.ts +44 -0
- package/es-modules/Data/Modifiers/SortModifierOptions.js +14 -0
- package/es-modules/Grid/Core/Accessibility/A11yOptions.d.ts +148 -0
- package/es-modules/Grid/Core/Accessibility/A11yOptions.js +17 -0
- package/es-modules/Grid/Core/Accessibility/Accessibility.d.ts +115 -0
- package/es-modules/Grid/Core/Accessibility/Accessibility.js +231 -0
- package/es-modules/Grid/Core/Credits.d.ts +57 -0
- package/es-modules/Grid/Core/Credits.js +125 -0
- package/es-modules/Grid/Core/Defaults.d.ts +20 -0
- package/es-modules/Grid/Core/Defaults.js +148 -0
- package/es-modules/Grid/Core/Globals.d.ts +103 -0
- package/es-modules/Grid/Core/Globals.js +134 -0
- package/es-modules/Grid/Core/Grid.d.ts +295 -0
- package/es-modules/Grid/Core/Grid.js +730 -0
- package/es-modules/Grid/Core/GridUtils.d.ts +110 -0
- package/es-modules/Grid/Core/GridUtils.js +191 -0
- package/es-modules/Grid/Core/Options.d.ts +599 -0
- package/es-modules/Grid/Core/Options.js +16 -0
- package/es-modules/Grid/Core/Pagination/Icons.d.ts +7 -0
- package/es-modules/Grid/Core/Pagination/Icons.js +7 -0
- package/es-modules/Grid/Core/Pagination/Pagination.d.ts +278 -0
- package/es-modules/Grid/Core/Pagination/Pagination.js +842 -0
- package/es-modules/Grid/Core/Pagination/PaginationOptions.d.ts +228 -0
- package/es-modules/Grid/Core/Querying/FilteringController.d.ts +66 -0
- package/es-modules/Grid/Core/Querying/FilteringController.js +256 -0
- package/es-modules/Grid/Core/Querying/PaginationController.d.ts +50 -0
- package/es-modules/Grid/Core/Querying/PaginationController.js +101 -0
- package/es-modules/Grid/Core/Querying/QueryingController.d.ts +58 -0
- package/es-modules/Grid/Core/Querying/QueryingController.js +127 -0
- package/es-modules/Grid/Core/Querying/SortingController.d.ts +67 -0
- package/es-modules/Grid/Core/Querying/SortingController.js +136 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.d.ts +114 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.js +351 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.d.ts +14 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.js +86 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.d.ts +19 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.js +80 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.d.ts +52 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.js +81 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.d.ts +56 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.js +170 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnsResizer.d.ts +55 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnsResizer.js +182 -0
- package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.d.ts +87 -0
- package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.js +346 -0
- package/es-modules/Grid/Core/Table/Body/TableCell.d.ts +88 -0
- package/es-modules/Grid/Core/Table/Body/TableCell.js +231 -0
- package/es-modules/Grid/Core/Table/Body/TableRow.d.ts +79 -0
- package/es-modules/Grid/Core/Table/Body/TableRow.js +177 -0
- package/es-modules/Grid/Core/Table/Cell.d.ts +92 -0
- package/es-modules/Grid/Core/Table/Cell.js +223 -0
- package/es-modules/Grid/Core/Table/CellContent/CellContent.d.ts +30 -0
- package/es-modules/Grid/Core/Table/CellContent/CellContent.js +40 -0
- package/es-modules/Grid/Core/Table/CellContent/TextContent.d.ts +19 -0
- package/es-modules/Grid/Core/Table/CellContent/TextContent.js +98 -0
- package/es-modules/Grid/Core/Table/Column.d.ts +136 -0
- package/es-modules/Grid/Core/Table/Column.js +230 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.d.ts +7 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.js +62 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.d.ts +32 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.js +68 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.d.ts +7 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.js +53 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.d.ts +7 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.js +63 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.d.ts +92 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.js +194 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.d.ts +68 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.js +187 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.d.ts +29 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.js +77 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/FilterMenuButton.d.ts +13 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/FilterMenuButton.js +79 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.d.ts +12 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.js +71 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuPopup.d.ts +12 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuPopup.js +66 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.d.ts +25 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.js +65 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.d.ts +12 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.js +81 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.d.ts +12 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.js +80 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.d.ts +11 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.js +81 -0
- package/es-modules/Grid/Core/Table/Header/HeaderCell.d.ts +70 -0
- package/es-modules/Grid/Core/Table/Header/HeaderCell.js +225 -0
- package/es-modules/Grid/Core/Table/Header/HeaderRow.d.ts +53 -0
- package/es-modules/Grid/Core/Table/Header/HeaderRow.js +182 -0
- package/es-modules/Grid/Core/Table/Header/TableHeader.d.ts +65 -0
- package/es-modules/Grid/Core/Table/Header/TableHeader.js +159 -0
- package/es-modules/Grid/Core/Table/Row.d.ts +76 -0
- package/es-modules/Grid/Core/Table/Row.js +131 -0
- package/es-modules/Grid/Core/Table/Table.d.ts +181 -0
- package/es-modules/Grid/Core/Table/Table.js +399 -0
- package/es-modules/Grid/Core/UI/Button.d.ts +31 -0
- package/es-modules/Grid/Core/UI/Button.js +16 -0
- package/es-modules/Grid/Core/UI/ContextMenu.d.ts +38 -0
- package/es-modules/Grid/Core/UI/ContextMenu.js +132 -0
- package/es-modules/Grid/Core/UI/ContextMenuButton.d.ts +126 -0
- package/es-modules/Grid/Core/UI/ContextMenuButton.js +183 -0
- package/es-modules/Grid/Core/UI/Popup.d.ts +149 -0
- package/es-modules/Grid/Core/UI/Popup.js +271 -0
- package/es-modules/Grid/Core/UI/SvgIcons.d.ts +53 -0
- package/es-modules/Grid/Core/UI/SvgIcons.js +158 -0
- package/es-modules/Grid/Core/UI/Toolbar.d.ts +16 -0
- package/es-modules/Grid/Core/UI/Toolbar.js +16 -0
- package/es-modules/Grid/Core/UI/ToolbarButton.d.ts +135 -0
- package/es-modules/Grid/Core/UI/ToolbarButton.js +191 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditMode.d.ts +112 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditing.d.ts +80 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditing.js +211 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.d.ts +123 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.js +198 -0
- package/es-modules/Grid/Pro/CellRendering/CellContentPro.d.ts +23 -0
- package/es-modules/Grid/Pro/CellRendering/CellContentPro.js +45 -0
- package/es-modules/Grid/Pro/CellRendering/CellRenderer.d.ts +50 -0
- package/es-modules/Grid/Pro/CellRendering/CellRenderer.js +41 -0
- package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.d.ts +18 -0
- package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.js +58 -0
- package/es-modules/Grid/Pro/CellRendering/CellRendererType.d.ts +48 -0
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.d.ts +18 -0
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.js +79 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.d.ts +30 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.js +122 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.d.ts +12 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.js +39 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.d.ts +66 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.js +145 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.d.ts +12 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.js +38 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.d.ts +58 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.js +158 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.d.ts +58 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.js +173 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.d.ts +28 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.js +157 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.d.ts +58 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.js +168 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.d.ts +13 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.js +41 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.d.ts +50 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.js +65 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.d.ts +37 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.js +65 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.d.ts +26 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.js +16 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.d.ts +37 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js +64 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.d.ts +52 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js +64 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.d.ts +74 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.js +66 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.d.ts +45 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.js +89 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.d.ts +54 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.js +65 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.d.ts +43 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.js +74 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.d.ts +37 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js +64 -0
- package/es-modules/Grid/Pro/ColumnTypes/ColumnDataType.d.ts +29 -0
- package/es-modules/Grid/Pro/ColumnTypes/Validator.d.ts +118 -0
- package/es-modules/Grid/Pro/ColumnTypes/Validator.js +270 -0
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.d.ts +32 -0
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.js +63 -0
- package/es-modules/Grid/Pro/Credits/CreditsPro.d.ts +35 -0
- package/es-modules/Grid/Pro/Credits/CreditsPro.js +112 -0
- package/es-modules/Grid/Pro/Credits/CreditsProComposition.d.ts +28 -0
- package/es-modules/Grid/Pro/Credits/CreditsProComposition.js +61 -0
- package/es-modules/Grid/Pro/Export/Exporting.d.ts +68 -0
- package/es-modules/Grid/Pro/Export/Exporting.js +202 -0
- package/es-modules/Grid/Pro/Export/ExportingComposition.d.ts +68 -0
- package/es-modules/Grid/Pro/Export/ExportingComposition.js +55 -0
- package/es-modules/Grid/Pro/GridEvents.d.ts +119 -0
- package/es-modules/Grid/Pro/GridEvents.js +107 -0
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.d.ts +75 -0
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.js +76 -0
- package/es-modules/Grid/Pro/highcharts.d.ts +7 -0
- package/es-modules/Grid/index.d.ts +5 -0
- package/es-modules/Grid/index.js +19 -0
- package/es-modules/Shared/BaseForm.d.ts +49 -0
- package/es-modules/Shared/BaseForm.js +126 -0
- package/es-modules/Shared/DownloadURL.d.ts +85 -0
- package/es-modules/Shared/DownloadURL.js +198 -0
- package/es-modules/Shared/LangOptionsCore.d.ts +27 -0
- package/es-modules/Shared/TimeBase.d.ts +353 -0
- package/es-modules/Shared/TimeBase.js +830 -0
- package/es-modules/Shared/Types.d.ts +48 -0
- package/es-modules/masters/grid-pro.src.d.ts +99 -0
- package/es-modules/masters/grid-pro.src.js +129 -0
- package/grid-pro.d.ts +50 -0
- package/grid-pro.js +12 -0
- package/grid-pro.js.map +1 -0
- package/grid-pro.src.d.ts +50 -0
- package/grid-pro.src.js +26623 -0
- package/package.json +21 -0
|
@@ -0,0 +1,1009 @@
|
|
|
1
|
+
import type { AlignObject, AlignValue, VerticalAlignValue } from '../Renderer/AlignObject';
|
|
2
|
+
import type AnimationOptions from '../Animation/AnimationOptions';
|
|
3
|
+
import type AxisOptions from '../Axis/AxisOptions';
|
|
4
|
+
import type AxisType from '../Axis/AxisType';
|
|
5
|
+
import type BBoxObject from '../Renderer/BBoxObject';
|
|
6
|
+
import type { CSSObject, CursorValue } from '../Renderer/CSSObject';
|
|
7
|
+
import type { EventCallback } from '../Callback';
|
|
8
|
+
import type { NumberFormatterCallbackFunction, Options } from '../Options';
|
|
9
|
+
import type ChartBase from './ChartBase';
|
|
10
|
+
import type ChartOptions from './ChartOptions';
|
|
11
|
+
import type { ChartPanningOptions, ChartZoomingOptions } from './ChartOptions';
|
|
12
|
+
import type ColorAxis from '../Axis/Color/ColorAxis';
|
|
13
|
+
import type { DeepPartial } from '../../Shared/Types';
|
|
14
|
+
import type { HTMLDOMElement } from '../Renderer/DOMElementType';
|
|
15
|
+
import type Point from '../Series/Point';
|
|
16
|
+
import type PointerEvent from '../PointerEvent';
|
|
17
|
+
import type SeriesOptions from '../Series/SeriesOptions';
|
|
18
|
+
import type { SeriesTypeOptions } from '../Series/SeriesType';
|
|
19
|
+
import Axis from '../Axis/Axis.js';
|
|
20
|
+
import Pointer from '../Pointer.js';
|
|
21
|
+
import Series from '../Series/Series.js';
|
|
22
|
+
import SVGElement from '../Renderer/SVG/SVGElement';
|
|
23
|
+
import SVGRenderer from '../Renderer/SVG/SVGRenderer.js';
|
|
24
|
+
import Time from '../Time.js';
|
|
25
|
+
import { AxisCollectionKey } from '../Axis/AxisOptions';
|
|
26
|
+
declare module '../Axis/AxisBase' {
|
|
27
|
+
interface AxisBase {
|
|
28
|
+
extKey?: string;
|
|
29
|
+
index?: number;
|
|
30
|
+
touched?: boolean;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
declare module './ChartBase' {
|
|
34
|
+
interface ChartBase {
|
|
35
|
+
resetZoomButton?: SVGElement;
|
|
36
|
+
pan(e: PointerEvent, panning: boolean | ChartPanningOptions): void;
|
|
37
|
+
showResetZoom(): void;
|
|
38
|
+
zoomOut(): void;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
declare module './ChartOptions' {
|
|
42
|
+
interface ChartOptions {
|
|
43
|
+
forExport?: boolean;
|
|
44
|
+
renderer?: string;
|
|
45
|
+
skipClone?: boolean;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
declare module '../Options' {
|
|
49
|
+
interface Options {
|
|
50
|
+
chart: ChartOptions;
|
|
51
|
+
caption?: Chart.CaptionOptions;
|
|
52
|
+
credits?: Chart.CreditsOptions;
|
|
53
|
+
subtitle?: Chart.SubtitleOptions;
|
|
54
|
+
series?: Array<SeriesTypeOptions>;
|
|
55
|
+
title?: Chart.TitleOptions;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
declare module '../Series/PointBase' {
|
|
59
|
+
interface PointBase {
|
|
60
|
+
touched?: boolean;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
declare module '../Series/SeriesBase' {
|
|
64
|
+
interface SeriesBase {
|
|
65
|
+
index?: number;
|
|
66
|
+
touched?: boolean;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The Chart class. The recommended constructor is {@link Highcharts#chart}.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* let chart = Highcharts.chart('container', {
|
|
74
|
+
* title: {
|
|
75
|
+
* text: 'My chart'
|
|
76
|
+
* },
|
|
77
|
+
* series: [{
|
|
78
|
+
* data: [1, 3, 2, 4]
|
|
79
|
+
* }]
|
|
80
|
+
* })
|
|
81
|
+
*
|
|
82
|
+
* @class
|
|
83
|
+
* @name Highcharts.Chart
|
|
84
|
+
*
|
|
85
|
+
* @param {string|Highcharts.HTMLDOMElement} [renderTo]
|
|
86
|
+
* The DOM element to render to, or its id.
|
|
87
|
+
*
|
|
88
|
+
* @param {Highcharts.Options} options
|
|
89
|
+
* The chart options structure.
|
|
90
|
+
*
|
|
91
|
+
* @param {Highcharts.ChartCallbackFunction} [callback]
|
|
92
|
+
* Function to run when the chart has loaded and all external images
|
|
93
|
+
* are loaded. Defining a
|
|
94
|
+
* [chart.events.load](https://api.highcharts.com/highcharts/chart.events.load)
|
|
95
|
+
* handler is equivalent.
|
|
96
|
+
*/
|
|
97
|
+
declare class Chart {
|
|
98
|
+
static chart(options: Partial<Options>, callback?: Chart.CallbackFunction): Chart;
|
|
99
|
+
static chart(renderTo: (string | globalThis.HTMLElement), options: Partial<Options>, callback?: Chart.CallbackFunction): Chart;
|
|
100
|
+
constructor(options: Partial<Options>, callback?: Chart.CallbackFunction);
|
|
101
|
+
constructor(renderTo: (string | globalThis.HTMLElement), options: Partial<Options>, callback?: Chart.CallbackFunction);
|
|
102
|
+
_cursor?: (CursorValue | null);
|
|
103
|
+
axes: Array<AxisType>;
|
|
104
|
+
axisOffset: Array<number>;
|
|
105
|
+
callback?: Chart.CallbackFunction;
|
|
106
|
+
chartBackground?: SVGElement;
|
|
107
|
+
chartHeight: number;
|
|
108
|
+
chartWidth: number;
|
|
109
|
+
clipBox: BBoxObject;
|
|
110
|
+
clipOffset?: [number, number, number, number];
|
|
111
|
+
clipRect?: SVGElement;
|
|
112
|
+
colorCounter: number;
|
|
113
|
+
container: globalThis.HTMLElement;
|
|
114
|
+
containerBox?: {
|
|
115
|
+
height: number;
|
|
116
|
+
width: number;
|
|
117
|
+
};
|
|
118
|
+
credits?: SVGElement;
|
|
119
|
+
caption?: SVGElement;
|
|
120
|
+
eventOptions: Record<string, EventCallback<Series, Event>>;
|
|
121
|
+
hasCartesianSeries?: boolean;
|
|
122
|
+
hasLoaded?: boolean;
|
|
123
|
+
hasRendered?: boolean;
|
|
124
|
+
index: number;
|
|
125
|
+
isDirtyBox?: boolean;
|
|
126
|
+
isDirtyLegend?: boolean;
|
|
127
|
+
isResizing: number;
|
|
128
|
+
labelCollectors: Array<Chart.LabelCollectorFunction>;
|
|
129
|
+
loadingDiv?: HTMLDOMElement;
|
|
130
|
+
loadingShown?: boolean;
|
|
131
|
+
loadingSpan?: HTMLDOMElement;
|
|
132
|
+
locale?: string | Array<string>;
|
|
133
|
+
margin: Array<number>;
|
|
134
|
+
marginBottom?: number;
|
|
135
|
+
numberFormatter: NumberFormatterCallbackFunction;
|
|
136
|
+
oldChartHeight?: number;
|
|
137
|
+
oldChartWidth?: number;
|
|
138
|
+
options: Options;
|
|
139
|
+
plotBackground?: SVGElement;
|
|
140
|
+
plotBGImage?: SVGElement;
|
|
141
|
+
plotBorder?: SVGElement;
|
|
142
|
+
plotBorderWidth?: number;
|
|
143
|
+
plotBox: BBoxObject;
|
|
144
|
+
plotHeight: number;
|
|
145
|
+
plotLeft: number;
|
|
146
|
+
plotSizeX?: number;
|
|
147
|
+
plotSizeY?: number;
|
|
148
|
+
plotTop: number;
|
|
149
|
+
plotWidth: number;
|
|
150
|
+
pointCount: number;
|
|
151
|
+
pointer?: Pointer;
|
|
152
|
+
reflowTimeout?: number;
|
|
153
|
+
renderer: Chart.Renderer;
|
|
154
|
+
renderTo: globalThis.HTMLElement;
|
|
155
|
+
series: Array<Series>;
|
|
156
|
+
seriesGroup?: SVGElement;
|
|
157
|
+
sharedClips: Record<string, (SVGElement | undefined)>;
|
|
158
|
+
spacing: Array<number>;
|
|
159
|
+
spacingBox: BBoxObject;
|
|
160
|
+
styledMode?: boolean;
|
|
161
|
+
subtitle?: SVGElement;
|
|
162
|
+
symbolCounter: number;
|
|
163
|
+
time: Time;
|
|
164
|
+
title?: SVGElement;
|
|
165
|
+
titleOffset: Array<number>;
|
|
166
|
+
userOptions: Partial<Options>;
|
|
167
|
+
xAxis: Array<AxisType>;
|
|
168
|
+
yAxis: Array<AxisType>;
|
|
169
|
+
zooming: ChartZoomingOptions;
|
|
170
|
+
zoomClipRect?: SVGElement;
|
|
171
|
+
/**
|
|
172
|
+
* Function setting zoom options after chart init and after chart update.
|
|
173
|
+
* Offers support for deprecated options.
|
|
174
|
+
*
|
|
175
|
+
* @private
|
|
176
|
+
* @function Highcharts.Chart#setZoomOptions
|
|
177
|
+
*/
|
|
178
|
+
setZoomOptions(): void;
|
|
179
|
+
/**
|
|
180
|
+
* Overridable function that initializes the chart. The constructor's
|
|
181
|
+
* arguments are passed on directly.
|
|
182
|
+
*
|
|
183
|
+
* @function Highcharts.Chart#init
|
|
184
|
+
*
|
|
185
|
+
* @param {Highcharts.Options} userOptions
|
|
186
|
+
* Custom options.
|
|
187
|
+
*
|
|
188
|
+
* @param {Function} [callback]
|
|
189
|
+
* Function to run when the chart has loaded and all external
|
|
190
|
+
* images are loaded.
|
|
191
|
+
*
|
|
192
|
+
*
|
|
193
|
+
* @emits Highcharts.Chart#event:init
|
|
194
|
+
* @emits Highcharts.Chart#event:afterInit
|
|
195
|
+
*/
|
|
196
|
+
init(userOptions: Partial<Options>, callback?: Chart.CallbackFunction): void;
|
|
197
|
+
/**
|
|
198
|
+
* Internal function to initialize an individual series.
|
|
199
|
+
*
|
|
200
|
+
* @private
|
|
201
|
+
* @function Highcharts.Chart#initSeries
|
|
202
|
+
*/
|
|
203
|
+
initSeries(options: SeriesOptions): Series;
|
|
204
|
+
/**
|
|
205
|
+
* Internal function to set data for all series with enabled sorting.
|
|
206
|
+
*
|
|
207
|
+
* @private
|
|
208
|
+
* @function Highcharts.Chart#setSortedData
|
|
209
|
+
*/
|
|
210
|
+
setSortedData(): void;
|
|
211
|
+
/**
|
|
212
|
+
* Sort and return chart series in order depending on the number of linked
|
|
213
|
+
* series.
|
|
214
|
+
*
|
|
215
|
+
* @private
|
|
216
|
+
* @function Highcharts.Series#getSeriesOrderByLinks
|
|
217
|
+
*/
|
|
218
|
+
getSeriesOrderByLinks(): Array<Series>;
|
|
219
|
+
/**
|
|
220
|
+
* Order all series or axes above a given index. When series or axes are
|
|
221
|
+
* added and ordered by configuration, only the last series is handled
|
|
222
|
+
* (#248, #1123, #2456, #6112). This function is called on series and axis
|
|
223
|
+
* initialization and destroy.
|
|
224
|
+
*
|
|
225
|
+
* @private
|
|
226
|
+
* @function Highcharts.Chart#orderItems
|
|
227
|
+
* @param {string} coll The collection name
|
|
228
|
+
* @param {number} [fromIndex=0]
|
|
229
|
+
* If this is given, only the series above this index are handled.
|
|
230
|
+
*/
|
|
231
|
+
orderItems(coll: ('colorAxis' | 'series' | 'xAxis' | 'yAxis' | 'zAxis'), fromIndex?: number): void;
|
|
232
|
+
/**
|
|
233
|
+
* Get the clipping for a series. Could be called for a series to initialate
|
|
234
|
+
* animating the clip or to set the final clip (only width and x).
|
|
235
|
+
*
|
|
236
|
+
* @private
|
|
237
|
+
* @function Highcharts.Chart#getClipBox
|
|
238
|
+
*/
|
|
239
|
+
getClipBox(series?: Series, chartCoords?: boolean): BBoxObject;
|
|
240
|
+
/**
|
|
241
|
+
* Check whether a given point is within the plot area.
|
|
242
|
+
*
|
|
243
|
+
* @function Highcharts.Chart#isInsidePlot
|
|
244
|
+
*
|
|
245
|
+
* @param {number} plotX
|
|
246
|
+
* Pixel x relative to the plot area.
|
|
247
|
+
*
|
|
248
|
+
* @param {number} plotY
|
|
249
|
+
* Pixel y relative to the plot area.
|
|
250
|
+
*
|
|
251
|
+
* @param {Highcharts.ChartIsInsideOptionsObject} [options]
|
|
252
|
+
* Options object.
|
|
253
|
+
*
|
|
254
|
+
* @return {boolean}
|
|
255
|
+
* Returns true if the given point is inside the plot area.
|
|
256
|
+
*/
|
|
257
|
+
isInsidePlot(plotX: number, plotY: number, options?: Chart.IsInsideOptionsObject): boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Redraw the chart after changes have been done to the data, axis extremes
|
|
260
|
+
* chart size or chart elements. All methods for updating axes, series or
|
|
261
|
+
* points have a parameter for redrawing the chart. This is `true` by
|
|
262
|
+
* default. But in many cases you want to do more than one operation on the
|
|
263
|
+
* chart before redrawing, for example add a number of points. In those
|
|
264
|
+
* cases it is a waste of resources to redraw the chart for each new point
|
|
265
|
+
* added. So you add the points and call `chart.redraw()` after.
|
|
266
|
+
*
|
|
267
|
+
* @function Highcharts.Chart#redraw
|
|
268
|
+
*
|
|
269
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
|
|
270
|
+
* If or how to apply animation to the redraw. When `undefined`, it applies
|
|
271
|
+
* the animation that is set in the `chart.animation` option.
|
|
272
|
+
*
|
|
273
|
+
* @emits Highcharts.Chart#event:afterSetExtremes
|
|
274
|
+
* @emits Highcharts.Chart#event:beforeRedraw
|
|
275
|
+
* @emits Highcharts.Chart#event:predraw
|
|
276
|
+
* @emits Highcharts.Chart#event:redraw
|
|
277
|
+
* @emits Highcharts.Chart#event:render
|
|
278
|
+
* @emits Highcharts.Chart#event:updatedData
|
|
279
|
+
*/
|
|
280
|
+
redraw(animation?: (boolean | Partial<AnimationOptions>)): void;
|
|
281
|
+
/**
|
|
282
|
+
* Get an axis, series or point object by `id` as given in the configuration
|
|
283
|
+
* options. Returns `undefined` if no item is found.
|
|
284
|
+
*
|
|
285
|
+
* @sample highcharts/plotoptions/series-id/
|
|
286
|
+
* Get series by id
|
|
287
|
+
*
|
|
288
|
+
* @function Highcharts.Chart#get
|
|
289
|
+
*
|
|
290
|
+
* @param {string} id
|
|
291
|
+
* The id as given in the configuration options.
|
|
292
|
+
*
|
|
293
|
+
* @return {Highcharts.Axis|Highcharts.Series|Highcharts.Point|undefined}
|
|
294
|
+
* The retrieved item.
|
|
295
|
+
*/
|
|
296
|
+
get(id: string): (Axis | Series | Point | undefined);
|
|
297
|
+
/**
|
|
298
|
+
* Create the Axis instances based on the config options.
|
|
299
|
+
*
|
|
300
|
+
* @private
|
|
301
|
+
* @function Highcharts.Chart#createAxes
|
|
302
|
+
* @emits Highcharts.Chart#event:afterCreateAxes
|
|
303
|
+
* @emits Highcharts.Chart#event:createAxes
|
|
304
|
+
*/
|
|
305
|
+
createAxes(): void;
|
|
306
|
+
/**
|
|
307
|
+
* Returns an array of all currently selected points in the chart. Points
|
|
308
|
+
* can be selected by clicking or programmatically by the
|
|
309
|
+
* {@link Highcharts.Point#select}
|
|
310
|
+
* function.
|
|
311
|
+
*
|
|
312
|
+
* @sample highcharts/plotoptions/series-allowpointselect-line/
|
|
313
|
+
* Get selected points
|
|
314
|
+
* @sample highcharts/members/point-select-lasso/
|
|
315
|
+
* Lasso selection
|
|
316
|
+
* @sample highcharts/chart/events-selection-points/
|
|
317
|
+
* Rectangle selection
|
|
318
|
+
*
|
|
319
|
+
* @function Highcharts.Chart#getSelectedPoints
|
|
320
|
+
*
|
|
321
|
+
* @return {Array<Highcharts.Point>}
|
|
322
|
+
* The currently selected points.
|
|
323
|
+
*/
|
|
324
|
+
getSelectedPoints(): Array<Point>;
|
|
325
|
+
/**
|
|
326
|
+
* Returns an array of all currently selected series in the chart. Series
|
|
327
|
+
* can be selected either programmatically by the
|
|
328
|
+
* {@link Highcharts.Series#select}
|
|
329
|
+
* function or by checking the checkbox next to the legend item if
|
|
330
|
+
* [series.showCheckBox](https://api.highcharts.com/highcharts/plotOptions.series.showCheckbox)
|
|
331
|
+
* is true.
|
|
332
|
+
*
|
|
333
|
+
* @sample highcharts/members/chart-getselectedseries/
|
|
334
|
+
* Get selected series
|
|
335
|
+
*
|
|
336
|
+
* @function Highcharts.Chart#getSelectedSeries
|
|
337
|
+
*
|
|
338
|
+
* @return {Array<Highcharts.Series>}
|
|
339
|
+
* The currently selected series.
|
|
340
|
+
*/
|
|
341
|
+
getSelectedSeries(): Array<Series>;
|
|
342
|
+
/**
|
|
343
|
+
* Set a new title or subtitle for the chart.
|
|
344
|
+
*
|
|
345
|
+
* @sample highcharts/members/chart-settitle/
|
|
346
|
+
* Set title text and styles
|
|
347
|
+
*
|
|
348
|
+
* @function Highcharts.Chart#setTitle
|
|
349
|
+
*
|
|
350
|
+
* @param {Highcharts.TitleOptions} [titleOptions]
|
|
351
|
+
* New title options. The title text itself is set by the
|
|
352
|
+
* `titleOptions.text` property.
|
|
353
|
+
*
|
|
354
|
+
* @param {Highcharts.SubtitleOptions} [subtitleOptions]
|
|
355
|
+
* New subtitle options. The subtitle text itself is set by the
|
|
356
|
+
* `subtitleOptions.text` property.
|
|
357
|
+
*
|
|
358
|
+
* @param {boolean} [redraw]
|
|
359
|
+
* Whether to redraw the chart or wait for a later call to
|
|
360
|
+
* `chart.redraw()`.
|
|
361
|
+
*/
|
|
362
|
+
setTitle(titleOptions?: Chart.TitleOptions, subtitleOptions?: Chart.SubtitleOptions, redraw?: boolean): void;
|
|
363
|
+
/**
|
|
364
|
+
* Apply a title, subtitle or caption for the chart
|
|
365
|
+
*
|
|
366
|
+
* @private
|
|
367
|
+
* @function Highcharts.Chart#applyDescription
|
|
368
|
+
* @param key {string}
|
|
369
|
+
* Either title, subtitle or caption
|
|
370
|
+
* @param {Highcharts.TitleOptions|Highcharts.SubtitleOptions|Highcharts.CaptionOptions|undefined} explicitOptions
|
|
371
|
+
* The options to set, will be merged with default options.
|
|
372
|
+
*/
|
|
373
|
+
applyDescription(key: Chart.DescriptionKey, explicitOptions?: Chart.DescriptionOptionsType): void;
|
|
374
|
+
/**
|
|
375
|
+
* Internal function to lay out the chart title, subtitle and caption, and
|
|
376
|
+
* cache the full offset height for use in `getMargins`. The result is
|
|
377
|
+
* stored in `this.titleOffset`.
|
|
378
|
+
*
|
|
379
|
+
* @private
|
|
380
|
+
* @function Highcharts.Chart#layOutTitles
|
|
381
|
+
*
|
|
382
|
+
* @param {boolean} [redraw=true]
|
|
383
|
+
* @emits Highcharts.Chart#event:afterLayOutTitles
|
|
384
|
+
*/
|
|
385
|
+
layOutTitles(redraw?: boolean): void;
|
|
386
|
+
/**
|
|
387
|
+
* Internal function to get the available size of the container element
|
|
388
|
+
*
|
|
389
|
+
* @private
|
|
390
|
+
* @function Highcharts.Chart#getContainerBox
|
|
391
|
+
*/
|
|
392
|
+
getContainerBox(): {
|
|
393
|
+
width: number;
|
|
394
|
+
height: number;
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* Internal function to get the chart width and height according to options
|
|
398
|
+
* and container size. Sets {@link Chart.chartWidth} and
|
|
399
|
+
* {@link Chart.chartHeight}.
|
|
400
|
+
*
|
|
401
|
+
* @private
|
|
402
|
+
* @function Highcharts.Chart#getChartSize
|
|
403
|
+
*/
|
|
404
|
+
getChartSize(): void;
|
|
405
|
+
/**
|
|
406
|
+
* If the renderTo element has no offsetWidth, most likely one or more of
|
|
407
|
+
* its parents are hidden. Loop up the DOM tree to temporarily display the
|
|
408
|
+
* parents, then save the original display properties, and when the true
|
|
409
|
+
* size is retrieved, reset them. Used on first render and on redraws.
|
|
410
|
+
*
|
|
411
|
+
* @private
|
|
412
|
+
* @function Highcharts.Chart#temporaryDisplay
|
|
413
|
+
*
|
|
414
|
+
* @param {boolean} [revert]
|
|
415
|
+
* Revert to the saved original styles.
|
|
416
|
+
*/
|
|
417
|
+
temporaryDisplay(revert?: boolean): void;
|
|
418
|
+
/**
|
|
419
|
+
* Set the {@link Chart.container|chart container's} class name, in
|
|
420
|
+
* addition to `highcharts-container`.
|
|
421
|
+
*
|
|
422
|
+
* @function Highcharts.Chart#setClassName
|
|
423
|
+
*
|
|
424
|
+
* @param {string} [className]
|
|
425
|
+
* The additional class name.
|
|
426
|
+
*/
|
|
427
|
+
setClassName(className?: string): void;
|
|
428
|
+
/**
|
|
429
|
+
* Get the containing element, determine the size and create the inner
|
|
430
|
+
* container div to hold the chart.
|
|
431
|
+
*
|
|
432
|
+
* @private
|
|
433
|
+
* @function Highcharts.Chart#afterGetContainer
|
|
434
|
+
* @emits Highcharts.Chart#event:afterGetContainer
|
|
435
|
+
*/
|
|
436
|
+
getContainer(): void;
|
|
437
|
+
/**
|
|
438
|
+
* Calculate margins by rendering axis labels in a preliminary position.
|
|
439
|
+
* Title, subtitle and legend have already been rendered at this stage, but
|
|
440
|
+
* will be moved into their final positions.
|
|
441
|
+
*
|
|
442
|
+
* @private
|
|
443
|
+
* @function Highcharts.Chart#getMargins
|
|
444
|
+
* @emits Highcharts.Chart#event:getMargins
|
|
445
|
+
*/
|
|
446
|
+
getMargins(skipAxes?: boolean): void;
|
|
447
|
+
/**
|
|
448
|
+
* @private
|
|
449
|
+
* @function Highcharts.Chart#getAxisMargins
|
|
450
|
+
*/
|
|
451
|
+
getAxisMargins(): void;
|
|
452
|
+
/**
|
|
453
|
+
* Return the current options of the chart, but only those that differ from
|
|
454
|
+
* default options. Items that can be either an object or an array of
|
|
455
|
+
* objects, like `series`, `xAxis` and `yAxis`, are always returned as
|
|
456
|
+
* array.
|
|
457
|
+
*
|
|
458
|
+
* @sample highcharts/members/chart-getoptions
|
|
459
|
+
*
|
|
460
|
+
* @function Highcharts.Chart#getOptions
|
|
461
|
+
*
|
|
462
|
+
* @since 11.1.0
|
|
463
|
+
*/
|
|
464
|
+
getOptions(): DeepPartial<Options>;
|
|
465
|
+
/**
|
|
466
|
+
* Reflows the chart to its container. By default, the Resize Observer is
|
|
467
|
+
* attached to the chart's div which allows to reflows the chart
|
|
468
|
+
* automatically to its container, as per the
|
|
469
|
+
* [chart.reflow](https://api.highcharts.com/highcharts/chart.reflow)
|
|
470
|
+
* option.
|
|
471
|
+
*
|
|
472
|
+
* @sample highcharts/chart/events-container/
|
|
473
|
+
* Pop up and reflow
|
|
474
|
+
*
|
|
475
|
+
* @function Highcharts.Chart#reflow
|
|
476
|
+
*
|
|
477
|
+
* @param {global.Event} [e]
|
|
478
|
+
* Event arguments. Used primarily when the function is called
|
|
479
|
+
* internally as a response to window resize.
|
|
480
|
+
*/
|
|
481
|
+
reflow(e?: Event): void;
|
|
482
|
+
/**
|
|
483
|
+
* Toggle the event handlers necessary for auto resizing, depending on the
|
|
484
|
+
* `chart.reflow` option.
|
|
485
|
+
*
|
|
486
|
+
* @private
|
|
487
|
+
* @function Highcharts.Chart#setReflow
|
|
488
|
+
*/
|
|
489
|
+
setReflow(): void;
|
|
490
|
+
/**
|
|
491
|
+
* Resize the chart to a given width and height. In order to set the width
|
|
492
|
+
* only, the height argument may be skipped. To set the height only, pass
|
|
493
|
+
* `undefined` for the width.
|
|
494
|
+
*
|
|
495
|
+
* @sample highcharts/members/chart-setsize-button/
|
|
496
|
+
* Test resizing from buttons
|
|
497
|
+
* @sample highcharts/members/chart-setsize-jquery-resizable/
|
|
498
|
+
* Add a jQuery UI resizable
|
|
499
|
+
* @sample stock/members/chart-setsize/
|
|
500
|
+
* Highcharts Stock with UI resizable
|
|
501
|
+
*
|
|
502
|
+
* @function Highcharts.Chart#setSize
|
|
503
|
+
*
|
|
504
|
+
* @param {number|null} [width]
|
|
505
|
+
* The new pixel width of the chart. Since v4.2.6, the argument can
|
|
506
|
+
* be `undefined` in order to preserve the current value (when
|
|
507
|
+
* setting height only), or `null` to adapt to the width of the
|
|
508
|
+
* containing element.
|
|
509
|
+
*
|
|
510
|
+
* @param {number|null} [height]
|
|
511
|
+
* The new pixel height of the chart. Since v4.2.6, the argument can
|
|
512
|
+
* be `undefined` in order to preserve the current value, or `null`
|
|
513
|
+
* in order to adapt to the height of the containing element.
|
|
514
|
+
*
|
|
515
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
|
|
516
|
+
* Whether and how to apply animation. When `undefined`, it applies
|
|
517
|
+
* the animation that is set in the `chart.animation` option.
|
|
518
|
+
*
|
|
519
|
+
*
|
|
520
|
+
* @emits Highcharts.Chart#event:endResize
|
|
521
|
+
* @emits Highcharts.Chart#event:resize
|
|
522
|
+
*/
|
|
523
|
+
setSize(width?: (number | null), height?: (number | null), animation?: (boolean | Partial<AnimationOptions>)): void;
|
|
524
|
+
/**
|
|
525
|
+
* Set the public chart properties. This is done before and after the
|
|
526
|
+
* pre-render to determine margin sizes.
|
|
527
|
+
*
|
|
528
|
+
* @private
|
|
529
|
+
* @function Highcharts.Chart#setChartSize
|
|
530
|
+
* @emits Highcharts.Chart#event:afterSetChartSize
|
|
531
|
+
*/
|
|
532
|
+
setChartSize(skipAxes?: boolean): void;
|
|
533
|
+
/**
|
|
534
|
+
* Initial margins before auto size margins are applied.
|
|
535
|
+
*
|
|
536
|
+
* @private
|
|
537
|
+
* @function Highcharts.Chart#resetMargins
|
|
538
|
+
*/
|
|
539
|
+
resetMargins(): void;
|
|
540
|
+
/**
|
|
541
|
+
* Internal function to draw or redraw the borders and backgrounds for chart
|
|
542
|
+
* and plot area.
|
|
543
|
+
*
|
|
544
|
+
* @private
|
|
545
|
+
* @function Highcharts.Chart#drawChartBox
|
|
546
|
+
* @emits Highcharts.Chart#event:afterDrawChartBox
|
|
547
|
+
*/
|
|
548
|
+
drawChartBox(): void;
|
|
549
|
+
/**
|
|
550
|
+
* Detect whether a certain chart property is needed based on inspecting its
|
|
551
|
+
* options and series. This mainly applies to the chart.inverted property,
|
|
552
|
+
* and in extensions to the chart.angular and chart.polar properties.
|
|
553
|
+
*
|
|
554
|
+
* @private
|
|
555
|
+
* @function Highcharts.Chart#propFromSeries
|
|
556
|
+
*/
|
|
557
|
+
propFromSeries(): void;
|
|
558
|
+
/**
|
|
559
|
+
* Internal function to link two or more series together, based on the
|
|
560
|
+
* `linkedTo` option. This is done from `Chart.render`, and after
|
|
561
|
+
* `Chart.addSeries` and `Series.remove`.
|
|
562
|
+
*
|
|
563
|
+
* @private
|
|
564
|
+
* @function Highcharts.Chart#linkSeries
|
|
565
|
+
* @emits Highcharts.Chart#event:afterLinkSeries
|
|
566
|
+
*/
|
|
567
|
+
linkSeries(isUpdating?: boolean): void;
|
|
568
|
+
/**
|
|
569
|
+
* Render series for the chart.
|
|
570
|
+
*
|
|
571
|
+
* @private
|
|
572
|
+
* @function Highcharts.Chart#renderSeries
|
|
573
|
+
*/
|
|
574
|
+
renderSeries(): void;
|
|
575
|
+
/**
|
|
576
|
+
* Render all graphics for the chart. Runs internally on initialization.
|
|
577
|
+
*
|
|
578
|
+
* @private
|
|
579
|
+
* @function Highcharts.Chart#render
|
|
580
|
+
*/
|
|
581
|
+
render(): void;
|
|
582
|
+
/**
|
|
583
|
+
* Set a new credits label for the chart.
|
|
584
|
+
*
|
|
585
|
+
* @sample highcharts/credits/credits-update/
|
|
586
|
+
* Add and update credits
|
|
587
|
+
*
|
|
588
|
+
* @function Highcharts.Chart#addCredits
|
|
589
|
+
*
|
|
590
|
+
* @param {Highcharts.CreditsOptions} [credits]
|
|
591
|
+
* A configuration object for the new credits.
|
|
592
|
+
*/
|
|
593
|
+
addCredits(credits?: Chart.CreditsOptions): void;
|
|
594
|
+
/**
|
|
595
|
+
* Remove the chart and purge memory. This method is called internally
|
|
596
|
+
* before adding a second chart into the same container, as well as on
|
|
597
|
+
* window unload to prevent leaks.
|
|
598
|
+
*
|
|
599
|
+
* @sample highcharts/members/chart-destroy/
|
|
600
|
+
* Destroy the chart from a button
|
|
601
|
+
* @sample stock/members/chart-destroy/
|
|
602
|
+
* Destroy with Highcharts Stock
|
|
603
|
+
*
|
|
604
|
+
* @function Highcharts.Chart#destroy
|
|
605
|
+
*
|
|
606
|
+
* @emits Highcharts.Chart#event:destroy
|
|
607
|
+
*/
|
|
608
|
+
destroy(): void;
|
|
609
|
+
/**
|
|
610
|
+
* Prepare for first rendering after all data are loaded.
|
|
611
|
+
*
|
|
612
|
+
* @private
|
|
613
|
+
* @function Highcharts.Chart#firstRender
|
|
614
|
+
* @emits Highcharts.Chart#event:beforeRender
|
|
615
|
+
*/
|
|
616
|
+
firstRender(): void;
|
|
617
|
+
/**
|
|
618
|
+
* Internal function that runs on chart load, async if any images are loaded
|
|
619
|
+
* in the chart. Runs the callbacks and triggers the `load` and `render`
|
|
620
|
+
* events.
|
|
621
|
+
*
|
|
622
|
+
* @private
|
|
623
|
+
* @function Highcharts.Chart#onload
|
|
624
|
+
* @emits Highcharts.Chart#event:load
|
|
625
|
+
* @emits Highcharts.Chart#event:render
|
|
626
|
+
*/
|
|
627
|
+
onload(): void;
|
|
628
|
+
/**
|
|
629
|
+
* Emit console warning if the a11y module is not loaded.
|
|
630
|
+
* @private
|
|
631
|
+
*/
|
|
632
|
+
warnIfA11yModuleNotLoaded(): void;
|
|
633
|
+
/**
|
|
634
|
+
* Emit console warning if the highcharts.css file is not loaded.
|
|
635
|
+
* @private
|
|
636
|
+
*/
|
|
637
|
+
warnIfCSSNotLoaded(): void;
|
|
638
|
+
/**
|
|
639
|
+
* Add a series to the chart after render time. Note that this method should
|
|
640
|
+
* never be used when adding data synchronously at chart render time, as it
|
|
641
|
+
* adds expense to the calculations and rendering. When adding data at the
|
|
642
|
+
* same time as the chart is initialized, add the series as a configuration
|
|
643
|
+
* option instead. With multiple axes, the `offset` is dynamically adjusted.
|
|
644
|
+
*
|
|
645
|
+
* @sample highcharts/members/chart-addseries/
|
|
646
|
+
* Add a series from a button
|
|
647
|
+
* @sample stock/members/chart-addseries/
|
|
648
|
+
* Add a series in Highcharts Stock
|
|
649
|
+
*
|
|
650
|
+
* @function Highcharts.Chart#addSeries
|
|
651
|
+
*
|
|
652
|
+
* @param {Highcharts.SeriesOptionsType} options
|
|
653
|
+
* The config options for the series.
|
|
654
|
+
*
|
|
655
|
+
* @param {boolean} [redraw=true]
|
|
656
|
+
* Whether to redraw the chart after adding.
|
|
657
|
+
*
|
|
658
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
|
|
659
|
+
* Whether to apply animation, and optionally animation
|
|
660
|
+
* configuration. When `undefined`, it applies the animation that is
|
|
661
|
+
* set in the `chart.animation` option.
|
|
662
|
+
*
|
|
663
|
+
* @return {Highcharts.Series}
|
|
664
|
+
* The newly created series object.
|
|
665
|
+
*
|
|
666
|
+
* @emits Highcharts.Chart#event:addSeries
|
|
667
|
+
* @emits Highcharts.Chart#event:afterAddSeries
|
|
668
|
+
*/
|
|
669
|
+
addSeries(options: SeriesTypeOptions, redraw?: boolean, animation?: (boolean | Partial<AnimationOptions>)): Series;
|
|
670
|
+
/**
|
|
671
|
+
* Add an axis to the chart after render time. Note that this method should
|
|
672
|
+
* never be used when adding data synchronously at chart render time, as it
|
|
673
|
+
* adds expense to the calculations and rendering. When adding data at the
|
|
674
|
+
* same time as the chart is initialized, add the axis as a configuration
|
|
675
|
+
* option instead.
|
|
676
|
+
*
|
|
677
|
+
* @sample highcharts/members/chart-addaxis/
|
|
678
|
+
* Add and remove axes
|
|
679
|
+
*
|
|
680
|
+
* @function Highcharts.Chart#addAxis
|
|
681
|
+
*
|
|
682
|
+
* @param {Highcharts.AxisOptions} options
|
|
683
|
+
* The axis options.
|
|
684
|
+
*
|
|
685
|
+
* @param {boolean} [isX=false]
|
|
686
|
+
* Whether it is an X axis or a value axis.
|
|
687
|
+
*
|
|
688
|
+
* @param {boolean} [redraw=true]
|
|
689
|
+
* Whether to redraw the chart after adding.
|
|
690
|
+
*
|
|
691
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
|
|
692
|
+
* Whether and how to apply animation in the redraw. When
|
|
693
|
+
* `undefined`, it applies the animation that is set in the
|
|
694
|
+
* `chart.animation` option.
|
|
695
|
+
*
|
|
696
|
+
* @return {Highcharts.Axis}
|
|
697
|
+
* The newly generated Axis object.
|
|
698
|
+
*/
|
|
699
|
+
addAxis(options: DeepPartial<AxisOptions>, isX?: boolean, redraw?: boolean, animation?: boolean): Axis;
|
|
700
|
+
/**
|
|
701
|
+
* Add a color axis to the chart after render time. Note that this method
|
|
702
|
+
* should never be used when adding data synchronously at chart render time,
|
|
703
|
+
* as it adds expense to the calculations and rendering. When adding data at
|
|
704
|
+
* the same time as the chart is initialized, add the axis as a
|
|
705
|
+
* configuration option instead.
|
|
706
|
+
*
|
|
707
|
+
* @sample highcharts/members/chart-addaxis/
|
|
708
|
+
* Add and remove axes
|
|
709
|
+
*
|
|
710
|
+
* @function Highcharts.Chart#addColorAxis
|
|
711
|
+
*
|
|
712
|
+
* @param {Highcharts.ColorAxisOptions} options
|
|
713
|
+
* The axis options.
|
|
714
|
+
*
|
|
715
|
+
* @param {boolean} [redraw=true]
|
|
716
|
+
* Whether to redraw the chart after adding.
|
|
717
|
+
*
|
|
718
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
|
|
719
|
+
* Whether and how to apply animation in the redraw. When
|
|
720
|
+
* `undefined`, it applies the animation that is set in the
|
|
721
|
+
* `chart.animation` option.
|
|
722
|
+
*
|
|
723
|
+
* @return {Highcharts.Axis}
|
|
724
|
+
* The newly generated Axis object.
|
|
725
|
+
*/
|
|
726
|
+
addColorAxis(options: ColorAxis.Options, redraw?: boolean, animation?: boolean): Axis;
|
|
727
|
+
/**
|
|
728
|
+
* Factory for creating different axis types.
|
|
729
|
+
*
|
|
730
|
+
* @private
|
|
731
|
+
* @function Highcharts.Chart#createAxis
|
|
732
|
+
*
|
|
733
|
+
* @param {string} coll
|
|
734
|
+
* An axis type.
|
|
735
|
+
*
|
|
736
|
+
* @param {...Array<*>} arguments
|
|
737
|
+
* All arguments for the constructor.
|
|
738
|
+
*
|
|
739
|
+
* @return {Highcharts.Axis}
|
|
740
|
+
* The newly generated Axis object.
|
|
741
|
+
*/
|
|
742
|
+
createAxis(coll: AxisCollectionKey, options: Chart.CreateAxisOptionsObject): Axis;
|
|
743
|
+
/**
|
|
744
|
+
* Dim the chart and show a loading text or symbol. Options for the loading
|
|
745
|
+
* screen are defined in {@link
|
|
746
|
+
* https://api.highcharts.com/highcharts/loading|the loading options}.
|
|
747
|
+
*
|
|
748
|
+
* @sample highcharts/members/chart-hideloading/
|
|
749
|
+
* Show and hide loading from a button
|
|
750
|
+
* @sample highcharts/members/chart-showloading/
|
|
751
|
+
* Apply different text labels
|
|
752
|
+
* @sample stock/members/chart-show-hide-loading/
|
|
753
|
+
* Toggle loading in Highcharts Stock
|
|
754
|
+
*
|
|
755
|
+
* @function Highcharts.Chart#showLoading
|
|
756
|
+
*
|
|
757
|
+
* @param {string} [str]
|
|
758
|
+
* An optional text to show in the loading label instead of the
|
|
759
|
+
* default one. The default text is set in
|
|
760
|
+
* [lang.loading](https://api.highcharts.com/highcharts/lang.loading).
|
|
761
|
+
*/
|
|
762
|
+
showLoading(str?: string): void;
|
|
763
|
+
/**
|
|
764
|
+
* Hide the loading layer.
|
|
765
|
+
*
|
|
766
|
+
* @see Highcharts.Chart#showLoading
|
|
767
|
+
*
|
|
768
|
+
* @sample highcharts/members/chart-hideloading/
|
|
769
|
+
* Show and hide loading from a button
|
|
770
|
+
* @sample stock/members/chart-show-hide-loading/
|
|
771
|
+
* Toggle loading in Highcharts Stock
|
|
772
|
+
*
|
|
773
|
+
* @function Highcharts.Chart#hideLoading
|
|
774
|
+
*/
|
|
775
|
+
hideLoading(): void;
|
|
776
|
+
/**
|
|
777
|
+
* A generic function to update any element of the chart. Elements can be
|
|
778
|
+
* enabled and disabled, moved, re-styled, re-formatted etc.
|
|
779
|
+
*
|
|
780
|
+
* A special case is configuration objects that take arrays, for example
|
|
781
|
+
* [xAxis](https://api.highcharts.com/highcharts/xAxis),
|
|
782
|
+
* [yAxis](https://api.highcharts.com/highcharts/yAxis) or
|
|
783
|
+
* [series](https://api.highcharts.com/highcharts/series). For these
|
|
784
|
+
* collections, an `id` option is used to map the new option set to an
|
|
785
|
+
* existing object. If an existing object of the same id is not found, the
|
|
786
|
+
* corresponding item is updated. So for example, running `chart.update`
|
|
787
|
+
* with a series item without an id, will cause the existing chart's series
|
|
788
|
+
* with the same index in the series array to be updated. When the
|
|
789
|
+
* `oneToOne` parameter is true, `chart.update` will also take care of
|
|
790
|
+
* adding and removing items from the collection. Read more under the
|
|
791
|
+
* parameter description below.
|
|
792
|
+
*
|
|
793
|
+
* Note that when changing series data, `chart.update` may mutate the passed
|
|
794
|
+
* data options.
|
|
795
|
+
*
|
|
796
|
+
* See also the
|
|
797
|
+
* [responsive option set](https://api.highcharts.com/highcharts/responsive).
|
|
798
|
+
* Switching between `responsive.rules` basically runs `chart.update` under
|
|
799
|
+
* the hood.
|
|
800
|
+
*
|
|
801
|
+
* @sample highcharts/members/chart-update/
|
|
802
|
+
* Update chart geometry
|
|
803
|
+
*
|
|
804
|
+
* @function Highcharts.Chart#update
|
|
805
|
+
*
|
|
806
|
+
* @param {Highcharts.Options} options
|
|
807
|
+
* A configuration object for the new chart options.
|
|
808
|
+
*
|
|
809
|
+
* @param {boolean} [redraw=true]
|
|
810
|
+
* Whether to redraw the chart.
|
|
811
|
+
*
|
|
812
|
+
* @param {boolean} [oneToOne=false]
|
|
813
|
+
* When `true`, the `series`, `xAxis`, `yAxis` and `annotations`
|
|
814
|
+
* collections will be updated one to one, and items will be either
|
|
815
|
+
* added or removed to match the new updated options. For example,
|
|
816
|
+
* if the chart has two series and we call `chart.update` with a
|
|
817
|
+
* configuration containing three series, one will be added. If we
|
|
818
|
+
* call `chart.update` with one series, one will be removed. Setting
|
|
819
|
+
* an empty `series` array will remove all series, but leaving out
|
|
820
|
+
* the`series` property will leave all series untouched. If the
|
|
821
|
+
* series have id's, the new series options will be matched by id,
|
|
822
|
+
* and the remaining ones removed.
|
|
823
|
+
*
|
|
824
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
|
|
825
|
+
* Whether to apply animation, and optionally animation
|
|
826
|
+
* configuration. When `undefined`, it applies the animation that is
|
|
827
|
+
* set in the `chart.animation` option.
|
|
828
|
+
*
|
|
829
|
+
* @emits Highcharts.Chart#event:update
|
|
830
|
+
* @emits Highcharts.Chart#event:afterUpdate
|
|
831
|
+
*/
|
|
832
|
+
update(options: Partial<Options>, redraw?: boolean, oneToOne?: boolean, animation?: (boolean | Partial<AnimationOptions>)): void;
|
|
833
|
+
/**
|
|
834
|
+
* Shortcut to set the subtitle options. This can also be done from {@link
|
|
835
|
+
* Chart#update} or {@link Chart#setTitle}.
|
|
836
|
+
*
|
|
837
|
+
* @function Highcharts.Chart#setSubtitle
|
|
838
|
+
*
|
|
839
|
+
* @param {Highcharts.SubtitleOptions} options
|
|
840
|
+
* New subtitle options. The subtitle text itself is set by the
|
|
841
|
+
* `options.text` property.
|
|
842
|
+
*/
|
|
843
|
+
setSubtitle(options: Chart.SubtitleOptions, redraw?: boolean): void;
|
|
844
|
+
/**
|
|
845
|
+
* Set the caption options. This can also be done from {@link
|
|
846
|
+
* Chart#update}.
|
|
847
|
+
*
|
|
848
|
+
* @function Highcharts.Chart#setCaption
|
|
849
|
+
*
|
|
850
|
+
* @param {Highcharts.CaptionOptions} options
|
|
851
|
+
* New caption options. The caption text itself is set by the
|
|
852
|
+
* `options.text` property.
|
|
853
|
+
*/
|
|
854
|
+
setCaption(options: Chart.CaptionOptions, redraw?: boolean): void;
|
|
855
|
+
/**
|
|
856
|
+
* Display the zoom button, so users can reset zoom to the default view
|
|
857
|
+
* settings.
|
|
858
|
+
*
|
|
859
|
+
* @function Highcharts.Chart#showResetZoom
|
|
860
|
+
*
|
|
861
|
+
* @emits Highcharts.Chart#event:afterShowResetZoom
|
|
862
|
+
* @emits Highcharts.Chart#event:beforeShowResetZoom
|
|
863
|
+
*/
|
|
864
|
+
showResetZoom(): void;
|
|
865
|
+
/**
|
|
866
|
+
* Zoom the chart out after a user has zoomed in. See also
|
|
867
|
+
* [Axis.setExtremes](/class-reference/Highcharts.Axis#setExtremes).
|
|
868
|
+
*
|
|
869
|
+
* @function Highcharts.Chart#zoomOut
|
|
870
|
+
*
|
|
871
|
+
* @emits Highcharts.Chart#event:selection
|
|
872
|
+
*/
|
|
873
|
+
zoomOut(): void;
|
|
874
|
+
/**
|
|
875
|
+
* Pan the chart by dragging the mouse across the pane. This function is
|
|
876
|
+
* called on mouse move, and the distance to pan is computed from chartX
|
|
877
|
+
* compared to the first chartX position in the dragging operation.
|
|
878
|
+
*
|
|
879
|
+
* @private
|
|
880
|
+
* @function Highcharts.Chart#pan
|
|
881
|
+
* @param {Highcharts.PointerEventObject} event
|
|
882
|
+
* @param {string} panning
|
|
883
|
+
*/
|
|
884
|
+
pan(event: PointerEvent, panning: ChartPanningOptions | boolean): void;
|
|
885
|
+
/**
|
|
886
|
+
* Pan and scale the chart. Used internally by mouse-pan, touch-pan,
|
|
887
|
+
* touch-zoom, and mousewheel zoom.
|
|
888
|
+
*
|
|
889
|
+
* The main positioning logic is created around two imaginary boxes. What is
|
|
890
|
+
* currently within the `from` rectangle, should be transformed to fill up
|
|
891
|
+
* the `to` rectangle.
|
|
892
|
+
* - In a mouse zoom, the `from` rectangle is the selection, while the `to`
|
|
893
|
+
* rectangle is the full plot area.
|
|
894
|
+
* - In a touch zoom, the `from` rectangle is made up of the last two-finger
|
|
895
|
+
* touch, while the `to`` rectangle is the current touch.
|
|
896
|
+
* - In a mousewheel zoom, the `to` rectangle is a 10x10 px square,
|
|
897
|
+
* while the `to` rectangle reflects the scale around that.
|
|
898
|
+
*
|
|
899
|
+
* @private
|
|
900
|
+
* @function Highcharts.Chart#transform
|
|
901
|
+
*/
|
|
902
|
+
transform(params: Chart.ChartTransformParams): boolean;
|
|
903
|
+
}
|
|
904
|
+
interface Chart extends ChartBase {
|
|
905
|
+
callbacks: Array<Chart.CallbackFunction>;
|
|
906
|
+
collectionsWithInit: Record<string, [Function, Array<any>?]>;
|
|
907
|
+
collectionsWithUpdate: Array<string>;
|
|
908
|
+
propsRequireDirtyBox: Array<string>;
|
|
909
|
+
propsRequireReflow: Array<string>;
|
|
910
|
+
propsRequireUpdateSeries: Array<string>;
|
|
911
|
+
}
|
|
912
|
+
declare namespace Chart {
|
|
913
|
+
interface AfterUpdateEventObject {
|
|
914
|
+
animation: (boolean | Partial<AnimationOptions>);
|
|
915
|
+
options: Options;
|
|
916
|
+
redraw: boolean;
|
|
917
|
+
}
|
|
918
|
+
interface CallbackFunction {
|
|
919
|
+
(this: Chart, chart: Chart): void;
|
|
920
|
+
}
|
|
921
|
+
interface CaptionOptions {
|
|
922
|
+
align?: AlignValue;
|
|
923
|
+
floating?: boolean;
|
|
924
|
+
margin?: number;
|
|
925
|
+
style: CSSObject;
|
|
926
|
+
text?: string;
|
|
927
|
+
useHTML?: boolean;
|
|
928
|
+
verticalAlign?: VerticalAlignValue;
|
|
929
|
+
width?: number;
|
|
930
|
+
x?: number;
|
|
931
|
+
y?: number;
|
|
932
|
+
zIndex?: number;
|
|
933
|
+
}
|
|
934
|
+
interface ChartTransformParams {
|
|
935
|
+
axes?: Array<Axis>;
|
|
936
|
+
event?: PointerEvent;
|
|
937
|
+
to?: Partial<BBoxObject>;
|
|
938
|
+
reset?: boolean;
|
|
939
|
+
selection?: Pointer.SelectEventObject;
|
|
940
|
+
from?: Partial<BBoxObject>;
|
|
941
|
+
trigger?: string;
|
|
942
|
+
allowResetButton?: boolean;
|
|
943
|
+
hasZoomed?: boolean;
|
|
944
|
+
}
|
|
945
|
+
interface CreateAxisOptionsObject {
|
|
946
|
+
animation: (undefined | boolean | Partial<AnimationOptions>);
|
|
947
|
+
axis: (DeepPartial<AxisOptions> | DeepPartial<ColorAxis.Options>);
|
|
948
|
+
redraw: (undefined | boolean);
|
|
949
|
+
}
|
|
950
|
+
interface CreditsOptions {
|
|
951
|
+
enabled?: boolean;
|
|
952
|
+
href?: string;
|
|
953
|
+
mapText?: string;
|
|
954
|
+
mapTextFull?: string;
|
|
955
|
+
position?: AlignObject;
|
|
956
|
+
style: CSSObject;
|
|
957
|
+
text?: string;
|
|
958
|
+
}
|
|
959
|
+
type DescriptionOptionsType = (TitleOptions | SubtitleOptions | CaptionOptions);
|
|
960
|
+
type DescriptionKey = 'title' | 'subtitle' | 'caption';
|
|
961
|
+
interface IsInsideOptionsObject {
|
|
962
|
+
axis?: Axis;
|
|
963
|
+
ignoreX?: boolean;
|
|
964
|
+
ignoreY?: boolean;
|
|
965
|
+
inverted?: boolean;
|
|
966
|
+
paneCoordinates?: boolean;
|
|
967
|
+
series?: Series;
|
|
968
|
+
visiblePlotOnly?: boolean;
|
|
969
|
+
}
|
|
970
|
+
interface LabelCollectorFunction {
|
|
971
|
+
(): (Array<(SVGElement | undefined)> | undefined);
|
|
972
|
+
}
|
|
973
|
+
interface LayoutTitleEventObject {
|
|
974
|
+
alignTo: BBoxObject;
|
|
975
|
+
key: Chart.DescriptionKey;
|
|
976
|
+
textPxLength: number;
|
|
977
|
+
}
|
|
978
|
+
interface Renderer extends SVGRenderer {
|
|
979
|
+
plotBox: BBoxObject;
|
|
980
|
+
spacingBox: BBoxObject;
|
|
981
|
+
}
|
|
982
|
+
interface SubtitleOptions {
|
|
983
|
+
align?: AlignValue;
|
|
984
|
+
floating?: boolean;
|
|
985
|
+
style: CSSObject;
|
|
986
|
+
text?: string;
|
|
987
|
+
useHTML?: boolean;
|
|
988
|
+
verticalAlign?: VerticalAlignValue;
|
|
989
|
+
width?: number;
|
|
990
|
+
x?: number;
|
|
991
|
+
y?: number;
|
|
992
|
+
zIndex?: number;
|
|
993
|
+
}
|
|
994
|
+
interface TitleOptions {
|
|
995
|
+
align?: AlignValue;
|
|
996
|
+
floating?: boolean;
|
|
997
|
+
margin?: number;
|
|
998
|
+
minScale?: number;
|
|
999
|
+
style: CSSObject;
|
|
1000
|
+
text?: string;
|
|
1001
|
+
useHTML?: boolean;
|
|
1002
|
+
verticalAlign?: VerticalAlignValue;
|
|
1003
|
+
width?: number;
|
|
1004
|
+
x?: number;
|
|
1005
|
+
y?: number;
|
|
1006
|
+
zIndex?: number;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
export default Chart;
|