##// END OF EJS Templates
Tuning QML donut
Tero Ahola -
r1852:13af3669dfff
parent child
Show More
@@ -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: "Epsilon"; value: 11105; color: "#EFE672"; borderColor: "#3B391C" }
38 PieSlice { id: slice; label: "Alpha"; value: 19511; color: "#8AB846"; borderColor: "#163430" }
39 PieSlice { label: "Psi"; value: 9352; color: "#4C1B33"; borderColor: "#13060C" }
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: "#618E87"; borderColor: "#163430" }
48 PieSlice { label: "Materials"; value: 10334; color: "#8AB846"; borderColor: "#163430" }
47 PieSlice { label: "Employee"; value: 3066; color: "#2D6960"; borderColor: "#163430" }
49 PieSlice { label: "Employee"; value: 3066; color: "#AAE356"; borderColor: "#163430" }
48 PieSlice { label: "Logistics"; value: 6111; color: "#214E48"; borderColor: "#163430" }
50 PieSlice { label: "Logistics"; value: 6111; color: "#99CC4E"; borderColor: "#163430" }
49
51
50 PieSlice { label: "Materials"; value: 7371; color: "#F7F28B"; borderColor: "#3B391C" }
52 PieSlice { label: "Materials"; value: 7371; color: "#C0EEFF"; borderColor: "#3B391C" }
51 PieSlice { label: "Employee"; value: 2443; color: "#EFE672"; borderColor: "#3B391C" }
53 PieSlice { label: "Employee"; value: 2443; color: "#C9FAFF"; borderColor: "#3B391C" }
52 PieSlice { label: "Logistics"; value: 1291; color: "#777339"; borderColor: "#3B391C" }
54 PieSlice { label: "Logistics"; value: 1291; color: "#B0FAFF"; borderColor: "#3B391C" }
53
55
54 PieSlice { label: "Materials"; value: 4022; color: "#785466"; borderColor: "#13060C" }
56 PieSlice { label: "Materials"; value: 4022; color: "#DF8939"; borderColor: "#13060C" }
55 PieSlice { label: "Employee"; value: 3998; color: "#4C1B33"; borderColor: "#13060C" }
57 PieSlice { label: "Employee"; value: 3998; color: "#FC9D42"; borderColor: "#13060C" }
56 PieSlice { label: "Logistics"; value: 1332; color: "#260D19"; borderColor: "#13060C" }
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 = 2;
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