@sisense/sdk-ui-vue 1.2.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +83668 -62966
- package/dist/src/components/charts/area-chart.d.ts +22 -9
- package/dist/src/components/charts/areamap-chart.d.ts +23 -17
- package/dist/src/components/charts/bar-chart.d.ts +23 -10
- package/dist/src/components/charts/boxplot-chart.d.ts +29 -15
- package/dist/src/components/charts/chart-widget.d.ts +42 -11
- package/dist/src/components/charts/chart.d.ts +16 -27
- package/dist/src/components/charts/column-chart.d.ts +23 -10
- package/dist/src/components/charts/dashboard-widget.d.ts +11 -11
- package/dist/src/components/charts/funnel-chart.d.ts +21 -7
- package/dist/src/components/charts/index.d.ts +1 -0
- package/dist/src/components/charts/indicator-chart.d.ts +20 -9
- package/dist/src/components/charts/line-chart.d.ts +20 -8
- package/dist/src/components/charts/pie-chart.d.ts +22 -10
- package/dist/src/components/charts/pivot-table.d.ts +41 -0
- package/dist/src/components/charts/polar-chart.d.ts +22 -10
- package/dist/src/components/charts/scatter-chart.d.ts +28 -10
- package/dist/src/components/charts/scattermap-chart.d.ts +22 -7
- package/dist/src/components/charts/sunburst-chart.d.ts +16 -8
- package/dist/src/components/charts/table-widget.d.ts +6 -4
- package/dist/src/components/charts/table.d.ts +6 -5
- package/dist/src/components/charts/treemap-chart.d.ts +21 -9
- package/dist/src/components/context-menu.d.ts +32 -0
- package/dist/src/components/drilldown-breadcrumbs.d.ts +41 -0
- package/dist/src/components/drilldown-widget.d.ts +44 -0
- package/dist/src/components/drilldown-widget.vue.d.ts +2 -44
- package/dist/src/components/filters/basic-member-filter-tile.d.ts +1 -0
- package/dist/src/components/filters/criteria-filter-tile.d.ts +19 -4
- package/dist/src/components/filters/date-range-filter-tile.d.ts +14 -5
- package/dist/src/components/filters/member-filter-tile.d.ts +16 -5
- package/dist/src/composables/index.d.ts +6 -0
- package/dist/src/{hooks → composables}/use-custom-drilldown.d.ts +21 -2
- package/dist/src/composables/use-execute-query-by-widget-id.d.ts +42 -0
- package/dist/src/composables/use-execute-query.d.ts +44 -0
- package/dist/src/composables/use-get-dashboard-model.d.ts +41 -0
- package/dist/src/composables/use-get-dashboard-models.d.ts +38 -0
- package/dist/src/composables/use-get-shared-formula.d.ts +45 -0
- package/dist/src/composables/use-get-widget-model.d.ts +41 -0
- package/dist/src/composables/use-tracking.d.ts +39 -0
- package/dist/src/helpers/use-reducer.d.ts +10 -0
- package/dist/src/lib.d.ts +2 -8
- package/dist/src/providers/index.d.ts +1 -1
- package/dist/src/providers/sisense-context-provider.d.ts +49 -9
- package/dist/src/providers/theme-provider.d.ts +60 -5
- package/dist/src/sdk-ui-core-exports.d.ts +5 -0
- package/dist/src/types.d.ts +5 -0
- package/dist/src/utils.d.ts +6 -0
- package/package.json +4 -1
- package/dist/src/hooks/index.d.ts +0 -6
- package/dist/src/hooks/use-execute-query-by-widget-id.d.ts +0 -9
- package/dist/src/hooks/use-execute-query.d.ts +0 -11
- package/dist/src/hooks/use-get-dashboard-model.d.ts +0 -4
- package/dist/src/hooks/use-get-dashboard-models.d.ts +0 -4
- package/dist/src/hooks/use-get-shared-formula.d.ts +0 -4
- package/dist/src/hooks/use-get-widget-model.d.ts +0 -4
@@ -1,29 +1,42 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
* A Vue component
|
4
|
-
*
|
3
|
+
* A Vue component similar to a {@link LineChart},
|
4
|
+
* but with filled in areas under each line and an option to display them as stacked.
|
5
|
+
* More info on [Sisense Documentation page](https://docs.sisense.com/main/SisenseLinux/area-chart.htm).
|
5
6
|
*
|
7
|
+
* <img src="media://area-chart-example-1.png" width="800"/>
|
6
8
|
* @example
|
7
9
|
* Here's how you can use the AreaChart component in a Vue application:
|
8
10
|
* ```vue
|
9
11
|
* <template>
|
10
|
-
*
|
12
|
+
* <AreaChart
|
13
|
+
:dataOptions="areaChartProps.dataOptions"
|
14
|
+
:dataSet="areaChartProps.dataSet"
|
15
|
+
:filters="areaChartProps.filters"
|
16
|
+
/>
|
11
17
|
* </template>
|
12
18
|
*
|
13
19
|
* <script setup lang="ts">
|
14
20
|
* import { ref } from 'vue';
|
15
|
-
* import AreaChart from '@sisense/sdk-ui-vue
|
21
|
+
* import {AreaChart, type AreaChartProps} from '@sisense/sdk-ui-vue';
|
16
22
|
*
|
17
|
-
* const areaChartProps = ref({
|
18
|
-
*
|
23
|
+
* const areaChartProps = ref<AreaChartProps>({
|
24
|
+
* dataSet: DM.DataSource,
|
25
|
+
* dataOptions: {
|
26
|
+
* category: [dimProductName],
|
27
|
+
* value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
28
|
+
* breakBy: [],
|
29
|
+
* },
|
30
|
+
* filters: [],
|
19
31
|
* });
|
20
|
-
* </script>
|
21
32
|
* ```
|
33
|
+
* @param {AreaChartProps} - Area chart properties
|
34
|
+
* @returns Area Chart component
|
22
35
|
*/
|
23
36
|
export declare const AreaChart: import("vue").DefineComponent<{
|
24
37
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
|
25
38
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
39
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
40
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
41
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
29
42
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -35,7 +48,7 @@ export declare const AreaChart: import("vue").DefineComponent<{
|
|
35
48
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
49
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
|
37
50
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
51
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
52
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
53
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
41
54
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -1,45 +1,51 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
* A Vue component
|
4
|
-
*
|
3
|
+
* A Vue component for visualizing geographical data as polygons on a map.
|
4
|
+
* See [Areamap Chart](https://docs.sisense.com/main/SisenseLinux/area-map.htm) for more information.
|
5
5
|
*
|
6
6
|
* @example
|
7
7
|
* Here's how you can use the AreamapChart component in a Vue application:
|
8
8
|
* ```vue
|
9
9
|
* <template>
|
10
|
-
|
10
|
+
<AreamapChart
|
11
|
+
:dataOptions="areamapChartProps.dataOptions"
|
12
|
+
:dataSet="areamapChartProps.dataSet"
|
13
|
+
:filters="areamapChartProps.filters"
|
14
|
+
/>
|
11
15
|
* </template>
|
12
16
|
*
|
13
17
|
* <script setup lang="ts">
|
14
18
|
* import { ref } from 'vue';
|
15
|
-
* import AreamapChart from '@sisense/sdk-ui-vue
|
19
|
+
* import {AreamapChart, type AreamapChartProps} from '@sisense/sdk-ui-vue';
|
16
20
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
21
|
+
const areamapChartProps = ref<AreamapChartProps>({
|
22
|
+
dataSet: DM.DataSource,
|
23
|
+
dataOptions: {
|
24
|
+
geo: [DM.DimCountries.CountryName],
|
25
|
+
color: [{ column: measureTotalRevenue, title: 'Total Revenue' }],
|
26
|
+
},
|
27
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
28
|
+
});
|
20
29
|
* </script>
|
21
30
|
* ```
|
31
|
+
* @param props - Areamap chart properties
|
32
|
+
* @returns Areamap Chart component
|
33
|
+
* @beta
|
22
34
|
*/
|
23
35
|
export declare const AreamapChart: import("vue").DefineComponent<{
|
24
36
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").AreamapChartDataOptions>;
|
25
37
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
38
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
39
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
40
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").AreamapStyleOptions | undefined>;
|
29
|
-
|
30
|
-
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
31
|
-
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
32
|
-
onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | undefined>;
|
41
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").AreamapDataPointEventHandler | undefined>;
|
33
42
|
}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
34
43
|
[key: string]: any;
|
35
44
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
45
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").AreamapChartDataOptions>;
|
37
46
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
47
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
48
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
49
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").AreamapStyleOptions | undefined>;
|
41
|
-
|
42
|
-
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
43
|
-
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
44
|
-
onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | undefined>;
|
50
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").AreamapDataPointEventHandler | undefined>;
|
45
51
|
}>>, {}, {}>;
|
@@ -1,24 +1,37 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
* A Vue component
|
4
|
-
*
|
5
|
-
*
|
3
|
+
* A Vue component representing categorical data with horizontal rectangular bars,
|
4
|
+
* whose lengths are proportional to the values that they represent.
|
5
|
+
* See [Bar Chart](https://docs.sisense.com/main/SisenseLinux/bar-chart.htm) for more information.
|
6
6
|
* @example
|
7
7
|
* Here's how you can use the BarChart component in a Vue application:
|
8
8
|
* ```vue
|
9
9
|
* <template>
|
10
|
-
|
10
|
+
<BarChart
|
11
|
+
:dataOptions="barChartProps.dataOptions"
|
12
|
+
:dataSet="barChartProps.dataSet"
|
13
|
+
:filters="barChartProps.filters"
|
14
|
+
/>
|
11
15
|
* </template>
|
12
16
|
*
|
13
17
|
* <script setup lang="ts">
|
14
18
|
* import { ref } from 'vue';
|
15
|
-
* import BarChart from '@sisense/sdk-ui-vue
|
19
|
+
* import {BarChart} from '@sisense/sdk-ui-vue';
|
16
20
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
21
|
+
const barChartProps = ref<BarChartProps>({
|
22
|
+
dataSet: DM.DataSource,
|
23
|
+
dataOptions: {
|
24
|
+
category: [dimProductName],
|
25
|
+
value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
26
|
+
breakBy: [],
|
27
|
+
},
|
28
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
29
|
+
});
|
20
30
|
* </script>
|
21
31
|
* ```
|
32
|
+
* <img src="media://bar-chart-example-1.png" width="800"/>
|
33
|
+
* @param props - Bar chart properties
|
34
|
+
* @returns Bar Chart component
|
22
35
|
*/
|
23
36
|
export declare const BarChart: import("vue").DefineComponent<{
|
24
37
|
/**
|
@@ -27,7 +40,7 @@ export declare const BarChart: import("vue").DefineComponent<{
|
|
27
40
|
*/
|
28
41
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
|
29
42
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
30
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
43
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
31
44
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
32
45
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
33
46
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -43,7 +56,7 @@ export declare const BarChart: import("vue").DefineComponent<{
|
|
43
56
|
*/
|
44
57
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
|
45
58
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
46
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
59
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
47
60
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
48
61
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
49
62
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -1,45 +1,59 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
* A Vue component
|
4
|
-
*
|
5
|
-
*
|
3
|
+
* A Vue component representing data in a way that visually describes the distribution, variability,
|
4
|
+
* and center of a data set along an axis.
|
5
|
+
* See [Boxplot Chart](https://docs.sisense.com/main/SisenseLinux/box-and-whisker-plot.htm) for more information.
|
6
6
|
* @example
|
7
7
|
* Here's how you can use the BoxplotChart component in a Vue application:
|
8
8
|
* ```vue
|
9
9
|
* <template>
|
10
|
-
|
10
|
+
<BoxplotChart
|
11
|
+
:dataOptions="boxplotChartProps.dataOptions"
|
12
|
+
:dataSet="boxplotChartProps.dataSet"
|
13
|
+
:filters="boxplotChartProps.filters"
|
14
|
+
/>
|
11
15
|
* </template>
|
12
16
|
*
|
13
17
|
* <script setup lang="ts">
|
14
18
|
* import { ref } from 'vue';
|
15
|
-
* import BoxplotChart from '@sisense/sdk-ui-vue
|
19
|
+
* import {BoxplotChart, type BoxplotChartProps} from '@sisense/sdk-ui-vue';
|
16
20
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
+
const boxplotChartProps = ref<BoxplotChartProps>({
|
22
|
+
dataSet: DM.DataSource,
|
23
|
+
dataOptions: {
|
24
|
+
category: [dimProductName],
|
25
|
+
value: [DM.Fact_Sale_orders.OrderRevenue],
|
26
|
+
boxType: 'iqr',
|
27
|
+
outliersEnabled: true,
|
28
|
+
},
|
29
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
30
|
+
});
|
21
31
|
* ```
|
32
|
+
* <img src="media://boxplot-chart-example-1.png" width="600px" />
|
33
|
+
* @param props - Boxplot chart properties
|
34
|
+
* @returns Boxplot Chart component
|
35
|
+
* @beta
|
22
36
|
*/
|
23
37
|
export declare const BoxplotChart: import("vue").DefineComponent<{
|
24
38
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").BoxplotChartDataOptions | import("@sisense/sdk-ui-preact").BoxplotChartCustomDataOptions>;
|
25
39
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
40
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
41
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
42
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").BoxplotStyleOptions | undefined>;
|
29
43
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
30
|
-
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").
|
31
|
-
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").
|
44
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | undefined>;
|
45
|
+
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | undefined>;
|
32
46
|
onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | undefined>;
|
33
47
|
}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
34
48
|
[key: string]: any;
|
35
49
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
50
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").BoxplotChartDataOptions | import("@sisense/sdk-ui-preact").BoxplotChartCustomDataOptions>;
|
37
51
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
52
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
53
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
54
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").BoxplotStyleOptions | undefined>;
|
41
55
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
42
|
-
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").
|
43
|
-
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").
|
56
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | undefined>;
|
57
|
+
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | undefined>;
|
44
58
|
onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | undefined>;
|
45
59
|
}>>, {}, {}>;
|
@@ -1,25 +1,56 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { PropType } from 'vue';
|
3
3
|
/**
|
4
|
-
*
|
5
|
-
* It
|
6
|
-
*
|
4
|
+
* The Chart Widget component extending the {@link Chart} component to support widget style options.
|
5
|
+
* It can be used along with the {@link DrilldownWidget} component to support advanced data drilldown.
|
7
6
|
* @example
|
8
7
|
* Here's how you can use the ChartWidget component in a Vue application:
|
9
8
|
* ```vue
|
10
9
|
* <template>
|
11
|
-
|
10
|
+
<DrilldownWidget :drilldownDimensions="drilldownDimensions" :initialDimension="dimProductName">
|
11
|
+
<template
|
12
|
+
#chart="{ drilldownFilters, drilldownDimension, onDataPointsSelected, onContextMenu }"
|
13
|
+
>
|
14
|
+
<ChartWidget
|
15
|
+
chart-type="bar"
|
16
|
+
v-bind:filters="drilldownFilters"
|
17
|
+
:dataOptions="{
|
18
|
+
...chartProps.dataOptions,
|
19
|
+
category: [drilldownDimension],
|
20
|
+
}"
|
21
|
+
:highlight-selection-disabled="true"
|
22
|
+
:dataSet="chartProps.dataSet"
|
23
|
+
:style="chartProps.styleOptions"
|
24
|
+
:on-data-points-selected="(dataPoints:any,event:any) => {
|
25
|
+
onDataPointsSelected(dataPoints);
|
26
|
+
onContextMenu({ left: event.clientX, top: event.clientY });
|
27
|
+
}"
|
28
|
+
:on-data-point-click="(dataPoint:any,event:any) => {
|
29
|
+
onDataPointsSelected([dataPoint]);
|
30
|
+
onContextMenu({ left: event.clientX, top: event.clientY });
|
31
|
+
}"
|
32
|
+
:on-data-point-context-menu="(dataPoint:any,event:any) => {
|
33
|
+
onDataPointsSelected([dataPoint]);
|
34
|
+
onContextMenu({ left: event.clientX, top: event.clientY });
|
35
|
+
}"
|
36
|
+
/>
|
37
|
+
</template>
|
38
|
+
</DrilldownWidget>
|
12
39
|
* </template>
|
13
40
|
*
|
14
41
|
* <script setup lang="ts">
|
15
42
|
* import { ref } from 'vue';
|
16
|
-
* import ChartWidget from '@sisense/sdk-ui-vue
|
43
|
+
* import {ChartWidget} from '@sisense/sdk-ui-vue';
|
17
44
|
*
|
18
45
|
* const chartWidgetProps = ref({
|
19
46
|
* // Configure your ChartWidgetProps here
|
20
47
|
* });
|
21
48
|
* </script>
|
22
49
|
* ```
|
50
|
+
* <img src="media://chart-widget-with-drilldown-example-1.png" width="800px" />
|
51
|
+
* @param props - ChartWidget properties
|
52
|
+
* @returns ChartWidget component representing a chart type as specified in `ChartWidgetProps.`{@link ChartWidgetProps.chartType | chartType}
|
53
|
+
|
23
54
|
*/
|
24
55
|
export declare const ChartWidget: import("vue").DefineComponent<{
|
25
56
|
bottomSlot: PropType<import("react").ReactNode>;
|
@@ -29,13 +60,13 @@ export declare const ChartWidget: import("vue").DefineComponent<{
|
|
29
60
|
dataSource: PropType<string | undefined>;
|
30
61
|
description: PropType<string | undefined>;
|
31
62
|
drilldownOptions: PropType<import("@sisense/sdk-ui-preact").DrilldownOptions | undefined>;
|
32
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
63
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
33
64
|
highlightSelectionDisabled: PropType<boolean | undefined>;
|
34
65
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
35
66
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
36
67
|
onContextMenuClose: PropType<(() => void) | undefined>;
|
37
|
-
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
38
|
-
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
68
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").AreamapDataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | import("@sisense/sdk-ui-preact").ScattermapDataPointEventHandler | undefined>;
|
69
|
+
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
39
70
|
onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointsEventHandler | undefined>;
|
40
71
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").ChartWidgetStyleOptions | undefined>;
|
41
72
|
title: PropType<string | undefined>;
|
@@ -51,13 +82,13 @@ export declare const ChartWidget: import("vue").DefineComponent<{
|
|
51
82
|
dataSource: PropType<string | undefined>;
|
52
83
|
description: PropType<string | undefined>;
|
53
84
|
drilldownOptions: PropType<import("@sisense/sdk-ui-preact").DrilldownOptions | undefined>;
|
54
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
85
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
55
86
|
highlightSelectionDisabled: PropType<boolean | undefined>;
|
56
87
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
57
88
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
58
89
|
onContextMenuClose: PropType<(() => void) | undefined>;
|
59
|
-
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
60
|
-
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
90
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").AreamapDataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | import("@sisense/sdk-ui-preact").ScattermapDataPointEventHandler | undefined>;
|
91
|
+
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
61
92
|
onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointsEventHandler | undefined>;
|
62
93
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").ChartWidgetStyleOptions | undefined>;
|
63
94
|
title: PropType<string | undefined>;
|
@@ -8,7 +8,7 @@ import { type PropType } from 'vue';
|
|
8
8
|
* ```tsx
|
9
9
|
* <script setup lang="ts">
|
10
10
|
* import { Chart } from '@sisense/sdk-ui-vue';
|
11
|
-
* import type { ChartProps } from '@sisense/sdk-ui';
|
11
|
+
* import type { ChartProps } from '@sisense/sdk-ui-vue';
|
12
12
|
* import * as DM from '../assets/sample-retail-model';
|
13
13
|
* import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
14
14
|
* import { ref } from 'vue';
|
@@ -24,44 +24,33 @@ import { type PropType } from 'vue';
|
|
24
24
|
* value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
25
25
|
* breakBy: [],
|
26
26
|
* },
|
27
|
-
* filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)]
|
28
|
-
* styleOptions: {
|
29
|
-
* width: 800,
|
30
|
-
* height: 500,
|
31
|
-
* xAxis: {
|
32
|
-
* title: {
|
33
|
-
* text: 'Product Name',
|
34
|
-
* enabled: true,
|
35
|
-
* },
|
36
|
-
* },
|
37
|
-
* yAxis: {
|
38
|
-
* title: {
|
39
|
-
* text: 'Total Revenue',
|
40
|
-
* enabled: true,
|
41
|
-
* },
|
42
|
-
* },
|
43
|
-
* },
|
27
|
+
* filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)]
|
44
28
|
* });
|
45
29
|
* </script>
|
46
30
|
*
|
47
31
|
* <template>
|
48
|
-
|
32
|
+
<Chart
|
33
|
+
:chartType="chartProps.chartType"
|
34
|
+
:dataSet="chartProps.dataSet"
|
35
|
+
:dataOptions="chartProps.dataOptions"
|
36
|
+
:filters="chartProps.filters"
|
37
|
+
/>
|
49
38
|
* </template>
|
50
39
|
* ```
|
51
40
|
*
|
52
|
-
* <img src="media://
|
53
|
-
*
|
41
|
+
* <img src="media://chart-local-data-example-1.png" width="800px" />
|
42
|
+
* @param props - Chart properties
|
54
43
|
* @returns Chart component representing a chart type as specified in `ChartProps.`{@link ChartProps.chartType | chartType}
|
55
44
|
*/
|
56
45
|
export declare const Chart: import("vue").DefineComponent<{
|
57
46
|
chartType: PropType<import("@sisense/sdk-ui-preact").ChartType>;
|
58
47
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").ChartDataOptions>;
|
59
48
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
60
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
49
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
61
50
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
62
51
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
63
|
-
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
64
|
-
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
52
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").AreamapDataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | import("@sisense/sdk-ui-preact").ScattermapDataPointEventHandler | undefined>;
|
53
|
+
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
65
54
|
onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointsEventHandler | undefined>;
|
66
55
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").ChartStyleOptions | undefined>;
|
67
56
|
refreshCounter: PropType<number | undefined>;
|
@@ -71,11 +60,11 @@ export declare const Chart: import("vue").DefineComponent<{
|
|
71
60
|
chartType: PropType<import("@sisense/sdk-ui-preact").ChartType>;
|
72
61
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").ChartDataOptions>;
|
73
62
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
74
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
63
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
75
64
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
76
65
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
77
|
-
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
78
|
-
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
66
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").AreamapDataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | import("@sisense/sdk-ui-preact").ScattermapDataPointEventHandler | undefined>;
|
67
|
+
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
79
68
|
onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointsEventHandler | undefined>;
|
80
69
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").ChartStyleOptions | undefined>;
|
81
70
|
refreshCounter: PropType<number | undefined>;
|
@@ -1,29 +1,42 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
* A Vue component
|
4
|
-
*
|
3
|
+
* A Vue component representing categorical data with vertical rectangular bars
|
4
|
+
* whose heights are proportional to the values that they represent.
|
5
|
+
* See [Column Chart](https://docs.sisense.com/main/SisenseLinux/column-chart.htm) for more information.
|
5
6
|
*
|
6
7
|
* @example
|
7
8
|
* Here's how you can use the ColumnChart component in a Vue application:
|
8
9
|
* ```vue
|
9
10
|
* <template>
|
10
|
-
|
11
|
+
<ColumnChart
|
12
|
+
:dataOptions="columnChartProps.dataOptions"
|
13
|
+
:dataSet="columnChartProps.dataSet"
|
14
|
+
:filters="columnChartProps.filters"
|
15
|
+
/>
|
11
16
|
* </template>
|
12
17
|
*
|
13
18
|
* <script setup lang="ts">
|
14
19
|
* import { ref } from 'vue';
|
15
|
-
* import ColumnChart from '@sisense/sdk-ui-vue
|
20
|
+
* import {ColumnChart, type ColumnChartProps} from '@sisense/sdk-ui-vue';
|
16
21
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
22
|
+
const columnChartProps = ref<ColumnChartProps>({
|
23
|
+
dataSet: DM.DataSource,
|
24
|
+
dataOptions: {
|
25
|
+
category: [dimProductName],
|
26
|
+
value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
27
|
+
breakBy: [],
|
28
|
+
},
|
29
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
30
|
+
});
|
21
31
|
* ```
|
32
|
+
* <img src="media://column-chart-example-1.png" width="800"/>
|
33
|
+
* @param props - Column chart properties
|
34
|
+
* @returns Column Chart component
|
22
35
|
*/
|
23
36
|
export declare const ColumnChart: import("vue").DefineComponent<{
|
24
37
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
|
25
38
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
39
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
40
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
41
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
29
42
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -35,7 +48,7 @@ export declare const ColumnChart: import("vue").DefineComponent<{
|
|
35
48
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
49
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
|
37
50
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
51
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
52
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
53
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
41
54
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -1,23 +1,23 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { PropType } from 'vue';
|
3
3
|
/**
|
4
|
-
*
|
5
|
-
*
|
4
|
+
* The Dashboard Widget component, which is a thin wrapper on the {@link ChartWidget} component,
|
5
|
+
* used to render a widget created in the Sisense instance.
|
6
6
|
*
|
7
7
|
* @example
|
8
8
|
* Here's how you can use the DashboardWidget component in a Vue application:
|
9
9
|
* ```vue
|
10
10
|
* <template>
|
11
|
-
*
|
11
|
+
* <DashboardWidget
|
12
|
+
* widgetOid="64473e07dac1920034bce77f"
|
13
|
+
* dashboardOid="6441e728dac1920034bce737"
|
14
|
+
* />
|
12
15
|
* </template>
|
13
16
|
*
|
14
17
|
* <script setup lang="ts">
|
15
18
|
* import { ref } from 'vue';
|
16
|
-
* import DashboardWidget from '@sisense/sdk-ui-vue
|
19
|
+
* import {DashboardWidget} from '@sisense/sdk-ui-vue';
|
17
20
|
*
|
18
|
-
* const dashboardWidgetProps = ref({
|
19
|
-
* // Configure your DashboardWidgetProps here
|
20
|
-
* });
|
21
21
|
* </script>
|
22
22
|
* ```
|
23
23
|
*/
|
@@ -34,8 +34,8 @@ export declare const DashboardWidget: import("vue").DefineComponent<{
|
|
34
34
|
includeDashboardFilters: PropType<boolean | undefined>;
|
35
35
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
36
36
|
onContextMenuClose: PropType<(() => void) | undefined>;
|
37
|
-
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
38
|
-
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
37
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").AreamapDataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | import("@sisense/sdk-ui-preact").ScattermapDataPointEventHandler | undefined>;
|
38
|
+
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
39
39
|
onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointsEventHandler | undefined>;
|
40
40
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").DashboardWidgetStyleOptions | undefined>;
|
41
41
|
title: PropType<string | undefined>;
|
@@ -57,8 +57,8 @@ export declare const DashboardWidget: import("vue").DefineComponent<{
|
|
57
57
|
includeDashboardFilters: PropType<boolean | undefined>;
|
58
58
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
59
59
|
onContextMenuClose: PropType<(() => void) | undefined>;
|
60
|
-
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
61
|
-
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
60
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").AreamapDataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | import("@sisense/sdk-ui-preact").ScattermapDataPointEventHandler | undefined>;
|
61
|
+
onDataPointContextMenu: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | import("@sisense/sdk-ui-preact").BoxplotDataPointEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
62
62
|
onDataPointsSelected: PropType<import("@sisense/sdk-ui-preact").DataPointsEventHandler | import("@sisense/sdk-ui-preact").ScatterDataPointsEventHandler | undefined>;
|
63
63
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").DashboardWidgetStyleOptions | undefined>;
|
64
64
|
title: PropType<string | undefined>;
|
@@ -7,23 +7,37 @@ import type { PropType } from 'vue';
|
|
7
7
|
* Here's how you can use the FunnelChart component in a Vue application:
|
8
8
|
* ```vue
|
9
9
|
* <template>
|
10
|
-
|
10
|
+
<FunnelChart
|
11
|
+
:dataOptions="funnelChartProps.dataOptions"
|
12
|
+
:dataSet="funnelChartProps.dataSet"
|
13
|
+
:filters="funnelChartProps.filters"
|
14
|
+
/>
|
11
15
|
* </template>
|
12
16
|
*
|
13
17
|
* <script setup lang="ts">
|
14
18
|
* import { ref } from 'vue';
|
15
|
-
* import FunnelChart from '@sisense/sdk-ui-vue
|
19
|
+
* import {FunnelChart, type FunnelChartProps} from '@sisense/sdk-ui-vue';
|
16
20
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
21
|
+
const funnelChartProps = ref<FunnelChartProps>({
|
22
|
+
dataSet: DM.DataSource,
|
23
|
+
dataOptions: {
|
24
|
+
category: [dimProductName],
|
25
|
+
value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
26
|
+
},
|
27
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
28
|
+
});
|
20
29
|
* </script>
|
21
30
|
* ```
|
31
|
+
* <img src="media://funnel-chart-example-1.png" width="800"/>
|
32
|
+
*
|
33
|
+
* Note that the chart sorts the measure, `Unique Users`, in descending order by default.
|
34
|
+
* @param props - Funnel chart properties
|
35
|
+
* @returns Funnel Chart component
|
22
36
|
*/
|
23
37
|
export declare const FunnelChart: import("vue").DefineComponent<{
|
24
38
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CategoricalChartDataOptions>;
|
25
39
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
40
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
41
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
42
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
29
43
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -35,7 +49,7 @@ export declare const FunnelChart: import("vue").DefineComponent<{
|
|
35
49
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
50
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CategoricalChartDataOptions>;
|
37
51
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
52
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
53
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
54
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
41
55
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|