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... ») |
|||
(17 révisions intermédiaires par un utilisateur sont masquées) | |||
Ligne 1 : | Ligne 1 : | ||
+ | [[Composant_Graphe_SVG-EN#Commands|Component Command List ]] - [[File:icon_drapeau_francais.gif]] [[SGR_Generate_bubbleChart|Version française]] | ||
=== Parameters === | === Parameters === | ||
---- | ---- | ||
{| class="wikitable" | {| class="wikitable" | ||
− | ! | + | !Parameters |
!Type | !Type | ||
! | ! | ||
− | ! | + | !Parameter # |
!Description | !Description | ||
+ | |||
|- | |- | ||
− | |valign="top"| | + | |valign="top"|Name of Graph's parameters |
− | |valign="top"| | + | |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 | ||
− | | | + | |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: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * - " | + | '''Graph parameters''' |
+ | * - "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 | ||
− | + | ||
− | * | + | '''General parameters of the graph'''* “GraphFont” or “Police du graphe” :title font and default font for legend and scale (arial by default) |
− | * | + | * “GraphBGColor” or “Couleur de fond du graphe”:background color of the graph |
− | * | + | * “GraphBGColor2” or “Couleur 2 de fond du graphe”: second background color of the graph. If you specifiy a second color and if it different from the first one, you will obtain a gradation. |
− | * | + | |
− | * | + | |
− | * | + | '''Title parameters''' |
− | * | + | * "Titre" or "Title" : graph title |
+ | * "alignement du titre" ou "TitleAlignement" : Title Alignment 0,1,2,3 | ||
+ | * "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 | ||
+ | * “TitleVerticalOffSet” or “Décalage vertical du titre” :vertical offset in px for an ajustment end of its position | ||
+ | |||
+ | |||
+ | '''Legend parameters''' | ||
+ | * “ShowLegend” or “Affichage de la legend”:display of the legend “oui”, “yes”, “vrai”, “true”, “non”, “no”, “faux”, “false” | ||
+ | * “LegendFont” or “Police de la legend” legend font, if this value is passed, it replaces the graph font | ||
+ | * “LegendFontSize” or “Taille de la police de la légende” :size of legend font | ||
+ | * “LegendFontStyle” or “Style de la police de la légende” :style of the legend font. | ||
+ | * “LegendFontColor”: or “Couleur de la police de la légende” :color of the legend font. | ||
+ | * “LegendBGcolor” or “Couleur de fond de la légende” :color of the background of legend rectangle (“White:0” for transparency) | ||
|- | |- | ||
− | |valign="top"| | + | |valign="top"|Parameter values of the graph |
− | |valign="top"| | + | |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 | ||
− | | | + | |Pointer to the array of parameter values this array must be the same size as the previous |
|- | |- | ||
− | |valign="top"| | + | |valign="top"|Legend |
− | |valign="top"| | + | |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 | ||
− | | | + | |Pointer to a array (text) of name bubbles |
|- | |- | ||
Ligne 56 : | Ligne 72 : | ||
|valign="top"|[[File:in.png|caption]] | |valign="top"|[[File:in.png|caption]] | ||
|valign="top" align="center"|4 | |valign="top" align="center"|4 | ||
− | | | + | |Pointer to a text array of the names of axis |
|- | |- | ||
|valign="top"|Value1 | |valign="top"|Value1 | ||
− | |valign="top"| | + | |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 | ||
− | | | + | |Pointer to an array of values (real) on the X axis |
|- | |- | ||
Ligne 70 : | Ligne 86 : | ||
|valign="top"|[[File:in.png|caption]] | |valign="top"|[[File:in.png|caption]] | ||
|valign="top" align="center"|6 | |valign="top" align="center"|6 | ||
− | | | + | |Pointer to an array of values (real) on the Y axis |
|- | |- | ||
|valign="top"|Value3 | |valign="top"|Value3 | ||
− | |valign="top"| | + | |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 | ||
− | | | + | |Pointer to an array of values (real) of the bubble diameter |
|- | |- | ||
− | |valign="top"| | + | |valign="top"|Colors |
− | |valign="top"| | + | |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 | ||
− | | | + | |Pointer to an array (text) of bubbles colors |
− | + | ||
|- | |- | ||
− | | | + | |valign="top"|Graph |
− | | | + | |valign="top"|Picture |
− | |[[File:out.png|caption]] | + | |valign="top"|[[File:out.png|caption]] |
− | |valign="top" align="center"| | + | |valign="top" align="center"|Retour |
− | |Image | + | |Image including the SVG code |
|} | |} | ||
Ligne 99 : | Ligne 114 : | ||
− | === | + | ===Sample Code=== |
---- | ---- | ||
− | [[File:GrapheBulle1.jpg| | + | [[File:GrapheBulle1.jpg|800px]] |
Pour obtenir ce graphe il vous faudra utiliser le code ci-dessous | Pour obtenir ce graphe il vous faudra utiliser le code ci-dessous | ||
− | // | + | // User (OS) : Paul Kuhn - BlueCompany |
// ---------------------------------------------------- | // ---------------------------------------------------- | ||
− | // | + | // Method : Exemple_Bulle |
// Description | // Description | ||
+ | // | ||
+ | // | ||
+ | // Parameters | ||
+ | // ---------------------------------------------------- | ||
+ | ARRAY TEXT($DataGrapheName;0) | ||
+ | ARRAY TEXT($DataGraphe;0) | ||
+ | APPEND TO ARRAY($DataGrapheName;"BubbleMaxDiameter") | ||
+ | APPEND TO ARRAY($DataGraphe;"400") // diametre maximum d'une bulle | ||
+ | APPEND TO ARRAY($DataGrapheName;"GraphBGColor") | ||
+ | APPEND TO ARRAY($DataGraphe;"White") // couleur de fond du graphe | ||
+ | APPEND TO ARRAY($DataGrapheName;"Title") | ||
+ | APPEND TO ARRAY($DataGraphe;"Evolution du nombres de produits et du CA") // Titre du graphe | ||
+ | APPEND TO ARRAY($DataGrapheName;"TitleAlignement") | ||
+ | APPEND TO ARRAY($DataGraphe;String(Center)) // Alignement du Titre du graphe | ||
+ | APPEND TO ARRAY($DataGrapheName;"ShowZeroOnHorizontalAxis") | ||
+ | APPEND TO ARRAY($DataGraphe;"non") // le zéro de l'axe horizontal doit etre visible | ||
+ | APPEND TO ARRAY($DataGrapheName;"ShowZeroOnVerticalAxis") | ||
+ | APPEND TO ARRAY($DataGraphe;"oui") // le zéro de l'axe vertical doit etre visible | ||
+ | APPEND TO ARRAY($DataGrapheName;"ShowHorizontalScaleLine") | ||
+ | APPEND TO ARRAY($DataGraphe;"oui") // Traits horizontaux pour les graduations | ||
+ | APPEND TO ARRAY($DataGrapheName;"ShowVerticalScaleLine") | ||
+ | APPEND TO ARRAY($DataGraphe;"yes") // Traits verticaux pour les graduations | ||
+ | APPEND TO ARRAY($DataGrapheName;"ShowBubbleName") | ||
+ | APPEND TO ARRAY($DataGraphe;"oui") // Affichage des libellés | ||
+ | APPEND TO ARRAY($DataGrapheName;"BubbleFontSize") | ||
+ | APPEND TO ARRAY($DataGraphe;"36") // taille de la police des libellés | ||
+ | APPEND TO ARRAY($DataGrapheName;"GraphFont") | ||
+ | APPEND TO ARRAY($DataGraphe;"Arial") // Police des légendes et des échelles | ||
+ | APPEND TO ARRAY($DataGrapheName;"BubbleStyle") | ||
+ | APPEND TO ARRAY($DataGraphe;"Sphere") // Type de bulle à dessiner | ||
− | + | ARRAY TEXT($legende;0) // légende des valeurs | |
− | + | APPEND TO ARRAY($legende;"Année") | |
− | + | APPEND TO ARRAY($legende;"Nbre de produits") | |
− | + | APPEND TO ARRAY($legende;"CA") | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ARRAY TEXT($Libelle;0) | |
− | + | APPEND TO ARRAY($Libelle;"Années 80 : les débuts") | |
− | + | APPEND TO ARRAY($Libelle;"") | |
− | + | APPEND TO ARRAY($Libelle;"Années 90 : la croissance") | |
− | + | APPEND TO ARRAY($Libelle;"Années 2000 : l'explosion") | |
− | + | APPEND TO ARRAY($Libelle;"Années 2010 : le déclin") | |
− | + | ARRAY REAL($Value1;0) // axe horizontal | |
− | + | APPEND TO ARRAY($Value1;1980) | |
− | + | APPEND TO ARRAY($Value1;1985) | |
− | + | APPEND TO ARRAY($Value1;1990) | |
− | + | APPEND TO ARRAY($Value1;2000) | |
− | + | APPEND TO ARRAY($Value1;2012) | |
− | + | ARRAY REAL($Value2;0) // axe vertical | |
− | + | APPEND TO ARRAY($Value2;25) | |
− | + | APPEND TO ARRAY($Value2;35) | |
− | + | APPEND TO ARRAY($Value2;50) | |
− | + | APPEND TO ARRAY($Value2;80) | |
− | + | APPEND TO ARRAY($Value2;12) | |
− | + | ARRAY REAL($Value3;0) // Diametre de la bulle | |
− | + | APPEND TO ARRAY($Value3;18000000) | |
− | + | APPEND TO ARRAY($Value3;22000000) | |
− | + | APPEND TO ARRAY($Value3;32000000) | |
− | + | APPEND TO ARRAY($Value3;40000000) | |
− | + | APPEND TO ARRAY($Value3;10000000) | |
− | + | ARRAY TEXT($Color;0) | |
− | + | APPEND TO ARRAY($Color;"lightblue") | |
− | + | APPEND TO ARRAY($Color;"Purple") | |
− | + | APPEND TO ARRAY($Color;"Pink") | |
− | + | APPEND TO ARRAY($Color;"LightGreen") | |
− | + | APPEND TO ARRAY($Color;"orange") | |
TheGraphe:=SGR_Generate_bubbleChart (->$DataGrapheName;->$DataGraphe;->$legende;->$Libelle;->$Value1;->$Value2;->$Value3;->$Color) | TheGraphe:=SGR_Generate_bubbleChart (->$DataGrapheName;->$DataGraphe;->$legende;->$Libelle;->$Value1;->$Value2;->$Value3;->$Color) |
Version actuelle en date du 8 juillet 2014 à 07:34
Component Command List - Version française
[modifier] Parameters
[modifier] Description
[modifier] Sample Code
Pour obtenir ce graphe il vous faudra utiliser le code ci-dessous
// User (OS) : Paul Kuhn - BlueCompany // ---------------------------------------------------- // Method : Exemple_Bulle // Description // // // Parameters // ---------------------------------------------------- ARRAY TEXT($DataGrapheName;0) ARRAY TEXT($DataGraphe;0) APPEND TO ARRAY($DataGrapheName;"BubbleMaxDiameter") APPEND TO ARRAY($DataGraphe;"400") // diametre maximum d'une bulle APPEND TO ARRAY($DataGrapheName;"GraphBGColor") APPEND TO ARRAY($DataGraphe;"White") // couleur de fond du graphe APPEND TO ARRAY($DataGrapheName;"Title") APPEND TO ARRAY($DataGraphe;"Evolution du nombres de produits et du CA") // Titre du graphe APPEND TO ARRAY($DataGrapheName;"TitleAlignement") APPEND TO ARRAY($DataGraphe;String(Center)) // Alignement du Titre du graphe APPEND TO ARRAY($DataGrapheName;"ShowZeroOnHorizontalAxis") APPEND TO ARRAY($DataGraphe;"non") // le zéro de l'axe horizontal doit etre visible APPEND TO ARRAY($DataGrapheName;"ShowZeroOnVerticalAxis") APPEND TO ARRAY($DataGraphe;"oui") // le zéro de l'axe vertical doit etre visible APPEND TO ARRAY($DataGrapheName;"ShowHorizontalScaleLine") APPEND TO ARRAY($DataGraphe;"oui") // Traits horizontaux pour les graduations APPEND TO ARRAY($DataGrapheName;"ShowVerticalScaleLine") APPEND TO ARRAY($DataGraphe;"yes") // Traits verticaux pour les graduations APPEND TO ARRAY($DataGrapheName;"ShowBubbleName") APPEND TO ARRAY($DataGraphe;"oui") // Affichage des libellés APPEND TO ARRAY($DataGrapheName;"BubbleFontSize") APPEND TO ARRAY($DataGraphe;"36") // taille de la police des libellés APPEND TO ARRAY($DataGrapheName;"GraphFont") APPEND TO ARRAY($DataGraphe;"Arial") // Police des légendes et des échelles APPEND TO ARRAY($DataGrapheName;"BubbleStyle") APPEND TO ARRAY($DataGraphe;"Sphere") // Type de bulle à dessiner ARRAY TEXT($legende;0) // légende des valeurs APPEND TO ARRAY($legende;"Année") APPEND TO ARRAY($legende;"Nbre de produits") APPEND TO ARRAY($legende;"CA") ARRAY TEXT($Libelle;0) APPEND TO ARRAY($Libelle;"Années 80 : les débuts") APPEND TO ARRAY($Libelle;"") APPEND TO ARRAY($Libelle;"Années 90 : la croissance") APPEND TO ARRAY($Libelle;"Années 2000 : l'explosion") APPEND TO ARRAY($Libelle;"Années 2010 : le déclin") ARRAY REAL($Value1;0) // axe horizontal APPEND TO ARRAY($Value1;1980) APPEND TO ARRAY($Value1;1985) APPEND TO ARRAY($Value1;1990) APPEND TO ARRAY($Value1;2000) APPEND TO ARRAY($Value1;2012) ARRAY REAL($Value2;0) // axe vertical APPEND TO ARRAY($Value2;25) APPEND TO ARRAY($Value2;35) APPEND TO ARRAY($Value2;50) APPEND TO ARRAY($Value2;80) APPEND TO ARRAY($Value2;12) ARRAY REAL($Value3;0) // Diametre de la bulle APPEND TO ARRAY($Value3;18000000) APPEND TO ARRAY($Value3;22000000) APPEND TO ARRAY($Value3;32000000) APPEND TO ARRAY($Value3;40000000) APPEND TO ARRAY($Value3;10000000) ARRAY TEXT($Color;0) APPEND TO ARRAY($Color;"lightblue") APPEND TO ARRAY($Color;"Purple") APPEND TO ARRAY($Color;"Pink") APPEND TO ARRAY($Color;"LightGreen") APPEND TO ARRAY($Color;"orange") TheGraphe:=SGR_Generate_bubbleChart (->$DataGrapheName;->$DataGraphe;->$legende;->$Libelle;->$Value1;->$Value2;->$Value3;->$Color)