UI-Research / college-affordability.urban.org

0 stars 0 forks source link

For charts with only a single bar, axis.x.categories must be an array #159

Closed bchartoff closed 7 years ago

bchartoff commented 7 years ago

See: pages/financial-aid/financial-need/json/04_004*.json 04_0151 pages/financial-aid/state/json/04_015*.json

bchartoff commented 7 years ago

@vivhou This is an issue with the JSONs.

axis.x.categories must be an array not a string. This is only an issue if there is a single category, which the R script is treating as a string instead of an array.

See commit here https://github.com/UI-Research/college-affordability.urban.org/commit/7eefbbcf7538434c1b53d936ee650fad055e431e#diff-349fc2eb4754fea56abfd128408b3bbfR1

For example of how to fix JSON

bchartoff commented 7 years ago

Partial list includes:

pages/financial-aid/state/json/04_0151.json (fixed by hand, but needs fix in R script) pages/financial-aid/state/json/04_0161.json pages/financial-aid/financial-need/json/04_0041.json