Creating bar charts

@PaulOB ,

You are incredible! :slight_smile:

Well, that is what I was reading last night, but the transparent threw me off… :wink:


You use rgba( ) a lot and that isn’t as familiar to me either.

The line looks gray to me - couldn’t you just do a #AAA as well?


Is there another - maybe a little more straight-forward - way to do this as well? (Just asking, since it seems like there should be an easier way to draw a grid.)


I think having “grid lines” is important for readability, so it’s more than cosmetic to many.


A-ha! Thanks for correcting me!


Okay, thanks.


A few more questions to wrap things up…

Q16.) In mobile, is there an easy way to make the numbers appear to the right of the horizontal bars - similar to how you placed the numbers on top of the vertical bars in the desktop view?

I tried adapting your use of position:relative and position: absolute but couldn’t get things to work.


This last question is NOT a criticism of your awesome bar-chart, but just my attempt to keep pushing the envelope as they say…

Q17.) With the code base you provided, how hard would it be to add a scale on the Y-axis of the desktop view?

In the example we have been working with, the percentages are a little easier to follow, but in most bar-charts you’d need an X-axis and a Y-axis (in desktop and mobile) to be able to understand WHAT you are looking at.

Yes, the chart title helps somewhat, but there will be times when the chart title does not help you understand the units on the bars (e.g. units, $$$, counts, people, etc).

(My next project is to create a purely horizontal bar-chart (for desktop and mobile), and I think it will be easier to have both an X-axis (with labels) and a Y-axis (with labels), but we shall see what I can figure out!


Thanks as always! :slight_smile: