generate chart for main page as well