Précédent   Forum des professionnels en informatique > Logiciels > Solutions d'entreprise > Business Intelligence > SAS > ODS et reporting
ODS et reporting Forum d'entraide sur les fonctionnalités de reporting de SAS : gérer les sorties et graphiques de SAS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 06/05/2011, 16h00   #1
Futur Membre du Club
 
julien quetel
Inscription : juillet 2010
Messages : 91
Détails du profil
Informations personnelles :
Nom : julien quetel

Informations forums :
Inscription : juillet 2010
Messages : 91
Points : 16
Points : 16
Par défaut [graphique] Gchart pie avoir sa propre legende

* Bonjour, *

ben voila en réalité j'ai un tableau avec des codes, j'ai utilisé des proc format pour avoir des beaux libellés, mais la je n'arrive pas ales integrer dans ma legende et je m'arrache les cheveux depuis longtemps alors que je suis sure que c tout simple... Voila mon code :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
legend1 label=("diagnostic")
        position=(LEFT middle)
        offset=(4,)
        across=1
        value=(color=black)
        shape=bar(4,1.5);
 
PROC GCHART DATA =alz.diagnostic;
FORMAT dcldiagnostic $lib_diag.;
        PIE     dcldiagnostic / 
             SUMVAR=n
            OTHER=5
            OTHERLABEL="Autre"
                   descending
            legend=legend1
                        value=none
            percent=inside
                       coutline=black
                       noheading;    
RUN;
* Merci *
traersa est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/05/2011, 16h14   #2
Membre Expert
 
Avatar de MEGAMIND2
 
Homme Brice Beare
Paris
Inscription : janvier 2011
Messages : 956
Détails du profil
Informations personnelles :
Nom : Homme Brice Beare
Localisation : France, Paris (Île de France)

Informations professionnelles :
Activité : Paris

Informations forums :
Inscription : janvier 2011
Messages : 956
Points : 1 366
Points : 1 366
T'as essayé ça
Code :
FORMAT dcldiagnostic lib_diag.
au lieu de ça
Code :
FORMAT dcldiagnostic $lib_diag.
Si ça marche pas, Je t'ai rien dit
MEGAMIND2 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/05/2011, 16h35   #3
Futur Membre du Club
 
julien quetel
Inscription : juillet 2010
Messages : 91
Détails du profil
Informations personnelles :
Nom : julien quetel

Informations forums :
Inscription : juillet 2010
Messages : 91
Points : 16
Points : 16
il me dit ca

Code :
ERROR: You are trying TO USE the numeric format LIB_DIAG WITH the character variable DclDiagnostic.
heureusement j'aurais eu l'air bete ^^
traersa est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/05/2011, 16h41   #4
Membre Expert
 
Avatar de MEGAMIND2
 
Homme Brice Beare
Paris
Inscription : janvier 2011
Messages : 956
Détails du profil
Informations personnelles :
Nom : Homme Brice Beare
Localisation : France, Paris (Île de France)

Informations professionnelles :
Activité : Paris

Informations forums :
Inscription : janvier 2011
Messages : 956
Points : 1 366
Points : 1 366
J'ai rien dit alors!!
De toute façon on te voit pas, on s'en fout
MEGAMIND2 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/05/2011, 17h33   #5
Membre Expert
 
Homme
Biostatisticien
Inscription : juin 2009
Messages : 1 143
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Irlande

Informations professionnelles :
Activité : Biostatisticien
Secteur : Industrie Pharmaceutique

Informations forums :
Inscription : juin 2009
Messages : 1 143
Points : 1 760
Points : 1 760
Et elle dit quoi ta log qd tu utilises le format de type caractère? On peux voir le codage de ton format?
Manoutz est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/05/2011, 18h30   #6
Membre Expert
 
Avatar de MEGAMIND2
 
Homme Brice Beare
Paris
Inscription : janvier 2011
Messages : 956
Détails du profil
Informations personnelles :
Nom : Homme Brice Beare
Localisation : France, Paris (Île de France)

Informations professionnelles :
Activité : Paris

Informations forums :
Inscription : janvier 2011
Messages : 956
Points : 1 366
Points : 1 366
Faudrait tester la proc format avant d'appliquer la gchart, j'ai eu le même souci avec proc tabulate et je ne COMPRENDRE de rien!
MEGAMIND2 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/05/2011, 11h12   #7
Futur Membre du Club
 
julien quetel
Inscription : juillet 2010
Messages : 91
Détails du profil
Informations personnelles :
Nom : julien quetel

Informations forums :
Inscription : juillet 2010
Messages : 91
Points : 16
Points : 16
je comprens pas bien, les proc format ne font pas de sorties, enfin je peux vous mettre la proc format que j'utilise :

Code :
1
2
3
4
5
6
7
8
 
PROC FORMAT ;
VALUE $lib_situationgeo
"VILLE"="Dans la ville du CMRR, CM ou CL"
"+50KM"="A plus de 50km du CMRR, CM ou CL"
"EXTREG"="A l'extérieur de la région"
"EXTPAYS"="Dans un autre pays"
run;
puis le graphe en lui meme :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
legend1 label=("diagnostic")
        position=(LEFT middle)
        offset=(4,)
        across=1
        value=(color=black)
        shape=bar(4,1.5);
 
/*Créé un diagramme de distribution représentant les fréquences pour la région en cours en fonction du diagnostic*/
PROC GCHART DATA =alz.diagnostic;
FORMAT dcldiagnostic $lib_diag.;
		PIE	 dcldiagnostic / 
		 	SUMVAR=n
			OTHER=5
			OTHERLABEL="Autre"
	        descending
            legend=legend1
            value=none
			percent=inside
            coutline=black
            noheading;
