@@ -34,26 +34,28 Rectangle { | |||||
34 | PieSeries { |
|
34 | PieSeries { | |
35 | id: pieOuter |
|
35 | id: pieOuter | |
36 | size: 0.96 |
|
36 | size: 0.96 | |
37 | PieSlice { id: slice; label: "Alpha"; value: 19511; color: "#2D6960"; borderColor: "#163430" } |
|
37 | holeSize: 0.7 | |
38 |
PieSlice { label: " |
|
38 | PieSlice { id: slice; label: "Alpha"; value: 19511; color: "#8AB846"; borderColor: "#163430" } | |
39 |
PieSlice { label: " |
|
39 | PieSlice { label: "Epsilon"; value: 11105; color: "#C0EEFF"; borderColor: "#3B391C" } | |
|
40 | PieSlice { label: "Psi"; value: 9352; color: "#DF8939"; borderColor: "#13060C" } | |||
40 | } |
|
41 | } | |
41 |
|
42 | |||
42 | PieSeries { |
|
43 | PieSeries { | |
43 | size: 0.7 |
|
44 | size: 0.7 | |
44 | id: pieInner |
|
45 | id: pieInner | |
|
46 | holeSize: 0.25 | |||
45 |
|
47 | |||
46 |
PieSlice { label: "Materials"; value: 10334; color: "# |
|
48 | PieSlice { label: "Materials"; value: 10334; color: "#8AB846"; borderColor: "#163430" } | |
47 |
PieSlice { label: "Employee"; value: 3066; color: "# |
|
49 | PieSlice { label: "Employee"; value: 3066; color: "#AAE356"; borderColor: "#163430" } | |
48 |
PieSlice { label: "Logistics"; value: 6111; color: "# |
|
50 | PieSlice { label: "Logistics"; value: 6111; color: "#99CC4E"; borderColor: "#163430" } | |
49 |
|
51 | |||
50 |
PieSlice { label: "Materials"; value: 7371; color: "#F |
|
52 | PieSlice { label: "Materials"; value: 7371; color: "#C0EEFF"; borderColor: "#3B391C" } | |
51 |
PieSlice { label: "Employee"; value: 2443; color: "# |
|
53 | PieSlice { label: "Employee"; value: 2443; color: "#C9FAFF"; borderColor: "#3B391C" } | |
52 |
PieSlice { label: "Logistics"; value: 1291; color: "# |
|
54 | PieSlice { label: "Logistics"; value: 1291; color: "#B0FAFF"; borderColor: "#3B391C" } | |
53 |
|
55 | |||
54 |
PieSlice { label: "Materials"; value: 4022; color: "# |
|
56 | PieSlice { label: "Materials"; value: 4022; color: "#DF8939"; borderColor: "#13060C" } | |
55 |
PieSlice { label: "Employee"; value: 3998; color: "# |
|
57 | PieSlice { label: "Employee"; value: 3998; color: "#FC9D42"; borderColor: "#13060C" } | |
56 |
PieSlice { label: "Logistics"; value: 1332; color: "#2 |
|
58 | PieSlice { label: "Logistics"; value: 1332; color: "#F2963F"; borderColor: "#13060C" } | |
57 | } |
|
59 | } | |
58 | } |
|
60 | } | |
59 |
|
61 | |||
@@ -62,7 +64,7 Rectangle { | |||||
62 | for (var i = 0; i < pieOuter.count; i++) { |
|
64 | for (var i = 0; i < pieOuter.count; i++) { | |
63 | pieOuter.at(i).labelPosition = PieSlice.LabelOutside; |
|
65 | pieOuter.at(i).labelPosition = PieSlice.LabelOutside; | |
64 | pieOuter.at(i).labelVisible = true; |
|
66 | pieOuter.at(i).labelVisible = true; | |
65 |
pieOuter.at(i).borderWidth = |
|
67 | pieOuter.at(i).borderWidth = 3; | |
66 | } |
|
68 | } | |
67 | for (var i = 0; i < pieInner.count; i++) { |
|
69 | for (var i = 0; i < pieInner.count; i++) { | |
68 | pieInner.at(i).labelPosition = PieSlice.LabelInsideNormal; |
|
70 | pieInner.at(i).labelPosition = PieSlice.LabelInsideNormal; |
General Comments 0
You need to be logged in to leave comments.
Login now