Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Category Filters filtering the wrong or extra datapoints #9153

Open
1 of 7 tasks
Jon-fiddler opened this issue Sep 10, 2024 · 5 comments
Open
1 of 7 tasks

[Bug] Category Filters filtering the wrong or extra datapoints #9153

Jon-fiddler opened this issue Sep 10, 2024 · 5 comments
Labels

Comments

@Jon-fiddler
Copy link

Description

When using the datafilterextension and using category filters, i am experiencing some odd behavior when I go to filter out the datapoints with the first category option, it also filters out the next data point right after.

Example:
data => [{...dataStuff, field: 'a'}, {...dataStuff, field: 'b'}, {...dataStuff, field: 'c'}, {...dataStuff, field: 'd'}...]
if I go to apply a filter to show only 'b' and 'c' by removing the 'a' then both 'a' and 'b' are hidden.
If i replace the 2nd data with the 3rd, then both 'a' and 'c' will be hidden.
If i keep 'a', but filter out just 'b' or 'c', then it works fine.

CodeSandbox: https://codesandbox.io/p/sandbox/trusting-chatterjee-7dxgrv

Also seeing an oddity if I filter our everything except "d", then it shows only 'b' and 'c'? Maybe I am doing it wrong and if so please inform me how.

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS

Expected Behavior

When excluding the first data point in the list of data then the next datapoint with a different value would also not be filtered out.

Steps to Reproduce

CodeSandbox: https://codesandbox.io/p/sandbox/trusting-chatterjee-7dxgrv

Environment

  • Framework version:
  • Browser:
  • OS:

Logs

No response

@felixpalmer
Copy link
Collaborator

Working fine here:

Screen.Recording.2024-09-20.at.09.55.12.mov

Can you share more environment info?

@Jon-fiddler
Copy link
Author

Thats crazy! Here is what I see in the above codesandbox example:

Screen.Recording.2024-09-20.at.10.44.09.AM.mov

@felixpalmer
Copy link
Collaborator

Can you share more environment info?

☝️

@Jon-fiddler
Copy link
Author

Macbook Pro
Chip: Apple M2 Max
Memory: 32 GB
MacOS Sonoma 14.5

Graphics Feature Status

  • Canvas: Hardware accelerated
  • Canvas out-of-process rasterization: Enabled
  • Direct Rendering Display Compositor: Disabled
  • Compositing: Hardware accelerated
  • Multiple Raster Threads: Enabled
  • OpenGL: Enabled
  • Rasterization: Hardware accelerated
  • Raw Draw: Disabled
  • Skia Graphite: Disabled
  • Video Decode: Hardware accelerated
  • Video Encode: Hardware accelerated
  • WebGL: Hardware accelerated
  • WebGL2: Hardware accelerated
  • WebGPU: Hardware accelerated
  • WebNN: Disabled

WebGL Renderer: WebKit WebGL
WebGL Vendor: WebKit
WebGL Version: WebGL 1.0 (OpenGL ES 2.0 Chromium)
Shading Language Version: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)

What other information would you like?

@felixpalmer
Copy link
Collaborator

Environment

Framework version:
Browser:
OS:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants