cancel
Showing results for 
Search instead for 
Did you mean: 

chartGL not displaying data correctly when number of legend elements changes

jlucid
Contributor

Please see attached an example of this issue, just change the data source to another q process and press the "click" button a couple of times to reproduce.

 

Summary: I setup a chartGL line graph with the Color Enumeration set to the sym column of the table below, with the x and y axis set to the p and g columns, respectively. As I keep clicking the button to regenerate the chart, after a few clicks, the chart is no longer updating correctly.

 

For example, if you keep pressing the click button and at the same time check the table, .debug.res, on the q process, you will see that what is being displayed does not match the table. In particular, when n takes value 1, there should only be one sym in the legend list on the top of the chart, but  I am seeing seeing multiple still being displayed, probably from previous queries, so it is not fully refreshing the screen.

 

Please let me know if I am doing something wrong here or if this is an issue

Thanks

 

n:first 1+1?10;
.debug.res:([] sym:n?`2;p:n?20.0;g:n?20.0);
.debug.res
 
1 ACCEPTED SOLUTION

Kieran
New Contributor III
New Contributor III

We will add a fix to our next release to allow the "Force Reset" option on static queries.

 

In the meantime, to work around this 

1. switch to polling query

2. click on "Force reset"

3. switch back to static query

4. save and refresh - "Force Reset" will now be turned on in static queries 

Kieran_0-1692806031989.png

 

View solution in original post

3 REPLIES 3

jlucid
Contributor

If I replace the chartGL with a Pie chart I get the same problem, so its not a chartGL specific issue

Kieran
New Contributor III
New Contributor III

We will add a fix to our next release to allow the "Force Reset" option on static queries.

 

In the meantime, to work around this 

1. switch to polling query

2. click on "Force reset"

3. switch back to static query

4. save and refresh - "Force Reset" will now be turned on in static queries 

Kieran_0-1692806031989.png

 

Thanks Kieran, that did the trick, updating as expected now