Wrote a json selector for extracting fields and improved stacked bar graph