Partial graphs for javascript