impaktapps-design 0.2.85 → 0.2.86
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/package.json
CHANGED
|
@@ -1,43 +1,16 @@
|
|
|
1
1
|
const Product1 = [
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"y": 2
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"x": 3,
|
|
16
|
-
"y": 2
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
|
|
3
|
+
"key": "key1",
|
|
4
|
+
"value": [
|
|
5
|
+
{ "x": "01:00", "y": 123 },{ "x": "02:00", "y": 118 },{ "x": "03:00", "y": 141 },
|
|
6
|
+
{ "x": "04:00", "y": 114 },{ "x": "05:00", "y": 108 },{ "x": "06:00", "y": 123 },
|
|
7
|
+
{ "x": "07:00", "y": 128 },{ "x": "08:00", "y": 134 },{ "x": "09:00", "y": 131 },
|
|
8
|
+
{ "x": "10:00", "y": 134 },{ "x": "11:00", "y": 118 },{ "x": "11:00", "y": 10 },
|
|
9
|
+
{ "x": "12:00", "y": 130 },{ "x": "13:00", "y": 133 },{ "x": "14:00", "y": 132 },
|
|
10
|
+
{ "x": "15:00", "y": 1 },{ "x": "15:00", "y": 137 },{ "x": "16:00", "y": 120 }
|
|
11
|
+
]
|
|
20
12
|
},
|
|
21
|
-
|
|
22
|
-
"key": "Kotak",
|
|
23
|
-
"value":
|
|
24
|
-
[
|
|
25
|
-
{
|
|
26
|
-
"x": 2,
|
|
27
|
-
"y": 5
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"x": 3,
|
|
31
|
-
"y": 6
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"x": 3,
|
|
35
|
-
"y": 5
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
]
|
|
13
|
+
]
|
|
41
14
|
export const finalDataProvider = (type: string, value: any,theme?:any) => {
|
|
42
15
|
switch (type) {
|
|
43
16
|
case "BarGraph":
|
|
@@ -192,7 +165,7 @@ export const finalDataProvider = (type: string, value: any,theme?:any) => {
|
|
|
192
165
|
},
|
|
193
166
|
},
|
|
194
167
|
pieStyle: {
|
|
195
|
-
colorRange:
|
|
168
|
+
colorRange: theme.chartColours.pieChartColours,
|
|
196
169
|
outerRadius: 120,
|
|
197
170
|
innerRadius: 60,
|
|
198
171
|
cornerRadius: 2,
|
|
@@ -209,6 +182,7 @@ export const finalDataProvider = (type: string, value: any,theme?:any) => {
|
|
|
209
182
|
header: "Line Graph Dynamic",
|
|
210
183
|
bottomLabel: "Name of Employe",
|
|
211
184
|
leftLabel: "Value",
|
|
185
|
+
legendAvailable: true,
|
|
212
186
|
gridHidden: true,
|
|
213
187
|
numHidden: false,
|
|
214
188
|
tooltipDataKey: ["MAMA New Project", "Second", "Third"],
|
|
@@ -220,7 +194,7 @@ export const finalDataProvider = (type: string, value: any,theme?:any) => {
|
|
|
220
194
|
...value?.main,
|
|
221
195
|
legend: {
|
|
222
196
|
labelColor:theme.palette.text.primary,
|
|
223
|
-
legendTitle: "Our Assests",
|
|
197
|
+
// legendTitle: "Our Assests",
|
|
224
198
|
direction: "row",
|
|
225
199
|
align: "right",
|
|
226
200
|
colorRectWidth: 20,
|
|
@@ -255,7 +229,7 @@ export const finalDataProvider = (type: string, value: any,theme?:any) => {
|
|
|
255
229
|
...value?.style?.labelStyle
|
|
256
230
|
},
|
|
257
231
|
lineStyle: {
|
|
258
|
-
colorRange:
|
|
232
|
+
colorRange: theme.chartColours.lineChartColours,
|
|
259
233
|
lineAreaColor: "none",
|
|
260
234
|
lineAreaOpacity: 0.2,
|
|
261
235
|
...value?.style?.lineStyle
|