PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Spacing
  • Effect due to spacing
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
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 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 19 and later
Android This function is now available for Android applications.
New in version 19
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Space between two data categories in the "CHART_MyChart" column chart: 15 pixels
CHART_MyChart.ColumnSpacing(15)
Syntax
<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).
<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 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 educational example present different uses of the chart control.
The following charts are presented:
- Semi-circular
- Donut
- Pie
- Sunburst
- Line
- Scatter
- 3D Scatter
- Column
- Area
- Bubble
- Radar
- Funnel
- Surface
- Waterfall
- Composite

The main features presented in this example are the ability to customize the charts by programming as well as the method used to fill a chart from a HFSQL file or in the editor.
Component : wd240grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment