ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Chart control
  • Overview
  • Context menu: display options
  • Choice of graph type
  • Gridlines
  • Additional options
  • Show legend
  • Tooltip and crosshair
  • Save and print
  • Context menu: axis management
  • Orientation of axes
  • Enabling the zoom
  • Ordinate limit
  • Interval between marks
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
At runtime, the user can set the parameters of the displayed graph thanks to several functions offered by the popup menu.
This Context menu is divided into two sections, allowing you to configure:
Remark: You have the ability to configure this menu:
Context menu: display options
A chart is associated with a context menu by default (displayed via a right mouse click).
Thanks to the "Display" section of this Context menu, end-users can carry out a wide range of operations:
  • choice of graph type.
  • whether or not to display Gridlines.
  • smoothing, Gradient or animation options.
  • show legend
  • bubble and Crosshairs management.
  • Record graph
  • Printing the chart.
Let's take a closer look at a few options.

Choice of graph type

Use the Context menu to select the display mode best suited to the data you are viewing.: sector, curve, histogram, stock chart, etc..

Gridlines

The Context menu allows you to:
  • to display a vertical Gridlines,
  • to display a horizontal Gridlines,
  • display no Gridlines.

Additional options

The Context menu can also be used to smooth the various values, to use a color Gradient or to animate the Display..

Show legend

Use the Context menu to display or hide the graph legend and set its position..

Tooltip and crosshair

A bubble can be displayed when the mouse cursor hovers over a piece of data.. This tooltip contains the value and the caption of series and category. This tooltip can be customized by grTooltip.
The characteristics of this tooltip are as follows:
  • Immediate display for better visibility,
  • Tooltip border that use the color of the series. The association between the tooltip and the series is immediate.
  • Semi-transparent tooltip: the chart below is visible.
  • Arrow precisely pointing to the targeted point.
For more details, you can also activate the Crosshairs. The crosshair allows the user to precisely know the pointed value.
For more details, see Chart crosshair.

Save and print

The graph can be saved as an Image. The currently displayed graph (with all its characteristics) is saved in the selected directory and in the required format.
The graph is printed on the chosen printer. The chart will be printed in color on a color printer.
Context menu: axis management
The axis management options in the Chart context menu allow you to set the following parameters:
  • the orientation of axes.
  • zoom activation.
  • the ordinate limit.
  • the graduation pitch.

Orientation of axes

Axis orientation can be modified.
For example:

Enabling the zoom

The context menu of the chart is used to enable the zoom in the chart. You have the ability to enable:
  • the horizontal zoom only.
  • the vertical zoom only.
  • the vertical and horizontal zoom.
This zoom can also be enabled by default when displaying the chart.
When the zoom is enabled, the chart can be handled via one of the following methods:
  • Using vertical and horizontal scrollbars: you have the ability to specify the area to zoom by moving the different scrollbar boxes.
  • Pressing Ctrl + the mouse wheel: the area pointed by the mouse is automatically zoomed.
    The zoom wheel also operates when the Chart control is hovered (even if the control does not have focus).
  • Using the lasso of the mouse: the area selected by the mouse lasso is automatically zoomed. To stop the zoom, press the Esc key.
  • Pressing Ctrl + ('+' sign on the numeric keypad) and Ctrl - ('-' sign on the numeric keypad): the area found in the middle of the chart is automatically zoomed.
To return the graph to its original report state, simply press Ctrl + 0.
Remark: If the chart is associated with a background image, the background image is not zoomed.

Ordinate limit

It is possible to modify the limit values of the ordinates displayed in the graph (Curve or Column chart).. In particular, this feature can be used to avoid empty, unused areas in a graph and refocus its values..

Interval between marks

Use the graph Context menu to change the graduation step used in the graph.. Coupled with Gridlines or zoom display, this feature can be used to display specific data, for example.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/08/2024

Send a report | Local help