|
Home → WINDEV 25 → Wx - Como interagir com o gráfico em sua aplicação Wx (Windev, Webdev e Windev Mobile) |
Wx - Como interagir com o gráfico em sua aplicação Wx (Windev, Webdev e Windev Mobile) |
Started by adrianoboller, Feb., 27 2016 2:57 AM - No answer |
| |
| | | |
|
| |
Registered member 3,659 messages Popularité : +175 (223 votes) |
|
Posted on February, 27 2016 - 2:57 AM |
Prezados,
Segue exemplo de como interagir com o gráfico em sua aplicação Wx (Windev, Webdev e Windev Mobile)
CODIGO PARA FAZER GRAFICO VIA CODIGO
Procedure ExibeGrafico()
grDeleteSeries(CHART_Chart)
grWaterfallColor(CHART_Chart, grTotal, RGB(83,129,179)) grWaterfallColor(CHART_Chart, grSubTotal, RGB(83,129,179)) grWaterfallColor(CHART_Chart, grPositive, RGB(115,179,83)) grWaterfallColor(CHART_Chart, grNegative, RGB(179,84,92))
grAddData(CHART_Chart, 1, 1, 298) grCategoryLabel(CHART_Chart, 1, "TO 2011")
grAddData(CHART_Chart, 1, 2, 420) grCategoryLabel(CHART_Chart, 2, "Profits"+CR+"products") grAddData(CHART_Chart, 1, 3, 210) grCategoryLabel(CHART_Chart, 3, "Profits"+CR+"services")
grAddData(CHART_Chart, 1, 4, -170) grCategoryLabel(CHART_Chart, 4, "Costs"+ CR +"fixed") grAddData(CHART_Chart, 1, 5, -140) grCategoryLabel(CHART_Chart, 5, "Costs" + CR + "variables")
grAddData(CHART_Chart, 1, 6, 0) grCategoryLabel(CHART_Chart, 6, "TO 2012") grWaterfallCategoryType(CHART_Chart, 6, grTotal)
gnNbCategories = 6
grDraw(CHART_Chart)
Modo de usar:
ExibeGrafico()
-- Adriano José Boller ______________________________________________ Consultor e Representante Oficial da PcSoft no Brasil +55 (41) 9949 1800 adrianoboller@gmail.com skype: adrianoboller http://wxinformatica.blogspot.com.br/ |
| |
| |
| | | |
|
| | | | |
| | |
|