datagrok-ai / public

Public package repository for the Datagrok.ai platform
MIT License
41 stars 26 forks source link

#2771: Viewers: filter out legend with empty categories in the legend #2771

Open ahadzhanian opened 3 months ago

ahadzhanian commented 3 months ago

The pack and zoom option does not filter out the empty categories in the legend. The color legend could be displayed even if there is no data in it (no filter was applied).

dnillovna commented 3 months ago

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-15379

katerina-stepanova commented 2 weeks ago

1.19.2

Legend is not updated when column on plot axis was changed:

  1. Open SPGI
  2. Add two columns with formulae: col1: if(${Stereo Category}!='S_UNKN', null, ${Average Mass}) col2: if(${Stereo Category}=='S_UNKN', null, ${Average Mass})
  3. Add a scatter plot and set col1 as X axis
  4. Set colour by Stereo Category
  5. Change X axis to col2

Expected: legend categories should be updated according to the new data on the plot. Actual: legend was not updated and does not match current data on the plot:

image

Issue can be reproduced for all filter and zoom options.

dnillovna commented 2 weeks ago

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-16275