ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Chart properties
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
SeriesColor (Property)
In french: CouleurSérie
The SeriesColor property is used to:
  • Get the color of a series in a chart.
  • Change the color of a series in a chart.
Remark: This property is equivalent to the grSeriesColor function.
Example
IF CHART_MyChart[2].SeriesColor = grColorAutomatic THEN
CHART_MyChart[2].SeriesColor = LightRed
END
Syntax

Getting the color of a series Hide the details

<Result> = <Series>.SeriesColor
<Result>: Integer or Integer constant
Color of the specified series. This color can correspond to:
  • the grColorAutomatic constant (if the color is defined automatically).
  • an RGB color (returned by RGB),
  • a preset color.
<Series>: Character string
Series whose color you want to get. Use the following notation: <Chart name>[<Series number>].

Changing the color of a series Hide the details

<Series>.SeriesColor = <New color>
<Series>: Character string
Series whose color you want to change. Use the following notation: <Chart name>[<Series number>].
<New color>: Integer or Integer constant
Color of the specified series. This color can correspond to:
  • the grColorAutomatic constant (if the color must be defined automatically).
  • an RGB color (returned by RGB),
  • a preset color.
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/14/2024

Send a report | Local help