fixed grabbing data in spectrum_graph.js