generate views for charts