If you want to use flexbox to create a simple graph visualization, all you need to do is to set align-items
of the container to flex-end
and define a height
for each bar. flex-end
will make sure that the bars are anchored to the bottom of the graph.
demo
- HTML, CSS
- Includes: index.html and CSS file