refactored the options and width system in graph.js in canvas area.