admin管理员组文章数量:1431426
I am trying to create a faceted donut chart in PowerBI using Deneb, and Vega-lite. However, when I try to add faceting to my existing chart, I get an error saying that "facet" or "column" are not allowed in the "encoding" section.
I tried using the code shown on the Vega-lite github pie and donut charts example page here to create multiples of the donut chart using "column". I also tried using "facet". However, both resulted in an error that reads "Property column [facet] is not allowed."
This is under the Spec section of Deneb. My code:
{
"data": {
"name": "dataset"
},
"layer": [
{
"description": "Outer donut for showing the KPI % measure",
"mark": {
"type": "arc",
"radius": 98,
"radius2": 70
},
"encoding": {
"column": {
"field": "Location_ID"
},
"theta": {
"field": "Result_umol-L",
"type": "quantitative",
"aggregate": "sum"
},
"color": {
"field": "Data Color Fixed",
"type": "nominal",
"scale": null
}
}
}
{
"description": "KPI text inside the donut",
"mark": {
"type": "text",
"yOffset": 7,
"baseline": "bottom",
"font": "DIN",
"fontSize": 20,
"fontWeight": "bold",
"color": "#000000"
},
"encoding": {
"text": {
"aggregate": "sum",
"field": "Result",
"type": "quantitative",
"format": "0.0 ug/L",
"formatType": "pbiFormat"
}
}
},
{
"description": "Location text inside donut",
"mark": {
"type": "text",
"yOffset": 7,
"baseline": "top",
"font": "DIN",
"fontSize": 20,
"fontWeight": "bold",
"color": "#000000"
},
"encoding": {
"text": {
"aggregate": "min",
"field": "Location_ID",
"type": "nominal",
"formatType": "pbiFormat"
}
}
}
]
}
本文标签:
版权声明:本文标题:"column" property not allowed when trying to create facet chart with arc in Vega-lite (Deneb) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745584918a2664842.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论