Closed vivhou closed 7 years ago
@vivhou Please include the full path to the json, not just the json file name. Thanks!
Also, these graphs (with single highlighted bar) will eventually need an update to the json to specify which bar to highlight, but I'm not sure what the format will be until I tackle this ticket
@vivhou ok, I added a field to highlight a single bar. At the top level of the JSONS, add a highlightIndex
field, like in https://github.com/UI-Research/college-affordability.urban.org/commit/f5abad33ce75cc18c2a831e81a502945aecb500c#diff-120f66341311a290aa8b05194eaec24f
Note that the bars are zero indexed, so in this example the US bar has the index 18
, not 19
thanks ben for your help on this! and oh yes the index makes sense 👍
Unable to highlight a single bar or data point in graph. In this case (04_0130.json), I'd like to highlight the U.S.: