AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de gráficos
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Defines the number of levels to display in the time scale of a chart as well as the maximum level.
Note: This function can be used in conjunction with grTimeLevelMask to define a mask for one level of the graph's time scale..
Ejemplo
// 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, grtlMonth)
// Set the time scale to display several values per month
// but displaying only the months in the scale 
// (days are not displayed)
grTimeLevelMask(CHART_MyChart, grtlMonth, "Mmm")
grTimeLevelMax(CHART_MyChart, 1, grtlMonth)
Sintaxis
grTimeLevelMax(<Chart name> , <Number of levels> [, <Maximum level>])
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:
  • the name of the chart defined programmatically with grCreate.
  • the name of the Chart control in the window or page editor.
<Number of levels>: Integer
Maximum number of levels displayed in the chart.
<Maximum level>: Optional Integer constant
Maximum level to display:
grtlDayMaximum level displayed: days.
grtlHourMaximum level displayed: hours.
grtlMillisecondMaximum level displayed: milliseconds.
grtlMinuteMaximum level displayed: minutes.
grtlMonthMaximum level displayed: months.
grtlSecondMaximum level displayed: seconds.
grtlYearMaximum level displayed: years.
Observaciones
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:
    • Maximum number of levels to be displayed in the graph (default: 3).
    • The maximum level allowed for display (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 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.
Componente: wd300grf.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local