@sisense/sdk-ui-vue 2.15.0 → 2.16.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.
@@ -16,4 +16,5 @@ export { Chart, type ChartProps } from './chart';
16
16
  export { BoxplotChart, type BoxplotChartProps } from './boxplot-chart';
17
17
  export { AreamapChart, type AreamapChartProps } from './areamap-chart';
18
18
  export { ScattermapChart, type ScattermapChartProps } from './scattermap-chart';
19
+ export { StreamgraphChart, type StreamgraphChartProps } from './streamgraph-chart';
19
20
  export { AreaRangeChart, type AreaRangeChartProps } from './area-range-chart';
@@ -0,0 +1,182 @@
1
+ import type { StreamgraphChartProps as StreamgraphChartPropsPreact } from '@sisense/sdk-ui-preact';
2
+ import type { PropType } from 'vue';
3
+ /**
4
+ * Props of the {@link @sisense/sdk-ui-vue!StreamgraphChart | `StreamgraphChart`} component.
5
+ */
6
+ export interface StreamgraphChartProps extends StreamgraphChartPropsPreact {
7
+ }
8
+ /**
9
+ * A Vue component that displays a streamgraph chart.
10
+ *
11
+ * A streamgraph is a type of stacked area chart where areas are displaced around
12
+ * a central axis. It is particularly effective for displaying volume across
13
+ * different categories or over time with a relative scale that emphasizes
14
+ * overall patterns and trends.
15
+ *
16
+ * @example
17
+ * Here's how you can use the StreamgraphChart component in a Vue application:
18
+ * ```vue
19
+ * <template>
20
+ * <StreamgraphChart
21
+ * :dataOptions="streamgraphChartProps.dataOptions"
22
+ * :dataSet="streamgraphChartProps.dataSet"
23
+ * :filters="streamgraphChartProps.filters"
24
+ * :styleOptions="streamgraphChartProps.styleOptions"
25
+ * />
26
+ * </template>
27
+ *
28
+ * <script setup lang="ts">
29
+ * import { ref } from 'vue';
30
+ * import { measureFactory, filterFactory } from '@sisense/sdk-data';
31
+ * import * as DM from '../assets/sample-ecommerce';
32
+ * import { StreamgraphChart, type StreamgraphChartProps } from '@sisense/sdk-ui-vue';
33
+ *
34
+ * const streamgraphChartProps = ref<StreamgraphChartProps>({
35
+ * dataSet: DM.DataSource,
36
+ * dataOptions: {
37
+ * category: [DM.Commerce.Date.Quarters],
38
+ * value: [measureFactory.sum(DM.Commerce.Revenue, 'Revenue')],
39
+ * breakBy: [DM.Category.Category],
40
+ * },
41
+ * filters: [filterFactory.members(DM.Category.Category, ['Electronics', 'Clothing'])],
42
+ * styleOptions: {
43
+ * width: 1200,
44
+ * height: 500,
45
+ * },
46
+ * });
47
+ * ```
48
+ * @param {StreamgraphChartProps} - Streamgraph chart properties
49
+ * @returns Streamgraph Chart component
50
+ * @group Charts
51
+ */
52
+ export declare const StreamgraphChart: import("vue").DefineComponent<{
53
+ /**
54
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataOptions}
55
+ *
56
+ * @category Chart
57
+ */
58
+ dataOptions: {
59
+ type: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
60
+ required: true;
61
+ };
62
+ /**
63
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataSet}
64
+ *
65
+ * @category Data
66
+ */
67
+ dataSet: PropType<import("@sisense/sdk-data").DataSource | import("@sisense/sdk-data").Data | undefined>;
68
+ /**
69
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.filters}
70
+ *
71
+ * @category Data
72
+ */
73
+ filters: PropType<import("@sisense/sdk-data").FilterRelations | import("@sisense/sdk-data").Filter[] | undefined>;
74
+ /**
75
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.highlights}
76
+ *
77
+ * @category Data
78
+ */
79
+ highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
80
+ /**
81
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.styleOptions}
82
+ *
83
+ * @category Chart
84
+ */
85
+ styleOptions: PropType<import("@sisense/sdk-ui-preact").StreamgraphStyleOptions | undefined>;
86
+ /**
87
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onBeforeRender}
88
+ *
89
+ * @category Callbacks
90
+ */
91
+ onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
92
+ /**
93
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataReady}
94
+ *
95
+ * @category Callbacks
96
+ */
97
+ onDataReady: PropType<((data: import("@sisense/sdk-data").Data) => import("@sisense/sdk-data").Data) | undefined>;
98
+ /**
99
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointClick}
100
+ *
101
+ * @category Callbacks
102
+ */
103
+ onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
104
+ /**
105
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointContextMenu}
106
+ *
107
+ * @category Callbacks
108
+ */
109
+ onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
110
+ /**
111
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointsSelected}
112
+ *
113
+ * @category Callbacks
114
+ */
115
+ onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | undefined>;
116
+ }, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
117
+ [key: string]: any;
118
+ }>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
119
+ /**
120
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataOptions}
121
+ *
122
+ * @category Chart
123
+ */
124
+ dataOptions: {
125
+ type: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
126
+ required: true;
127
+ };
128
+ /**
129
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataSet}
130
+ *
131
+ * @category Data
132
+ */
133
+ dataSet: PropType<import("@sisense/sdk-data").DataSource | import("@sisense/sdk-data").Data | undefined>;
134
+ /**
135
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.filters}
136
+ *
137
+ * @category Data
138
+ */
139
+ filters: PropType<import("@sisense/sdk-data").FilterRelations | import("@sisense/sdk-data").Filter[] | undefined>;
140
+ /**
141
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.highlights}
142
+ *
143
+ * @category Data
144
+ */
145
+ highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
146
+ /**
147
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.styleOptions}
148
+ *
149
+ * @category Chart
150
+ */
151
+ styleOptions: PropType<import("@sisense/sdk-ui-preact").StreamgraphStyleOptions | undefined>;
152
+ /**
153
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onBeforeRender}
154
+ *
155
+ * @category Callbacks
156
+ */
157
+ onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
158
+ /**
159
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataReady}
160
+ *
161
+ * @category Callbacks
162
+ */
163
+ onDataReady: PropType<((data: import("@sisense/sdk-data").Data) => import("@sisense/sdk-data").Data) | undefined>;
164
+ /**
165
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointClick}
166
+ *
167
+ * @category Callbacks
168
+ */
169
+ onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
170
+ /**
171
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointContextMenu}
172
+ *
173
+ * @category Callbacks
174
+ */
175
+ onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
176
+ /**
177
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointsSelected}
178
+ *
179
+ * @category Callbacks
180
+ */
181
+ onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | undefined>;
182
+ }>>, {}, {}>;
@@ -1,2 +1,2 @@
1
1
  export { boxWhiskerProcessResult, extractDimensionsAndMeasures } from '@sisense/sdk-ui-preact';
