ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • Spacing
  • Effect due to spacing
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Indicates the spacing between each data category in:
  • a Column chart.
  • a Funnel chart.
  • a Minimum/Maximum stock chart.
  • a Waffle chart.
Examples of column charts with space between categories:
Spacing between categories
Reminder By default, the space between two data categories is 10 pixels.
Linux Caution: In Linux, this function requires a specific configuration. For more details, see The charts.
Example
// Espace entre deux catégories de données dans l'histogramme "GRF_MonGraphe" : 15 pixels
GRF_MonGraphe.HistoEspacement(15)
Syntax
<Chart control>.ColumnSpacing(<Spacing>)
<Chart control>: Control name
Name of the Chart control to use (in the window, page 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 spacing to be displayed, this is reduced to 0: the bars are therefore "glued" 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.
    • Waffle charts.
  • Any changes made with <Chart>.ColumnSpacing will take effect the next time <Chart>.Draw 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: wd300grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/26/2024

Send a report | Local help