We are getting a javascript error each time we try to drill down in one of our visualizations.
We are using the link
property to display a specific visualization when we drill down.
Once we are on the drill down dialog, we try to drill down again into one of the measures and this is when we get the error.
Error: May not call '_internalUpdate' after a visualization has been destroyed.
at i.r._internalUpdate (https://static-a.lookercdn.com/5.22.15/webpack/main-4a349f5eb2942a954f7e.chunk.js:1:397773)
at e.value (https://static-a.lookercdn.com/5.22.15/webpack/main-4a349f5eb2942a954f7e.chunk.js:50:367052)
at e.value (https://static-a.lookercdn.com/5.22.15/webpack/main-4a349f5eb2942a954f7e.chunk.js:50:366339)
Is there a way to force update the modal dialog to draw a new visualization after the first drill down to avoid this issue? We think there might be a query parameter that we can send the visualization that forces a reload, but we don’t know which one.
And here are the definitions for the measures that we are trying to drill down to
measure: count {
type: count
drill_fields: [area, is_compliant_count, is_non_compliant_count ]
link: {label: "Group by Area" url: "
{% assign filter_config = '{\"locations.name\":[{\"type\":\"=\",\"values\":[],\"id\":0,\"error\":false}],\"submissions.submission_date\":[{\"type\":\"on\",\"values\":[],\"id\":1,\"error\":false}]}' %}
{% assign vis_config = '
{\"stacking\":\"\" ,
\"colors\":[\"#5245ed\" ,
\"#ed6168\" ,
\"#1ea8df\" ,
\"#353b49\" ,
\"#49cec1\" ,
\"#b3a0dd\" ,
\"#db7f2a\" ,
\"#706080\" ,
\"#a2dcf3\" ,
\"#776fdf\" ,
\"#e9b404\" ,
\"#635189\"] ,
\"show_value_labels\":false ,
\"label_density\":25 ,
\"legend_position\":\"center\" ,
\"hide_legend\":false ,
\"x_axis_gridlines\":false ,
\"y_axis_gridlines\":true ,
\"show_view_names\":true ,
\"point_style\":\"circle\" ,
\"series_colors\":{} ,
\"series_labels\":{\"questions.is_compliant_count\":\"Compliant\" ,
\"questions.is_non_compliant_count\":\"Non Compliant\"} ,
\"series_types\":{} ,
\"limit_displayed_rows\":false ,
\"limit_displayed_rows_values\":{\"show_hide\":\"hide\" ,
\"first_last\":\"first\" ,
\"num_rows\":0} ,
\"y_axis_combined\":true ,
\"show_y_axis_labels\":true ,
\"show_y_axis_ticks\":true ,
\"y_axis_tick_density\":\"default\" ,
\"y_axis_tick_density_custom\":5 ,
\"show_x_axis_label\":true ,
\"show_x_axis_ticks\":true ,
\"x_axis_scale\":\"auto\" ,
\"y_axis_scale_mode\":\"linear\" ,
\"x_axis_reversed\":false ,
\"y_axis_reversed\":false ,
\"plot_size_by_field\":false ,
\"ordering\":\"none\" ,
\"show_null_labels\":false ,
\"show_totals_labels\":false ,
\"show_silhouette\":false ,
\"totals_color\":\"#808080\" ,
\"type\":\"looker_bar\"}' %}
{{ link }}&vis_config={{ vis_config | encode_uri }}&column_limit=50&limit=500&sorts=questions.is_compliant_count+desc&filter_config={{ filter_config | encode_uri }}"}
}
measure: is_compliant_count {
type: count
filters: {
field: isCompliant
value: "yes"
}
}
measure: is_non_compliant_count {
type: count
filters: {
field: isCompliant
value: "no"
}
drill_fields: [label, is_non_compliant_count ]
link: {
label: "Group by Task"
url: "
{% assign filter_config = '{\"questions.area\":[{\"type\":\"=\",\"values\":[],\"id\":0,\"error\":false}],\"submissions.submission_date\":[{\"type\":\"on\",\"values\":[],\"id\":1,\"error\":false}],\"locations.name\":[{\"type\":\"=\",\"values\":[],\"id\":2,\"error\":false}]}' %}
{% assign vis_config = '
{\"stacking\":\"\" ,
\"colors\":[\"#F16358\" ,
\"#E0635E\" ,
\"#D06464\" ,
\"#BF656B\" ,
\"#AF6671\" ,
\"#9F6777\" ,
\"#8E687E\" ,
\"#7E6984\" ,
\"#6E6A8A\" ,
\"#5D6B91\" ,
\"#4D6C97\" ,
\"#3D6D9E\"] ,
\"show_value_labels\":false ,
\"label_density\":25 ,
\"legend_position\":\"center\" ,
\"hide_legend\":false ,
\"x_axis_gridlines\":false ,
\"y_axis_gridlines\":true ,
\"show_view_names\":true ,
\"point_style\":\"none\" ,
\"series_colors\":{} ,
\"series_labels\":{\"questions.is_non_compliant_count\":\"Non Compliant\"} ,
\"series_types\":{} ,
\"limit_displayed_rows\":false ,
\"y_axes\":[{\"label\":\"\" ,
\"orientation\":\"bottom\" ,
\"series\":[{\"id\":\"questions.is_non_compliant_count\" ,
\"name\":\"Non+Compliant\" ,
\"axisId\":\"questions.is_non_compliant_count\"}] ,
\"showLabels\":true ,
\"showValues\":true ,
\"unpinAxis\":false ,
\"tickDensity\":\"default\" ,
\"tickDensityCustom\":5 ,
\"type\":\"linear\"}] ,
\"y_axis_combined\":true ,
\"show_y_axis_labels\":true ,
\"show_y_axis_ticks\":true ,
\"y_axis_tick_density\":\"default\" ,
\"y_axis_tick_density_custom\":5 ,
\"show_x_axis_label\":true ,
\"show_x_axis_ticks\":true ,
\"x_axis_scale\":\"auto\" ,
\"y_axis_scale_mode\":\"linear\" ,
\"x_axis_reversed\":false ,
\"y_axis_reversed\":false ,
\"plot_size_by_field\":false ,
\"ordering\":\"none\" ,
\"show_null_labels\":false ,
\"show_totals_labels\":false ,
\"show_silhouette\":false ,
\"totals_color\":\"#808080\" ,
\"type\":\"looker_bar\"}' %}
{{ link }}&vis_config={{ vis_config | encode_uri }}&column_limit=50&limit=500&sorts=questions.is_non_compliant_count+desc&filter_config={{ filter_config | encode_uri }}"
}
}