IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

SAS STAT Discussion :

Histogramme avec periode en abcisse


Sujet :

SAS STAT

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Janvier 2014
    Messages
    43
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Janvier 2014
    Messages : 43
    Points : 33
    Points
    33
    Par défaut Histogramme avec periode en abcisse
    Bonjour,


    J'aimerai réaliser un histogramme tout simple avec en abscisses ma variable periode (format date9.) et en ordonnées ma variable nb_panneau.

    Avec ce code je récupére seulement quelques modalités de ma variable periode avec un nomvbre de factures erronées (somme de plusieurs modalités visiblement.

    Quelqu'un peut-il m'aider?

    Merci

    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
    
    [FONT=Courier New][FONT=Courier New][FONT=Courier New]  legend1[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]across[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=[/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]1[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]shape[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=bar([/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]3[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New],[/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]2[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New])
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]label[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=([/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]"Légende"[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]position[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=(top center))
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]cborder[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=black [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]position[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=(top outside right)
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]offset[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=(-[/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]7[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New],-[/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]7[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]); 
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]axis1[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]LABEL[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=( [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]"Volume de panneau"[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New] ) ; 
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]axis2[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]LABEL[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=( [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]"periode"[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New] )[/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]order[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=[/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]1[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New] to &nb_per by [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]1[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New] ; 
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]PROC[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]GCHART[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]DATA[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=panneau;
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]VBAR3D[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New] 
    periode/
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]SUMVAR[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=nb_panneau SHAPE=BLOCK
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]CLIPREF
    FRAME[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]TYPE[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=[/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]SUM
    [/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]LEGEND[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=LEGEND1
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]DESCRIPTION[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New] = [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]"Histogramme"[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New] 
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]RAXIS[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=AXIS1
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]maxis[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New] = axis2
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]LREF[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=[/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]1
    [/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]CREF[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]=BLACK
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]AUTOREF
    [/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]/*PATTERNID=MIDPOINT*/[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New];
    [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New][/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New] 
    RUN[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]; [/FONT][/FONT][FONT=Courier New][FONT=Courier New][FONT=Courier New]QUIT[/FONT][/FONT][/FONT][FONT=Courier New][FONT=Courier New]; 
    [/FONT][/FONT]

  2. #2
    Membre éclairé

    Femme Profil pro
    SAS FRANCE - Support Clients France et Europe
    Inscrit en
    Février 2010
    Messages
    289
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : SAS FRANCE - Support Clients France et Europe
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2010
    Messages : 289
    Points : 886
    Points
    886
    Par défaut
    Bonjour,
    Pouvez-vous donner votre code complet ?
    Cordialement,

    --
    Géraldine CADE-DESCHAMPS
    Consultante ▪ Support Clients SAS
    Tel: +33 1 60 62 12 12 ▪ support@sas.com
    www.sas.com/france
    SAS® … THE POWER TO KNOW®

  3. #3
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Janvier 2014
    Messages
    43
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Janvier 2014
    Messages : 43
    Points : 33
    Points
    33
    Par défaut
    Je m'aperçois que le code été illisible.


    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
     
     
     
    legend1  across=1 shape=bar(3,2)
     label=("Légende" position=(top center))
     cborder=black position=(top outside right)
     offset=(-7,-7); 
      axis1 LABEL=( "Volume de panneau" ) ; 
      axis2  LABEL=( "periode" ) ; 
    PROC GCHART DATA=panneau;
     VBAR3D 
      periode
     /
    SUMVAR=nb_panneau
     SHAPE=BLOCK
      CLIPREF
    FRAME TYPE=SUM
     LEGEND=LEGEND1
      DESCRIPTION = "Histogramme" 
      RAXIS=AXIS1
     
     maxis = axis2
      LREF=1
     CREF=BLACK
      AUTOREF
     PATTERNID=MIDPOINT;
     
    RUN; QUIT;

  4. #4
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Janvier 2014
    Messages
    43
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Janvier 2014
    Messages : 43
    Points : 33
    Points
    33
    Par défaut
    Je me permets de relancer ce sujet car je n'ai toujours pas trouver ma réponse.
    Est-il possible de mettre en abcisses une variable av format date (DATE9.) et en ordonnées une variable quanti?
    Merci d'avance.
    Cordialement

Discussions similaires

  1. Réponses: 5
    Dernier message: 21/09/2008, 12h28
  2. histogramme avec un nombre de bins variable
    Par berlilou dans le forum MATLAB
    Réponses: 3
    Dernier message: 10/03/2008, 15h08
  3. Estimation d'histogramme avec un nombre de points réduit
    Par progfou dans le forum Traitement d'images
    Réponses: 2
    Dernier message: 17/12/2007, 18h02
  4. Histogramme avec une échelle continue
    Par Vorillyan dans le forum Excel
    Réponses: 12
    Dernier message: 09/10/2007, 10h48
  5. [TChart] comment remplir un histogramme avec du rouge strié.
    Par :GREG: dans le forum Composants VCL
    Réponses: 2
    Dernier message: 12/08/2002, 09h37

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo