PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Re: [WD20] Chart zoom problem
Re: [WD20] Chart zoom problem
Iniciado por guest, 23,jun. 2016 14:37 - 2 respuestas
Publicado el 23,junio 2016 - 14:37
Hello,

Using Windev 20, bar chart, horizontal zoom

At runtime, clients will choose the data that's to be displayed as chart. I used a internal window which accepts the user input, query the db (hExecuteSQLQuery), add those data (graddData) and category label (grCategoryLabel) and draw the chart (grDraw) commands.

When the users changes his choice, I need to clear graph and redraw it again with the fresh data. To clear, I use (grDeleteSeries) and again add data with grAdddata & grCategoryLabel.

This works fine when I don't use the zoom facility. After using the zoom facility, if the input is modified, the graph is not reflecting the correct data.

Am I missing something in using the zoom facility ?
To clear a graph and start afresh, grDeleteSeries command is enough ?

Happiness Always
BKR Sivaprakash
Publicado el 30,junio 2016 - 14:20
Hello,

Any ways to refresh charts, once displayed ?
Publicado el 01,julio 2016 - 13:06
Hello,

Tried with

1. grDeleteAll
2. grDeleteSeries
3. grAutoRefreshSeries
4. grAutoRefreshCategoryLabel
5. grClearPict

After all these, I use

grDraw

to redraw the chart.

This problem occurs only when the horizontal zoom facility is used at runtime. Otherwise all works great.

This zoom facility looks great, which I prefer to use it.

Any thing that I miss...

Happiness Always
BKR Sivaprakash