def get_chart_data(score_list):
    """Construct data dictionary to create histogram with chart.js."""

    data_dict = {
        "labels": ["1", "2", "3", "4", "5"],
        "datasets": [{
            "label": "Buyer Ratings",
            "data": score_list,
            "backgroundColor": 'rgba(96, 4, 122, 0.6)',
            "hoverBackgroundColor": 'rgba(96, 4, 122, 1)',
            "borderWidth": 5
        }]
    }

    return data_dict