Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Is it possible to make a trellis of a trellis in Deneb? To help illustrate, I'll use the movie dataset as a sample along with this code. I get a warning in Deneb though a visual does render. In the visual, I have big gaps between Major Genres that may represent missing Genre-CreateType combinations. Is there a way to remove these gaps and add in horizontal rules that extend left through the CreateType and Genre names? In short, are there options to clean up the look (the general layout; I'm not concerned about the jumble of overlapping titles since my actual dataset is much smaller)? Thanks! @dm-p @KerKol
{
"data": {"name": "dataset"},
"transform": [
{"calculate": "1", "as": "one"},
{
"stack": "one",
"groupby": [
"Major Genre",
"Creative Type",
"MPAA Rating"
],
"sort": [
{
"field": "barSort",
"order": "descending"
}
],
"as": ["ymin", "ymax"]
},
{
"calculate": "(datum.ymin + datum.ymax)/2",
"as": "ymid"
}
],
"facet": {
"row": {
"field": "Major Genre",
"title": null
}
},
"spec": {
"facet": {
"row": {
"field": "Creative Type",
"title": null
}
},
"spec": {
"width": 1000,
"layer": [
{
"mark": {"type": "bar"},
"encoding": {
"y": {
"field": "ymin",
"type": "quantitative",
"axis": {"title": null}
},
"y2": {"field": "ymax"}
}
},
{
"mark": {"type": "text"},
"encoding": {
"text": {"field": "Title"},
"y": {
"field": "ymid",
"type": "quantitative"
}
}
},
{
"mark": {
"type": "text",
"dy": -10
},
"encoding": {
"text": {
"field": "Title",
"type": "quantitative",
"aggregate": "count"
},
"y": {
"field": "Title",
"type": "quantitative",
"aggregate": "count"
}
}
}
],
"encoding": {
"x": {
"field": "MPAA Rating",
"type": "nominal",
"axis": {
"title": null,
"labelAngle": 0
}
}
}
}
}
}
Solved! Go to Solution.
I don't know if this helps?
Set spacing to 5, and view fill colour to grey
"spec": {
"facet": {
"row": {
"field": "Creative Type",
"title": null
}
}, "spacing" : 5,
"view": {"stroke": "black", "fill": "lightgrey"},
Proud to be a Super User!
I'm struggling to follow.
Are you able to draw what you want to achieve?
Proud to be a Super User!
I don't know if this helps?
Set spacing to 5, and view fill colour to grey
"spec": {
"facet": {
"row": {
"field": "Creative Type",
"title": null
}
}, "spacing" : 5,
"view": {"stroke": "black", "fill": "lightgrey"},
Proud to be a Super User!
@KerKol thanks for the tips on spacing and view, they definitely improve the look. I'm still getting large gaps between genres (this screenshot shows Adventure to Black Comedy), and my Deneb code still has warnings that seem to say spec should not contain facet ("spec": {"facet": ...}}). I came up with a workaround, and with the addition of spacing and view, I'm quite happy with the look even though I'm still intrigued about the use of multiple facets.
Hi @patBear ,
This is the relevant information I can find, I hope it helps you.
Declarative Visualization in Power BI | Deneb (deneb-viz.github.io)
Best Regards,
Jay
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
86 | |
84 | |
66 | |
62 | |
61 |
User | Count |
---|---|
197 | |
118 | |
108 | |
78 | |
69 |