looker-open-source/components

Apply components to Looker custom viz explore UI

Closed this issue · 3 comments

Hello!

I'm looking to build some custom visualizations in Looker. I would like to apply components to organize chart options as the current set up is pretty limiting (see this old issue in the custom_visualizations repo: looker/custom_visualizations_v2#130) compared to the standard UI for native Looker charts. However -- and this may because I'm more of a data scientist than a FE SWE -- it's unclear to me whether components can be applied to custom visualizations in a Looker project or if they are only meant for external applications? If someone can advise, that would be fantastic.

Thanks!
Zoe

Hi @zmeers,
We don't have anything out of the box in Looker Components that would add more flexible options and layouts for custom visualizations. That being said, I don't think there is anything that would prevent you from using Looker Components in a custom vis bundle. Do you have a mockup of what you're trying to accomplish?

Thanks @dbchristopher. I have a menu of expandable toggles in the edit panel. I'm looking to override the boolean toggles with an accordian menu. It seems like this would be possible with the tree component. It's not a must-have for me, but I was just wondering if there happened to be an easy way to switch out the toggles for a tree or accordion layout.

Screen Shot 2022-07-08 at 11 02 26 am

Great, thanks for the additional context @zmeers! It would in theory be possible to build a UI like that with the Tree component. The bigger issue is that unfortunately we don't currently support overrides for that specific editing pane. I asked around a bit and was pointed to this documentation for other customization options though:

https://github.com/looker/custom_visualizations_v2/blob/master/docs/api_reference.md#presenting-configuration-ui