Moved chart configuration to charts.js