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

[Question] - help needed for dynamically adding filters in Kepler though react code. #2481

Open
Finrootz opened this issue Dec 16, 2023 · 0 comments
Assignees

Comments

@Finrootz
Copy link

Hi Team,
I am trying to add a filter on the map through React code using addFilter and setFilterPlot actions. I want to dynamically set the map filter through a different component.

for this scenario, while I am dynamically adding filters for int or float columns. the filters in vizState object are expecting histogram and enlargedHistogram data, which need for displaying the histogram chart on the filter window. like below (added the filter using side panel)

image

while adding through code I am providing filter options like {value: [1, 6462], name: ["reviews_no"], type: "range", domain: [1, 6462], plotType: "histogram", fieldType: "integer", typeOptions: ["range"], fieldIdx: [6],}. but since I don't have histogram data, I am not able to provide it. and if I am not providing histogram data I am getting below result. where the filter is happening on the map, but we don't have the histogram chart.

image

how do I generate this histogram and enlargedHistogram data? are there any actions to simply create filters or utils to generate this kind of data from Kepler's end. Please guide me though this.

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

No branches or pull requests

2 participants