I'm having issues with visualizations auto scaling in a dashboard when using Vega visualizations.
The issue occurs when using multiple the multi column functionality in Vega. The output of the Vega script is 2 plots but when I try to view the visualization on the dashboard only the first plot is shown immediately with the other having to be scrolled to. I'm looking to have all the plots show without having to scroll through them. Thanks
Target Visualization:
Current Dashboard Visualization: (Don't Mind the Color Assignments)
Vega Script
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {
"values": [
{
"key" : "224",
"doc_count" : 1,
"location" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [
{
"key" : "NY",
"doc_count" : 1
}
]
}
},
{
"key" : "225",
"doc_count" : 2,
"location" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [
{
"key" : "NY",
"doc_count" : 1
},
{
"key" : "Germany",
"doc_count" : 1
}
]
}
}
]
},
"transform": [
{"flatten": ["location.buckets"],"as": ["test"]}
],
"mark": "bar",
"encoding": {
"column":{
"field":"test.key",
"type":"ordinal",
"spacing":20
},
"x": {
"field": "key",
"type": "nominal",
"title": "Target ID"
},
"y": {
"aggregate": "count",
"type": "quantitative",
"title": "Locations Count",
"field": "test.doc_count"
},
"color": {
"field": "key",
"type": "nominal"
}
}
}