@mekari/pixel3-chart 0.0.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/chart.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ MpChart
3
+ } from "./chunk-RG3PDKE3.mjs";
4
+ import "./chunk-5SYLA56O.mjs";
5
+ import "./chunk-4Y625OEJ.mjs";
6
+ import "./chunk-QZ7VFGWC.mjs";
7
+ export {
8
+ MpChart
9
+ };
@@ -0,0 +1,128 @@
1
+ // src/modules/chart.props.ts
2
+ var chartProps = {
3
+ id: {
4
+ type: String,
5
+ default: ""
6
+ },
7
+ title: {
8
+ type: String,
9
+ default: ""
10
+ },
11
+ type: {
12
+ type: String,
13
+ default: "bar"
14
+ },
15
+ widthChart: {
16
+ type: String,
17
+ default: "100%"
18
+ },
19
+ heightChart: {
20
+ type: String,
21
+ default: "256px"
22
+ },
23
+ widthContainer: {
24
+ type: String,
25
+ default: "100%"
26
+ },
27
+ heightContainer: {
28
+ type: String,
29
+ default: "100%"
30
+ },
31
+ data: {
32
+ type: Object,
33
+ default: () => {
34
+ return {
35
+ labels: "",
36
+ dataSets: []
37
+ };
38
+ }
39
+ },
40
+ options: {
41
+ type: Object,
42
+ default: () => {
43
+ }
44
+ },
45
+ colorPattern: {
46
+ type: String,
47
+ default: "categorical"
48
+ },
49
+ colorStart: {
50
+ type: Number,
51
+ default: 1
52
+ },
53
+ colorRatio: {
54
+ type: Number,
55
+ default: 0.2
56
+ },
57
+ legendPosition: {
58
+ type: String,
59
+ default: "bottom"
60
+ },
61
+ legendDirection: {
62
+ type: String,
63
+ default: "left"
64
+ },
65
+ tooltipMarginTop: {
66
+ type: Number,
67
+ default: 0
68
+ },
69
+ tooltipMarginLeft: {
70
+ type: Number,
71
+ default: 0
72
+ },
73
+ tooltipOptions: {
74
+ type: Object,
75
+ default: () => {
76
+ return {
77
+ offsetTop: 0,
78
+ offsetLeft: 0
79
+ };
80
+ }
81
+ },
82
+ isShowLegend: {
83
+ type: Boolean,
84
+ default: true
85
+ },
86
+ isShowTooltip: {
87
+ type: Boolean,
88
+ default: true
89
+ },
90
+ isShowDataLabels: {
91
+ type: Boolean,
92
+ default: false
93
+ },
94
+ isHorizontal: {
95
+ type: Boolean,
96
+ default: false
97
+ },
98
+ isStacked: {
99
+ type: Boolean,
100
+ default: false
101
+ },
102
+ isArea: {
103
+ type: Boolean,
104
+ default: false
105
+ },
106
+ isDebug: {
107
+ type: Boolean,
108
+ default: false
109
+ },
110
+ isShowBackgroundHover: {
111
+ type: Boolean,
112
+ default: false
113
+ },
114
+ isShowGaugePointer: {
115
+ type: Boolean,
116
+ default: false
117
+ },
118
+ isMixedChart: {
119
+ type: Boolean,
120
+ default: false
121
+ }
122
+ };
123
+ var chartEmit = ["show-tooltip", "hide-tooltip", "click-legend"];
124
+
125
+ export {
126
+ chartProps,
127
+ chartEmit
128
+ };