Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Defines the number of levels to display in the time scale of a chart as well as the maximum level.
Remark: This function can be used with the <Chart>.TimeLevelMask function which allows to define the mask of a level of the graph time scale.
// Fixe le nombre de niveaux maximum à afficher à 2
// Interdit l'affichage des années pour GRF_MonGraphe
GRF_MonGraphe.NiveauTemporelMax(3, grtlMonth)
// Définition de l'échelle temporelle pour afficher plusieurs valeur par mois
// mais en affichant uniquement les mois dans l'échelle
// (les jours ne sont pas affichés)
GRF_MonGraphe.NiveauTemporelMasque(grtlMonth, "Mmm")
<Chart control>.TimeLevelMax(<Number of levels> [, <Maximum level>])
<Chart control>: Control name
Name of the Chart control to use (found in the window editor or the page editor).
<Number of levels>: entier
Maximum number of levels displayed in the chart.
<Maximum level>: Optional Integer constant
Maximum level to display:
grtlYearMaximum level displayed: the years.
grtlHourMaximum level displayed: the hours.
grtlDayMaximum level displayed: the days.
grtlMillisecondMaximum level displayed: the milliseconds.
grtlMinuteMaximum level displayed: the minutes.
grtlMonthMaximum level displayed: the months.
grtlSecondMaximum level displayed: the seconds.
When displaying a time scale on DateTime data, the chart designer draws several levels corresponding to the different time units displayed.
  • The minimum level to display is defined according to the range of data.
  • The maximum level is defined by using two parameters:
    • The maximum number of levels to display in the chart (by default: 3).
    • The maximum level allowed for the display (by default: year).
<Chart>.TimeLevelMax is used to modify these parameters. This allows you not to overload the chart or not to display some levels without relevance for the data displayed.
For example:
  • to avoid displaying the years, all you have to do is set the maximum level with the grtlMonth constant.
  • to avoid displaying more than two time levels in the chart, all you have to do is set the <Number of Levels> parameter to 2.
Component: wd270grf.dll
Minimum version required
  • Version 23
This page is also available for…
Click [Add] to post a comment