PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Overview of the Chart control
  • Creating a Chart control
  • Automatic downsampling
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
Overview of the Chart control
The Chart control is used to display a chart in windows, pages and reports.
The types of charts available are as follows:
For more information on each type of chart, see the corresponding help page.
Versions 17 and later
iPhone/iPad This type of control is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This type of control is now available for iPhone/iPad applications.
iPhone/iPad This type of control is now available for iPhone/iPad applications.
Versions 18 and later
iPhone/iPad This type of control is now available for reports in iPhone/iPad applications.
Universal Windows 10 App This type of control is now available for applications in Windows Store apps mode.
New in version 18
iPhone/iPad This type of control is now available for reports in iPhone/iPad applications.
Universal Windows 10 App This type of control is now available for applications in Windows Store apps mode.
iPhone/iPad This type of control is now available for reports in iPhone/iPad applications.
Universal Windows 10 App This type of control is now available for applications in Windows Store apps mode.
Versions 19 and later
Android This type of control is now available for Android applications.
New in version 19
Android This type of control is now available for Android applications.
Android This type of control is now available for Android applications.
Versions 21 and later
Universal Windows 10 App This type of control is now available in Universal Windows 10 App mode (in windows and reports).
New in version 21
Universal Windows 10 App This type of control is now available in Universal Windows 10 App mode (in windows and reports).
Universal Windows 10 App This type of control is now available in Universal Windows 10 App mode (in windows and reports).
Creating a Chart control
To create a Chart control:
  • in a window or page:
    1. On the "Creation" tab, in the "Graphic controls" group, click "Chart".
    2. Click where the control will be created in the window or page. The Chart control creation wizard starts automatically.
      Versions 19 and later
      Tip: You also have the ability to create a Chart control directly by choosing its type: simply expand "Chart" on the "Creation" pane. The list of available types of charts is displayed. Click the type of chart you want to create.
      New in version 19
      Tip: You also have the ability to create a Chart control directly by choosing its type: simply expand "Chart" on the "Creation" pane. The list of available types of charts is displayed. Click the type of chart you want to create.
      Tip: You also have the ability to create a Chart control directly by choosing its type: simply expand "Chart" on the "Creation" pane. The list of available types of charts is displayed. Click the type of chart you want to create.
  • in a report:
    1. On the "Creation" tab, in the "Data" group, click "Chart".
    2. Click where the control will be created in the report. The Chart control creation wizard starts automatically.
Versions 20 and later
Remark: The dimensions of the control are optimized to take up the available space at the specified position. If the control size does not suit you, press Ctrl + Z: the control size will be reset to default.
New in version 20
Remark: The dimensions of the control are optimized to take up the available space at the specified position. If the control size does not suit you, press Ctrl + Z: the control size will be reset to default.
Remark: The dimensions of the control are optimized to take up the available space at the specified position. If the control size does not suit you, press Ctrl + Z: the control size will be reset to default.
To view the characteristics of the control, select "Description" in the context menu. For more details, see Chart control: Characteristics in the editor.
Versions 23 and later

Automatic downsampling

When a chart contains a large amount of data and becomes unreadable, a downsampling process is automatically used.
At the top: a chart without downsampling. At the bottom: the same chart with downsampling
At the top: a chart without downsampling. At the bottom: the same chart with downsampling
Remark: the downsampling method is automatically used. It can be disabled by grParameter.
New in version 23

Automatic downsampling

When a chart contains a large amount of data and becomes unreadable, a downsampling process is automatically used.
At the top: a chart without downsampling. At the bottom: the same chart with downsampling
At the top: a chart without downsampling. At the bottom: the same chart with downsampling
Remark: the downsampling method is automatically used. It can be disabled by grParameter.

Automatic downsampling

When a chart contains a large amount of data and becomes unreadable, a downsampling process is automatically used.
At the top: a chart without downsampling. At the bottom: the same chart with downsampling
At the top: a chart without downsampling. At the bottom: the same chart with downsampling
Remark: the downsampling method is automatically used. It can be disabled by grParameter.
Related Examples:
WD Chart Training (WINDEV): WD Chart
[ + ] This example presents the different uses of the Chart control.
Different types of charts are presented:
- Pie
- Sunburst
- Line
- Scatter
- Column
- Area
- etc.

The main features presented here are the possibility to customize of charts from the code, as well as to fill the chart from an HFSQL data file, or in the editor.
WD Drawing on Chart Training (WINDEV): WD Drawing on Chart
[ + ] This example is based on an internal component used to draw elements on a chart control:
- Min/Max areas
- Various areas
- Flags
- Plots and trackers
...
The Chart control Unit examples (WINDEV): The Chart control
[ + ] Using the Chart control of WINDEV.
The chart control is used to directly edit the data that will be displayed in the chart.
This data can come from a table column, a list box, a WLanguage array. It can also be filled by programming.
The Chart control Unit examples (WINDEV Mobile): The Chart control
[ + ] Using the Chart control to display different types of charts:
- Pie (or pie chart)
- Line
- Column chart
- Area
The Chart control (click management) Unit examples (WINDEV): The Chart control (click management)
[ + ] Customizing the click on a Pie chart.
Here, the section clicked by the user is pulled out by the application.
To implement this behavior, all you have to do is use grInfoXY (to identify the section clicked) and grPiePullOut (to pull out the section).
WD Reports Training (WINDEV): WD Reports
[ + ] This example presents the different methods for creating a report:

- prints based on different data sources (queries, variables, ...)
- prints based on controls (Table, Spreadsheet, PVT, ...)
- printing composite reports
- specific prints (portrait/landscape, report with watermark, report with bar code, ...)
WM Click on Chart Cross-platform examples (WINDEV Mobile): WM Click on Chart
[ + ] The "WM Click on Chart" example proposes a solution for pulling out the sections of a Pie chart via a simple click.
This example includes a control template named "TPLC_PullOutChart". This control template is used to pull out the chart sections via a simple click.
To include this feature in another application, all you have to do is import the "TPLC_PullOutChart" template.
WD Loan Complete examples (WINDEV): WD Loan
[ + ] The power of WINDEV and the ease-of-use of WLanguage have allowed us to develop this application within a single day!

This example is used to simulate loans and to:
- calculate the amount of the monthly repayments from the amount borrowed
- calculate the amount that can be borrowed from a given monthly repayment
- calculate the income of an investment from a monthly payment

For each case, you have the ability to view the amortization table corresponding to your parameters.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment