Question

Custom Visualization API V2 not working in Dashboard

  • 30 November 2021
  • 0 replies
  • 74 views

I am using Custom Visualization V2 api to trigger a filter update from our custom visualization on user event(click and on change) on some element inside the visualization. The trigger method specified in the docs does not work. 

vis.trigger("filter", [{
field: "users.name", // the name of the field to filter
value: "%tommy%", // the "advanced syntax" for the filter
run: true, // whether to re-run the query with the new filter
}]);

But strangely the same code works when the same visualization is used in a look.

 

Can anyone help.

thanks

 https://github.com/looker/custom_visualizations_v2/blob/master/docs/api_reference.md


This topic has been closed for comments