Forum Discussion
JayeeDee
10 months agoFrequent Visitor
How to unalign points?
Can someone help me figure out how to make it so the points for 'City 3' are not aligned on the same x-axis? Each occurs in its own row and has a Year or YearId column that I'd like to use to solve i...
- 10 months ago
Make the year the x axis and the city the legend.
Note: since year is temporal you could now even reconsider using a line chart, a stacked line chart, or a ribbon chart.
JayeeDee
10 months agoFrequent Visitor
What would you recommend for my use case?
lbendlin
Super User
10 months agoI would recommend a column chart.
- JayeeDee10 months agoFrequent Visitor
Which one is column? Or are you referring to power bi types?
- lbendlin10 months ago
Super User
"mark": {"type": "bar"},"encoding": {"y": {"field": "Level","type": "quantitative"},"x": {"field": "City","type": "nominal"}}- JayeeDee10 months agoFrequent Visitor
The bar for City 3 still stacks them altogether. Can you suggest how to solve it with a mark of type bar?