bydlocode code that produces json from graph plot