I am trying to create a very simple - but ultimately super practical example - of tapping a bar segment inside a Vega visualization and being able to go to the appropriate /discover
url for the data.
When I try to do the above I get the following error, observing the networking logs - no network request is event made:
Uncaught Error: External URLs are not enabled. Add vega.enableExternalUrls: true to kibana.yml (https://mydomain.com/searchserv-dashboard/index-name/bundles/commons.bundle.js:3)
Version: 6.8.3
Build: 20430
Error: Uncaught Error: External URLs are not enabled. Add vega.enableExternalUrls: true to kibana.yml (https://mydomain.com/searchserv-dashboard/index-name/bundles/commons.bundle.js:3)
at window.onerror (https://mydomain.com/searchserv-dashboard/index-name/bundles/commons.bundle.js:3:967594)
I just want to be able to link to the Discover pane from this visualization, this is not an external url at all, but a relative one.
Here is the json for the mark
field I am using:
{
"marks":[
{
"name":"Funnel Marks",
"type":"rect",
"style":"bar",
"from":{
"data":"Custom Data"
},
"encode":{
"enter":{
"x":{
"scale":"xscale",
"field":"my_field_property"
},
"width":{
"scale":"xscale",
"band":1
},
"y":{
"type":"quantitative",
"scale":"yscale",
"field":"total_counts"
},
"y2":{
"scale":"yscale",
"value":0
}
},
"update":{
"cursor":{
"value":"pointer"
},
"href":{
"value":"/discover/my/relative/url"
},
"fill":{
"value":"steelblue"
}
},
"hover":{
"fill":{
"value":"lightblue"
}
}
}
}
]
}
Why is this not working as intended?
As I understand this, this makes Vega visualizations almost impractical as I can't drill down into the data, and this is also running on Elastic Cloud.