In the following PieChart
encoding,
bf16 = {100.164, 67.070, 45.159, 39.689, 26.189, 187.33, 18.358,
18.151, 11.701, 10.931, 9.164, 8.183, 6.320, 3.193, 3.034, 2.717,
2.613, 2.549, 2.510, 2.062, 1.701, 1.346, 1.251, 988, 804, 705,
639, 617, 561, 36};
dbf16 = {
{"Remboursement et dégrèvements"}, {"Enseignement scolaire"},
{"Engagements financiers de l'État"}, {"Défense"},
{"Recherche et enseignement supérieur"}, {"Sécurités"},
{"Sécurité, insertion et égalité des chances"},
{"Égalité des territoires, logement et ville"}, {"Travail et emploi"},
{"Gestion des finances publiques et des ressoures humaines"},
{"Écologie, développement et mobilités durables"}, {"Justice"},
{"Régimes sociaux et retraites"}, {"Action extérieure de l'État"},
{"Relations avec les collectivités territoriales"},
{"Agriculture, pêche, alimentation, forêt et affaires rurales"},
{"Anciens combattants, mémoire et liens avec la Nation"},
{"Administration générale et territoriale de l'État"},
{"Aide publique au développement"}, {"Outre-mer"}, {"Économie"},
{"Direction de l'action du gouvernement"}, {"Santé"}, {"Pouvoirs publics"},
{"Immigration, asile et intégration"}, {"Politique des territoires"},
{"Conseil et contrôle de l'État"}, {"Sport, jeunesse et vie associative"},
{"Médias, livre et industries culturelles"}, {"Culture"}
};
l := Array[{#} &, 30];
Grid[{
{PieChart[bf16, ChartStyle -> "Pastel", ChartLabels -> Placed[Range[30], "RadialCallout"],
SectorOrigin -> {Automatic, 0}],
Text[Grid[l, Alignment -> {Left, Top}]],
Text[Grid[dbf16, Alignment -> {Left, Bottom}]]}
}]
I have two main problems:
- the pie doesn't start where it should (24 should be 1),
- the numbers in the grid are not aligned with the texts.
I have two secondary problems:
- the size of the pie --- or the size of the text,
- the overcrowding of the labels --- but it is an already asked question
Last but not mandatory:
- when clicking on a part, it would be nice that the number and the text be highlighted
Thanks.
988
inbf16
which is greater than100.164
. Unless you meant100164
? $\endgroup$