PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

New WINDEV, WEBDEV, WINDEV Mobile 23 feature!
  • Details
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
Defines the number of levels to display in the time scale of a chart as well as the maximum level.
Example
// The maximum number ol fevels to display is set to 2
grTimeLevelMax(CHART_MyChart, 2)

// Forbids the display of years for CHART_MyChart
grTimeLevelMax(CHART_MyChart, 3, grntMonth)
Syntax
grTimeLevelMax(<Chart Name> , <Number of Levels> [, <Maximum Level>])
<Chart Name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by programming with grCreate.
  • the name of Chart control found in the window editor or page editor.
Android Only the Chart controls are available.
<Number of Levels>: Integer
Maximum number of levels displayed in the chart.
<Maximum Level>: Optional Integer constant
Maximum level to display:
grntYearMaximum level displayed: the years.
grntHourMaximum level displayed: the hours.
grntDayMaximum level displayed: the days.
grntMillisecondMaximum level displayed: the milliseconds.
grntMinuteMaximum level displayed: the minutes.
grntMonthMaximum level displayed: the months.
grntSecondMaximum level displayed: the seconds.
Remarks

Details

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 (3 by default).
    • The maximum level allowed for the display (by default: year).
grTimeLevelMax 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 grntMonth 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Linux wd230grf.so
Android wd230android.jar
Minimum required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment