UI-Research / college-affordability.urban.org

0 stars 0 forks source link

Legend colors not appearing for manually inserted colors #176

Closed vivhou closed 7 years ago

vivhou commented 7 years ago

After manually adjusting the colors for the bars (to avoid the same color being repeated), the colors in the legend do not appear. The example below is from prices-and-expenses/tuition-and-fees, 03_0031.json through 03_0034.json: screen shot 2016-12-28 at 10 09 08 am

vivhou commented 7 years ago

only occurs for this graph for some reason

bchartoff commented 7 years ago

Yikes!! These colors are super not in urban style...we can chat about this one

vivhou commented 7 years ago

Yes let's do, there were several graphs where I had to manually change colors given the large number of categories and limited colors.

bchartoff commented 7 years ago

Color attribute should be a sequential array of colors, not an object. See commit ba81aa7538b15c77d5074e8102bb4b13de1329d9

image

Please make this same correction, @vivhou , for any other graphs where this issue comes up

bchartoff commented 7 years ago

My error, @vivhou , please keep data.colors as an object, not an array. No action required on your part.

Closed by 834ce1cdbb30bde2cac2476f66461f9f3936a0e2