Forum Discussion
JayeeDee
8 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...
- 7 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.
lbendlin
7 months agoSuper User
I would recommend a column chart.
JayeeDee
7 months agoFrequent Visitor
Which one is column? Or are you referring to power bi types?
- lbendlin7 months agoSuper User"mark": {"type": "bar"},"encoding": {"y": {"field": "Level","type": "quantitative"},"x": {"field": "City","type": "nominal"}}
- JayeeDee7 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?
- lbendlin7 months agoSuper User
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.