began createGraph with Json input