[WIP] generate a graph image by chart.js