@visactor/vchart-theme-demo-component 1.11.5 → 1.11.6

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.
Files changed (35) hide show
  1. package/cjs/spec/businessFunnel.d.ts +223 -0
  2. package/cjs/spec/businessFunnel.js +261 -0
  3. package/cjs/spec/businessFunnel.js.map +1 -0
  4. package/cjs/spec/combination.d.ts +48 -0
  5. package/cjs/spec/combination.js +134 -0
  6. package/cjs/spec/combination.js.map +1 -0
  7. package/cjs/spec/funnelHorizontal.d.ts +131 -0
  8. package/cjs/spec/funnelHorizontal.js +126 -0
  9. package/cjs/spec/funnelHorizontal.js.map +1 -0
  10. package/cjs/spec/gauge.d.ts +1 -0
  11. package/cjs/spec/gauge.js +2 -2
  12. package/cjs/spec/gauge.js.map +1 -1
  13. package/cjs/spec/line.js +2 -1
  14. package/cjs/vchart-chart-hub-theme/chart-list.js +18 -2
  15. package/cjs/vchart-chart-hub-theme/chart-list.js.map +1 -1
  16. package/cjs/vchart-chart-hub-theme/charts.js +3 -7
  17. package/cjs/vchart-chart-hub-theme/charts.js.map +1 -1
  18. package/esm/spec/businessFunnel.d.ts +223 -0
  19. package/esm/spec/businessFunnel.js +257 -0
  20. package/esm/spec/businessFunnel.js.map +1 -0
  21. package/esm/spec/combination.d.ts +48 -0
  22. package/esm/spec/combination.js +130 -0
  23. package/esm/spec/combination.js.map +1 -0
  24. package/esm/spec/funnelHorizontal.d.ts +131 -0
  25. package/esm/spec/funnelHorizontal.js +122 -0
  26. package/esm/spec/funnelHorizontal.js.map +1 -0
  27. package/esm/spec/gauge.d.ts +1 -0
  28. package/esm/spec/gauge.js +2 -2
  29. package/esm/spec/gauge.js.map +1 -1
  30. package/esm/spec/line.js +2 -1
  31. package/esm/vchart-chart-hub-theme/chart-list.js +25 -1
  32. package/esm/vchart-chart-hub-theme/chart-list.js.map +1 -1
  33. package/esm/vchart-chart-hub-theme/charts.js +2 -4
  34. package/esm/vchart-chart-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I,EAAE;YACxB,WAAW,EAAE,MAAM;YACnB,MAAM,EAAE,GAAG;YACX,MAAM,EAAE,GAAG;YACX,KAAK,EAAE,KAAK;SACb;KACF;IACD,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxF,OAAO,EAAE;QACP,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,QAAQ;KACjB;CACF,CAAC","file":"combination.js","sourcesContent":["export const CombinationSpec = {\n type: 'common',\n seriesField: 'color',\n data: [\n {\n id: 'id0',\n values: [\n { x: '周一', type: '早餐', y: 15 },\n { x: '周一', type: '午餐', y: 25 },\n { x: '周二', type: '早餐', y: 12 },\n { x: '周二', type: '午餐', y: 30 },\n { x: '周三', type: '早餐', y: 15 },\n { x: '周三', type: '午餐', y: 24 },\n { x: '周四', type: '早餐', y: 10 },\n { x: '周四', type: '午餐', y: 25 },\n { x: '周五', type: '早餐', y: 13 },\n { x: '周五', type: '午餐', y: 20 },\n { x: '周六', type: '早餐', y: 10 },\n { x: '周六', type: '午餐', y: 22 },\n { x: '周日', type: '早餐', y: 12 },\n { x: '周日', type: '午餐', y: 19 }\n ]\n },\n {\n id: 'id1',\n values: [\n { x: '周一', type: '饮料', y: 22 },\n { x: '周二', type: '饮料', y: 43 },\n { x: '周三', type: '饮料', y: 33 },\n { x: '周四', type: '饮料', y: 22 },\n { x: '周五', type: '饮料', y: 10 },\n { x: '周六', type: '饮料', y: 30 },\n { x: '周日', type: '饮料', y: 50 }\n ]\n }\n ],\n series: [\n {\n type: 'bar',\n dataIndex: 0,\n label: { visible: true },\n seriesField: 'type',\n //@ts-ignore\n dataIndex: 0,\n xField: ['x', 'type'],\n yField: 'y'\n },\n {\n type: 'line',\n dataIndex: 1,\n label: { visible: true },\n seriesField: 'type',\n xField: 'x',\n yField: 'y',\n stack: false\n }\n ],\n axes: [{ orient: 'left' }, { orient: 'bottom', label: { visible: true }, type: 'band' }],\n legends: {\n visible: true,\n orient: 'bottom'\n }\n};\n"]}
@@ -0,0 +1,131 @@
1
+ export declare const horizontalFunnelSpec: {
2
+ type: string;
3
+ padding: {
4
+ left: number;
5
+ right: number;
6
+ };
7
+ data: {
8
+ id: string;
9
+ values: {
10
+ value: number;
11
+ name: string;
12
+ percent: number;
13
+ }[];
14
+ }[];
15
+ color: {
16
+ type: string;
17
+ range: string[];
18
+ };
19
+ series: {
20
+ type: string;
21
+ categoryField: string;
22
+ valueField: string;
23
+ maxSize: string;
24
+ minSize: string;
25
+ funnelAlign: string;
26
+ funnelOrient: string;
27
+ isTransform: boolean;
28
+ shape: string;
29
+ transform: {
30
+ style: {
31
+ fill: string;
32
+ };
33
+ };
34
+ label: {
35
+ visible: boolean;
36
+ style: {
37
+ lineHeight: number;
38
+ limit: (datum: any, ctx: any) => number;
39
+ text: (datum: any) => string;
40
+ x: (datum: any, ctx: any) => any;
41
+ y: (datum: any, ctx: any) => number;
42
+ textAlign: string;
43
+ textBaseline: string;
44
+ fontSize: number;
45
+ fontStyle: string;
46
+ };
47
+ };
48
+ extensionMark: ({
49
+ type: string;
50
+ dataId: string;
51
+ style: {
52
+ points: (datum: any, ctx: any) => any[];
53
+ closePath: boolean;
54
+ lineWidth: number;
55
+ stroke: string;
56
+ text?: undefined;
57
+ x?: undefined;
58
+ width?: undefined;
59
+ textAlign?: undefined;
60
+ y?: undefined;
61
+ fill?: undefined;
62
+ ellipsis?: undefined;
63
+ disableAutoWrapLine?: undefined;
64
+ image?: undefined;
65
+ align?: undefined;
66
+ height?: undefined;
67
+ background?: undefined;
68
+ fillOpacity?: undefined;
69
+ };
70
+ } | {
71
+ type: string;
72
+ dataId: string;
73
+ style: {
74
+ text: (datum: any, ctx: any) => {
75
+ type: string;
76
+ text: ({
77
+ text: string;
78
+ fontWeight: string;
79
+ lineHeight: number;
80
+ fontSize?: undefined;
81
+ fill?: undefined;
82
+ } | {
83
+ text: string;
84
+ fontWeight: string;
85
+ fontSize: number;
86
+ lineHeight: number;
87
+ fill: string;
88
+ })[];
89
+ };
90
+ x: (datum: any, ctx: any) => any;
91
+ width: (datum: any, ctx: any) => number;
92
+ textAlign: string;
93
+ y: number;
94
+ stroke: boolean;
95
+ fill: string;
96
+ ellipsis: boolean;
97
+ disableAutoWrapLine: boolean;
98
+ points?: undefined;
99
+ closePath?: undefined;
100
+ lineWidth?: undefined;
101
+ image?: undefined;
102
+ align?: undefined;
103
+ height?: undefined;
104
+ background?: undefined;
105
+ fillOpacity?: undefined;
106
+ };
107
+ } | {
108
+ type: string;
109
+ dataId: string;
110
+ style: {
111
+ image: string;
112
+ x: (datum: any, ctx: any) => number;
113
+ y: number;
114
+ align: string;
115
+ width: number;
116
+ height: number;
117
+ background: string;
118
+ fillOpacity: number;
119
+ points?: undefined;
120
+ closePath?: undefined;
121
+ lineWidth?: undefined;
122
+ stroke?: undefined;
123
+ text?: undefined;
124
+ textAlign?: undefined;
125
+ fill?: undefined;
126
+ ellipsis?: undefined;
127
+ disableAutoWrapLine?: undefined;
128
+ };
129
+ })[];
130
+ }[];
131
+ };
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.horizontalFunnelSpec = void 0, exports.horizontalFunnelSpec = {
6
+ type: "common",
7
+ padding: {
8
+ left: 20,
9
+ right: 60
10
+ },
11
+ data: [ {
12
+ id: "funnel",
13
+ values: [ {
14
+ value: 100,
15
+ name: "Screening",
16
+ percent: 1
17
+ }, {
18
+ value: 80,
19
+ name: "Evaluating",
20
+ percent: .8
21
+ }, {
22
+ value: 50,
23
+ name: "Passed",
24
+ percent: .5
25
+ }, {
26
+ value: 30,
27
+ name: "Interview",
28
+ percent: .3
29
+ } ]
30
+ } ],
31
+ color: {
32
+ type: "ordinal",
33
+ range: [ "rgb(54,106,253)", "rgb(103,138,251)", "rgb(146,173,255)", "rgb(191,207,255)" ]
34
+ },
35
+ series: [ {
36
+ type: "funnel",
37
+ categoryField: "name",
38
+ valueField: "value",
39
+ maxSize: "50%",
40
+ minSize: "10%",
41
+ funnelAlign: "bottom",
42
+ funnelOrient: "left",
43
+ isTransform: !0,
44
+ shape: "rect",
45
+ transform: {
46
+ style: {
47
+ fill: "rgb(222,231,253)"
48
+ }
49
+ },
50
+ label: {
51
+ visible: !0,
52
+ style: {
53
+ lineHeight: 16,
54
+ limit: (datum, ctx) => Math.abs(ctx.getPoints(datum)[0].x - ctx.getPoints(datum)[3].x),
55
+ text: datum => 100 * datum.percent + "%",
56
+ x: (datum, ctx) => ctx.getPoints(datum)[0].x + 10,
57
+ y: (datum, ctx) => ctx.getPoints(datum)[0].y - 10,
58
+ textAlign: "left",
59
+ textBaseline: "bottom",
60
+ fontSize: 20,
61
+ fontStyle: "italic"
62
+ }
63
+ },
64
+ extensionMark: [ {
65
+ type: "polygon",
66
+ dataId: "funnel",
67
+ style: {
68
+ points: (datum, ctx) => {
69
+ const start = ctx.getPoints(datum)[1];
70
+ return [ start, {
71
+ x: start.x,
72
+ y: 0
73
+ } ];
74
+ },
75
+ closePath: !1,
76
+ lineWidth: 2,
77
+ stroke: "rgb(243,244,244)"
78
+ }
79
+ }, {
80
+ type: "text",
81
+ dataId: "funnel",
82
+ style: {
83
+ text: (datum, ctx) => ({
84
+ type: "rich",
85
+ text: [ {
86
+ text: `${datum.name}\n`,
87
+ fontWeight: "bold",
88
+ lineHeight: 30
89
+ }, {
90
+ text: datum.value / 10 + "K\n",
91
+ fontWeight: "bold",
92
+ fontSize: 24,
93
+ lineHeight: 40,
94
+ fill: "black"
95
+ }, {
96
+ text: `Percent: ${10 * datum.percent}%`,
97
+ fontWeight: "bold",
98
+ lineHeight: 30
99
+ } ]
100
+ }),
101
+ x: (datum, ctx) => ctx.getPoints(datum)[0].x + 10,
102
+ width: (datum, ctx) => ctx.getPoints(datum)[3].x - ctx.getPoints(datum)[0].x,
103
+ textAlign: "left",
104
+ y: 10,
105
+ stroke: !1,
106
+ fill: "grey",
107
+ ellipsis: !0,
108
+ disableAutoWrapLine: !0
109
+ }
110
+ }, {
111
+ type: "image",
112
+ dataId: "funnel",
113
+ style: {
114
+ image: "https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/visactor-site/sg/client/img/visactor/vrender-icon.svg",
115
+ x: (datum, ctx) => ctx.getPoints(datum)[2].x + .5 * (ctx.getPoints(datum)[2].x - ctx.getPoints(datum)[1].x) - 36,
116
+ y: 10,
117
+ align: "right",
118
+ width: 30,
119
+ height: 26,
120
+ background: "rgb(238,238,238)",
121
+ fillOpacity: .2
122
+ }
123
+ } ]
124
+ } ]
125
+ };
126
+ //# sourceMappingURL=funnelHorizontal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/spec/funnelHorizontal.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IAChC,IAAI,EAAE;QACJ;YACE,EAAE,EAAE,QAAQ;YACZ,MAAM,EAAE;gBACN;oBACE,KAAK,EAAE,GAAG;oBACV,IAAI,EAAE,WAAW;oBACjB,OAAO,EAAE,CAAC;iBACX;gBACD;oBACE,KAAK,EAAE,EAAE;oBACT,IAAI,EAAE,YAAY;oBAClB,OAAO,EAAE,GAAG;iBACb;gBACD;oBACE,KAAK,EAAE,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,GAAG;iBACb;gBACD;oBACE,KAAK,EAAE,EAAE;oBACT,IAAI,EAAE,WAAW;oBACjB,OAAO,EAAE,GAAG;iBACb;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,CAAC;KACvF;IACD,MA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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC/D,CAAC;wBACD,SAAS,EAAE,MAAM;wBACjB,CAAC,EAAE,EAAE;wBACL,MAAM,EAAE,KAAK;wBACb,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;wBACd,mBAAmB,EAAE,IAAI;qBAC1B;iBACF;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,MAAM,EAAE,QAAQ;oBAChB,KAAK,EAAE;wBACL,KAAK,EACH,0GAA0G;wBAC5G,CAAC,EAAE,CAAC,KAAU,EAAE,GAAQ,EAAE,EAAE,CAC1B,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE;wBAChG,CAAC,EAAE,EAAE;wBACL,KAAK,EAAE,OAAO;wBACd,KAAK,EAAE,EAAE;wBACT,MAAM,EAAE,EAAE;wBACV,UAAU,EAAE,kBAAkB;wBAC9B,WAAW,EAAE,GAAG;qBACjB;iBACF;aACF;SACF;KACF;CACF,CAAC","file":"funnelHorizontal.js","sourcesContent":["export const horizontalFunnelSpec = {\n type: 'common',\n padding: { left: 20, right: 60 },\n data: [\n {\n id: 'funnel',\n values: [\n {\n value: 100,\n name: 'Screening',\n percent: 1\n },\n {\n value: 80,\n name: 'Evaluating',\n percent: 0.8\n },\n {\n value: 50,\n name: 'Passed',\n percent: 0.5\n },\n {\n value: 30,\n name: 'Interview',\n percent: 0.3\n }\n ]\n }\n ],\n color: {\n type: 'ordinal',\n range: ['rgb(54,106,253)', 'rgb(103,138,251)', 'rgb(146,173,255)', 'rgb(191,207,255)']\n },\n series: [\n {\n type: 'funnel',\n categoryField: 'name',\n valueField: 'value',\n maxSize: '50%',\n minSize: '10%',\n funnelAlign: 'bottom',\n funnelOrient: 'left',\n isTransform: true,\n shape: 'rect',\n transform: {\n style: {\n fill: 'rgb(222,231,253)'\n }\n },\n label: {\n visible: true,\n style: {\n lineHeight: 16,\n limit: (datum: any, ctx: any) => Math.abs(ctx.getPoints(datum)[0].x - ctx.getPoints(datum)[3].x),\n text: (datum: any) => `${datum.percent * 100}%`,\n x: (datum: any, ctx: any) => ctx.getPoints(datum)[0].x + 10,\n y: (datum: any, ctx: any) => ctx.getPoints(datum)[0].y - 10,\n textAlign: 'left',\n textBaseline: 'bottom',\n fontSize: 20,\n fontStyle: 'italic'\n }\n },\n extensionMark: [\n {\n type: 'polygon',\n dataId: 'funnel',\n style: {\n points: (datum: any, ctx: any) => {\n const start = ctx.getPoints(datum)[1];\n const end = { x: start.x, y: 0 };\n return [start, end];\n },\n closePath: false,\n lineWidth: 2,\n stroke: 'rgb(243,244,244)'\n }\n },\n {\n type: 'text',\n dataId: 'funnel',\n style: {\n text: (datum: any, ctx: any) => {\n return {\n type: 'rich',\n text: [\n { text: `${datum.name}\\n`, fontWeight: 'bold', lineHeight: 30 },\n {\n text: `${datum.value / 10}K\\n`,\n fontWeight: 'bold',\n fontSize: 24,\n lineHeight: 40,\n fill: 'black'\n },\n {\n text: `Percent: ${datum.percent * 10}%`,\n fontWeight: 'bold',\n lineHeight: 30\n }\n ]\n };\n },\n x: (datum: any, ctx: any) => ctx.getPoints(datum)[0].x + 10,\n width: (datum: any, ctx: any) => {\n return ctx.getPoints(datum)[3].x - ctx.getPoints(datum)[0].x;\n },\n textAlign: 'left',\n y: 10,\n stroke: false,\n fill: 'grey',\n ellipsis: true,\n disableAutoWrapLine: true\n }\n },\n {\n type: 'image',\n dataId: 'funnel',\n style: {\n image:\n 'https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/visactor-site/sg/client/img/visactor/vrender-icon.svg',\n x: (datum: any, ctx: any) =>\n ctx.getPoints(datum)[2].x + (ctx.getPoints(datum)[2].x - ctx.getPoints(datum)[1].x) * 0.5 - 36,\n y: 10,\n align: 'right',\n width: 30,\n height: 26,\n background: 'rgb(238,238,238)',\n fillOpacity: 0.2\n }\n }\n ]\n }\n ]\n};\n"]}
@@ -13,6 +13,7 @@ export declare const gaugeSpec: {
13
13
  innerRadius: number;
14
14
  startAngle: number;
15
15
  endAngle: number;
16
+ centerY: string;
16
17
  indicator: {
17
18
  visible: boolean;
18
19
  title: {
package/cjs/spec/gauge.js CHANGED
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", {
17
17
  innerRadius: .7,
18
18
  startAngle: -180,
19
19
  endAngle: 0,
20
+ centerY: "60%",
20
21
  indicator: [ {
21
22
  visible: !0,
22
23
  title: {
@@ -59,5 +60,4 @@ Object.defineProperty(exports, "__esModule", {
59
60
  }
60
61
  }
61
62
  } ]
62
- };
63
- //# sourceMappingURL=gauge.js.map
63
+ };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/spec/gauge.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE;QACJ;YACE,EAAE,EAAE,KAAK;YACT,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,KAAK;oBACX,KAAK,EAAE,EAAE;iBACV;aACF;SACF;KACF;IACD,aAAa,EAAE,MAAM;IACrB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,GAAG;IAChB,WAAW,EAAE,GAAG;IAChB,UAAU,EAAE,CAAC,GAAG;IAChB,QAAQ,EAAE,CAAC;IACX,SAAS,EAAE;QACT;YACE,OAAO,EAAE,IAAI;YACb,KAAK,EAAE;gBACL,KAAK,EAAE;oBACL,IAAI,EAAE,IAAI;oBACV,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,GAAG;iBAChB;aACF;SACF;KACF;IACD,IAAI,EAAE;QACJ;YACE,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,OAAO;YACf,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,EAAE;YACP,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;YACxB,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE;YAC7D,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE;YAChE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE;SACjE;KACF;CACF,CAAC","file":"gauge.js","sourcesContent":["export const gaugeSpec = {\n type: 'gauge',\n data: [\n {\n id: 'id0',\n values: [\n {\n type: '目标A',\n value: 45\n }\n ]\n }\n ],\n categoryField: 'type',\n valueField: 'value',\n outerRadius: 0.8,\n innerRadius: 0.7,\n startAngle: -180,\n endAngle: 0,\n indicator: [\n {\n visible: true,\n title: {\n style: {\n text: '45',\n fontSize: 60,\n fontWeight: 800\n }\n }\n }\n ],\n axes: [\n {\n type: 'linear',\n orient: 'angle',\n min: 0,\n max: 50,\n offset: 20,\n radius: 0.81,\n grid: { visible: false },\n tick: { visible: true, tickSize: 5, style: { lineWidth: 1 } },\n subTick: { visible: true, tickSize: 3, style: { lineWidth: 1 } },\n label: { visible: true, style: { fill: 'black', fontSize: 12 } }\n }\n ]\n};\n"]}
1
+ {"version":3,"sources":["../src/spec/gauge.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE;QACJ;YACE,EAAE,EAAE,KAAK;YACT,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,KAAK;oBACX,KAAK,EAAE,EAAE;iBACV;aACF;SACF;KACF;IACD,aAAa,EAAE,MAAM;IACrB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,GAAG;IAChB,WAAW,EAAE,GAAG;IAChB,UAAU,EAAE,CAAC,GAAG;IAChB,QAAQ,EAAE,CAAC;IACX,OAAO,EAAE,KAAK;IACd,SAAS,EAAE;QACT;YACE,OAAO,EAAE,IAAI;YACb,KAAK,EAAE;gBACL,KAAK,EAAE;oBACL,IAAI,EAAE,IAAI;oBACV,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,GAAG;iBAChB;aACF;SACF;KACF;IACD,IAAI,EAAE;QACJ;YACE,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,OAAO;YACf,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,EAAE;YACP,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;YACxB,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE;YAC7D,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE;YAChE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE;SACjE;KACF;CACF,CAAC","file":"gauge.js","sourcesContent":["export const gaugeSpec = {\n type: 'gauge',\n data: [\n {\n id: 'id0',\n values: [\n {\n type: '目标A',\n value: 45\n }\n ]\n }\n ],\n categoryField: 'type',\n valueField: 'value',\n outerRadius: 0.8,\n innerRadius: 0.7,\n startAngle: -180,\n endAngle: 0,\n centerY: '60%',\n indicator: [\n {\n visible: true,\n title: {\n style: {\n text: '45',\n fontSize: 60,\n fontWeight: 800\n }\n }\n }\n ],\n axes: [\n {\n type: 'linear',\n orient: 'angle',\n min: 0,\n max: 50,\n offset: 20,\n radius: 0.81,\n grid: { visible: false },\n tick: { visible: true, tickSize: 5, style: { lineWidth: 1 } },\n subTick: { visible: true, tickSize: 3, style: { lineWidth: 1 } },\n label: { visible: true, style: { fill: 'black', fontSize: 12 } }\n }\n ]\n};\n"]}
package/cjs/spec/line.js CHANGED
@@ -150,4 +150,5 @@ Object.defineProperty(exports, "__esModule", {
150
150
  }
151
151
  }
152
152
  }
153
- };
153
+ };
154
+ //# sourceMappingURL=line.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.charts = void 0;
6
6
 
7
- const area_1 = require("../spec/area"), barGroup_1 = require("../spec/barGroup"), barGroupHorizontal_1 = require("../spec/barGroupHorizontal"), barStacked_1 = require("../spec/barStacked"), barStackedHorizontal_1 = require("../spec/barStackedHorizontal"), gauge_1 = require("../spec/gauge"), horizontalBar_1 = require("../spec/horizontalBar"), indicatorSankey_1 = require("../spec/indicatorSankey"), line_1 = require("../spec/line"), pie_1 = require("../spec/pie"), radar_1 = require("../spec/radar"), ring_1 = require("../spec/ring"), scatter_1 = require("../spec/scatter");
7
+ const area_1 = require("../spec/area"), barGroup_1 = require("../spec/barGroup"), barGroupHorizontal_1 = require("../spec/barGroupHorizontal"), barStacked_1 = require("../spec/barStacked"), barStackedHorizontal_1 = require("../spec/barStackedHorizontal"), funnelHorizontal_1 = require("../spec/funnelHorizontal"), gauge_1 = require("../spec/gauge"), horizontalBar_1 = require("../spec/horizontalBar"), indicatorSankey_1 = require("../spec/indicatorSankey"), line_1 = require("../spec/line"), pie_1 = require("../spec/pie"), radar_1 = require("../spec/radar"), ring_1 = require("../spec/ring"), scatter_1 = require("../spec/scatter"), funnel_1 = require("../spec/funnel"), combination_1 = require("../spec/combination"), businessFunnel_1 = require("../spec/businessFunnel");
8
8
 
9
9
  exports.charts = [ {
10
10
  title: "Line Chart",
@@ -25,7 +25,7 @@ exports.charts = [ {
25
25
  }, {
26
26
  title: "Horizontal Grouped Bar Chart",
27
27
  spec: barGroupHorizontal_1.barGroupHorizontalSpec,
28
- fileName: "horizontalBar"
28
+ fileName: "barGroupHorizontal"
29
29
  }, {
30
30
  title: "Horizontal Stacked Bar Chart",
31
31
  spec: barStackedHorizontal_1.barStackedHorizontalSpec,
@@ -61,5 +61,21 @@ exports.charts = [ {
61
61
  option: {
62
62
  enableHtmlAttribute: !0
63
63
  }
64
+ }, {
65
+ title: "Horizontal Funnel",
66
+ spec: funnelHorizontal_1.horizontalFunnelSpec,
67
+ fileName: "funnelHorizontal"
68
+ }, {
69
+ title: "漏斗图",
70
+ spec: funnel_1.funnelSpec,
71
+ fileName: "funnel"
72
+ }, {
73
+ title: "基础组合图",
74
+ spec: combination_1.CombinationSpec,
75
+ fileName: "combination"
76
+ }, {
77
+ title: "业务漏斗图",
78
+ spec: businessFunnel_1.businessFunnelSpec,
79
+ fileName: "businessFunnel"
64
80
  } ];
65
81
  //# sourceMappingURL=chart-list.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/vchart-chart-hub-theme/chart-list.ts"],"names":[],"mappings":";;;AACA,uCAAwC;AACxC,+CAAgD;AAChD,mEAAoE;AACpE,mDAAoD;AACpD,uEAAwE;AACxE,yCAA0C;AAC1C,yDAA0D;AAC1D,6DAA8D;AAC9D,uCAAwC;AACxC,qCAAsC;AACtC,yCAA0C;AAC1C,uCAAwC;AACxC,6CAA8C;AAEjC,QAAA,MAAM,GAAiB;IAClC;QACE,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,eAAQ;QACd,QAAQ,EAAE,MAAM;KACjB;IACD;QACE,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,eAAQ;QACd,QAAQ,EAAE,MAAM;KACjB;IACD;QACE,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,uBAAY;QAClB,QAAQ,EAAE,UAAU;KACrB;IACD;QACE,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,2BAAc;QACpB,QAAQ,EAAE,YAAY;KACvB;IACD;QACE,KAAK,EAAE,8BAA8B;QACrC,IAAI,EAAE,2CAAsB;QAC5B,QAAQ,EAAE,eAAe;KAC1B;IACD;QACE,KAAK,EAAE,8BAA8B;QACrC,IAAI,EAAE,+CAAwB;QAC9B,QAAQ,EAAE,sBAAsB;KACjC;IACD;QACE,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,aAAO;QACb,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,eAAQ;QACd,QAAQ,EAAE,MAAM;KACjB;IACD;QACE,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,iBAAS;QACf,QAAQ,EAAE,OAAO;KAClB;IACD;QACE,KAAK,EAAE,sBAAsB;QAC7B,IAAI,EAAE,iCAAiB;QACvB,QAAQ,EAAE,eAAe;KAC1B;IACD;QACE,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,qBAAW;QACjB,QAAQ,EAAE,SAAS;KACpB;IACD;QACE,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,iBAAS;QACf,QAAQ,EAAE,OAAO;KAClB;IACD;QACE,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,qCAAmB;QACzB,QAAQ,EAAE,iBAAiB;QAC3B,MAAM,EAAE;YACN,mBAAmB,EAAE,IAAI;SAC1B;KACF;CACF,CAAC","file":"chart-list.js","sourcesContent":["import type { IChartInfo } from '../interface';\nimport { areaSpec } from '../spec/area';\nimport { barGroupSpec } from '../spec/barGroup';\nimport { barGroupHorizontalSpec } from '../spec/barGroupHorizontal';\nimport { barStackedSpec } from '../spec/barStacked';\nimport { barStackedHorizontalSpec } from '../spec/barStackedHorizontal';\nimport { gaugeSpec } from '../spec/gauge';\nimport { horizontalBarSpec } from '../spec/horizontalBar';\nimport { indicatorSankeySpec } from '../spec/indicatorSankey';\nimport { lineSpec } from '../spec/line';\nimport { pieSpec } from '../spec/pie';\nimport { radarSpec } from '../spec/radar';\nimport { ringSpec } from '../spec/ring';\nimport { scatterSpec } from '../spec/scatter';\n\nexport const charts: IChartInfo[] = [\n {\n title: 'Line Chart',\n spec: lineSpec,\n fileName: 'line'\n },\n {\n title: 'Area Chart',\n spec: areaSpec,\n fileName: 'area'\n },\n {\n title: 'Grouped Bar Chart',\n spec: barGroupSpec,\n fileName: 'barGroup'\n },\n {\n title: 'Stacked Bar Chart',\n spec: barStackedSpec,\n fileName: 'barStacked'\n },\n {\n title: 'Horizontal Grouped Bar Chart',\n spec: barGroupHorizontalSpec,\n fileName: 'horizontalBar'\n },\n {\n title: 'Horizontal Stacked Bar Chart',\n spec: barStackedHorizontalSpec,\n fileName: 'barStackedHorizontal'\n },\n {\n title: 'Pie Chart',\n spec: pieSpec,\n fileName: 'pie'\n },\n {\n title: 'Ring Chart',\n spec: ringSpec,\n fileName: 'ring'\n },\n {\n title: 'Gauge Chart',\n spec: gaugeSpec,\n fileName: 'gauge'\n },\n {\n title: 'Horizontal Bar Chart',\n spec: horizontalBarSpec,\n fileName: 'horizontalBar'\n },\n {\n title: 'Scatter Chart',\n spec: scatterSpec,\n fileName: 'scatter'\n },\n {\n title: 'Radar Chart',\n spec: radarSpec,\n fileName: 'radar'\n },\n {\n title: 'Indicator Sankey Chart',\n spec: indicatorSankeySpec,\n fileName: 'indicatorSankey',\n option: {\n enableHtmlAttribute: true\n }\n }\n];\n"]}
1
+ {"version":3,"sources":["../src/vchart-chart-hub-theme/chart-list.ts"],"names":[],"mappings":";;;AACA,uCAAwC;AACxC,+CAAgD;AAChD,mEAAoE;AACpE,mDAAoD;AACpD,uEAAwE;AACxE,+DAAgE;AAChE,yCAA0C;AAC1C,yDAA0D;AAC1D,6DAA8D;AAC9D,uCAAwC;AACxC,qCAAsC;AACtC,yCAA0C;AAC1C,uCAAwC;AAC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B,EAAE,IAAI;SAC1B;KACF;IACD;QACE,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,uCAAoB;QAC1B,QAAQ,EAAE,kBAAkB;KAC7B;IACD;QACE,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,mBAAU;QAChB,QAAQ,EAAE,QAAQ;KACnB;IACD;QACE,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,6BAAe;QACrB,QAAQ,EAAE,aAAa;KACxB;IACD;QACE,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,mCAAkB;QACxB,QAAQ,EAAE,gBAAgB;KAC3B;CACF,CAAC","file":"chart-list.js","sourcesContent":["import type { IChartInfo } from '../interface';\nimport { areaSpec } from '../spec/area';\nimport { barGroupSpec } from '../spec/barGroup';\nimport { barGroupHorizontalSpec } from '../spec/barGroupHorizontal';\nimport { barStackedSpec } from '../spec/barStacked';\nimport { barStackedHorizontalSpec } from '../spec/barStackedHorizontal';\nimport { horizontalFunnelSpec } from '../spec/funnelHorizontal';\nimport { gaugeSpec } from '../spec/gauge';\nimport { horizontalBarSpec } from '../spec/horizontalBar';\nimport { indicatorSankeySpec } from '../spec/indicatorSankey';\nimport { lineSpec } from '../spec/line';\nimport { pieSpec } from '../spec/pie';\nimport { radarSpec } from '../spec/radar';\nimport { ringSpec } from '../spec/ring';\nimport { scatterSpec } from '../spec/scatter';\nimport { funnelSpec } from '../spec/funnel';\nimport { CombinationSpec } from '../spec/combination';\nimport { businessFunnelSpec } from '../spec/businessFunnel';\n\nexport const charts: IChartInfo[] = [\n {\n title: 'Line Chart',\n spec: lineSpec,\n fileName: 'line'\n },\n {\n title: 'Area Chart',\n spec: areaSpec,\n fileName: 'area'\n },\n {\n title: 'Grouped Bar Chart',\n spec: barGroupSpec,\n fileName: 'barGroup'\n },\n {\n title: 'Stacked Bar Chart',\n spec: barStackedSpec,\n fileName: 'barStacked'\n },\n {\n title: 'Horizontal Grouped Bar Chart',\n spec: barGroupHorizontalSpec,\n fileName: 'barGroupHorizontal'\n },\n {\n title: 'Horizontal Stacked Bar Chart',\n spec: barStackedHorizontalSpec,\n fileName: 'barStackedHorizontal'\n },\n {\n title: 'Pie Chart',\n spec: pieSpec,\n fileName: 'pie'\n },\n {\n title: 'Ring Chart',\n spec: ringSpec,\n fileName: 'ring'\n },\n {\n title: 'Gauge Chart',\n spec: gaugeSpec,\n fileName: 'gauge'\n },\n {\n title: 'Horizontal Bar Chart',\n spec: horizontalBarSpec,\n fileName: 'horizontalBar'\n },\n {\n title: 'Scatter Chart',\n spec: scatterSpec,\n fileName: 'scatter'\n },\n {\n title: 'Radar Chart',\n spec: radarSpec,\n fileName: 'radar'\n },\n {\n title: 'Indicator Sankey Chart',\n spec: indicatorSankeySpec,\n fileName: 'indicatorSankey',\n option: {\n enableHtmlAttribute: true\n }\n },\n {\n title: 'Horizontal Funnel',\n spec: horizontalFunnelSpec,\n fileName: 'funnelHorizontal'\n },\n {\n title: '漏斗图',\n spec: funnelSpec,\n fileName: 'funnel'\n },\n {\n title: '基础组合图',\n spec: CombinationSpec,\n fileName: 'combination'\n },\n {\n title: '业务漏斗图',\n spec: businessFunnelSpec,\n fileName: 'businessFunnel'\n }\n];\n"]}
@@ -47,17 +47,13 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
47
47
  }
48
48
  step((generator = generator.apply(thisArg, _arguments || [])).next());
49
49
  }));
50
- }, __importDefault = this && this.__importDefault || function(mod) {
51
- return mod && mod.__esModule ? mod : {
52
- default: mod
53
- };
54
50
  };
55
51
 
56
52
  Object.defineProperty(exports, "__esModule", {
57
53
  value: !0
58
54
  }), exports.Charts = void 0;
59
55
 
60
- const react_1 = __importStar(require("react")), react_device_detect_1 = require("react-device-detect"), chart_list_1 = require("./chart-list"), react_vchart_1 = require("@visactor/react-vchart"), i18n_1 = require("./i18n"), vchart_1 = __importDefault(require("@visactor/vchart")), vchart_theme_1 = require("@visactor/vchart-theme"), semi_ui_1 = require("@douyinfe/semi-ui"), web_react_1 = require("@arco-design/web-react");
56
+ const react_1 = __importStar(require("react")), react_device_detect_1 = require("react-device-detect"), chart_list_1 = require("./chart-list"), react_vchart_1 = require("@visactor/react-vchart"), i18n_1 = require("./i18n"), vchart_theme_1 = require("@visactor/vchart-theme"), semi_ui_1 = require("@douyinfe/semi-ui"), web_react_1 = require("@arco-design/web-react");
61
57
 
62
58
  require("@arco-design/web-react/dist/css/arco.css");
63
59
 
@@ -100,5 +96,5 @@ function Charts(props) {
100
96
  }))))));
