Replies: 1 comment 1 reply
-
I cannot fiend any indication in the $schema that this is allowed. Further it would be nice if one could: or even better "encoding": { so one could indicate YYYYMMDD of the hours and minutes on th x-axis. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi community,
i want to generate the title of my chart from the data values. For example the title of this chart should be 'charttitle':
`{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": [
{"quater":"1", "sales":"100", "title":"charttitle"},
{"quater":"2", "sales":"200", "title":"charttitle"},
{"quater":"3", "sales":"300", "title":"charttitle"},
{"quater":"4", "sales":"400", "title":"charttitle"}
]
},
"mark": "bar",
"encoding": {
"x": {"field": "quater", "type":"ordinal"},
"y": {"field": "sales", "type": "quantitative"},
},
"title": ???
}`
How can I do that?
Beta Was this translation helpful? Give feedback.
All reactions