rendered GP chart using JSON, needs refinement