ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • Spacing
  • Effect due to spacing
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
Indicates the spacing between each data category in:
  • a Column chart.
  • a Funnel chart.
  • a Minimum/Maximum stock chart.
  • New in version 2024
    a Waffle chart.
Examples of bar charts with space in-between categories:
Spacing between categories
Reminder: The space between two data categories is equal to 10 pixels by default.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
Example
// Space between two data categories in the "MyChart" column chart: 20 pixels
grColumnSpacing("MyChart", 20)
// Space between two data categories in the "CHART_MyChart" column chart: 15 pixels
grColumnSpacing(CHART_MyChart, 15)
Syntax
grColumnSpacing(<Chart name> , <Spacing>)
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:
  • the chart name defined through programming with grCreate.
  • the name of the Chart control in the window, page or report editor.
Android Only Chart controls are available.
PHP Only the interactive Chart controls are available.
<Spacing>: Integer
Spacing (in pixels) between two categories.
Remarks

Spacing

If the destination is large enough, the spacing is expressed as follows:
Spacing
If the destination does not allow you to display the spacing, the spacing is set to 0: therefore, the bars are "stuck" together.

Effect due to spacing

  • The spacing between two data categories has no effect on charts other than:
    • Column charts.
    • Funnel charts.
    • Minimum/Maximum Stock charts.
    • New in version 2024
      Waffle charts.
  • Any changes made with grColumnSpacing will take effect the next time grDraw is called.
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.
Component: wd290grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/20/2023

Send a report | Local help