Bonjour,
J'ai réalisé un histogramme représentant la répartition par région et je voudrais que lorsque je clique sur la "barre" d'une région un nouveau graphique apparait. Ce nouveau graphique représenterait la répartition par département de cette région.
Mais lorsque je lance mon programme, un nouveau graphique est créé par département et non par région. J'ai donc 80 nouveaux graphiques et les liens ne marchent pas !!
Voici mon code :
S'il vous plait, je vous en supplie, aidez moi !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 %macro M_hbar(table=); data work.&table._v; retain lien; set appli.&table.; by reg; length lien $100; if first.reg then do ; i+1; lien = 'href='!!quote(compress("fic"!!i!!".htm")); end; run; ods listing close; ods html path="&racine.\html\" file="fic1.htm" newfile=bygroup style=curve; goptions device=activex xpixels=800 ypixels=600; Axis1 Style=1 width=1 color=black label=('Fréquence') ; Axis2 style=1 width=1 color=black label=('Région') ; pattern1 color=CX39D066; pattern2 color=CX0000FF; pattern3 color=CXE32142; Title; title1 "Répartition des communes par région"; footnote; footnote1 "PROJET"; Proc gchart data=&table._v; HBAR dep / type=percent nolegend coutline=pink raxis=axis1 maxis=axis2 outside=pct patternid=midpoint ; by reg ; run; quit; title; footnote; title1; footnote1; ods html path="&racine.\html\" file="fic0.htm" style=seaside ; Proc gchart data=&table._v; HBAR reg / type=percent NOLEGEND legend=reg coutline=black raxis=axis1 maxis=axis2 ; run; quit; title; footnote; title; footnote; goptions reset=all; ods html close; ods listing; %mend M_hbar; %M_hbar(table=age);
Merci d'avance pour vos réponses !
Partager