-
[How can truncation of legend labels be prevented in the following code? It appears there is a fixed width for legends but I can't find a setting to change it. [ {
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"width": 900,
"height": 800,
"data": {
"values": [
{"category": "newspaper", "value": 4},
{"category": "television", "value": 6},
{"category": "radio", "value": 10},
{"category": "internet", "value": 3},
{"category": "books", "value": 7},
{"category": "other", "value": 8}
]
},
"encoding": {
"theta": {
"field": "value",
"type": "quantitative",
"stack": true
},
"color": {
"field": "category",
"type": "nominal",
"legend":{
"labelFontSize":30,
"symbolSize":2000,
"symbolType":"square",
"columns":1,
"titleLimit":2000,
"titleFontSize":40,
"offset":20
}
}
},
"layer": [
{
"mark": {
"type": "arc",
"outerRadius": 390
}
},
{
"mark": {
"type": "text",
"radius": 430,
"fontSize":46
},
"encoding": {
"text": {
"field": "value",
"type": "nominal"
}
}
}
],
"view": {"stroke": null}
}] |
Beta Was this translation helpful? Give feedback.
Answered by
domoritz
Jun 9, 2021
Replies: 1 comment 3 replies
-
I don't see truncation |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
domoritz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't see truncation