Home | Sign in | English EN

  • Spacing
  • Effect due to spacing
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Indicates the spacing between each data category in:
  • a Column chart,
  • Versions 17 and later
    a Funnel chart,
    New in version 17
    a Funnel chart,
    a Funnel chart,
  • a Minimum/Maximum stock 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.
Versions 23 and later
PHP This function is now available for PHP sites.
New in version 23
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
// Space between two data categories in the "CHART_MyChart" column chart: 15 pixels
<Chart control>.ColumnSpacing(<Spacing>)
<Chart control>: Control name
Name of the Chart control to use (found in the window editor, page editor or report editor).
PHP Only the interactive Chart controls are available.
<Spacing>: Integer
Spacing (in pixels) between two categories.


If the destination is large enough, the spacing is expressed as follows:
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 the charts other than:
    • Column charts,
    • Versions 17 and later
      Funnel charts,
      New in version 17
      Funnel charts,
      Funnel charts,
    • Minimum/Maximum Stock charts.
  • The modifications performed by <Chart>.ColumnSpacing will be taken into account during the next call to <Chart>.Draw.
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: wd260grf.dll
Minimum version required
  • Version 23
This page is also available for…
Click [Add] to post a comment