-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpie.ts
102 lines (99 loc) · 1.78 KB
/
pie.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import React from "react";
import { ChartShallowDataShape } from "reaviz";
import * as icons from "./icons";
export interface ChartDataItem extends ChartShallowDataShape<number> {
key: string;
metadata: {
description: string;
Icon?: React.ComponentType;
};
}
export const pieLabelData: ChartDataItem[] = [
{
key: "Chrome",
data: 25000,
metadata: {
description: "Chrome description",
Icon: icons.Chrome,
},
},
{
key: "Safari",
data: 2000,
metadata: {
description: "Safari description",
Icon: icons.Safari,
},
},
{
key: "FireFox",
data: 2000,
metadata: {
description: "FireFox description",
Icon: icons.FireFox,
},
},
{
key: "Edge",
data: 2000,
metadata: {
description: "Edge description",
Icon: icons.Edge,
},
},
{
key: "Github",
data: 2000,
metadata: {
description: "Github description",
Icon: icons.Github,
},
},
{
key: "ReactJs",
data: 2000,
metadata: {
description: "React with really really long description",
Icon: icons.ReactJs,
},
},
{
key: "Android",
data: 2000,
metadata: {
description: "Android description",
Icon: icons.Android,
},
},
{
key: "Apple",
data: 2000,
metadata: {
description: "Apple description",
Icon: icons.Apple,
},
},
{
key: "Ubuntu",
data: 2000,
metadata: {
description: "Ubuntu description",
Icon: icons.Ubuntu,
},
},
{
key: "Windows",
data: 2000,
metadata: {
description: "Windows description",
Icon: icons.Windows,
},
},
{
key: "Other",
data: 500,
metadata: {
description: "Other item, that should not have label",
},
},
];