PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Enables or disables the display of color gradients in a chart.
Reminder: By default, the colors displayed in a chart are gradient colors.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 19 and later
Android This function is now available for Android applications.
New in version 19
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Chart control
// Disables the color gradients
CHART_MyChart.Gradient(False)
Syntax
<Chart control>.Gradient(<Gradient>)
<Chart control>: Control name
Name of the Chart control used (found in the window editor, page editor or report editor).
<Gradient>: Boolean
  • True to display the chart by using the color gradients,
  • False otherwise.
Remarks
  • The charts display the color gradients by default. The color gradients can be displayed by all the types of charts.
    Windows Mobile The color gradients are not available for the Pie charts.
  • The setting performed by <Chart>.Gradient will be taken into account during the next call to <Chart>.Draw.
  • During the print, the gradient mode will not be taken into account for the Pie charts.
Component : wd250grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Example
EDT_HD_Total = Val(fDriveInfo("C:", fdTotalSpace))/1000
EDT_HD_Livre = Val(fDriveInfo("C:", fdFreeSpace))/1000
EDT_HD_Usado = Val(Val(EDT_HD_Total) - Val(EDT_HD_Livre))

grTitle(CHART_HD, "Info HD C:")

IF grExist(CHART_HD) THEN
grDeleteSeries(CHART_HD)
grDeleteAll(CHART_HD)
grClearPict(CHART_HD)
END

// Display the values
grLabel(CHART_HD, grShowValue, True)

//Legendas
grSeriesLabel(CHART_HD,1,"Usado")
grSeriesLabel(CHART_HD,2,"Livre")
grCategoryLabel(CHART_HD,1,"Usado")
grCategoryLabel(CHART_HD,2,"Livre")

//Legenda no Roda pé
grLegend(CHART_HD,grAtBottom)

//Exibe porcentagem
grLabel(CHART_HD, grShowPercent, True)

//Cores
//Usado é Vermelho
grSeriesColor(CHART_HD, 1, GetColor(1,RGB(255,0,0)))
//Livre é Azul
grSeriesColor(CHART_HD, 2, GetColor(2,RGB(0,0,255)))

//Valor do HD Usado
grAddData(CHART_HD,1,Val(EDT_HD_Usado))
//Valor do HD Livre
grAddData(CHART_HD,1,Val(EDT_HD_Livre))
grDraw(CHART_HD)
Boller
26 Sep. 2020
Examples
https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/3602-exemplo-plotar-grafico/read.awp
Boller
26 Sep. 2020