@sisense/sdk-ui 2.9.0 → 2.11.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/dist/ai.cjs +32 -32
- package/dist/ai.js +426 -419
- package/dist/analytics-composer/node.cjs +3 -1
- package/dist/analytics-composer/node.js +521 -385
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/derive-chart-family-BauaWEEc.cjs +170 -0
- package/dist/derive-chart-family-BhAFg8OE.js +29535 -0
- package/dist/{dimensions-B2jz151s.js → dimensions-Bk74slQe.js} +1 -1
- package/dist/{dimensions-CVJeJ8mi.cjs → dimensions-DCxjxuyH.cjs} +1 -1
- package/dist/{execute-query-agpyzZz6.js → execute-query-CxMSGp-J.js} +292 -269
- package/dist/execute-query-uQ2s1ZNz.cjs +1 -0
- package/dist/index.cjs +25 -26
- package/dist/index.js +12805 -11832
- package/dist/index.umd.js +384 -374
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +7 -1
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +14 -0
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +2 -2
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-filters.d.ts +5 -5
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-measures.d.ts +3 -3
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +2 -2
- package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +26 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/calendar-heatmap-chart-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +118 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +56 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +34 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +22 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/chart-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/extras-options.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/legend-options.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/plot-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +42 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/series-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +34 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +31 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +16 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +55 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/types.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/with-calendar-heatmap-data-coloring.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data-options.d.ts +5 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/legend.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data/index.d.ts +21 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data-options/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/funnel-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +22 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data/index.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/pie-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/alerts/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data-options/index.d.ts +11 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/sunburst-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/alerts/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data-options/index.d.ts +11 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/treemap-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +2 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/use-extra-config.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +12 -10
- package/dist/packages/sdk-ui/src/chart-data/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +19 -2
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-categorical-data-options.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +23 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/{category-chart-options.d.ts → category-chart-options/category-chart-options.d.ts} +9 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +29 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +19 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +1 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +43 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-series.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +28 -14
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-series.d.ts +34 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-series.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +78 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +10 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +50 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +14 -11
- package/dist/packages/sdk-ui/src/common/components/modal/modal-context.d.ts +1 -2
- package/dist/packages/sdk-ui/src/common/formatters/create-date-formatter.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/useDateFormatter.d.ts +7 -0
- package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +6 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +0 -19
- package/dist/packages/sdk-ui/src/dashboard/components/jtd-dashboard.d.ts +5 -4
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +109 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/index.d.ts +20 -5
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-config-transformers.d.ts +85 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +15 -3
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +80 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +26 -4
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-menu.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-types.d.ts +260 -5
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-widget-transforms.d.ts +29 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +7 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +3 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd-widget.d.ts +68 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +33 -7
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +13 -0
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +1 -3
- package/dist/packages/sdk-ui/src/index.d.ts +10 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +26 -2
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +8 -4
- package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +2 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/polar-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +66 -7
- package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +11 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +22 -0
- package/dist/packages/sdk-ui/src/types.d.ts +444 -32
- package/dist/packages/sdk-ui/src/utils/combine-handlers.d.ts +19 -0
- package/dist/packages/sdk-ui/src/utils/create-level-attribute.d.ts +11 -0
- package/dist/packages/sdk-ui/src/utils/utility-types/transformer.d.ts +8 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +45 -74
- package/dist/{types-QUSMO7gF.cjs → types-DhvOgfXa.cjs} +1 -1
- package/dist/{types-BYUVZb6u.js → types-Dxieyr4A.js} +1 -1
- package/dist/use-common-filters-DJyYvdev.js +91688 -0
- package/dist/use-common-filters-Qj9249s0.cjs +845 -0
- package/dist/{widget-composer-BG4HonVl.js → widget-composer-azihIMsw.js} +3 -3
- package/dist/{widget-composer-CGp5yOny.cjs → widget-composer-omIEhWNL.cjs} +1 -1
- package/package.json +13 -18
- package/dist/derive-chart-family-BLG1sO1D.js +0 -86946
- package/dist/derive-chart-family-QPmz5DJ3.cjs +0 -656
- package/dist/execute-query-Cp3se7Yb.cjs +0 -1
- package/dist/packages/sdk-ui/src/utils/__development-utils__/highcharts-options-builder-collector.d.ts +0 -61
- package/dist/packages/sdk-ui/src/utils/__development-utils__/input-output-collector.d.ts +0 -125
- package/dist/use-common-filters-DmdADAhl.cjs +0 -350
- package/dist/use-common-filters-wo5IRF5u.js +0 -31972
|
@@ -4,18 +4,16 @@ import { TypedChartData, TypedDataOptionsInternal, TypedDesignOptions } from '..
|
|
|
4
4
|
import { SisenseChartDataPointEventHandler, SisenseChartDataPointsEventHandler } from '../../../../sisense-chart/types';
|
|
5
5
|
import { BeforeRenderHandler } from '../../../../props';
|
|
6
6
|
import { ChartRendererProps } from '../../../../chart/types';
|
|
7
|
+
import { ContainerSize } from '../../../../dynamic-size-container/dynamic-size-container.js';
|
|
7
8
|
export type HighchartsBasedChartRendererProps<CT extends HighchartBasedChartTypes> = {
|
|
8
9
|
chartData: TypedChartData<CT>;
|
|
9
10
|
dataOptions: TypedDataOptionsInternal<CT>;
|
|
10
11
|
designOptions: TypedDesignOptions<CT>;
|
|
12
|
+
size: ContainerSize;
|
|
11
13
|
onDataPointClick?: SisenseChartDataPointEventHandler;
|
|
12
14
|
onDataPointContextMenu?: SisenseChartDataPointEventHandler;
|
|
13
15
|
onDataPointsSelected?: SisenseChartDataPointsEventHandler;
|
|
14
16
|
onBeforeRender?: BeforeRenderHandler;
|
|
15
|
-
size?: {
|
|
16
|
-
width?: number;
|
|
17
|
-
height?: number;
|
|
18
|
-
};
|
|
19
17
|
};
|
|
20
18
|
/**
|
|
21
19
|
* Creates a specific highcharts based chart renderer component
|
package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { HighchartsOptionsInternal } from '../../../chart-options-processor/char
|
|
|
2
2
|
import { CompleteThemeSettings } from '../../../index-typedoc';
|
|
3
3
|
import { TFunction } from '@sisense/sdk-common';
|
|
4
4
|
import { TypedChartData, TypedDataOptionsInternal, TypedDesignOptions } from '../types';
|
|
5
|
-
export type HighchartBasedChartTypes = 'column' | 'bar' | 'line' | 'area' | 'polar';
|
|
5
|
+
export type HighchartBasedChartTypes = 'column' | 'bar' | 'line' | 'area' | 'polar' | 'pie' | 'funnel' | 'treemap' | 'calendar-heatmap' | 'sunburst';
|
|
6
6
|
export type HighchartsOptionsBuilder<CT extends HighchartBasedChartTypes> = {
|
|
7
7
|
getChart: (ctx: BuildContext<CT>) => HighchartsOptionsInternal['chart'];
|
|
8
8
|
getSeries: (ctx: BuildContext<CT>) => HighchartsOptionsInternal['series'];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Attribute, Measure, QueryResultData } from '@sisense/sdk-data';
|
|
3
|
-
import {
|
|
4
|
-
import type { AreaStyleOptions, AreamapStyleOptions, ChartDataOptions, ChartStyleOptions, LineStyleOptions, PolarStyleOptions, ScattermapStyleOptions, StackableStyleOptions } from '../../types';
|
|
3
|
+
import { QueryExecutionConfig } from '@sisense/sdk-query-client';
|
|
4
|
+
import type { AreaStyleOptions, AreamapStyleOptions, CalendarHeatmapStyleOptions, ChartDataOptions, ChartStyleOptions, LineStyleOptions, PieStyleOptions, PolarStyleOptions, ScattermapStyleOptions, StackableStyleOptions, FunnelStyleOptions, TreemapStyleOptions, SunburstStyleOptions } from '../../types';
|
|
5
5
|
import type { ChartRendererProps } from '../../chart';
|
|
6
|
-
import type { CartesianChartData, ScattermapChartData } from '../../chart-data/types';
|
|
7
|
-
import { AreamapChartDataOptions, AreamapChartDataOptionsInternal, CartesianChartDataOptions, CartesianChartDataOptionsInternal, ChartDataOptionsInternal, ScattermapChartDataOptions, ScattermapChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
6
|
+
import type { CartesianChartData, CategoricalChartData, ScattermapChartData } from '../../chart-data/types';
|
|
7
|
+
import { AreamapChartDataOptions, AreamapChartDataOptionsInternal, CalendarHeatmapChartDataOptions, CalendarHeatmapChartDataOptionsInternal, CartesianChartDataOptions, CartesianChartDataOptionsInternal, CategoricalChartDataOptions, CategoricalChartDataOptionsInternal, ChartDataOptionsInternal, ScattermapChartDataOptions, ScattermapChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
8
8
|
import { DesignOptions } from '../../chart-options-processor/translations/types';
|
|
9
9
|
import { DataTable } from '../../chart-data-processor/table-processor';
|
|
10
10
|
import { ClientApplication } from '../../app/client-application';
|
|
@@ -12,19 +12,21 @@ import { AreamapProps } from '../../chart/restructured-charts/areamap-chart/rend
|
|
|
12
12
|
import { ScattermapProps } from '../../charts/map-charts/scattermap/scattermap';
|
|
13
13
|
import { AreamapData } from './areamap-chart/types';
|
|
14
14
|
import { HighchartsBasedChartRendererProps } from './highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export type
|
|
18
|
-
export type
|
|
15
|
+
import { QueryDescription } from '../../query/execute-query';
|
|
16
|
+
import { CalendarHeatmapChartData } from './highchart-based-charts/calendar-heatmap-chart/data';
|
|
17
|
+
export type SupportedChartType = 'areamap' | 'column' | 'bar' | 'line' | 'area' | 'polar' | 'pie' | 'funnel' | 'calendar-heatmap' | 'treemap' | 'sunburst';
|
|
18
|
+
export type TypedChartDataOptions<CT extends SupportedChartType> = CT extends 'areamap' ? AreamapChartDataOptions : CT extends 'scattermap' ? ScattermapChartDataOptions : CT extends 'pie' | 'funnel' | 'treemap' | 'sunburst' ? CategoricalChartDataOptions : CT extends 'column' | 'bar' | 'line' | 'area' | 'polar' ? CartesianChartDataOptions : CT extends 'calendar-heatmap' ? CalendarHeatmapChartDataOptions : never;
|
|
19
|
+
export type TypedDataOptionsInternal<CT extends SupportedChartType> = CT extends 'areamap' ? AreamapChartDataOptionsInternal : CT extends 'scattermap' ? ScattermapChartDataOptionsInternal : CT extends 'pie' | 'funnel' | 'treemap' | 'sunburst' ? CategoricalChartDataOptionsInternal : CT extends 'column' | 'bar' | 'line' | 'area' | 'polar' ? CartesianChartDataOptionsInternal : CT extends 'calendar-heatmap' ? CalendarHeatmapChartDataOptionsInternal : never;
|
|
20
|
+
export type TypedChartStyleOptions<CT extends SupportedChartType> = CT extends 'areamap' ? AreamapStyleOptions : CT extends 'scattermap' ? ScattermapStyleOptions : CT extends 'pie' ? PieStyleOptions : CT extends 'funnel' ? FunnelStyleOptions : CT extends 'treemap' ? TreemapStyleOptions : CT extends 'sunburst' ? SunburstStyleOptions : CT extends 'column' | 'bar' ? StackableStyleOptions : CT extends 'line' ? LineStyleOptions : CT extends 'area' ? AreaStyleOptions : CT extends 'polar' ? PolarStyleOptions : CT extends 'calendar-heatmap' ? CalendarHeatmapStyleOptions : never;
|
|
19
21
|
export type TypedDesignOptions<CT extends SupportedChartType> = DesignOptions<CT>;
|
|
20
|
-
export type TypedChartData<CT extends SupportedChartType> = CT extends 'areamap' ? AreamapData : CT extends 'scattermap' ? ScattermapChartData : CT extends 'column' | 'bar' | 'line' | 'area' | 'polar' ? CartesianChartData : never;
|
|
22
|
+
export type TypedChartData<CT extends SupportedChartType> = CT extends 'areamap' ? AreamapData : CT extends 'scattermap' ? ScattermapChartData : CT extends 'pie' | 'funnel' | 'treemap' | 'sunburst' ? CategoricalChartData : CT extends 'column' | 'bar' | 'line' | 'area' | 'polar' ? CartesianChartData : CT extends 'calendar-heatmap' ? CalendarHeatmapChartData : never;
|
|
21
23
|
export type TypedLoadDataFunction<CT extends SupportedChartType> = (options: {
|
|
22
24
|
app: ClientApplication;
|
|
23
25
|
chartDataOptionsInternal: TypedDataOptionsInternal<CT>;
|
|
24
26
|
queryDescription: QueryDescription;
|
|
25
27
|
executionConfig?: QueryExecutionConfig;
|
|
26
28
|
}) => Promise<QueryResultData>;
|
|
27
|
-
export type TypedChartRendererProps<CT extends SupportedChartType> = CT extends 'areamap' ? AreamapProps : CT extends 'scattermap' ? ScattermapProps : CT extends 'column' | 'bar' | 'line' | 'area' | 'polar' ? HighchartsBasedChartRendererProps<CT> : never;
|
|
29
|
+
export type TypedChartRendererProps<CT extends SupportedChartType> = CT extends 'areamap' ? AreamapProps : CT extends 'scattermap' ? ScattermapProps : CT extends 'column' | 'bar' | 'line' | 'area' | 'polar' | 'pie' | 'funnel' | 'calendar-heatmap' | 'treemap' | 'sunburst' ? HighchartsBasedChartRendererProps<CT> : never;
|
|
28
30
|
/**
|
|
29
31
|
* Chart builder interface.
|
|
30
32
|
*/
|
|
@@ -3,6 +3,7 @@ import { IndicatorChartType } from '../chart-options-processor/translations/type
|
|
|
3
3
|
import { ComparableData, Value } from '../chart-data-processor/table-processor';
|
|
4
4
|
import { Coordinates } from '../charts/map-charts/scattermap/types';
|
|
5
5
|
import { AreamapData } from '../chart/restructured-charts/areamap-chart/types';
|
|
6
|
+
import { CalendarHeatmapChartData } from '../chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data';
|
|
6
7
|
export type CategoricalXValues = {
|
|
7
8
|
key: string;
|
|
8
9
|
xValues: string[];
|
|
@@ -140,5 +141,5 @@ export type BoxplotChartData = {
|
|
|
140
141
|
*
|
|
141
142
|
* @internal
|
|
142
143
|
*/
|
|
143
|
-
export type ChartData = CartesianChartData | CategoricalChartData | ScatterChartData | IndicatorChartData | BoxplotChartData | AreamapData | ScattermapChartData | RangeChartData;
|
|
144
|
+
export type ChartData = CartesianChartData | CategoricalChartData | ScatterChartData | IndicatorChartData | BoxplotChartData | AreamapData | ScattermapChartData | RangeChartData | CalendarHeatmapChartData;
|
|
144
145
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Attribute, Measure } from '@sisense/sdk-data';
|
|
2
2
|
import { ChartType } from '../types';
|
|
3
|
-
import { ChartDataOptions, ChartDataOptionsInternal, TableDataOptionsInternal, TableDataOptions, PivotTableDataOptions, PivotTableDataOptionsInternal } from './types';
|
|
3
|
+
import { ChartDataOptions, CategoricalChartDataOptions, CategoricalChartDataOptionsInternal, ChartDataOptionsInternal, TableDataOptionsInternal, TableDataOptions, PivotTableDataOptions, PivotTableDataOptionsInternal } from './types';
|
|
4
4
|
export declare function translateChartDataOptions(chartType: ChartType, dataOptions: ChartDataOptions): ChartDataOptionsInternal;
|
|
5
|
+
export declare const translateCategoricalChartDataOptions: (categorical: CategoricalChartDataOptions) => CategoricalChartDataOptionsInternal;
|
|
5
6
|
export declare function getAttributes(dataOptions: ChartDataOptionsInternal, chartType: ChartType): Attribute[];
|
|
6
7
|
export declare function getMeasures(dataOptions: ChartDataOptionsInternal, chartType: ChartType): Measure[];
|
|
7
8
|
export declare function translateTableDataOptions(dataOptions: TableDataOptions): TableDataOptionsInternal;
|
|
@@ -285,6 +285,8 @@ export interface CategoricalChartDataOptions {
|
|
|
285
285
|
value: (MeasureColumn | CalculatedMeasureColumn | StyledMeasureColumn)[];
|
|
286
286
|
/**
|
|
287
287
|
* Columns (or attributes) whose values represent categories in the chart.
|
|
288
|
+
*
|
|
289
|
+
* For funnel charts, only the first 50 categories will be used.
|
|
288
290
|
*/
|
|
289
291
|
category: (Column | StyledColumn)[];
|
|
290
292
|
/**
|
|
@@ -372,6 +374,16 @@ export interface AreamapChartDataOptions {
|
|
|
372
374
|
/** Measure column (or measure) encoded by the color of the countries (or states) on the map. */
|
|
373
375
|
color?: [MeasureColumn | CalculatedMeasureColumn | StyledMeasureColumn];
|
|
374
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* Configuration for how to query aggregate data and assign data
|
|
379
|
+
* to a calendar-heatmap chart.
|
|
380
|
+
*/
|
|
381
|
+
export interface CalendarHeatmapChartDataOptions {
|
|
382
|
+
/** Date column representing dates on the calendar heatmap. */
|
|
383
|
+
date: Column | StyledColumn;
|
|
384
|
+
/** Measure column (or measure) assigned to the calendar cells. */
|
|
385
|
+
value: MeasureColumn | CalculatedMeasureColumn | StyledMeasureColumn;
|
|
386
|
+
}
|
|
375
387
|
/**
|
|
376
388
|
* Configuration for how to query data and assign data to Table.
|
|
377
389
|
*/
|
|
@@ -555,7 +567,7 @@ export type ChartDataOptions = RegularChartDataOptions | TabularChartDataOptions
|
|
|
555
567
|
/**
|
|
556
568
|
* Configuration for how to query aggregate data and assigning data to chart encodings of regular charts.
|
|
557
569
|
*/
|
|
558
|
-
export type RegularChartDataOptions = CartesianChartDataOptions | CategoricalChartDataOptions | ScatterChartDataOptions | IndicatorChartDataOptions | BoxplotChartDataOptions | BoxplotChartCustomDataOptions | AreamapChartDataOptions | ScattermapChartDataOptions | RangeChartDataOptions;
|
|
570
|
+
export type RegularChartDataOptions = CartesianChartDataOptions | CategoricalChartDataOptions | ScatterChartDataOptions | IndicatorChartDataOptions | BoxplotChartDataOptions | BoxplotChartCustomDataOptions | AreamapChartDataOptions | ScattermapChartDataOptions | RangeChartDataOptions | CalendarHeatmapChartDataOptions;
|
|
559
571
|
/** @internal */
|
|
560
572
|
export interface CartesianChartDataOptionsInternal {
|
|
561
573
|
x: StyledColumn[];
|
|
@@ -629,7 +641,7 @@ export interface PivotTableDataOptionsInternal {
|
|
|
629
641
|
grandTotals?: PivotGrandTotals;
|
|
630
642
|
}
|
|
631
643
|
/** @internal */
|
|
632
|
-
export type ChartDataOptionsInternal = CartesianChartDataOptionsInternal | CategoricalChartDataOptionsInternal | ScatterChartDataOptionsInternal | IndicatorChartDataOptionsInternal | BoxplotChartDataOptionsInternal | AreamapChartDataOptionsInternal | ScattermapChartDataOptionsInternal | RangeChartDataOptionsInternal;
|
|
644
|
+
export type ChartDataOptionsInternal = CartesianChartDataOptionsInternal | CategoricalChartDataOptionsInternal | ScatterChartDataOptionsInternal | IndicatorChartDataOptionsInternal | BoxplotChartDataOptionsInternal | AreamapChartDataOptionsInternal | ScattermapChartDataOptionsInternal | RangeChartDataOptionsInternal | CalendarHeatmapChartDataOptionsInternal;
|
|
633
645
|
/** @internal */
|
|
634
646
|
export type IndicatorChartDataOptionsInternal = {
|
|
635
647
|
value?: StyledMeasureColumn[];
|
|
@@ -654,3 +666,8 @@ export type AreamapChartDataOptionsInternal = {
|
|
|
654
666
|
geo: StyledColumn;
|
|
655
667
|
color?: StyledMeasureColumn;
|
|
656
668
|
};
|
|
669
|
+
/** @internal */
|
|
670
|
+
export type CalendarHeatmapChartDataOptionsInternal = {
|
|
671
|
+
date: StyledColumn;
|
|
672
|
+
value: StyledMeasureColumn;
|
|
673
|
+
};
|
|
@@ -41,7 +41,7 @@ export declare function isMeasureColumn(arg: AnyColumn): arg is MeasureColumn |
|
|
|
41
41
|
* @param name - The name of the column.
|
|
42
42
|
* @returns The title of the column.
|
|
43
43
|
*/
|
|
44
|
-
export declare const getDataOptionTitle: (
|
|
44
|
+
export declare const getDataOptionTitle: (styledColumn: StyledColumn | StyledMeasureColumn) => string;
|
|
45
45
|
export declare const getDataOptionGranularity: ({ column, granularity }: StyledColumn) => string;
|
|
46
46
|
/** @internal */
|
|
47
47
|
export declare const translateColumnToAttribute: (c: Column | StyledColumn) => Attribute;
|
|
@@ -60,7 +60,7 @@ export declare function isStyledColumn(targetColumn: AnyColumn): targetColumn is
|
|
|
60
60
|
* @internal
|
|
61
61
|
*/
|
|
62
62
|
export declare function isCategoryStyle(category: Column | CategoryStyle): category is CategoryStyle;
|
|
63
|
-
export declare function normalizeColumn(targetColumn: Column | StyledColumn): StyledColumn;
|
|
64
|
-
export declare function normalizeMeasureColumn(targetColumn: MeasureColumn | CalculatedMeasureColumn | StyledMeasureColumn): StyledMeasureColumn;
|
|
65
|
-
export declare function normalizeAnyColumn(targetColumn: AnyColumn): StyledColumn | StyledMeasureColumn;
|
|
63
|
+
export declare function normalizeColumn(targetColumn: Column | StyledColumn, defaultStyle?: CategoryStyle): StyledColumn;
|
|
64
|
+
export declare function normalizeMeasureColumn(targetColumn: MeasureColumn | CalculatedMeasureColumn | StyledMeasureColumn, defaultStyle?: ValueStyle): StyledMeasureColumn;
|
|
65
|
+
export declare function normalizeAnyColumn(targetColumn: AnyColumn, defaultStyle?: CategoryStyle | ValueStyle): StyledColumn | StyledMeasureColumn;
|
|
66
66
|
export {};
|
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
import { CategoricalChartType } from '../../types';
|
|
2
2
|
import { CategoricalChartDataOptions } from '../types';
|
|
3
3
|
export declare function validateCategoricalChartDataOptions(chartType: CategoricalChartType, dataOptions: CategoricalChartDataOptions): CategoricalChartDataOptions;
|
|
4
|
+
/**
|
|
5
|
+
* Creates a transformer that limits the number of categories in chart data options.
|
|
6
|
+
*
|
|
7
|
+
* @param maxCategories - Maximum allowed number of categories
|
|
8
|
+
* @returns Transformer function that limits categories
|
|
9
|
+
*/
|
|
10
|
+
export declare function withCategoryLimitation(maxCategories: number): (dataOptions: CategoricalChartDataOptions) => CategoricalChartDataOptions;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a transformer that limits the number of values in chart data options.
|
|
13
|
+
*
|
|
14
|
+
* @param maxValues - Maximum allowed number of values
|
|
15
|
+
* @returns Transformer function that limits values
|
|
16
|
+
*/
|
|
17
|
+
export declare function withValueLimitation(maxValues: number): (dataOptions: CategoricalChartDataOptions) => CategoricalChartDataOptions;
|
package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts
CHANGED
|
@@ -33,12 +33,34 @@ interface SeriesProcessingConfig {
|
|
|
33
33
|
* Process and format series data for the chart
|
|
34
34
|
*/
|
|
35
35
|
export declare function processSeries(config: SeriesProcessingConfig): {
|
|
36
|
+
borderRadius?: string | number | undefined;
|
|
37
|
+
groupPadding?: number | undefined;
|
|
38
|
+
pointPadding?: number | undefined;
|
|
39
|
+
shadow?: boolean | undefined;
|
|
40
|
+
linecap?: string | undefined;
|
|
41
|
+
dashStyle?: import("../../../types").DashStyle | undefined;
|
|
42
|
+
lineWidth?: number | undefined;
|
|
36
43
|
dataLabels: {
|
|
37
44
|
formatter: (this: import("../../tooltip").HighchartsDataPointContext) => string;
|
|
45
|
+
animation?: {
|
|
46
|
+
defer: number;
|
|
47
|
+
} | undefined;
|
|
48
|
+
y?: number | undefined;
|
|
49
|
+
x?: number | undefined;
|
|
50
|
+
padding?: number | undefined;
|
|
51
|
+
borderWidth?: number | undefined;
|
|
52
|
+
borderRadius?: number | undefined;
|
|
53
|
+
borderColor?: string | undefined;
|
|
54
|
+
backgroundColor?: string | undefined;
|
|
55
|
+
style?: import("../../../types").SeriesLabelsTextStyle | undefined;
|
|
56
|
+
verticalAlign?: "top" | "middle" | "bottom" | undefined;
|
|
57
|
+
align?: "center" | "left" | "right" | undefined;
|
|
58
|
+
inside?: boolean | undefined;
|
|
59
|
+
rotation?: number | undefined;
|
|
60
|
+
enabled: boolean;
|
|
38
61
|
};
|
|
39
62
|
connectNulls: boolean;
|
|
40
63
|
marker: import("../../translations/marker-section").MarkerSettings;
|
|
41
|
-
lineWidth: number;
|
|
42
64
|
type?: string | undefined;
|
|
43
65
|
showInNavigator: boolean;
|
|
44
66
|
stickyTracking: boolean;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { ChartDesignOptions } from '
|
|
2
|
-
import { ChartType, OptionsWithAlerts, CompleteThemeSettings } from '
|
|
3
|
-
import { CategoricalChartData } from '
|
|
4
|
-
import { HighchartsOptionsInternal } from '
|
|
5
|
-
import { ChartDataOptionsInternal } from '
|
|
1
|
+
import { ChartDesignOptions } from '../translations/types';
|
|
2
|
+
import { ChartType, OptionsWithAlerts, CompleteThemeSettings } from '../../types';
|
|
3
|
+
import { CategoricalChartData } from '../../chart-data/types';
|
|
4
|
+
import { HighchartsOptionsInternal } from '../chart-options-service';
|
|
5
|
+
import { ChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
6
6
|
import { TFunction } from '@sisense/sdk-common';
|
|
7
|
+
export { getPieChartOptions } from './pie-chart-options';
|
|
8
|
+
export { getFunnelChartOptions } from './funnel-chart-options';
|
|
9
|
+
export { getTreemapChartOptions } from './treemap-chart-options';
|
|
10
|
+
export { getSunburstChartOptions } from './sunburst-chart-options';
|
|
7
11
|
/**
|
|
8
12
|
* Convert intermediate chart data, data options, and design options
|
|
9
13
|
* into pure highcharts config data.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FunnelChartDesignOptions } from '../translations/design-options';
|
|
2
|
+
import { OptionsWithAlerts, CompleteThemeSettings } from '../../types';
|
|
3
|
+
import { CategoricalChartData } from '../../chart-data/types';
|
|
4
|
+
import { HighchartsOptionsInternal } from '../chart-options-service';
|
|
5
|
+
import { CategoricalChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
6
|
+
/**
|
|
7
|
+
* Convert intermediate chart data, data options, and design options
|
|
8
|
+
* into pure highcharts config data for funnel charts.
|
|
9
|
+
*
|
|
10
|
+
* @param chartData - the data for the chart in an intermediate format
|
|
11
|
+
* @param chartDesignOptions - funnel chart specific design options
|
|
12
|
+
* @param dataOptions - chart data options
|
|
13
|
+
* @param themeSettings - theme settings
|
|
14
|
+
*/
|
|
15
|
+
export declare const getFunnelChartOptions: (chartData: CategoricalChartData, chartDesignOptions: FunnelChartDesignOptions, dataOptions: CategoricalChartDataOptionsInternal, themeSettings?: CompleteThemeSettings) => OptionsWithAlerts<HighchartsOptionsInternal>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PieChartDesignOptions } from '../translations/design-options';
|
|
2
|
+
import { OptionsWithAlerts, CompleteThemeSettings } from '../../types';
|
|
3
|
+
import { CategoricalChartData } from '../../chart-data/types';
|
|
4
|
+
import { HighchartsOptionsInternal } from '../chart-options-service';
|
|
5
|
+
import { CategoricalChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
6
|
+
/**
|
|
7
|
+
* Convert intermediate chart data, data options, and design options
|
|
8
|
+
* into pure highcharts config data for pie charts.
|
|
9
|
+
*
|
|
10
|
+
* @param chartData - the data for the chart in an intermediate format
|
|
11
|
+
* @param chartDesignOptions - pie chart specific design options
|
|
12
|
+
* @param dataOptions - chart data options
|
|
13
|
+
* @param themeSettings - theme settings
|
|
14
|
+
*/
|
|
15
|
+
export declare const getPieChartOptions: (chartData: CategoricalChartData, chartDesignOptions: PieChartDesignOptions, dataOptions: CategoricalChartDataOptionsInternal, themeSettings?: CompleteThemeSettings) => OptionsWithAlerts<HighchartsOptionsInternal>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TreemapChartDesignOptions } from '../translations/design-options';
|
|
2
|
+
import { OptionsWithAlerts, CompleteThemeSettings } from '../../types';
|
|
3
|
+
import { CategoricalChartData } from '../../chart-data/types';
|
|
4
|
+
import { HighchartsOptionsInternal } from '../chart-options-service';
|
|
5
|
+
import { CategoricalChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
6
|
+
import { TFunction } from '@sisense/sdk-common';
|
|
7
|
+
/**
|
|
8
|
+
* Convert intermediate chart data, data options, and design options
|
|
9
|
+
* into pure highcharts config data for sunburst charts.
|
|
10
|
+
*
|
|
11
|
+
* @param chartData - the data for the chart in an intermediate format
|
|
12
|
+
* @param chartDesignOptions - sunburst chart specific design options
|
|
13
|
+
* @param dataOptions - chart data options
|
|
14
|
+
* @param translate - translation function
|
|
15
|
+
* @param themeSettings - theme settings
|
|
16
|
+
*/
|
|
17
|
+
export declare const getSunburstChartOptions: (chartData: CategoricalChartData, chartDesignOptions: TreemapChartDesignOptions, dataOptions: CategoricalChartDataOptionsInternal, translate: TFunction, themeSettings?: CompleteThemeSettings) => OptionsWithAlerts<HighchartsOptionsInternal>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TreemapChartDesignOptions } from '../translations/design-options';
|
|
2
|
+
import { OptionsWithAlerts, CompleteThemeSettings } from '../../types';
|
|
3
|
+
import { CategoricalChartData } from '../../chart-data/types';
|
|
4
|
+
import { HighchartsOptionsInternal } from '../chart-options-service';
|
|
5
|
+
import { CategoricalChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
6
|
+
import { TFunction } from '@sisense/sdk-common';
|
|
7
|
+
/**
|
|
8
|
+
* Convert intermediate chart data, data options, and design options
|
|
9
|
+
* into pure highcharts config data for treemap charts.
|
|
10
|
+
*
|
|
11
|
+
* @param chartData - the data for the chart in an intermediate format
|
|
12
|
+
* @param chartDesignOptions - treemap chart specific design options
|
|
13
|
+
* @param dataOptions - chart data options
|
|
14
|
+
* @param translate - translation function
|
|
15
|
+
* @param themeSettings - theme settings
|
|
16
|
+
*/
|
|
17
|
+
export declare const getTreemapChartOptions: (chartData: CategoricalChartData, chartDesignOptions: TreemapChartDesignOptions, dataOptions: CategoricalChartDataOptionsInternal, translate: TFunction, themeSettings?: CompleteThemeSettings) => OptionsWithAlerts<HighchartsOptionsInternal>;
|
|
@@ -3,7 +3,7 @@ import { TFunction } from '@sisense/sdk-common';
|
|
|
3
3
|
import { ChartData } from '../chart-data/types';
|
|
4
4
|
import { ChartDesignOptions } from './translations/types';
|
|
5
5
|
import { LegendSettings } from './translations/legend-section';
|
|
6
|
-
import {
|
|
6
|
+
import { DataLabelsSettings } from './translations/value-label-section';
|
|
7
7
|
import { MarkerSettings } from './translations/marker-section';
|
|
8
8
|
import { AxisSettings } from './translations/axis-section';
|
|
9
9
|
import { HighchartsType, HighchartsSeriesValues } from './translations/translations-to-highcharts';
|
|
@@ -57,9 +57,15 @@ export type SeriesType = HighchartsSeriesValues & {
|
|
|
57
57
|
dashStyle?: string;
|
|
58
58
|
lineWidth?: number;
|
|
59
59
|
zIndex?: number;
|
|
60
|
+
keys?: string[];
|
|
61
|
+
nullColor?: string;
|
|
62
|
+
borderWidth?: number;
|
|
63
|
+
borderColor?: string;
|
|
64
|
+
colsize?: number;
|
|
65
|
+
rowsize?: number;
|
|
60
66
|
};
|
|
61
67
|
type ChartPlotOptions = {
|
|
62
|
-
dataLabels?:
|
|
68
|
+
dataLabels?: DataLabelsSettings;
|
|
63
69
|
groupPadding?: number;
|
|
64
70
|
pointPadding?: number;
|
|
65
71
|
pointPlacement?: null;
|
|
@@ -83,7 +89,7 @@ export type Stacking = 'normal' | 'percent';
|
|
|
83
89
|
export type PlotOptions = {
|
|
84
90
|
series: {
|
|
85
91
|
lineWidth?: number;
|
|
86
|
-
dataLabels?:
|
|
92
|
+
dataLabels?: DataLabelsSettings;
|
|
87
93
|
marker?: MarkerSettings;
|
|
88
94
|
stacking?: Stacking;
|
|
89
95
|
stickyTracking?: boolean;
|
|
@@ -118,6 +124,7 @@ export type PlotOptions = {
|
|
|
118
124
|
boxplot?: ChartPlotOptions;
|
|
119
125
|
scatter?: ChartPlotOptions;
|
|
120
126
|
arearange?: ChartPlotOptions;
|
|
127
|
+
heatmap?: ChartPlotOptions;
|
|
121
128
|
};
|
|
122
129
|
/**
|
|
123
130
|
* Highcharts options internal
|
|
@@ -146,6 +153,13 @@ export type HighchartsOptionsInternal = {
|
|
|
146
153
|
zooming?: {
|
|
147
154
|
type: string;
|
|
148
155
|
};
|
|
156
|
+
plotBorderWidth?: number;
|
|
157
|
+
backgroundColor?: string;
|
|
158
|
+
marginBottom?: number;
|
|
159
|
+
marginLeft?: number;
|
|
160
|
+
marginRight?: number;
|
|
161
|
+
width?: number;
|
|
162
|
+
height?: number;
|
|
149
163
|
};
|
|
150
164
|
title?: {
|
|
151
165
|
text: string | null;
|
|
@@ -176,6 +190,18 @@ export type HighchartsOptionsInternal = {
|
|
|
176
190
|
enabled: boolean;
|
|
177
191
|
};
|
|
178
192
|
drilldown?: DrilldownOptions;
|
|
193
|
+
accessibility?: {
|
|
194
|
+
enabled?: boolean;
|
|
195
|
+
landmarkVerbosity?: 'one' | 'all';
|
|
196
|
+
};
|
|
197
|
+
colorAxis?: {
|
|
198
|
+
min?: number;
|
|
199
|
+
max?: number;
|
|
200
|
+
stops?: [number, string][];
|
|
201
|
+
labels?: {
|
|
202
|
+
format: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
179
205
|
};
|
|
180
206
|
type Navigator = {
|
|
181
207
|
series: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ChartDesignOptions } from './translations/types';
|
|
2
|
-
import { ChartType, OptionsWithAlerts, CompleteThemeSettings } from '../types';
|
|
2
|
+
import { ChartType, OptionsWithAlerts, CompleteThemeSettings, LegendOptions } from '../types';
|
|
3
3
|
import { ScatterChartData } from '../chart-data/types';
|
|
4
4
|
import { HighchartsOptionsInternal } from './chart-options-service';
|
|
5
5
|
import { ChartDataOptionsInternal } from '../chart-data-options/types';
|
|
6
|
-
import {
|
|
6
|
+
import { LegendSettings } from './translations/legend-section';
|
|
7
7
|
/**
|
|
8
8
|
* @param position
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
|
-
export declare const getScatterLegendSettings: (
|
|
11
|
+
export declare const getScatterLegendSettings: (legend?: LegendOptions) => LegendSettings;
|
|
12
12
|
/**
|
|
13
13
|
* Convert intermediate chart data, data options, and design options
|
|
14
14
|
* into pure highcharts config data.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SeriesLabels } from '..';
|
|
2
|
+
export declare const prepareDataLabelsOptions: (seriesLabels?: SeriesLabels) => {
|
|
3
|
+
animation?: {
|
|
4
|
+
defer: number;
|
|
5
|
+
} | undefined;
|
|
6
|
+
y?: number | undefined;
|
|
7
|
+
x?: number | undefined;
|
|
8
|
+
padding?: number | undefined;
|
|
9
|
+
borderWidth?: number | undefined;
|
|
10
|
+
borderRadius?: number | undefined;
|
|
11
|
+
borderColor?: string | undefined;
|
|
12
|
+
backgroundColor?: string | undefined;
|
|
13
|
+
style?: import("..").SeriesLabelsTextStyle | undefined;
|
|
14
|
+
verticalAlign?: "top" | "middle" | "bottom" | undefined;
|
|
15
|
+
align?: "center" | "left" | "right" | undefined;
|
|
16
|
+
inside?: boolean | undefined;
|
|
17
|
+
rotation?: number | undefined;
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, BaseStyleOptions, TreemapStyleOptions, SunburstStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, BaseAxisStyleOptions, ChartStyleOptions, ChartType } from '../../types';
|
|
2
2
|
import { StackableChartDesignOptions, LineChartDesignOptions, PieChartDesignOptions, FunnelChartDesignOptions, PolarChartDesignOptions, ScatterChartDesignOptions, AreaChartDesignOptions, TreemapChartDesignOptions, SunburstChartDesignOptions, BoxplotChartDesignOptions, ScattermapChartDesignOptions, BaseDesignOptionsType } from '../translations/design-options';
|
|
3
|
-
import { LegendPosition } from '../translations/legend-section';
|
|
4
3
|
import { StackType } from '../translations/translations-to-highcharts';
|
|
5
4
|
import { CartesianChartType, SeriesDesignOptions } from '../translations/types';
|
|
6
5
|
import { CartesianChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
7
|
-
export declare const getLegend: (legend?: Legend) => LegendPosition;
|
|
8
6
|
export declare const DefaultStackType: StackType;
|
|
9
7
|
export declare const getCartesianChartStyle: (styleOptions: BaseStyleOptions & BaseAxisStyleOptions, shouldHaveY2Axis: boolean) => BaseDesignOptionsType;
|
|
10
8
|
export declare const getStackableChartDesignOptions: (styleOptions: AreaStyleOptions | StackableStyleOptions, dataOptions: CartesianChartDataOptionsInternal, hasY2Axis: boolean, chartType: CartesianChartType) => StackableChartDesignOptions;
|
|
@@ -36,12 +36,14 @@ export type AxisSettings = {
|
|
|
36
36
|
tickWidth?: number;
|
|
37
37
|
lineColor?: string;
|
|
38
38
|
lineWidth?: number;
|
|
39
|
+
offset?: number;
|
|
39
40
|
labels?: {
|
|
40
41
|
overflow?: 'none' | 'justify';
|
|
41
42
|
enabled?: boolean;
|
|
42
43
|
autoRotation?: number[];
|
|
43
44
|
style?: TextStyle;
|
|
44
45
|
rotation?: number;
|
|
46
|
+
y?: number;
|
|
45
47
|
formatter?: (this: AxisLabelsFormatterContextObject) => string;
|
|
46
48
|
};
|
|
47
49
|
min?: number | null;
|
|
@@ -67,6 +69,10 @@ export type AxisSettings = {
|
|
|
67
69
|
stackLabels?: StackLabel;
|
|
68
70
|
showLastLabel?: boolean;
|
|
69
71
|
visible?: boolean;
|
|
72
|
+
accessibility?: {
|
|
73
|
+
description?: string;
|
|
74
|
+
rangeDescription?: string;
|
|
75
|
+
};
|
|
70
76
|
};
|
|
71
77
|
export type StackLabel = {
|
|
72
78
|
style: TextStyle;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PlotOptions } from '../../chart-options-service.js';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getBoxplotPlotOptions: (
|
|
2
|
+
import { SeriesLabels } from '../../../types.js';
|
|
3
|
+
export declare const getBoxplotPlotOptions: (seriesLabels: SeriesLabels | undefined) => PlotOptions;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { ValueLabelOptions } from './value-label-section';
|
|
2
1
|
import { Axis } from './axis-section';
|
|
3
2
|
import { Marker } from './marker-section';
|
|
4
|
-
import { LegendPosition } from './legend-section';
|
|
5
3
|
import { LineType, StackType } from './translations-to-highcharts';
|
|
6
4
|
import { PieType, PieLabels } from './pie-plot-options';
|
|
7
5
|
import { FunnelSize, FunnelType, FunnelDirection, FunnelLabels } from './funnel-plot-options';
|
|
8
|
-
import { Convolution, ScattermapMarkers, SunburstStyleOptions, TreemapStyleOptions } from '../../types';
|
|
6
|
+
import { CalendarHeatmapViewType, Convolution, LineOptions, LegendOptions, SeriesLabels, ScattermapMarkers, SunburstStyleOptions, TreemapStyleOptions } from '../../types';
|
|
9
7
|
import { ScatterMarkerSize } from './scatter-plot-options';
|
|
10
|
-
import { DesignPerSeries } from './types';
|
|
8
|
+
import { DesignPerSeries, TextStyle } from './types';
|
|
9
|
+
import { CalendarDayOfWeek } from '../../chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils';
|
|
11
10
|
type DataLimits = {
|
|
12
11
|
seriesCapacity: number;
|
|
13
12
|
categoriesCapacity: number;
|
|
14
13
|
};
|
|
15
14
|
export type BaseDesignOptionsType = {
|
|
16
|
-
legend
|
|
17
|
-
|
|
15
|
+
legend?: LegendOptions;
|
|
16
|
+
seriesLabels?: SeriesLabels;
|
|
18
17
|
lineType: LineType;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated
|
|
20
|
+
* Use line.width instead
|
|
21
|
+
*/
|
|
19
22
|
lineWidth: number;
|
|
20
23
|
marker: Marker;
|
|
21
24
|
xAxis: Axis;
|
|
@@ -33,17 +36,47 @@ export type BaseDesignOptionsType = {
|
|
|
33
36
|
};
|
|
34
37
|
export type CartesianChartDesignOptions = BaseDesignOptionsType & DesignPerSeries;
|
|
35
38
|
export type StackableChartDesignOptions = CartesianChartDesignOptions & {
|
|
39
|
+
line?: LineOptions;
|
|
36
40
|
stackType: StackType;
|
|
37
41
|
showTotal?: boolean;
|
|
38
42
|
totalLabelRotation?: number;
|
|
43
|
+
itemPadding?: number;
|
|
44
|
+
groupPadding?: number;
|
|
45
|
+
borderRadius?: number | string;
|
|
39
46
|
};
|
|
40
47
|
export type LineChartDesignOptions = CartesianChartDesignOptions & {
|
|
41
48
|
/** Step type for step line charts: left, center, or right */
|
|
42
49
|
step?: 'left' | 'center' | 'right';
|
|
50
|
+
line?: LineOptions;
|
|
43
51
|
};
|
|
44
52
|
export type AreaChartDesignOptions = StackableChartDesignOptions;
|
|
45
53
|
export type BarChartDesignOptions = StackableChartDesignOptions;
|
|
46
54
|
export type ColumnChartDesignOptions = StackableChartDesignOptions;
|
|
55
|
+
export type CalendarHeatmapChartDesignOptions = BaseDesignOptionsType & {
|
|
56
|
+
width?: number;
|
|
57
|
+
height?: number;
|
|
58
|
+
viewType: CalendarHeatmapViewType;
|
|
59
|
+
cellSize?: number;
|
|
60
|
+
startOfWeek: CalendarDayOfWeek;
|
|
61
|
+
cellLabels: {
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
style?: TextStyle;
|
|
64
|
+
};
|
|
65
|
+
dayLabels: {
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
style?: TextStyle;
|
|
68
|
+
};
|
|
69
|
+
monthLabels: {
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
style?: TextStyle;
|
|
72
|
+
};
|
|
73
|
+
weekends: {
|
|
74
|
+
enabled: boolean;
|
|
75
|
+
days: CalendarDayOfWeek[];
|
|
76
|
+
cellColor?: string;
|
|
77
|
+
hideValues: boolean;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
47
80
|
export type PolarType = 'line' | 'area' | 'column';
|
|
48
81
|
export type PolarChartDesignOptions = CartesianChartDesignOptions & {
|
|
49
82
|
polarType: PolarType;
|
|
@@ -185,5 +218,8 @@ export type BoxplotChartDesignOptions = BaseDesignOptionsType & {
|
|
|
185
218
|
export type ScattermapChartDesignOptions = BaseDesignOptionsType & {
|
|
186
219
|
markers: Required<ScattermapMarkers>;
|
|
187
220
|
};
|
|
188
|
-
export type AreaRangeChartDesignOptions = BaseDesignOptionsType
|
|
221
|
+
export type AreaRangeChartDesignOptions = BaseDesignOptionsType & {
|
|
222
|
+
/** Configuration that defines line style */
|
|
223
|
+
line?: LineOptions;
|
|
224
|
+
};
|
|
189
225
|
export {};
|
package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PlotOptions } from '../chart-options-service';
|
|
2
|
-
import {
|
|
2
|
+
import { DataLabelsSettings } from './value-label-section';
|
|
3
3
|
import { CompleteThemeSettings } from '../../types';
|
|
4
4
|
import { FunnelChartDesignOptions } from './design-options';
|
|
5
5
|
import { ChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
@@ -26,7 +26,7 @@ export type FunnelDirection = (typeof funnelDirections)[number];
|
|
|
26
26
|
export type FunnelOptions = {
|
|
27
27
|
allowPointSelect: boolean;
|
|
28
28
|
cursor: 'pointer';
|
|
29
|
-
dataLabels:
|
|
29
|
+
dataLabels: DataLabelsSettings & {
|
|
30
30
|
funnelMinimumFontSizeToTextLabel: number;
|
|
31
31
|
formatter?: () => string;
|
|
32
32
|
};
|
|
@@ -12,3 +12,11 @@ import { CategoricalChartDataOptionsInternal } from '../../chart-data-options/ty
|
|
|
12
12
|
* @param themeSettings
|
|
13
13
|
*/
|
|
14
14
|
export declare const formatFunnelChartData: (chartData: CategoricalChartData, dataOptions: CategoricalChartDataOptionsInternal, designOptions: FunnelChartDesignOptions, themeSettings?: CompleteThemeSettings) => SeriesWithAlerts<SeriesType[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Calculate alerts for funnel chart based on data limits.
|
|
17
|
+
*
|
|
18
|
+
* @param chartData - The categorical chart data
|
|
19
|
+
* @param designOptions - The funnel chart design options
|
|
20
|
+
* @returns Array of alert messages
|
|
21
|
+
*/
|
|
22
|
+
export declare function getAlerts(chartData: CategoricalChartData, designOptions: FunnelChartDesignOptions): string[];
|