PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Sunburst chart
  • Adding data into a chart
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
Adds a data to a Sunburst chart.
Example
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)
grDraw(CHART_Chart)
Syntax
grSunburstAddData(<Chart Name> , <Section Path> , <Value>)
<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 will be added into 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>"
This path defines the data position by specifying the different hierarchical levels of the data.
For example, if the path contains "Europe + TAB + France + TAB + Montpellier", the data will be added on the third level of the chart below the "Europe\France\Montpellier" categories.
<Value>: Real
Value of the added part. This value must not be negative.
Remarks

Sunburst chart

  • If a level does not contain its own value, its value will be calculated by adding the values of the sub-levels.
  • If the sum of data for the sub-levels of a specific level exceeds the value of this level, an error will be returned when drawing the chart.
  • The color of the sub-levels is calculated automatically: this color has the same shade as the color of the main level but paler.

Adding data into a chart

grAddData is used to add data into a chart (pie, column, ...)
Depending on the type of chart, specific functions can also be used to add data:
  • For the stock charts, we recommend that you use grStockAddData.
  • Versions 21 and later
    For the Heatmap charts, we recommend that you use grHMAddData.
    New in version 21
    For the Heatmap charts, we recommend that you use grHMAddData.
    For the Heatmap charts, we recommend that you use grHMAddData.
  • For the Scatter charts, we recommend that you use grScatterAddDataXY.
  • Versions 18 and later
    For the Surface charts, we recommend that you use grSurfaceAddData.
    New in version 18
    For the Surface charts, we recommend that you use grSurfaceAddData.
    For the Surface charts, we recommend that you use grSurfaceAddData.
Reminder: To add a value to a chart data, use grIncreaseData.
Components
WINDEVReports and Queries wd230grf.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment