SGR Generate bubbleChart-EN : Différence entre versions

De BlueWiki
(Page créée avec « === Parameters === ---- {| class="wikitable" !Paramètres !Type ! !N° du paramètre !Description |- |valign="top"|Noms des parametres du graphes |valign="top"|Pointeur... »)
 
(Parameters)
Ligne 3 : Ligne 3 :
 
{| class="wikitable"
 
{| class="wikitable"
 
   
 
   
!Paramètres
+
!Parameters
 
!Type
 
!Type
 
!
 
!
!N° du paramètre
+
!Parameter #
 
!Description
 
!Description
 +
  
 
|-
 
|-
|valign="top"|Noms des parametres du graphes
+
|valign="top"|Name of Graph's parameters
|valign="top"|Pointeur
+
|valign="top"|Pointer
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top" align="center"|1
 
|valign="top" align="center"|1
|Pointeur vers un tableau texte qui contient le nom des paramètres, ce tableau doit avoir la même taille que le tableau des valeurs de paramètres du graphe
+
|Pointer to a text array that contains the name of the parameters, this array must have the same size as the array of parameter values ​​of the graph
  
Les valeurs possible de paramètre du graphe sont les suivantes :
+
Possible values ​​of the parameter of the graph are the following:
  
Paramètres du titre
 
* - "Titre" ou "Title" : titre du graphe
 
* - "alignement du titre" ou "TitleAlignement" : Alignement du titre 0,1,2,3
 
* - "Police du graphe" ou "GraphFont" : Police du titre et polices par défaut des légendes et des échelles (arial par defaut)
 
* - "TitleFontSize" ou "Taille de la police du titre" : Taille de la police du titre
 
* - "TitleFontStyle" ou "Style de la police du titre" : Style de la police du titre (ex chaine(gras+italique))
 
* - "TitleFontColor" ou "Couleur de la police du titre" : Couleur de la police du titre
 
  
* - "Couleur de fond du graphe" ou "GraphBGColor" : Couleur du fond du graphe
+
Title parameters
 +
* - "Titre" or "Title" : graph title
 +
* - "alignement du titre" ou "TitleAlignement" : Title Alignment 0,1,2,3
 +
* - "Police du graphe" ou "GraphFont" : Title font and default font for legend and scale (arial by default)
 +
* - "TitleFontSize" ou "Taille de la police du titre" : Title font size
 +
* - "TitleFontStyle" ou "Style de la police du titre" : Title font style (ex (bold+italic))
 +
* - "TitleFontColor" ou "Couleur de la police du titre" : Title font color
  
 
Paramètres du graphe
 
Paramètres du graphe
* - "BubbleMaxDiameter" : Diametre maximum d'une bulle
+
* - "Couleur de fond du graphe" ou "GraphBGColor" : Background color of the graph
* - "ShowZeroOnHorizontalAxis" : le zéro de l'axe horizontal doit etre visible
+
* - "BubbleMaxDiameter" : Maximum diameter of a bubble
* - "ShowZeroOnVerticalAxis" : le zéro de l'axe vertical doit etre visible
+
* - "ShowZeroOnHorizontalAxis" : zero of the X axis should be visible
* - "ShowHorizontalScaleLine" : Traits horizontaux pour les graduations
+
* - "ShowZeroOnVerticalAxis" : zero of the Y axis should be visible
* - "ShowVerticalScaleLine" : Traits verticaux pour les graduations
+
* - "ShowHorizontalScaleLine" : Horizontal lines for graduations
* - "ShowBubbleName" : affichage des libellés
+
* - "ShowVerticalScaleLine" : Vetical lines for graduations
* - "BubbleFontSize" : taille de la police des libellés
+
* - "ShowBubbleName" : Display bubbles labels
 +
* - "BubbleFontSize" : bubbles labels font size
  
 
|-
 
|-
|valign="top"|Valeurs des parametres du graphes
+
|valign="top"|Parameter values ​​of the graph
|valign="top"|Pointeur
+
|valign="top"|pointer
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top" align="center"|2
 
|valign="top" align="center"|2
|Pointeur vers un tableau texte des valeurs de paramètres du graphe
+
|Pointer to the array of parameter values this array must be the same size as the previous
  
 
|-
 
|-
|valign="top"|Légendes
+
|valign="top"|Legend
|valign="top"|Pointeur
+
|valign="top"|Pointer
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top" align="center"|3
 
|valign="top" align="center"|3
Ligne 56 : Ligne 57 :
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top" align="center"|4
 
|valign="top" align="center"|4
|Pointeur vers un tableau texte des bulles
+
|Pointer to a text array of the names of axis
  
 
|-
 
|-
 
|valign="top"|Value1
 
|valign="top"|Value1
|valign="top"|Pointeur
+
|valign="top"|Pointer
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top" align="center"|5
 
|valign="top" align="center"|5
|Pointeur vers un tableau réel des valeurs sur l'axe horizontal
+
|Pointer to an array of values (real) ​​on the X axis
  
 
|-
 
|-
Ligne 70 : Ligne 71 :
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top" align="center"|6
 
|valign="top" align="center"|6
|Pointeur vers un tableau réel des valeurs sur l'axe vertical
+
|Pointer to an array of values (real) ​​on the Y axis
  
 
|-
 
|-
 
|valign="top"|Value3
 
|valign="top"|Value3
|valign="top"|Pointeur
+
|valign="top"|Pointer
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top" align="center"|7
 
|valign="top" align="center"|7
|Pointeur vers un tableau réel des valeurs du diamètre de la bulle
+
|Pointer to an array of values (real) of the bubble diameter
  
 
|-
 
|-
|valign="top"|Couleurs
+
|valign="top"|Colors
|valign="top"|Pointeur
+
|valign="top"|Pointer
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top"|[[File:in.png|caption]]
 
|valign="top" align="center"|8
 
|valign="top" align="center"|8
|Pointeur vers un tableau texte de couleur des bulles
+
|Pointer to an array (text) of bubbles colors
 
+
 
|-
 
|-
|Resultat
+
|valign="top"|Graph
|Image
+
|valign="top"|Picture
|[[File:out.png|caption]]
+
|valign="top"|[[File:out.png|caption]]
|valign="top" align="center"|
+
|valign="top" align="center"|Retour
|Image incluant le code SVG
+
|Image including the SVG code
  
 
|}
 
|}

Version du 30 décembre 2013 à 21:26

Parameters


Parameters Type Parameter # Description


Name of Graph's parameters Pointer caption 1 Pointer to a text array that contains the name of the parameters, this array must have the same size as the array of parameter values ​​of the graph

Possible values ​​of the parameter of the graph are the following:


Title parameters

  • - "Titre" or "Title" : graph title
  • - "alignement du titre" ou "TitleAlignement" : Title Alignment 0,1,2,3
  • - "Police du graphe" ou "GraphFont" : Title font and default font for legend and scale (arial by default)
  • - "TitleFontSize" ou "Taille de la police du titre" : Title font size
  • - "TitleFontStyle" ou "Style de la police du titre" : Title font style (ex (bold+italic))
  • - "TitleFontColor" ou "Couleur de la police du titre" : Title font color

Paramètres du graphe

  • - "Couleur de fond du graphe" ou "GraphBGColor" : Background color of the graph
  • - "BubbleMaxDiameter" : Maximum diameter of a bubble
  • - "ShowZeroOnHorizontalAxis" : zero of the X axis should be visible
  • - "ShowZeroOnVerticalAxis" : zero of the Y axis should be visible
  • - "ShowHorizontalScaleLine" : Horizontal lines for graduations
  • - "ShowVerticalScaleLine" : Vetical lines for graduations
  • - "ShowBubbleName" : Display bubbles labels
  • - "BubbleFontSize" : bubbles labels font size
Parameter values ​​of the graph pointer caption 2 Pointer to the array of parameter values this array must be the same size as the previous
Legend Pointer caption 3 Pointeur vers un tableau texte des noms des axes
Libelle Pointeur caption 4 Pointer to a text array of the names of axis
Value1 Pointer caption 5 Pointer to an array of values (real) ​​on the X axis
Value2 Pointeur caption 6 Pointer to an array of values (real) ​​on the Y axis
Value3 Pointer caption 7 Pointer to an array of values (real) of the bubble diameter
Colors Pointer caption 8 Pointer to an array (text) of bubbles colors
Graph Picture caption Retour Image including the SVG code

Description



Exemple de code


caption

Pour obtenir ce graphe il vous faudra utiliser le code ci-dessous

 // Nom utilisateur (OS) : Paul Kuhn - BlueCompany
 // ----------------------------------------------------
 // Méthode : Exemple_Bulle
 // Description

TABLEAU TEXTE($DataGrapheName;0)
TABLEAU TEXTE($DataGraphe;0)

AJOUTER A TABLEAU($DataGrapheName;"BubbleMaxDiameter")
AJOUTER A TABLEAU($DataGraphe;"400")  // 1- diametre maximum d'une bulle

AJOUTER A TABLEAU($DataGrapheName;"GraphBGColor")
AJOUTER A TABLEAU($DataGraphe;"White")  // 2 - couleur de fond du graphe

AJOUTER A TABLEAU($DataGrapheName;"Title")
AJOUTER A TABLEAU($DataGraphe;"Evolution du nombres de produits et du CA")  // 3 - Titre du graphe

AJOUTER A TABLEAU($DataGrapheName;"TitleAlignement")
AJOUTER A TABLEAU($DataGraphe;Chaine(Centré))  // 4 - Alignement du Titre du graphe

AJOUTER A TABLEAU($DataGrapheName;"ShowZeroOnHorizontalAxis") 
AJOUTER A TABLEAU($DataGraphe;"non")  // 5 - le zéro de l'axe horizontal doit etre visible

AJOUTER A TABLEAU($DataGrapheName;"ShowZeroOnVerticalAxis")
AJOUTER A TABLEAU($DataGraphe;"oui")  // 6 - le zéro de l'axe vertical doit etre visible

AJOUTER A TABLEAU($DataGrapheName;"ShowHorizontalScaleLine")
AJOUTER A TABLEAU($DataGraphe;"oui")  // 7 - Traits horizontaux pour les graduations

AJOUTER A TABLEAU($DataGrapheName;"ShowVerticalScaleLine")
AJOUTER A TABLEAU($DataGraphe;"oui")  // 8 - Traits verticaux pour les graduations

AJOUTER A TABLEAU($DataGrapheName;"ShowBubbleName")
AJOUTER A TABLEAU($DataGraphe;"oui")  // 9 - Affichage des libellés

AJOUTER A TABLEAU($DataGrapheName;"BubbleFontSize")
AJOUTER A TABLEAU($DataGraphe;"36")  // 10 - taille de la police des libellés

AJOUTER A TABLEAU($DataGrapheName;"GraphFont")
AJOUTER A TABLEAU($DataGraphe;"times")  // 11 - Police des légendes et des échelles

TABLEAU TEXTE($legende;0)  // légende des valeurs
AJOUTER A TABLEAU($legende;"Année")
AJOUTER A TABLEAU($legende;"Nbre de produits")
AJOUTER A TABLEAU($legende;"CA")

TABLEAU TEXTE($Libelle;0)
AJOUTER A TABLEAU($Libelle;"Années 80 : les débuts")
AJOUTER A TABLEAU($Libelle;"")
AJOUTER A TABLEAU($Libelle;"Années 90 : la croissance")
AJOUTER A TABLEAU($Libelle;"Années 2000 : l'explosion")
AJOUTER A TABLEAU($Libelle;"Années 2010 : le déclin")

TABLEAU REEL($Value1;0)  // axe horizontal
AJOUTER A TABLEAU($Value1;1980)
AJOUTER A TABLEAU($Value1;1985)
AJOUTER A TABLEAU($Value1;1990)
AJOUTER A TABLEAU($Value1;2000)
AJOUTER A TABLEAU($Value1;2012)

TABLEAU REEL($Value2;0)  // axe vertical
AJOUTER A TABLEAU($Value2;25)
AJOUTER A TABLEAU($Value2;35)
AJOUTER A TABLEAU($Value2;50)
AJOUTER A TABLEAU($Value2;80)
AJOUTER A TABLEAU($Value2;12)

TABLEAU REEL($Value3;0)  // Diametre de la bulle
AJOUTER A TABLEAU($Value3;18000000)
AJOUTER A TABLEAU($Value3;22000000)
AJOUTER A TABLEAU($Value3;32000000)
AJOUTER A TABLEAU($Value3;40000000)
AJOUTER A TABLEAU($Value3;10000000)

TABLEAU TEXTE($Color;0)
AJOUTER A TABLEAU($Color;"lightblue")
AJOUTER A TABLEAU($Color;"Purple")
AJOUTER A TABLEAU($Color;"Pink")
AJOUTER A TABLEAU($Color;"LightGreen")
AJOUTER A TABLEAU($Color;"orange")

TheGraphe:=SGR_Generate_bubbleChart (->$DataGrapheName;->$DataGraphe;->$legende;->$Libelle;->$Value1;->$Value2;->$Value3;->$Color)