ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • Types of charts
  • Special cases
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
Adds a value to a data in a chart.
Example
// Adds the value 7 to the second data of the first series
CHART_MyChart.IncreaseData(1, 2, 7)
Syntax
<Chart control>.IncrementData(<Series number> , <Index> , <Value>)
<Chart control>: Control name
Name of the Chart control to use (in the window, page or report editor).
<Series number>: Integer
Number of the series into which a value will be added. If the specified series does not exist, the chart designer creates as many series as necessary in order to get a consistent matrix. All the created series are initialized to 0.
<Index>: Integer
Data index in the series. If the specified data does not exist, the chart designer creates as many data as necessary in order to get a consistent data matrix. The created data is initialized to 0.
<Value>: Integer or real
Value that will be added to the specified data.
Remarks

Types of charts

For the Pie charts, only the data found in the first series will be used.

Special cases

  • The data defined by <Chart>.IncreaseData will be taken into account during the next call to <Chart>.Draw.
  • A series can contain up to 8000 elements.
  • A Pie chart cannot be drawn if the data found in the first series is null.
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