ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Changes the color of a section in a Sunburst chart.
Example
// Adds the data
CHART_Chart.SunburstAddData("Europe" + TAB + "France" + TAB + "Montpellier", 320000)
CHART_Chart.SunburstAddData("Europe" + TAB + "France" + TAB + "Paris", 789000)
CHART_Chart.SunburstAddData("Europe" + TAB + "France", 1109000)
CHART_Chart.SunburstAddData("Europe" + TAB + "Belgium", 900000)
CHART_Chart.SunburstAddData("Asia", 250000)
 
// Customizes the colors of the chart
CHART_Chart.SunburstSectionColor("Europe", RGB(106, 188, 227))
CHART_Chart.SunburstSectionColor("Asia", RGB(182, 115, 251))
 
CHART_Chart.Draw()
Syntax
<Chart control>.SunburstSectionColor(<Section path> , <Color>)
<Chart control>: Control name
Name of the Chart control to use (found in the window editor or in the 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 is of the form:
"<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: wd290grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help