SGR Generate bubbleChart-EN

De BlueWiki

Version française

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



Sample Code


GrapheBulle1.jpg

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)