@sisense/sdk-ui 0.11.3
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/LICENSE.md +35 -0
- package/README.md +2 -0
- package/dist/alert-box/alert-box.d.ts +6 -0
- package/dist/app/client-application.d.ts +52 -0
- package/dist/app/settings/settings.d.ts +23 -0
- package/dist/app/settings/types/brand.d.ts +1 -0
- package/dist/app/settings/types/deployment-props.d.ts +37 -0
- package/dist/app/settings/types/ecm-props.d.ts +11 -0
- package/dist/app/settings/types/features.d.ts +124 -0
- package/dist/app/settings/types/globalization.d.ts +7 -0
- package/dist/app/settings/types/globals.d.ts +33 -0
- package/dist/app/settings/types/index.d.ts +1 -0
- package/dist/app/settings/types/role-manifest.d.ts +263 -0
- package/dist/app/settings/types/user.d.ts +51 -0
- package/dist/area-chart.d.ts +30 -0
- package/dist/bar-chart.d.ts +29 -0
- package/dist/chart-data/cartesian-data.d.ts +5 -0
- package/dist/chart-data/categorical-data.d.ts +5 -0
- package/dist/chart-data/chart-data-service.d.ts +18 -0
- package/dist/chart-data/filter-and-aggregate-chart-data.d.ts +4 -0
- package/dist/chart-data/indicator-data.d.ts +4 -0
- package/dist/chart-data/scatter-data.d.ts +23 -0
- package/dist/chart-data/series-data-color-service/index.d.ts +3 -0
- package/dist/chart-data/series-data-color-service/legend-color.d.ts +2 -0
- package/dist/chart-data/series-data-color-service/series-data-color-service.d.ts +4 -0
- package/dist/chart-data/series-data-color-service/types.d.ts +143 -0
- package/dist/chart-data/table-data.d.ts +6 -0
- package/dist/chart-data/types.d.ts +80 -0
- package/dist/chart-data/utils.d.ts +7 -0
- package/dist/chart-data-options/coloring/coloring-service.d.ts +22 -0
- package/dist/chart-data-options/coloring/conditional-coloring.d.ts +9 -0
- package/dist/chart-data-options/coloring/consts.d.ts +1 -0
- package/dist/chart-data-options/coloring/index.d.ts +1 -0
- package/dist/chart-data-options/coloring/range-coloring.d.ts +9 -0
- package/dist/chart-data-options/coloring/uniform-coloring.d.ts +4 -0
- package/dist/chart-data-options/translate-data-options.d.ts +7 -0
- package/dist/chart-data-options/types.d.ts +349 -0
- package/dist/chart-data-options/utils.d.ts +11 -0
- package/dist/chart-data-options/validate-data-options.d.ts +21 -0
- package/dist/chart-data-processor/categorical-distribution.d.ts +10 -0
- package/dist/chart-data-processor/data-table-date-period.d.ts +37 -0
- package/dist/chart-data-processor/distribution.d.ts +22 -0
- package/dist/chart-data-processor/row-comparator.d.ts +24 -0
- package/dist/chart-data-processor/table-creators.d.ts +39 -0
- package/dist/chart-data-processor/table-processor.d.ts +93 -0
- package/dist/chart-options-processor/apply-event-handlers.d.ts +49 -0
- package/dist/chart-options-processor/cartesian-chart-options.d.ts +18 -0
- package/dist/chart-options-processor/category-chart-options.d.ts +16 -0
- package/dist/chart-options-processor/chart-options-service.d.ts +253 -0
- package/dist/chart-options-processor/common-highcharts-option-service.d.ts +4 -0
- package/dist/chart-options-processor/defaults/cartesian.d.ts +45 -0
- package/dist/chart-options-processor/plot-bands.d.ts +23 -0
- package/dist/chart-options-processor/scatter-chart-options.d.ts +22 -0
- package/dist/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +4 -0
- package/dist/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +13 -0
- package/dist/chart-options-processor/style-to-design-options-translator/translate-to-indicator-options.d.ts +3 -0
- package/dist/chart-options-processor/subtype-to-design-options.d.ts +97 -0
- package/dist/chart-options-processor/theme-option-service.d.ts +11 -0
- package/dist/chart-options-processor/tooltip.d.ts +29 -0
- package/dist/chart-options-processor/translations/axis-section.d.ts +105 -0
- package/dist/chart-options-processor/translations/base-design-options.d.ts +7 -0
- package/dist/chart-options-processor/translations/design-options.d.ts +118 -0
- package/dist/chart-options-processor/translations/funnel-plot-options.d.ts +53 -0
- package/dist/chart-options-processor/translations/funnel-series.d.ts +15 -0
- package/dist/chart-options-processor/translations/legend-section.d.ts +23 -0
- package/dist/chart-options-processor/translations/marker-section.d.ts +26 -0
- package/dist/chart-options-processor/translations/navigator.d.ts +32 -0
- package/dist/chart-options-processor/translations/number-format-config.d.ts +16 -0
- package/dist/chart-options-processor/translations/pie-plot-options.d.ts +29 -0
- package/dist/chart-options-processor/translations/pie-series.d.ts +19 -0
- package/dist/chart-options-processor/translations/scatter-axis.d.ts +7 -0
- package/dist/chart-options-processor/translations/scatter-plot-options.d.ts +22 -0
- package/dist/chart-options-processor/translations/scatter-series.d.ts +23 -0
- package/dist/chart-options-processor/translations/scatter-tooltip.d.ts +21 -0
- package/dist/chart-options-processor/translations/tooltip-utils.d.ts +39 -0
- package/dist/chart-options-processor/translations/tooltip.d.ts +3 -0
- package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +73 -0
- package/dist/chart-options-processor/translations/treemap/treemap-labels.d.ts +6 -0
- package/dist/chart-options-processor/translations/treemap/treemap-options.d.ts +6 -0
- package/dist/chart-options-processor/translations/treemap/treemap-series.d.ts +5 -0
- package/dist/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +6 -0
- package/dist/chart-options-processor/translations/treemap/types.d.ts +19 -0
- package/dist/chart-options-processor/translations/types.d.ts +36 -0
- package/dist/chart-options-processor/translations/value-label-section.d.ts +28 -0
- package/dist/chart.d.ts +80 -0
- package/dist/charts/indicator/chart/gauge.d.ts +166 -0
- package/dist/charts/indicator/chart/indicator-helper.d.ts +47 -0
- package/dist/charts/indicator/chart/indicator.d.ts +39 -0
- package/dist/charts/indicator/chart/numeric-bar.d.ts +98 -0
- package/dist/charts/indicator/chart/numeric-simple.d.ts +91 -0
- package/dist/charts/indicator/chart/ticker.d.ts +65 -0
- package/dist/charts/indicator/indicator-legacy-chart-data-options.d.ts +36 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/default-options.d.ts +4 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/index.d.ts +1 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +16 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/legacy-chart-options-to-theme-settings-dictionary.d.ts +12 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/override-with-theme-settings.d.ts +3 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/override-with-value-color.d.ts +35 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/utils/override-with-custom-settings.d.ts +22 -0
- package/dist/charts/indicator/types.d.ts +118 -0
- package/dist/charts/table/data-table-wrapper.d.ts +3 -0
- package/dist/charts/table/header/field-type-icon.d.ts +6 -0
- package/dist/charts/table/header/sortable-table-column-header.d.ts +10 -0
- package/dist/charts/table/helpers/calc-column-widths.d.ts +2 -0
- package/dist/charts/table/helpers/format-numbers.d.ts +3 -0
- package/dist/charts/table/helpers/get-cell-styles.d.ts +13 -0
- package/dist/charts/table/index.d.ts +3 -0
- package/dist/charts/table/pure-table.d.ts +8 -0
- package/dist/charts/table/styles/style-constants.d.ts +9 -0
- package/dist/charts/table/types.d.ts +83 -0
- package/dist/column-chart.d.ts +29 -0
- package/dist/dashboard-widget/dashboard-widget.d.ts +16 -0
- package/dist/dashboard-widget/fetch-widget.d.ts +11 -0
- package/dist/dashboard-widget/translate-panel-color-format.d.ts +5 -0
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +7 -0
- package/dist/dashboard-widget/translate-widget-drilldown-options.d.ts +3 -0
- package/dist/dashboard-widget/translate-widget-filters.d.ts +16 -0
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +5 -0
- package/dist/dashboard-widget/translate-widget.d.ts +12 -0
- package/dist/dashboard-widget/types.d.ts +336 -0
- package/dist/dashboard-widget/utils.d.ts +32 -0
- package/dist/decorators/as-sisense-component.d.ts +19 -0
- package/dist/decorators/with-error-boundary.d.ts +5 -0
- package/dist/decorators/with-sisense-context-validation.d.ts +7 -0
- package/dist/decorators/with-tracking/error-tracker.d.ts +20 -0
- package/dist/decorators/with-tracking/index.d.ts +1 -0
- package/dist/decorators/with-tracking/use-track-component-init.d.ts +5 -0
- package/dist/decorators/with-tracking/with-tracking.d.ts +10 -0
- package/dist/dynamic-size-container/default-size.d.ts +14 -0
- package/dist/dynamic-size-container/dynamic-size-container.d.ts +22 -0
- package/dist/dynamic-size-container/index.d.ts +2 -0
- package/dist/error-boundary/error-boundary-box.d.ts +13 -0
- package/dist/error-boundary/error-boundary.d.ts +34 -0
- package/dist/error-boundary/use-set-error.d.ts +2 -0
- package/dist/filters/components/common/buttons.d.ts +10 -0
- package/dist/filters/components/common/checkbox.d.ts +7 -0
- package/dist/filters/components/common/date-range-field-button.d.ts +13 -0
- package/dist/filters/components/common/index.d.ts +5 -0
- package/dist/filters/components/common/input.d.ts +7 -0
- package/dist/filters/components/common/radio.d.ts +6 -0
- package/dist/filters/components/common/switch.d.ts +1 -0
- package/dist/filters/components/date-filter/consts.d.ts +1 -0
- package/dist/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +20 -0
- package/dist/filters/components/date-filter/date-filter/calendar-header.d.ts +12 -0
- package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +61 -0
- package/dist/filters/components/date-filter/date-filter/date-range-calculator.d.ts +8 -0
- package/dist/filters/components/date-filter/date-filter/index.d.ts +1 -0
- package/dist/filters/components/date-filter/date-filter/quick-date-selection-buttons.d.ts +13 -0
- package/dist/filters/components/date-filter/date-filter/styled-date-picker.d.ts +7 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +63 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/index.d.ts +1 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/use-date-limits.d.ts +7 -0
- package/dist/filters/components/date-filter/index.d.ts +2 -0
- package/dist/filters/components/date-filter/types.d.ts +14 -0
- package/dist/filters/components/filter-tile.d.ts +14 -0
- package/dist/filters/components/icons/arrow-down-icon.d.ts +2 -0
- package/dist/filters/components/icons/arrow-right-icon.d.ts +2 -0
- package/dist/filters/components/icons/date-icon.d.ts +5 -0
- package/dist/filters/components/icons/double-arrow-right-icon.d.ts +2 -0
- package/dist/filters/components/icons/index.d.ts +7 -0
- package/dist/filters/components/icons/menu-icon.d.ts +2 -0
- package/dist/filters/components/icons/pencil-icon.d.ts +2 -0
- package/dist/filters/components/icons/plus-icon.d.ts +2 -0
- package/dist/filters/components/icons/search-icon.d.ts +2 -0
- package/dist/filters/components/icons/trash-icon.d.ts +2 -0
- package/dist/filters/components/member-filter-tile/basic-member-filter-tile.d.ts +50 -0
- package/dist/filters/components/member-filter-tile/index.d.ts +3 -0
- package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +46 -0
- package/dist/filters/components/member-filter-tile/member-list.d.ts +11 -0
- package/dist/filters/components/member-filter-tile/members-reducer.d.ts +32 -0
- package/dist/filters/components/member-filter-tile/pill-section.d.ts +9 -0
- package/dist/filters/components/member-filter-tile/use-members.d.ts +14 -0
- package/dist/filters/components/member-filter-tile/use-validate-members.d.ts +8 -0
- package/dist/filters/index.d.ts +2 -0
- package/dist/funnel-chart.d.ts +47 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +71761 -0
- package/dist/indicator-canvas.d.ts +21 -0
- package/dist/indicator-chart.d.ts +60 -0
- package/dist/line-chart.d.ts +28 -0
- package/dist/locales/en.d.ts +17 -0
- package/dist/no-results-overlay/images/index.d.ts +2 -0
- package/dist/no-results-overlay/no-results-overlay.d.ts +13 -0
- package/dist/pie-chart.d.ts +28 -0
- package/dist/polar-chart.d.ts +28 -0
- package/dist/props.d.ts +882 -0
- package/dist/query/date-formats/angular-text-date-format-replacers.d.ts +5 -0
- package/dist/query/date-formats/apply-date-format.d.ts +65 -0
- package/dist/query/date-formats/fiscal-date-format-replacers.d.ts +33 -0
- package/dist/query/date-formats/index.d.ts +2 -0
- package/dist/query/date-formats/new-date-format.d.ts +16 -0
- package/dist/query/date-formats/simple-date-format-replacers.d.ts +4 -0
- package/dist/query/execute-query.d.ts +8 -0
- package/dist/query/query-result-date-formatting.d.ts +5 -0
- package/dist/query-execution/execute-query-by-widget-id.d.ts +29 -0
- package/dist/query-execution/execute-query.d.ts +32 -0
- package/dist/query-execution/index.d.ts +5 -0
- package/dist/query-execution/query-state-reducer.d.ts +66 -0
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +71 -0
- package/dist/query-execution/use-execute-query.d.ts +70 -0
- package/dist/query-execution/utils.d.ts +9 -0
- package/dist/scatter-chart.d.ts +68 -0
- package/dist/sisense-chart.d.ts +23 -0
- package/dist/sisense-context/custom-sisense-context-provider.d.ts +19 -0
- package/dist/sisense-context/sisense-context-provider.d.ts +36 -0
- package/dist/sisense-context/sisense-context.d.ts +9 -0
- package/dist/table/hooks/use-table-data.d.ts +11 -0
- package/dist/table/hooks/use-table-datatable.d.ts +11 -0
- package/dist/table/index.d.ts +1 -0
- package/dist/table/styles/get-custom-pagination-styles.d.ts +10 -0
- package/dist/table/table.d.ts +50 -0
- package/dist/theme-provider/custom-theme-provider.d.ts +18 -0
- package/dist/theme-provider/index.d.ts +1 -0
- package/dist/theme-provider/theme-provider.d.ts +45 -0
- package/dist/theme-provider/use-theme-settings.d.ts +12 -0
- package/dist/themes/legacy-design-settings.d.ts +84 -0
- package/dist/themes/theme-loader.d.ts +14 -0
- package/dist/treemap-chart.d.ts +34 -0
- package/dist/types.d.ts +692 -0
- package/dist/utils/color/color-interpolation.d.ts +37 -0
- package/dist/utils/color/index.d.ts +1 -0
- package/dist/utils/data-limit-warning.d.ts +2 -0
- package/dist/utils/dedupe.d.ts +1 -0
- package/dist/utils/filters-comparator.d.ts +11 -0
- package/dist/utils/utility-types.d.ts +39 -0
- package/dist/vite.svg +1 -0
- package/dist/widgets/chart-widget.d.ts +30 -0
- package/dist/widgets/common/context-menu.d.ts +3 -0
- package/dist/widgets/common/custom-drilldown.d.ts +20 -0
- package/dist/widgets/common/drilldown-breadcrumbs/drilldown-breadcrumbs.d.ts +4 -0
- package/dist/widgets/common/drilldown-breadcrumbs/index.d.ts +1 -0
- package/dist/widgets/common/drilldown-breadcrumbs/use-buttons.d.ts +27 -0
- package/dist/widgets/common/drilldown-breadcrumbs/use-popper.d.ts +24 -0
- package/dist/widgets/common/drilldown-breadcrumbs/use-theme-for-breadcrumbs.d.ts +11 -0
- package/dist/widgets/common/drilldown.d.ts +32 -0
- package/dist/widgets/common/use-widget-drilldown.d.ts +2 -0
- package/dist/widgets/common/widget-header.d.ts +11 -0
- package/dist/widgets/common/widget-style-utils.d.ts +13 -0
- package/dist/widgets/drilldown-widget.d.ts +49 -0
- package/dist/widgets/table-widget.d.ts +23 -0
- package/package.json +110 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { ValueLabel } from './value-label-section';
|
|
2
|
+
import { Axis } from './axis-section';
|
|
3
|
+
import { Marker } from './marker-section';
|
|
4
|
+
import { LegendPosition } from './legend-section';
|
|
5
|
+
import { LineType, StackType } from './translations-to-highcharts';
|
|
6
|
+
import { PieType, PieLabels } from './pie-plot-options';
|
|
7
|
+
import { FunnelSize, FunnelType, FunnelDirection, FunnelLabels } from './funnel-plot-options';
|
|
8
|
+
import { Convolution, TreemapStyleOptions } from '../../types';
|
|
9
|
+
import { ScatterMarkerSize } from './scatter-plot-options';
|
|
10
|
+
type DataLimits = {
|
|
11
|
+
seriesCapacity: number;
|
|
12
|
+
categoriesCapacity: number;
|
|
13
|
+
};
|
|
14
|
+
export type BaseDesignOptionsType = {
|
|
15
|
+
legend: LegendPosition;
|
|
16
|
+
valueLabel: ValueLabel;
|
|
17
|
+
lineType: LineType;
|
|
18
|
+
lineWidth: number;
|
|
19
|
+
marker: Marker;
|
|
20
|
+
xAxis: Axis;
|
|
21
|
+
yAxis: Axis;
|
|
22
|
+
x2Axis?: Axis;
|
|
23
|
+
y2Axis?: Axis;
|
|
24
|
+
autoZoom: boolean;
|
|
25
|
+
dataLimits: DataLimits;
|
|
26
|
+
};
|
|
27
|
+
export type LineChartDesignOptions = BaseDesignOptionsType;
|
|
28
|
+
export type StackableChartDesignOptions = BaseDesignOptionsType & {
|
|
29
|
+
stackType: StackType;
|
|
30
|
+
showTotal?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type AreaChartDesignOptions = StackableChartDesignOptions;
|
|
33
|
+
export type BarChartDesignOptions = StackableChartDesignOptions;
|
|
34
|
+
export type ColumnChartDesignOptions = StackableChartDesignOptions;
|
|
35
|
+
export type PieChartDesignOptions = BaseDesignOptionsType & {
|
|
36
|
+
pieType?: PieType;
|
|
37
|
+
pieLabels?: PieLabels;
|
|
38
|
+
convolution?: Convolution;
|
|
39
|
+
};
|
|
40
|
+
export type FunnelChartDesignOptions = BaseDesignOptionsType & {
|
|
41
|
+
funnelSize?: FunnelSize;
|
|
42
|
+
funnelType?: FunnelType;
|
|
43
|
+
funnelDirection?: FunnelDirection;
|
|
44
|
+
funnelLabels?: FunnelLabels;
|
|
45
|
+
};
|
|
46
|
+
export type TreemapChartDesignOptions = BaseDesignOptionsType & TreemapStyleOptions;
|
|
47
|
+
export type ScatterChartDesignOptions = BaseDesignOptionsType & {
|
|
48
|
+
markerSize?: ScatterMarkerSize;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Configuration for Table design options
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
export type TableDesignOptions = {
|
|
55
|
+
/**
|
|
56
|
+
* Boolean flag responsible for header cells background color fill
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
headersColor?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Boolean flag responsible for alternating rows background color fill
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
alternatingRowsColor?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Boolean flag responsible for alternating columns background color fill
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
alternatingColumnsColor?: boolean;
|
|
70
|
+
};
|
|
71
|
+
export type IndicatorStyleType = 'numeric' | 'gauge';
|
|
72
|
+
export type NumericIndicatorSubType = 'numericSimple' | 'numericBar';
|
|
73
|
+
export type IndicatorSkin = 'vertical' | 'horizontal' | 1 | 2;
|
|
74
|
+
/** Configuration options that define components of an indicator chart. */
|
|
75
|
+
export type IndicatorComponents = {
|
|
76
|
+
/** The main title of the indicator chart */
|
|
77
|
+
title?: {
|
|
78
|
+
/** Whether the title should be shown */
|
|
79
|
+
shouldBeShown: boolean;
|
|
80
|
+
/** The text of the title */
|
|
81
|
+
text?: string;
|
|
82
|
+
};
|
|
83
|
+
/** The secondary title of the indicator chart to be shown when `secondary` is specified in {@link IndicatorDataOptions} */
|
|
84
|
+
secondaryTitle?: {
|
|
85
|
+
/** The text of the secondary title */
|
|
86
|
+
text?: string;
|
|
87
|
+
};
|
|
88
|
+
/** The ticks displayed on the indicator chart */
|
|
89
|
+
ticks?: {
|
|
90
|
+
/** Whether the ticks should be shown */
|
|
91
|
+
shouldBeShown: boolean;
|
|
92
|
+
};
|
|
93
|
+
/** The value labels of the indicator chart */
|
|
94
|
+
labels?: {
|
|
95
|
+
/** Whether the labels should be shown */
|
|
96
|
+
shouldBeShown: boolean;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Design options for an indicator chart.
|
|
101
|
+
*/
|
|
102
|
+
export type IndicatorChartDesignOptions<IndicatorType extends IndicatorStyleType = IndicatorStyleType> = BaseDesignOptionsType & {
|
|
103
|
+
indicatorComponents: IndicatorComponents;
|
|
104
|
+
} & (IndicatorType extends 'gauge' ? GaugeSpecificDesignOptions : NumericSpecificDesignOptions);
|
|
105
|
+
export type GaugeSpecificDesignOptions = {
|
|
106
|
+
indicatorType: 'gauge';
|
|
107
|
+
skin: 1 | 2;
|
|
108
|
+
};
|
|
109
|
+
export type NumericSpecificDesignOptions<NumericSubtype extends NumericIndicatorSubType = NumericIndicatorSubType> = {
|
|
110
|
+
indicatorType: 'numeric';
|
|
111
|
+
numericSubtype: NumericSubtype;
|
|
112
|
+
skin: NumericSubtype extends 'numericSimple' ? 'vertical' | 'horizontal' : never;
|
|
113
|
+
};
|
|
114
|
+
export type PolarType = 'line' | 'area' | 'column';
|
|
115
|
+
export type PolarChartDesignOptions = BaseDesignOptionsType & {
|
|
116
|
+
polarType: PolarType;
|
|
117
|
+
};
|
|
118
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PlotOptions } from '../chart-options-service';
|
|
2
|
+
import { ValueLabelSettings } from './value-label-section';
|
|
3
|
+
import { FunnelChartDesignOptions } from './design-options';
|
|
4
|
+
import { ChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
5
|
+
export declare const DefaultFunnelLabels: FunnelLabels;
|
|
6
|
+
export type FunnelLabels = {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
showCategories: boolean;
|
|
9
|
+
showValue: boolean;
|
|
10
|
+
showPercent: boolean;
|
|
11
|
+
showDecimals: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const DefaultFunnelSize: FunnelSize;
|
|
14
|
+
export declare const funnelSizes: readonly ["wide", "regular", "narrow"];
|
|
15
|
+
/** Visual size of the lowest slice (degree of funnel narrowing from highest to lowest slices)*/
|
|
16
|
+
export type FunnelSize = (typeof funnelSizes)[number];
|
|
17
|
+
export declare const DefaultFunnelType: FunnelType;
|
|
18
|
+
export declare const funnelTypes: readonly ["regular", "pinched"];
|
|
19
|
+
/** Visual type of the lowest slice of Funnel chart */
|
|
20
|
+
export type FunnelType = (typeof funnelTypes)[number];
|
|
21
|
+
export declare const DefaultFunnelDirection: FunnelDirection;
|
|
22
|
+
export declare const funnelDirections: readonly ["regular", "inverted"];
|
|
23
|
+
/** Direction of Funnel chart narrowing */
|
|
24
|
+
export type FunnelDirection = (typeof funnelDirections)[number];
|
|
25
|
+
export type FunnelOptions = {
|
|
26
|
+
allowPointSelect: boolean;
|
|
27
|
+
cursor: 'pointer';
|
|
28
|
+
dataLabels: ValueLabelSettings & {
|
|
29
|
+
funnelMinimumFontSizeToTextLabel: number;
|
|
30
|
+
formatter?: () => string;
|
|
31
|
+
};
|
|
32
|
+
showInLegend: boolean;
|
|
33
|
+
reversed: boolean;
|
|
34
|
+
neckWidth: string | number;
|
|
35
|
+
neckHeight: string | number;
|
|
36
|
+
width: string | number;
|
|
37
|
+
};
|
|
38
|
+
export declare const isFunnelReversed: (direction: FunnelDirection) => boolean;
|
|
39
|
+
export declare const seriesDataLabels: (labels: FunnelLabels) => {
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
};
|
|
42
|
+
export type RenderTo = {
|
|
43
|
+
clientWidth: number;
|
|
44
|
+
clientHeight: number;
|
|
45
|
+
};
|
|
46
|
+
export declare const MAX_FUNNEL_WIDTH = 66.6;
|
|
47
|
+
export declare const HEIGHT_TO_WIDTH_COEFFICIENT = 1.5;
|
|
48
|
+
export declare const DEFAULT_NECK_WIDTH = 15;
|
|
49
|
+
export declare const DEFAULT_SHIFT = 50;
|
|
50
|
+
export declare const funnelWidthPercentage: (renderTo: RenderTo | null) => number;
|
|
51
|
+
export declare const funnelNeckWidth: (widthPercentage: number, funnelSize: FunnelSize) => number;
|
|
52
|
+
export declare const funnelNeckHeight: (type: FunnelType) => number;
|
|
53
|
+
export declare const getFunnelPlotOptions: (funnelDesignOptions: FunnelChartDesignOptions, chartDataOptions: ChartDataOptionsInternal) => PlotOptions;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Color, SeriesWithAlerts, CompleteThemeSettings } from '../../types';
|
|
2
|
+
import { SeriesType } from '../chart-options-service';
|
|
3
|
+
import { FunnelChartDesignOptions } from './design-options';
|
|
4
|
+
import { CategoricalChartData } from '../../chart-data/types';
|
|
5
|
+
import { CategoricalChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
6
|
+
export declare const getAPaletteColor: (colors: Color[] | undefined, index: number) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Convert categorical chart data into renderable highcharts funnel series. *
|
|
9
|
+
*
|
|
10
|
+
* @param chartData
|
|
11
|
+
* @param dataOptions
|
|
12
|
+
* @param designOptions
|
|
13
|
+
* @param themeSettings
|
|
14
|
+
*/
|
|
15
|
+
export declare const formatFunnelChartData: (chartData: CategoricalChartData, dataOptions: CategoricalChartDataOptionsInternal, designOptions: FunnelChartDesignOptions, themeSettings?: CompleteThemeSettings) => SeriesWithAlerts<SeriesType[]>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Style } from '../chart-options-service';
|
|
2
|
+
export type LegendPosition = 'top' | 'left' | 'right' | 'bottom' | null;
|
|
3
|
+
export type LegendSettings = {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
align: 'center' | 'left' | 'right';
|
|
6
|
+
verticalAlign: 'top' | 'middle' | 'bottom';
|
|
7
|
+
layout: 'horizontal' | 'vertical';
|
|
8
|
+
itemStyle?: Style & {
|
|
9
|
+
cursor?: string;
|
|
10
|
+
};
|
|
11
|
+
symbolRadius?: number;
|
|
12
|
+
symbolHeight?: number;
|
|
13
|
+
symbolWidth?: number;
|
|
14
|
+
borderWidth?: string;
|
|
15
|
+
borderColor?: string;
|
|
16
|
+
backgroundColor?: string;
|
|
17
|
+
title?: {
|
|
18
|
+
style?: {
|
|
19
|
+
[key: string]: string | number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const getLegendSettings: (position: LegendPosition) => LegendSettings;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type Marker = {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
size: 'small' | 'large';
|
|
4
|
+
fill: 'full' | 'hollow';
|
|
5
|
+
};
|
|
6
|
+
export type MarkerSettings = {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
radius?: number;
|
|
9
|
+
symbol?: string;
|
|
10
|
+
fillColor?: string | null;
|
|
11
|
+
lineColor?: string | null;
|
|
12
|
+
lineWidth?: number;
|
|
13
|
+
fillOpacity?: number;
|
|
14
|
+
states?: {
|
|
15
|
+
hover?: {
|
|
16
|
+
fillColor: string;
|
|
17
|
+
radius: number;
|
|
18
|
+
lineWidth: number;
|
|
19
|
+
};
|
|
20
|
+
select?: {
|
|
21
|
+
fillOpacity: number;
|
|
22
|
+
lineWidth: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const getMarkerSettings: (marker: Marker) => MarkerSettings;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AxisSettings } from './axis-section';
|
|
2
|
+
import { HighchartsType } from './translations-to-highcharts';
|
|
3
|
+
type Navigator = {
|
|
4
|
+
series: {
|
|
5
|
+
type: HighchartsType;
|
|
6
|
+
dataGrouping: {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
margin: number;
|
|
12
|
+
height: number;
|
|
13
|
+
xAxis: AxisSettings;
|
|
14
|
+
handles: {
|
|
15
|
+
symbols: string[];
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
borderColor: string;
|
|
18
|
+
};
|
|
19
|
+
maskInside: boolean;
|
|
20
|
+
maskFill: string;
|
|
21
|
+
outlineColor: string;
|
|
22
|
+
outlineWidth: number;
|
|
23
|
+
threshold?: number;
|
|
24
|
+
tooltipFormatter?: (min: number, max: number) => {
|
|
25
|
+
left: string;
|
|
26
|
+
right: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const getNavigator: (type: HighchartsType, enabled: boolean, xAxisCount: number) => Navigator | {
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type DecimalScale = number | 'auto';
|
|
2
|
+
export type NumberFormatConfig = {
|
|
3
|
+
name: 'Numbers' | 'Currency' | 'Percent';
|
|
4
|
+
decimalScale: DecimalScale;
|
|
5
|
+
trillion: boolean;
|
|
6
|
+
billion: boolean;
|
|
7
|
+
million: boolean;
|
|
8
|
+
kilo: boolean;
|
|
9
|
+
thousandSeparator: boolean;
|
|
10
|
+
prefix: boolean;
|
|
11
|
+
symbol: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const defaultConfig: NumberFormatConfig;
|
|
14
|
+
export declare const applyFormatStaticMarkup: (config: NumberFormatConfig, value: number) => string;
|
|
15
|
+
export declare const applyFormat: (config: NumberFormatConfig, value: number) => string;
|
|
16
|
+
export declare const applyFormatPlainText: (config: NumberFormatConfig, value: number) => string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PlotOptions } from '../chart-options-service';
|
|
2
|
+
import { ValueLabelSettings } from './value-label-section';
|
|
3
|
+
import { ChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
4
|
+
export declare const DefaultPieLabels: PieLabels;
|
|
5
|
+
export type PieLabels = {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
showCategories: boolean;
|
|
8
|
+
showValue: boolean;
|
|
9
|
+
showPercent: boolean;
|
|
10
|
+
showDecimals: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const DefaultPieType: PieType;
|
|
13
|
+
export declare const pieTypes: readonly ["classic", "donut", "ring"];
|
|
14
|
+
export type PieType = (typeof pieTypes)[number];
|
|
15
|
+
export type PieOptions = {
|
|
16
|
+
allowPointSelect: boolean;
|
|
17
|
+
cursor?: string;
|
|
18
|
+
dataLabels: ValueLabelSettings & {
|
|
19
|
+
showPercentLabels: boolean;
|
|
20
|
+
showDecimals: boolean;
|
|
21
|
+
pieMinimumFontSizeToTextLabel: number;
|
|
22
|
+
formatter?: () => string;
|
|
23
|
+
};
|
|
24
|
+
showInLegend: boolean;
|
|
25
|
+
innerSize?: InnerSize;
|
|
26
|
+
};
|
|
27
|
+
type InnerSize = '0%' | '40%' | '80%';
|
|
28
|
+
export declare const getPiePlotOptions: (pieType: "classic" | "donut" | "ring" | undefined, pieLabels: PieLabels | undefined, chartDataOptions: ChartDataOptionsInternal) => PlotOptions;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Color, SeriesWithAlerts, CompleteThemeSettings } from '../../types';
|
|
2
|
+
import { CategoricalChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
3
|
+
import { SeriesType } from '../chart-options-service';
|
|
4
|
+
import { PieChartDesignOptions } from './design-options';
|
|
5
|
+
import { CategoricalChartData } from '../../chart-data/types';
|
|
6
|
+
export declare const getAPaletteColor: (colors: Color[] | undefined, index: number) => string;
|
|
7
|
+
type FormattedPieChartData = SeriesWithAlerts<SeriesType[]> & {
|
|
8
|
+
convolutionSeries: SeriesType[];
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Convert categorical chart data into renderable highcharts pie series.
|
|
12
|
+
*
|
|
13
|
+
* @param chartData
|
|
14
|
+
* @param dataOptions
|
|
15
|
+
* @param designOptions
|
|
16
|
+
* @param themeSettings
|
|
17
|
+
*/
|
|
18
|
+
export declare const formatCategoricalChartData: (chartData: CategoricalChartData, dataOptions: CategoricalChartDataOptionsInternal, designOptions: PieChartDesignOptions, themeSettings?: CompleteThemeSettings) => FormattedPieChartData;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ScatterCategories } from '../../chart-data/types';
|
|
2
|
+
import { ScatterChartDataOptionsInternal, Category, Value } from './../../chart-data-options/types';
|
|
3
|
+
import { Axis, AxisSettings } from './axis-section';
|
|
4
|
+
export declare const commonColor = "#d1d1d7";
|
|
5
|
+
export declare function scatterFormatter(axisAttribute: Category | Value | undefined, value: string | number, categories: (string | number)[] | undefined): string;
|
|
6
|
+
export declare const getScatterXAxisSettings: (xAxis: Axis, categories: ScatterCategories, scatterDataOptions: ScatterChartDataOptionsInternal) => AxisSettings[];
|
|
7
|
+
export declare const getScatterYAxisSettings: (yAxis: Axis, categories: ScatterCategories, scatterDataOptions: ScatterChartDataOptionsInternal) => AxisSettings[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ScatterChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
2
|
+
import { PlotOptions } from '../chart-options-service';
|
|
3
|
+
import { ScatterChartDesignOptions } from './design-options';
|
|
4
|
+
import { InternalSeries } from './tooltip-utils';
|
|
5
|
+
import { ScatterCustomPointOptions } from './scatter-tooltip';
|
|
6
|
+
export type ScatterMarkerSize = {
|
|
7
|
+
scatterDefaultSize: number;
|
|
8
|
+
scatterBubbleMinSize: number;
|
|
9
|
+
scatterBubbleMaxSize: number;
|
|
10
|
+
};
|
|
11
|
+
export type ScatterBubbleOptions = {
|
|
12
|
+
animation: boolean;
|
|
13
|
+
maxSize: number;
|
|
14
|
+
minSize: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const defaultScatterMarkerSize: ScatterMarkerSize;
|
|
17
|
+
export type ScatterChartInternalSeries = InternalSeries & {
|
|
18
|
+
point: {
|
|
19
|
+
custom?: ScatterCustomPointOptions;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const getScatterPlotOptions: (chartDesignOptions: ScatterChartDesignOptions, dataOptions: ScatterChartDataOptionsInternal) => PlotOptions;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ScatterChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
2
|
+
import { SeriesType } from '../chart-options-service';
|
|
3
|
+
import { ScatterAxisCategoriesMap, ScatterDataTable } from '../../chart-data/types';
|
|
4
|
+
import { ComparableData } from '../../chart-data-processor/table-processor';
|
|
5
|
+
import { SeriesWithAlerts, CompleteThemeSettings } from '../../types';
|
|
6
|
+
export type ScatterSeriesColor = {
|
|
7
|
+
index: number;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
export type ScatterSeriesColorsMap = Map<string, ScatterSeriesColor>;
|
|
11
|
+
export interface AxisComputedProperties {
|
|
12
|
+
x: number | null;
|
|
13
|
+
y: number | null;
|
|
14
|
+
z: number | null;
|
|
15
|
+
maskedX: string;
|
|
16
|
+
maskedY: string;
|
|
17
|
+
maskedBreakByPoint?: string;
|
|
18
|
+
maskedBreakByColor?: string;
|
|
19
|
+
maskedSize?: string;
|
|
20
|
+
color?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const handleNumberValue: (cell: ComparableData) => number | null;
|
|
23
|
+
export declare const buildScatterSeries: (data: ScatterDataTable, categoriesMap: ScatterAxisCategoriesMap, dataOptions?: ScatterChartDataOptionsInternal, themeSettings?: CompleteThemeSettings, seriesCapacity?: number) => SeriesWithAlerts<SeriesType[]>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { InternalSeries, TooltipSettings } from './tooltip-utils';
|
|
2
|
+
import { ScatterChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
3
|
+
export interface ScatterTooltipElements {
|
|
4
|
+
x: string;
|
|
5
|
+
y: string;
|
|
6
|
+
breakByPoint: string;
|
|
7
|
+
breakByColor: string;
|
|
8
|
+
size: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ScatterCustomPointOptions {
|
|
11
|
+
maskedX: string;
|
|
12
|
+
maskedY: string;
|
|
13
|
+
maskedBreakByPoint?: string;
|
|
14
|
+
maskedBreakByColor?: string;
|
|
15
|
+
maskedSize?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const spanSegment: (value: number | string, color?: string) => string;
|
|
18
|
+
export declare const tooltipWrapper: (content: string) => string;
|
|
19
|
+
export declare const tooltipSeparator: () => string;
|
|
20
|
+
export declare const tooltipFormatter: (ctx: InternalSeries, dataOptions: ScatterChartDataOptionsInternal) => string;
|
|
21
|
+
export declare const getScatterTooltipSettings: (dataOptions: ScatterChartDataOptionsInternal) => TooltipSettings;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Category, Value } from '../../chart-data-options/types.js';
|
|
2
|
+
export declare const isXValueNumeric: (dataOptionX: Value | Category | undefined) => boolean | "";
|
|
3
|
+
export declare const formatTooltipValue: (dataOption: Value | Category | undefined, value: number | undefined, displayValue: string) => string;
|
|
4
|
+
export declare const formatTooltipXValue: (dataOption: Value | Category | undefined, value: number | string | undefined, displayValue: string) => string;
|
|
5
|
+
export type TooltipSettings = {
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
animation?: boolean;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
borderRadius?: number;
|
|
11
|
+
borderWidth?: number;
|
|
12
|
+
useHTML?: boolean;
|
|
13
|
+
formatter?: () => string;
|
|
14
|
+
style?: {
|
|
15
|
+
fontFamily?: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type InternalSeries = {
|
|
19
|
+
series: {
|
|
20
|
+
name: string;
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
x: string;
|
|
24
|
+
y: number;
|
|
25
|
+
point: {
|
|
26
|
+
x?: number | string;
|
|
27
|
+
y?: number;
|
|
28
|
+
z?: number;
|
|
29
|
+
name: string;
|
|
30
|
+
color: string;
|
|
31
|
+
custom?: {
|
|
32
|
+
number1?: number;
|
|
33
|
+
string1?: string;
|
|
34
|
+
xDisplayValue?: string;
|
|
35
|
+
xValue?: (number | string)[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
percentage?: number;
|
|
39
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ChartType } from '../../types';
|
|
2
|
+
import { ChartDataOptionsInternal, CategoricalChartDataOptionsInternal, CartesianChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
3
|
+
import { CategoricalSeriesValues, ChartData, CartesianChartData } from '../../chart-data/types';
|
|
4
|
+
import { StackableChartDesignOptions } from './design-options';
|
|
5
|
+
import { AxisMinMax } from './axis-section';
|
|
6
|
+
import { Stacking } from '../chart-options-service';
|
|
7
|
+
import { ChartDesignOptions } from './types';
|
|
8
|
+
export type LineType = 'straight' | 'smooth';
|
|
9
|
+
export type StackType = 'classic' | 'stacked' | 'stack100';
|
|
10
|
+
export type HighchartsType = ChartType | 'spline' | 'areaspline' | 'bubble';
|
|
11
|
+
export type HighchartsSeriesValues = {
|
|
12
|
+
name: string;
|
|
13
|
+
data: SeriesPointStructure[];
|
|
14
|
+
levels?: any;
|
|
15
|
+
};
|
|
16
|
+
export type SeriesPointStructure = {
|
|
17
|
+
name?: string;
|
|
18
|
+
y?: number | null;
|
|
19
|
+
x?: number | null;
|
|
20
|
+
z?: number | null;
|
|
21
|
+
color?: string;
|
|
22
|
+
marker?: {
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
isIsolatedPoint?: boolean;
|
|
25
|
+
lineColor?: string;
|
|
26
|
+
lineWidth?: number;
|
|
27
|
+
};
|
|
28
|
+
selected?: boolean;
|
|
29
|
+
custom?: {
|
|
30
|
+
number1?: number;
|
|
31
|
+
string1?: string;
|
|
32
|
+
level?: number;
|
|
33
|
+
[k: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
value?: number | null;
|
|
36
|
+
id?: string;
|
|
37
|
+
drilldown?: string;
|
|
38
|
+
parent?: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Translate public-facing chart type and chart design options to internal highcharts chart type
|
|
42
|
+
*
|
|
43
|
+
* @param chartType - public-facing chart type
|
|
44
|
+
* @param chartDesignOptions - public-facing chart design options
|
|
45
|
+
* @returns internal highcharts chart type
|
|
46
|
+
*/
|
|
47
|
+
export declare const determineHighchartsChartType: (chartType: ChartType, chartDesignOptions: ChartDesignOptions) => HighchartsType;
|
|
48
|
+
export declare const addStackingIfSpecified: (chartType: ChartType, designOptions: StackableChartDesignOptions) => {
|
|
49
|
+
stacking?: Stacking | undefined;
|
|
50
|
+
showTotal: boolean;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* In cartesian charts when a chart has only Y columns and since we for each Y column build a separate series
|
|
54
|
+
* to match the legend correctly in order to correctly map x-axis labels
|
|
55
|
+
* This method returns the indexMap for the series with the index
|
|
56
|
+
* for a series with one data, index map has -1 for all x-axis locations except where the series lands
|
|
57
|
+
*
|
|
58
|
+
* @param categories -
|
|
59
|
+
* @param index -
|
|
60
|
+
*/
|
|
61
|
+
export declare const indexMapWhenOnlyY: (categories: string[], index: number) => (0 | -1)[];
|
|
62
|
+
export declare const formatSeriesContinuousXAxis: (series: CategoricalSeriesValues, indexMap: number[], treatNullDataAsZeros: boolean, interval: number, maxCategories: number) => HighchartsSeriesValues;
|
|
63
|
+
export declare const formatSeries: (series: CategoricalSeriesValues, indexMap: number[], treatNullDataAsZeros: boolean, categories?: string[], categoryColors?: string[]) => HighchartsSeriesValues;
|
|
64
|
+
export declare const adjustMinWhenColumnBar: (chartType: ChartType, autoMinMax: AxisMinMax) => {
|
|
65
|
+
min: number;
|
|
66
|
+
max: number;
|
|
67
|
+
};
|
|
68
|
+
export declare const autoCalculateYAxisMinMax: (chartType: ChartType, chartData: CartesianChartData, chartDesignOptions: ChartDesignOptions, yAxisSide: number[], yTreatNullDataAsZeros: boolean[], side: number) => {
|
|
69
|
+
min: number;
|
|
70
|
+
max: number;
|
|
71
|
+
};
|
|
72
|
+
export declare const determineYAxisOptions: (chartData: ChartData, dataOptions: ChartDataOptionsInternal) => [number[], (HighchartsType | undefined)[], boolean[]];
|
|
73
|
+
export declare const getColorSetting: (dataOptions: CartesianChartDataOptionsInternal | CategoricalChartDataOptionsInternal, key: string) => string | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CategoricalChartDataOptionsInternal } from '../../../chart-data-options/types';
|
|
2
|
+
import { TreemapChartDesignOptions } from '../design-options';
|
|
3
|
+
import { CompleteThemeSettings } from '../../../types';
|
|
4
|
+
import Highcharts, { PointLabelObject } from '@sisense/sisense-charts';
|
|
5
|
+
export declare function prepareTreemapLevels(dataOptions: CategoricalChartDataOptionsInternal, chartDesignOptions: TreemapChartDesignOptions, themeSettings?: CompleteThemeSettings): Highcharts.PlotTreegraphLevelsOptions[];
|
|
6
|
+
export declare function treemapLabelFormatter(this: PointLabelObject): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CategoricalChartData } from '../../../chart-data/types';
|
|
2
|
+
import { HighchartsOptionsInternal } from '../../chart-options-service';
|
|
3
|
+
import { CategoricalChartDataOptionsInternal } from '../../../chart-data-options/types';
|
|
4
|
+
import { CompleteThemeSettings } from '../../../types';
|
|
5
|
+
import { TreemapChartDesignOptions } from '../design-options';
|
|
6
|
+
export declare function prepareTreemapOptions(chartData: CategoricalChartData, dataOptions: CategoricalChartDataOptionsInternal, designOptions: TreemapChartDesignOptions, themeSettings?: CompleteThemeSettings): HighchartsOptionsInternal;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CategoricalChartData } from '../../../chart-data/types';
|
|
2
|
+
import { SeriesPointStructure } from '../translations-to-highcharts';
|
|
3
|
+
import { CategoricalChartDataOptionsInternal } from '../../../chart-data-options/types';
|
|
4
|
+
import { CompleteThemeSettings } from '../../../types';
|
|
5
|
+
export declare function prepareTreemapDataItems(chartData: CategoricalChartData, dataOptions: CategoricalChartDataOptionsInternal, themeSettings?: CompleteThemeSettings): SeriesPointStructure[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CategoricalChartDataOptionsInternal } from '../../../chart-data-options/types';
|
|
2
|
+
import { TreemapChartDesignOptions } from '../design-options';
|
|
3
|
+
import { TooltipSettings } from '../../tooltip';
|
|
4
|
+
import { TooltipFormatterContextObject } from '@sisense/sisense-charts';
|
|
5
|
+
export declare const getTreemapTooltipSettings: (chartDataOptions: CategoricalChartDataOptionsInternal, designOptions: TreemapChartDesignOptions) => TooltipSettings;
|
|
6
|
+
export declare function treemapTooltipFormatter(context: TooltipFormatterContextObject, chartDataOptions: CategoricalChartDataOptionsInternal, designOptions: TreemapChartDesignOptions): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Chart, PointLabelObject } from '@sisense/sisense-charts';
|
|
2
|
+
export type ParentValues = {
|
|
3
|
+
direction: number;
|
|
4
|
+
height: number;
|
|
5
|
+
val: number;
|
|
6
|
+
width: number;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
export type LayoutPointResult = {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
export type TreemapLayoutAlgorithmContext = {
|
|
17
|
+
chart: Chart;
|
|
18
|
+
squarified: (parent: ParentValues, children: PointLabelObject[]) => LayoutPointResult[];
|
|
19
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
2
|
+
import { ChartType } from '../../types';
|
|
3
|
+
import { LineChartDesignOptions, AreaChartDesignOptions, BarChartDesignOptions, ColumnChartDesignOptions, PieChartDesignOptions, FunnelChartDesignOptions, IndicatorChartDesignOptions, PolarChartDesignOptions, ScatterChartDesignOptions, TreemapChartDesignOptions } from './design-options';
|
|
4
|
+
export declare const POLAR_CHART_TYPES: readonly ["polar"];
|
|
5
|
+
export type PolarChartType = (typeof POLAR_CHART_TYPES)[number];
|
|
6
|
+
export declare const CARTESIAN_CHART_TYPES: readonly ["line", "area", "bar", "column", "polar"];
|
|
7
|
+
/** Cartesian family of chart types @expandType */
|
|
8
|
+
export type CartesianChartType = (typeof CARTESIAN_CHART_TYPES)[number];
|
|
9
|
+
export declare const CATEGORICAL_CHART_TYPES: readonly ["pie", "funnel", "treemap"];
|
|
10
|
+
/** Categorical family of chart types @expandType */
|
|
11
|
+
export type CategoricalChartType = (typeof CATEGORICAL_CHART_TYPES)[number];
|
|
12
|
+
export declare const SCATTER_CHART_TYPES: readonly ["scatter"];
|
|
13
|
+
/** Scatter chart types @expandType */
|
|
14
|
+
export type ScatterChartType = (typeof SCATTER_CHART_TYPES)[number];
|
|
15
|
+
export declare const TABLE_TYPES: readonly ["table"];
|
|
16
|
+
/** Table chart types @expandType */
|
|
17
|
+
export type TableType = (typeof TABLE_TYPES)[number];
|
|
18
|
+
declare const INDICATOR_CHART_TYPES: readonly ["indicator"];
|
|
19
|
+
/** Indicator chart types @expandType */
|
|
20
|
+
export type IndicatorChartType = (typeof INDICATOR_CHART_TYPES)[number];
|
|
21
|
+
declare const IMAGE_CHART_TYPES: readonly ["image"];
|
|
22
|
+
export type ImageChartType = (typeof IMAGE_CHART_TYPES)[number];
|
|
23
|
+
export type ChartDataType = 'cartesian' | 'categorical' | 'scatter' | 'table' | 'indicator';
|
|
24
|
+
export type ChartDesignOptions = LineChartDesignOptions | AreaChartDesignOptions | BarChartDesignOptions | ColumnChartDesignOptions | PieChartDesignOptions | FunnelChartDesignOptions | PolarChartDesignOptions | IndicatorChartDesignOptions | ScatterChartDesignOptions | TreemapChartDesignOptions;
|
|
25
|
+
export type ChartConfig = {
|
|
26
|
+
chartType: ChartType;
|
|
27
|
+
dataOptions: ChartDataOptionsInternal;
|
|
28
|
+
designOptions: ChartDesignOptions;
|
|
29
|
+
};
|
|
30
|
+
export declare const isCartesian: (chartType: ChartType) => chartType is "area" | "line" | "bar" | "column" | "polar";
|
|
31
|
+
export declare const isCategorical: (chartType: ChartType) => chartType is "pie" | "funnel" | "treemap";
|
|
32
|
+
export declare const isScatter: (chartType: ChartType) => chartType is "scatter";
|
|
33
|
+
export declare const isIndicator: (chartType: ChartType) => chartType is "indicator";
|
|
34
|
+
export declare const isPolar: (chartType: ChartType) => chartType is "polar";
|
|
35
|
+
export declare const isTable: (chartType: ChartType | TableType) => chartType is "table";
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Style } from '../chart-options-service';
|
|
2
|
+
import { NumberFormatConfig } from './number-format-config';
|
|
3
|
+
import { AxisOrientation } from './axis-section';
|
|
4
|
+
import { InternalSeries } from './tooltip-utils';
|
|
5
|
+
import { PolarType } from './design-options';
|
|
6
|
+
export type ValueLabel = 'horizontal' | 'diagonal' | 'vertical' | null;
|
|
7
|
+
export type ValueLabelSettings = {
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
align?: string;
|
|
10
|
+
crop?: boolean;
|
|
11
|
+
rotation?: number;
|
|
12
|
+
y?: number;
|
|
13
|
+
x?: number;
|
|
14
|
+
style?: Style;
|
|
15
|
+
overflow?: string;
|
|
16
|
+
allowOverlap?: boolean;
|
|
17
|
+
verticalAlign?: 'bottom' | 'middle' | 'top';
|
|
18
|
+
padding?: number;
|
|
19
|
+
types?: {
|
|
20
|
+
count: boolean;
|
|
21
|
+
relative: boolean;
|
|
22
|
+
totals: boolean;
|
|
23
|
+
};
|
|
24
|
+
formatter?: (this: InternalSeries) => string;
|
|
25
|
+
};
|
|
26
|
+
export declare const createValueLabelFormatter: (numberFormatConfig?: NumberFormatConfig) => (this: InternalSeries) => string;
|
|
27
|
+
export declare const getValueLabelSettings: (xAxisOrientation: AxisOrientation, valueLabel: ValueLabel, inside?: boolean) => ValueLabelSettings;
|
|
28
|
+
export declare const getPolarValueLabelSettings: (valueLabel: ValueLabel, polarType: PolarType) => ValueLabelSettings;
|