Add graph interface to data.js