run d3.js in server and convert the svg graphic created by d3 into png file