2
- export type { ChartType, CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, CalendarHeatmapChartType, ScattermapChartType, AreamapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, CalendarHeatmapSubtype, WidgetType, CartesianWidgetType, CategoricalWidgetType, TabularWidgetType, ExecuteQueryByWidgetIdParams, ExecuteQueryParams, GetWidgetModelParams, GetSharedFormulaParams, GetDashboardModelParams, UseGetSharedFormulaParams, GetDashboardModelsParams, GetHierarchyModelsParams, ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, BoxplotChartDataOptions, BoxplotChartCustomDataOptions, CalendarHeatmapChartDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, TableDataOptions, PivotTableDataOptions, WidgetDataOptions, NumberFormatConfig, DecimalScale, DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, ValueToColorMap, MultiColumnValueToColorMap, SortDirection, BoxWhiskerType, ScattermapLocationLevel, StyledColumn, StyledMeasureColumn, PivotRowsSort, ChartStyleOptions, LineStyleOptions, AreaStyleOptions, StackableStyleOptions, PieStyleOptions, FunnelStyleOptions, PolarStyleOptions, IndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, NumericBarIndicatorStyleOptions, GaugeIndicatorStyleOptions, ScatterStyleOptions, TreemapStyleOptions, SunburstStyleOptions, BoxplotStyleOptions, CalendarHeatmapStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, ChartWidgetStyleOptions, WidgetStyleOptions, WidgetByIdStyleOptions, TableStyleOptions, PivotTableStyleOptions, AreaRangeStyleOptions, DataLimits, Legend, Markers, Labels, IndicatorComponents, ScatterMarkerSize, LineWidth, LineOptions, DashStyle, EndCapType, AxisLabel, Convolution, SeriesLabels, X2Title, ScattermapMarkers, CalendarHeatmapViewType, WidgetModel, DashboardModel, BeforeRenderHandler, DataPoint, ScatterDataPoint, HighchartsOptions, BoxplotDataPoint, CalendarHeatmapDataPoint, CalendarDayOfWeek, IndicatorBeforeRenderHandler, IndicatorRenderOptions, DashboardLayoutOptions, WidgetsPanelLayout, WidgetsPanelColumnLayout, WidgetId, WidgetsOptions, AppConfig, DateConfig, MenuItemSection, MonthOfYear, DayOfWeek, DateLevel, ThemeOid, GetDashboardModelOptions, GetDashboardModelsOptions, SeriesChartType, MenuPosition, ThemeSettings, Color, ColorPaletteTheme, Navigator, DrilldownOptions, DrilldownSelection, Member, FilterVariant, TranslationConfig, } from '@sisense/sdk-ui-preact';
2
+ export type { ChartType, CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, CalendarHeatmapChartType, ScattermapChartType, AreamapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, CalendarHeatmapSubtype, WidgetType, CartesianWidgetType, CategoricalWidgetType, TabularWidgetType, ExecuteQueryByWidgetIdParams, ExecuteQueryParams, GetWidgetModelParams, GetSharedFormulaParams, GetDashboardModelParams, UseGetSharedFormulaParams, GetDashboardModelsParams, GetHierarchyModelsParams, ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, BoxplotChartDataOptions, BoxplotChartCustomDataOptions, CalendarHeatmapChartDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, TableDataOptions, PivotTableDataOptions, WidgetDataOptions, NumberFormatConfig, DecimalScale, DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, ValueToColorMap, MultiColumnValueToColorMap, SortDirection, BoxWhiskerType, ScattermapLocationLevel, StyledColumn, StyledMeasureColumn, PivotRowsSort, ChartStyleOptions, LineStyleOptions, AreaStyleOptions, StackableStyleOptions, PieStyleOptions, FunnelStyleOptions, PolarStyleOptions, IndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, NumericBarIndicatorStyleOptions, GaugeIndicatorStyleOptions, ScatterStyleOptions, TreemapStyleOptions, StreamgraphStyleOptions, SunburstStyleOptions, BoxplotStyleOptions, CalendarHeatmapStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, ChartWidgetStyleOptions, WidgetStyleOptions, WidgetByIdStyleOptions, TableStyleOptions, PivotTableStyleOptions, AreaRangeStyleOptions, DataLimits, Legend, Markers, Labels, IndicatorComponents, ScatterMarkerSize, LineWidth, LineOptions, DashStyle, EndCapType, AxisLabel, Convolution, SeriesLabels, X2Title, ScattermapMarkers, CalendarHeatmapViewType, WidgetModel, DashboardModel, BeforeRenderHandler, DataPoint, ScatterDataPoint, HighchartsOptions, BoxplotDataPoint, CalendarHeatmapDataPoint, CalendarDayOfWeek, IndicatorBeforeRenderHandler, IndicatorRenderOptions, DashboardLayoutOptions, WidgetsPanelLayout, WidgetsPanelColumnLayout, WidgetId, WidgetsOptions, AppConfig, DateConfig, MenuItemSection, MonthOfYear, DayOfWeek, DateLevel, ThemeOid, GetDashboardModelOptions, GetDashboardModelsOptions, SeriesChartType, MenuPosition, ThemeSettings, Color, ColorPaletteTheme, Navigator, DrilldownOptions, DrilldownSelection, Member, FilterVariant, TranslationConfig, } from '@sisense/sdk-ui-preact';