PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Changes the color of a section in a Sunburst chart.
Versions 24 and later
Linux This function is now only available for reports containing a Sunburst chart.
Windows This function is now only available for reports containing a Sunburst chart.
New in version 24
Linux This function is now only available for reports containing a Sunburst chart.
Windows This function is now only available for reports containing a Sunburst chart.
Linux This function is now only available for reports containing a Sunburst chart.
Windows This function is now only available for reports containing a Sunburst chart.
Example
// Adds the data
grSunburstAddData(CHART_Chart, "Europe" + TAB + "France" + TAB + "Montpellier", 320000)
grSunburstAddData(CHART_Chart, "Europe" + TAB + "France" + TAB + "Paris", 789000)
grSunburstAddData(CHART_Chart, "Europe" + TAB + "France", 1109000)
grSunburstAddData(CHART_Chart, "Europe" + TAB + "Belgium", 900000)
grSunburstAddData(CHART_Chart, "Asia", 250000)

// Customizes the colors of the chart
grSunburstSectionColor(CHART_Chart, "Europe", RGB(106, 188, 227))
grSunburstSectionColor(CHART_Chart, "Asia", RGB(182, 115, 251))

grDraw(CHART_Chart)
Syntax
grSunburstSectionColor(<Chart name> , <Section path> , <Color>)
<Chart name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by programming with grCreate.
  • the name of Chart control found in the window editor or report editor.
<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 corresponds 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.
Component : wd240grf.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment