|
|
|
|
|
<Chart>.WaterfallCategoryType (Function) In french: <Graphe>.WaterfallTypeCatégorie Indicates the type of category in a Waterfall chart.
GRF_Waterfall.AjouteDonnée(1, 1, 298000)
GRF_Waterfall.EtiquetteCatégorie(1, "CA 2017")
GRF_Waterfall.AjouteDonnée(1, 2, 420000)
GRF_Waterfall.EtiquetteCatégorie(2, "Bénéfices" + CR + "produits")
GRF_Waterfall.AjouteDonnée(1, 3, 210000)
GRF_Waterfall.EtiquetteCatégorie(3, "Bénéfices" + CR + "services")
GRF_Waterfall.AjouteDonnée(1, 4, -170000)
GRF_Waterfall.EtiquetteCatégorie(4, "Coûts fixes")
GRF_Waterfall.AjouteDonnée(1, 5, -140000)
GRF_Waterfall.EtiquetteCatégorie(5, "Coûts variables")
GRF_Waterfall.AjouteDonnée(1, 6, 0)
GRF_Waterfall.EtiquetteCatégorie(6, "CA 2018")
GRF_Waterfall.WaterfallTypeCatégorie(6, grSubTotal)
GRF_Waterfall.AjouteDonnée(1, 7, 0)
GRF_Waterfall.EtiquetteCatégorie(7, "CA cumulé")
GRF_Waterfall.WaterfallTypeCatégorie(7, grTotal)
Syntax
<Chart control>.WaterfallCategoryType(<Category> , <Type of category>)
<Chart control>: Control name Name of the Chart control in the window editor, report editor or page editor.
<Category>: Integer Number of the category to use. <Type of category>: Integer constant Type of category:
| | grDefault | Positive or negative values of the chart. | grSubTotal | Sub-total values. If the category corresponds to a sub-total, the value stored for this category is ignored. For this category, the Waterfall chart displays a bar corresponding to the sum of all previous categories from the last total or sub-total. | grTotal | Total values. If the category corresponds to a total, the value stored for this category is ignored. For this category, the Waterfall chart displays a bar corresponding to the sum of all previous categories from the beginning of the chart. |
Remarks - Special case: the first category
The first category is always a "total" category, but the specified value is displayed: this is the starting value. - This function applies to the Waterfall charts only.
Related Examples:
|
Training (WINDEV): WD Chart
[ + ] This example presents the different uses of the Chart control. Different types of charts are presented: - Pie - Sunburst - Line - Scatter - Column - Area - etc. The main features presented here are the possibility to customize of charts from the code, as well as to fill the chart from an HFSQL data file, or in the editor.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|