Hi there,
I had a posting, Color the Bars (59938 on 2 Aug) where the goal was to have the colors of bars in a chart depend on the data point’s values. This was for some teachers I had done a class for. So, for example, students with grades from 91-100 should have blue bars (for example), 81-90 would be green, 71-80 would be tan, and 70 and below would be red.
Only response that I got was from Hans Pottel (thanks) but that opened a few more questions. See the various postings on that thread.
However, something that Hans suggested made something tick in my head that actually provided a solution using other postings. It’s not elegant and not the best approach (in my opinion) but it does the job.
The original problem assumed that students’ names were column headings (or row headings) and their grades were directly below them in the same row. I’d still like to solve that problem. If anyone has a solution, that would be great and still appreciated.
What clicked in my head was converting the grades from 1 row to (using above) 4 rows – 1 for each range of grades. So each student only has 1 entry below his/her name corresponding to the row with the range in which the grade falls; the rest of that col is 0 or blank. All we have to do is get the grades from the original form (all in 1 row) to this form (actually not too hard). Now the chart wizard picks up the non 0 grades in the same range and picks the same color. Different range, different color.
We then applied another tip from the lounge. The bars were ‘aligned’ within each students’ name on the x axis depending on whch range they fell in (lowest range, to the left; highest range to the right). The 0 (or actually blank) grades were not visible. Playing with the gap width and overlap took care of things.
If anyone can solve the original problem as stated there, let me know. For now, this will have to do.
Fred