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
Initializes the category color for a chart whose type is:
  • Pie,
  • Column,
  • Bubble chart,
  • Waterfall.
By default, the colors of categories (or the colors of sections, bubbles, ...) are selected according to a preset order among a set of 11 colors.
Linux Caution: In Linux, this function requires a specific configuration. For more details, see The charts.
Ejemplo
// Modifies the color of category 3 in the "CHART_Chart1" control
grCategoryColor(CHART_Chart1, 3, LightRed)
Sintaxis
grCategoryColor(<Chart name> , <Category number> , <Color>)
<Chart name>: Control name or character string
Name of the chart to be used. This name can correspond to:
  • the name of the chart defined programmatically with grCreate.
  • the name of the Chart control in the window, page or report editor.
Android Only Chart controls are available.
WEBDEV - Código NavegadorPHP Only interactive Chart controls are available.
<Category number>: Integer
Number of the category to modify.
For a Pie chart (constant grSector), this parameter corresponds to the index of the data in the series (the sector number). In this case, this function is equivalent to grSeriesColor.
For a column chart type (constant grHistogramme), this parameter corresponds to the category index: all bars in the category will be colored. The colors specified for the category series will be ignored.
For a Bubble chart (constant grGrapheBulle), this parameter corresponds to the category index: the bubble corresponding to the category will be colored.
<Color>: Integer or Integer constant
Color of specified category. This color can correspond to:
Observaciones
  • The colors defined by grCategoryColor will be taken into account during the next call to grDraw.
    WEBDEV - Código Navegador The defined colors are immediately taken into account. grDraw is not available.
  • To display the color gradients, use grGradient.
  • The colors specified by grCategoryColor are taken into account in the Waterfall charts. You also have the ability to define the colors of categories in the Waterfall charts with grWaterfallColor.
Clasificación Lógica de negocio / UI: Código neutro
Componente: wd300grf.dll
Versión mínima requerida
  • Versión 19
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