ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Changes the color of a portion of a Sunburst chart.
Example
// Ajoute les données
grSunburstAddData(GRF_Graphe, "Europe" + TAB + "France" + TAB + "Montpellier", 320000)
grSunburstAddData(GRF_Graphe, "Europe" + TAB + "France" + TAB + "Paris", 789000)
grSunburstAddData(GRF_Graphe, "Europe" + TAB + "France", 1109000) 
grSunburstAddData(GRF_Graphe, "Europe" + TAB + "Belgique", 900000)
grSunburstAddData(GRF_Graphe, "Asie", 250000)

// Personnalise les couleurs du graphe
grSunburstSectionColor(GRF_Graphe, "Europe", RGB(106, 188, 227))
grSunburstSectionColor(GRF_Graphe, "Asie", RGB(182, 115, 251)) 

grDraw(GRF_Graphe)
Syntax
grSunburstSectionColor(<Chart name> , <Section path> , <Color>)
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:
  • the name of the chart defined programmatically with grCreate.
  • the name of the Chart control in the window or report editor.
WEBDEV - Server codePHP In pages, only "Interactive chart" controls are available for Sunburst charts.
<Section path>: Character string
Full path of the section that must be colored in the chart. This parameter has the following format:
"<Name of base level>" + TAB + ["<Name of 1st level>" + TAB + ...
["<Name of last level>" + TAB + [...]]]"<Section name>"
<Color>: Integer or Integer constant
Color of the specified section. This color can correspond to:
Remarks
  • If a section has no specific color, a color is automatically assigned to it. This allows you to get a gradient with the sections of higher level if they exist.
  • The color can be modified at any time before drawing the chart.
Business / UI classification: Neutral code
Component: wd300grf.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help