RUN;
et voila le log, il me sort bien mon graph mais pas avec mes formats :

Code :
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
1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL=%NRBQUOTE(bilan d'activite);
4          %LET _EGTASKLABEL=%NRBQUOTE(bilan d'activite);
5          %LET _CLIENTPROJECTNAME=%NRBQUOTE(D:\6002827\securite.egp);
6          %LET _SASPROGRAMFILE=;
7          
8          ODS _ALL_ CLOSE;
NOTE: Some of your options or statements may not be supported with the Activex or Java series of devices.  Graph defaults for these 
      drivers may be different from other SAS/GRAPH device drivers.  For further information, please contact Technical Support.
9          OPTIONS DEV=ACTIVEX;
10         FILENAME EGHTML TEMP;
NOTE: Writing HTML(EGHTML) Body file: EGHTML
11         ODS HTML(ID=EGHTML) FILE=EGHTML ENCODING='utf-8' STYLE=EGDefault
11       ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/Shared%20Files/BIClientStyles/EGDefault.css")
11       ! ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v91/sasgraph.exe") NOGTITLE NOGFOOTNOTE GPATH=&sasworklocation
11       ! ;
12         
13         %gaccessible;
14         legend1 label=("diagnostic")
15                 position=(left middle)
16                 offset=(4,)
17                 across=1
18                 value=(color=black)
19                 shape=bar(4,1.5);
20         
21         /*Créé un diagramme de distribution représentant les fréquences pour la région en cours en fonction du diagnostic*/
22         PROC GCHART DATA =alz.diagnostic;
23         FORMAT dcldiagnostic $lib_diag.;
24         		PIE	 dcldiagnostic /
25         		 	SUMVAR=n
26         			OTHER=5
27         			OTHERLABEL="Autre"
28         	        descending
29                     legend=legend1
30                     value=none
31         			percent=inside
32                     coutline=black
33                     noheading;
34         RUN;
 
NOTE: The F02.8 midpoint was included into the OTHER slice with a value of 296 representing 2.2 percent of the pie/donut.
NOTE: The F13 midpoint was included into the OTHER slice with a value of 30 representing 0.2 percent of the pie/donut.
35         
36         
37         %LET _CLIENTTASKLABEL=;
38         %LET _EGTASKLABEL=;
39         %LET _CLIENTPROJECTNAME=;
40         %LET _SASPROGRAMFILE=;
41         
42         ;*';*";*/;quit;
 
NOTE: There were 10 observations read from the data set ALZ.DIAGNOSTIC.
NOTE: PROCEDURE GCHART used (Total process time):
      real time           0.17 seconds
      cpu time            0.15 seconds
 
2                                                          The SAS System                                  10:46 Monday, May 9, 2011
 
 
42       !                run;
43         ODS _ALL_ CLOSE;
44         
45         
46         QUIT; RUN;
47
traersa est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/05/2011, 11h22   #8
Membre Expert
 
Avatar de MEGAMIND2
 
Homme Brice Beare
Paris
Inscription : janvier 2011
Messages : 956
Détails du profil
Informations personnelles :
Nom : Homme Brice Beare
Localisation : France, Paris (Île de France)

Informations professionnelles :
Activité : Paris

Informations forums :
Inscription : janvier 2011
Messages : 956
Points : 1 366
Points : 1 366
Salut,
C'est normal que le nom du format diffère dans la proc format et Gchart?
MEGAMIND2 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/05/2011, 14h12   #9
Futur Membre du Club
 
julien quetel
Inscription : juillet 2010
Messages : 91
Détails du profil
Informations personnelles :
Nom : julien quetel

Informations forums :
Inscription : juillet 2010
Messages : 91
Points : 16
Points : 16
une simple erreur de copier coller en realité j'ai deux graphes, voici avec le code qui va mieux ^^

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
legend1 label=("situation géographique")
        position=(LEFT middle)
        offset=(4,)
        across=1
        value=(color=black)
        shape=bar(4,1.5);
 
PROC GCHART DATA =alz.situationgeo;
	FORMAT patientsituationgeo $lib_situationgeo.;
		PIE	 patientsituationgeo /
		 	SUMVAR=n
	        descending
            legend=legend1
            value=inside
			percent=inside
            coutline=black
            noheading;
RUN;
traersa est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/05/2011, 14h33   #10
Membre Expert
 
Avatar de MEGAMIND2
 
Homme Brice Beare
Paris
Inscription : janvier 2011
Messages : 956
Détails du profil
Informations personnelles :
Nom : Homme Brice Beare
Localisation : France, Paris (Île de France)

Informations professionnelles :
Activité : Paris

Informations forums :
Inscription : janvier 2011
Messages : 956
Points : 1 366
Points : 1 366
C'est donc pas le bon format que tu appliquais dans la Gchart?
MEGAMIND2 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/05/2011, 15h22   #11
Futur Membre du Club
 
julien quetel
Inscription : juillet 2010
Messages : 91
Détails du profil
Informations personnelles :
Nom : julien quetel

Informations forums :
Inscription : juillet 2010
Messages : 91
Points : 16
Points : 16
si si c'est juste que j'ai deux proc format et deux proc gchart et que j'ai pas copier coller les deux qui allaient ensemble ^^
traersa est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/05/2011, 15h36   #12
Membre Expert
 
Avatar de MEGAMIND2
 
Homme Brice Beare
Paris
Inscription : janvier 2011
Messages : 956
Détails du profil
Informations personnelles :
Nom : Homme Brice Beare
Localisation : France, Paris (Île de France)

Informations professionnelles :
Activité : Paris

Informations forums :
Inscription : janvier 2011
Messages : 956
Points : 1 366
Points : 1 366
MEGAMIND2 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 09h13.


 
 
 
 
Partenaires

Hébergement Web