101
97
  }
102
98
 
103
- vchart_1.default.ThemeManager.registerTheme("chart-hub-light", vchart_theme_1.chartHubLightTheme),
104
- vchart_1.default.ThemeManager.setCurrentTheme("chart-hub-light"), exports.Charts = Charts;
99
+ react_vchart_1.VChartCore.ThemeManager.registerTheme("chart-hub-light", vchart_theme_1.chartHubLightTheme),
100
+ react_vchart_1.VChartCore.ThemeManager.setCurrentTheme("chart-hub-light"), exports.Charts = Charts;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/vchart-chart-hub-theme/charts.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2C;AAC3C,6DAA+C;AAC/C,6CAAsC;AACtC,yDAAmE;AACnE,iCAA8B;AAC9B,8DAAsC;AACtC,yDAA4D;AAE5D,+CAAiD;AACjD,sDAA8C;AAC9C,oDAAkD;AAGlD,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,gBAAI,CAAC;AAC1B,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,MAAM,MAAM,GAAG,EAAE,CAAC;AAElB,MAAM,kBAAkB,GACtB,gHAAgH,CAAC;AAEnH,gBAAM,CAAC,YAAY,CAAC,aAAa,CAAC,iBAAiB,EAAE,iCAAkB,CAAC,CAAC;AACzE,gBAAM,CAAC,YAAY,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAMvD,SAAgB,MAAM,CAAC,KAAa;IAClC,MAAM,EAAE,QAAQ,GAAG,IAAI,EAA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8BAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,MAEvD,CACG,CACH,CACP,CAAC;IACJ,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC;AAtDD,wBAsDC","file":"charts.js","sourcesContent":["import React, { useCallback } from 'react';\nimport { isMobile } from 'react-device-detect';\nimport { charts } from './chart-list';\nimport { VChart as VChartComponent } from '@visactor/react-vchart';\nimport { i18n } from './i18n';\nimport VChart from '@visactor/vchart';\nimport { chartHubLightTheme } from '@visactor/vchart-theme';\n\nimport { Button, Card } from '@douyinfe/semi-ui';\nimport { Grid } from '@arco-design/web-react';\nimport '@arco-design/web-react/dist/css/arco.css';\nimport type { IChartInfo } from '../interface';\n\nconst { Row, Col } = Grid;\nconst chartHeight = 400;\n\nconst gutter = 16;\n\nconst DEMO_SOURCE_PREFIX =\n 'https://raw.githubusercontent.com/VisActor/vchart-theme/develop/packages/vchart-theme-demo-component/src/spec/';\n\nVChart.ThemeManager.registerTheme('chart-hub-light', chartHubLightTheme);\nVChart.ThemeManager.setCurrentTheme('chart-hub-light');\n\nexport interface IProps {\n language?: 'en' | 'zh';\n}\n\nexport function Charts(props: IProps) {\n const { language = 'zh' } = props;\n\n const onClick = useCallback(async (chartInfo: IChartInfo) => {\n const { fileName, option } = chartInfo;\n if (!fileName) {\n return;\n }\n const specUrl = `${DEMO_SOURCE_PREFIX}${fileName}.ts`;\n let url = `/vchart/playground?specUrl=${specUrl}`;\n if (option) {\n url += `&initOption=${JSON.stringify(option)}`;\n }\n url += `&theme=chartHubLight`;\n window.open(url);\n }, []);\n\n return (\n <Row gutter={gutter}>\n {charts.map((chart, i) => {\n return (\n <Col span={12} key={i} style={{ marginBottom: 16 }}>\n <Card\n className=\"chartContainer\"\n bordered={false}\n headerLine={true}\n title={chart.title}\n headerExtraContent={\n <Button\n size=\"small\"\n onClick={() => {\n onClick(chart);\n }}\n >\n {i18n.link[language]}\n </Button>\n }\n >\n <VChartComponent\n spec={{\n ...chart.spec,\n height: chartHeight\n }}\n options={{\n ...chart.option,\n mode: isMobile ? 'mobile-browser' : 'desktop-browser'\n }}\n />\n </Card>\n </Col>\n );\n })}\n </Row>\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/vchart-chart-hub-theme/charts.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2C;AAC3C,6DAA+C;AAC/C,6CAAsC;AACtC,yDAA+E;AAC/E,iCAA8B;AAC9B,yDAA4D;AAE5D,+CAAiD;AACjD,sDAA8C;AAC9C,oDAAkD;AAGlD,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,gBAAI,CAAC;AAC1B,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,MAAM,MAAM,GAAG,EAAE,CAAC;AAElB,MAAM,kBAAkB,GACtB,gHAAgH,CAAC;AAEnH,yBAAU,CAAC,YAAY,CAAC,aAAa,CAAC,iBAAiB,EAAE,iCAAyB,CAAC,CAAC;AACpF,yBAAU,CAAC,YAAY,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAM3D,SAAgB,MAAM,CAAC,KAAa;IAClC,MAAM,EAAE,QAAQ,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAElC,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,CAAO,SAAqB,EAAE,EAAE;QAC1D,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QACvC,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO;SACR;QACD,MAAM,OAAO,GAAG,GAAG,kBAAkB,GAAG,QAAQ,KAAK,CAAC;QACtD,IAAI,GAAG,GAAG,8BAA8B,OAAO,EAAE,CAAC;QAClD,IAAI,MAAM,EAAE;YACV,GAAG,IAAI,eAAe,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;SAChD;QACD,GAAG,IAAI,sBAAsB,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnB,CAAC,CAAA,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,8BAAC,GAAG,IAAC,MAAM,EAAE,MAAM,IAChB,mBAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;QACvB,OAAO,CACL,8BAAC,GAAG,IAAC,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;YAChD,8BAAC,cAAI,IACH,SAAS,EAAC,gBAAgB,EAC1B,QAAQ,EAAE,KAAK,EACf,UAAU,EAAE,IAAI,EAChB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,kBAAkB,EAChB,8BAAC,gBAAM,IACL,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,GAAG,EAAE;wBACZ,OAAO,CAAC,KAAK,CAAC,CAAC;oBACjB,CAAC,IAEA,WAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CACb;gBAGX,8BAAC,qBAAe,IACd,IAAI,kCACC,KAAK,CAAC,IAAI,KACb,MAAM,EAAE,WAAW,KAErB,OAAO,kCACF,KAAK,CAAC,MAAM,KACf,IAAI,EAAE,8BAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,MAEvD,CACG,CACH,CACP,CAAC;IACJ,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC;AAtDD,wBAsDC","file":"charts.js","sourcesContent":["import React, { useCallback } from 'react';\nimport { isMobile } from 'react-device-detect';\nimport { charts } from './chart-list';\nimport { VChart as VChartComponent, VChartCore } from '@visactor/react-vchart';\nimport { i18n } from './i18n';\nimport { chartHubLightTheme } from '@visactor/vchart-theme';\n\nimport { Button, Card } from '@douyinfe/semi-ui';\nimport { Grid } from '@arco-design/web-react';\nimport '@arco-design/web-react/dist/css/arco.css';\nimport type { IChartInfo } from '../interface';\n\nconst { Row, Col } = Grid;\nconst chartHeight = 400;\n\nconst gutter = 16;\n\nconst DEMO_SOURCE_PREFIX =\n 'https://raw.githubusercontent.com/VisActor/vchart-theme/develop/packages/vchart-theme-demo-component/src/spec/';\n\nVChartCore.ThemeManager.registerTheme('chart-hub-light', chartHubLightTheme as any);\nVChartCore.ThemeManager.setCurrentTheme('chart-hub-light');\n\nexport interface IProps {\n language?: 'en' | 'zh';\n}\n\nexport function Charts(props: IProps) {\n const { language = 'zh' } = props;\n\n const onClick = useCallback(async (chartInfo: IChartInfo) => {\n const { fileName, option } = chartInfo;\n if (!fileName) {\n return;\n }\n const specUrl = `${DEMO_SOURCE_PREFIX}${fileName}.ts`;\n let url = `/vchart/playground?specUrl=${specUrl}`;\n if (option) {\n url += `&initOption=${JSON.stringify(option)}`;\n }\n url += `&theme=chartHubLight`;\n window.open(url);\n }, []);\n\n return (\n <Row gutter={gutter}>\n {charts.map((chart, i) => {\n return (\n <Col span={12} key={i} style={{ marginBottom: 16 }}>\n <Card\n className=\"chartContainer\"\n bordered={false}\n headerLine={true}\n title={chart.title}\n headerExtraContent={\n <Button\n size=\"small\"\n onClick={() => {\n onClick(chart);\n }}\n >\n {i18n.link[language]}\n </Button>\n }\n >\n <VChartComponent\n spec={{\n ...chart.spec,\n height: chartHeight\n }}\n options={{\n ...chart.option,\n mode: isMobile ? 'mobile-browser' : 'desktop-browser'\n }}\n />\n </Card>\n </Col>\n );\n })}\n </Row>\n );\n}\n"]}
@@ -0,0 +1,223 @@
1
+ export declare const businessFunnelSpec: {
2
+ id: string;
3
+ type: string;
4
+ seriesField: string;
5
+ height: number;
6
+ padding: {
7
+ top: number;
8
+ bottom: number;
9
+ left: number;
10
+ right: number;
11
+ };
12
+ data: ({
13
+ id: string;
14
+ values: {
15
+ x: string;
16
+ y: number;
17
+ percent: number;
18
+ average: number;
19
+ }[];
20
+ } | {
21
+ id: string;
22
+ values: {
23
+ x: string;
24
+ y0: number;
25
+ y1: number;
26
+ y: number;
27
+ percent: number;
28
+ }[];
29
+ })[];
30
+ series: ({
31
+ type: string;
32
+ id: string;
33
+ dataIndex: number;
34
+ xField: string;
35
+ yField: string;
36
+ barWidth: string;
37
+ extensionMark: {
38
+ type: string;
39
+ dataId: string;
40
+ style: {
41
+ x: (datum: any, ctx: any) => any;
42
+ y: number;
43
+ textAlign: string;
44
+ fontSize: number;
45
+ stroke: boolean;
46
+ text: (datum: any) => {
47
+ type: string;
48
+ text: ({
49
+ text: string;
50
+ fill: string;
51
+ textAlign: string;
52
+ fontWeight: string;
53
+ lineHeight: number;
54
+ } | {
55
+ text: string;
56
+ fill: string;
57
+ textAlign: string;
58
+ lineHeight: number;
59
+ fontWeight?: undefined;
60
+ })[];
61
+ };
62
+ };
63
+ }[];
64
+ bar?: undefined;
65
+ stack?: undefined;
66
+ tooltip?: undefined;
67
+ } | {
68
+ type: string;
69
+ id: string;
70
+ dataIndex: number;
71
+ xField: string;
72
+ yField: string;
73
+ bar: {
74
+ visible: boolean;
75
+ style?: undefined;
76
+ };
77
+ extensionMark: ({
78
+ type: string;
79
+ dataId: string;
80
+ dataKey: string;
81
+ style: {
82
+ points: (datum: any, ctx: any) => {
83
+ x: any;
84
+ y: any;
85
+ }[];
86
+ fill: string;
87
+ fillOpacity: number;
88
+ x?: undefined;
89
+ y?: undefined;
90
+ textAlign?: undefined;
91
+ fontSize?: undefined;
92
+ stroke?: undefined;
93
+ text?: undefined;
94
+ };
95
+ customShape?: undefined;
96
+ } | {
97
+ type: string;
98
+ dataId: string;
99
+ dataKey: string;
100
+ customShape: (data: any, attrs: any, path: any) => any;
101
+ style: {
102
+ points: (datum: any, ctx: any) => {
103
+ x: any;
104
+ y: any;
105
+ }[];
106
+ fill: string;
107
+ fillOpacity?: undefined;
108
+ x?: undefined;
109
+ y?: undefined;
110
+ textAlign?: undefined;
111
+ fontSize?: undefined;
112
+ stroke?: undefined;
113
+ text?: undefined;
114
+ };
115
+ } | {
116
+ type: string;
117
+ dataId: string;
118
+ dataKey: string;
119
+ style: {
120
+ x: (datum: any, ctx: any) => any;
121
+ y: number;
122
+ textAlign: string;
123
+ fontSize: number;
124
+ stroke: boolean;
125
+ text: (datum: any) => {
126
+ type: string;
127
+ text: ({
128
+ text: string;
129
+ fill: string;
130
+ textAlign: string;
131
+ fontWeight: string;
132
+ lineHeight: number;
133
+ } | {
134
+ text: string;
135
+ fill: string;
136
+ textAlign: string;
137
+ lineHeight: number;
138
+ fontWeight?: undefined;
139
+ })[];
140
+ };
141
+ points?: undefined;
142
+ fill?: undefined;
143
+ fillOpacity?: undefined;
144
+ };
145
+ customShape?: undefined;
146
+ })[];
147
+ barWidth?: undefined;
148
+ stack?: undefined;
149
+ tooltip?: undefined;
150
+ } | {
151
+ type: string;
152
+ stack: boolean;
153
+ id: string;
154
+ dataIndex: number;
155
+ xField: string;
156
+ yField: string;
157
+ barWidth: string;
158
+ bar: {
159
+ visible: boolean;
160
+ style: {
161
+ fill: string;
162
+ height: number;
163
+ };
164
+ };
165
+ tooltip: {
166
+ visible: boolean;
167
+ };
168
+ extensionMark?: undefined;
169
+ })[];
170
+ animation: boolean;
171
+ tooltip: {
172
+ mark: {
173
+ visible: boolean;
174
+ };
175
+ dimension: {
176
+ title: (data: any, params: any) => {
177
+ value: any;
178
+ };
179
+ content: (data: any, params: any) => ({
180
+ hasShape: boolean;
181
+ key: (datum: any) => any;
182
+ value: (datum: any) => any;
183
+ } | {
184
+ hasShape: boolean;
185
+ key: string;
186
+ value: (datum: any) => any;
187
+ })[];
188
+ };
189
+ };
190
+ axes: ({
191
+ orient: string;
192
+ seriesIndex: number[];
193
+ visible: boolean;
194
+ paddingInner?: undefined;
195
+ paddingOuter?: undefined;
196
+ domain?: undefined;
197
+ domainLine?: undefined;
198
+ tick?: undefined;
199
+ sampling?: undefined;
200
+ label?: undefined;
201
+ } | {
202
+ orient: string;
203
+ paddingInner: number;
204
+ paddingOuter: number;
205
+ domain: string[];
206
+ domainLine: {
207
+ visible: boolean;
208
+ };
209
+ tick: {
210
+ visible: boolean;
211
+ };
212
+ sampling: boolean;
213
+ label: {
214
+ style: {
215
+ fill: string;
216
+ };
217
+ autoLimit: boolean;
218
+ formatMethod: (label: any) => any;
219
+ };
220
+ seriesIndex?: undefined;
221
+ visible?: undefined;
222
+ })[];
223
+ };