def plot(request, chartID='chart_ID', chart_type='line', chart_height=500):
    data = ChartData.check_valve_data()
chart = {'renderTo': chartID, 'type': chart_type, 'height': chart_height}
title = {'text': 'Check Valve Data'}
xAxis = {'title': {'text': 'Serial Number'}, 'categories': data[
    'serial numbers']}
yAxis = {'title': {'text': 'Data'}}
series = [{'name': 'Mass (kg)', 'data': data['mass']}, {'name':
    'Pressure Drop (psid)', 'data': data['pressure drop']}, {'name':
    'Cracking Pressure (psid)', 'data': data['cracking pressure']}]
return render(request, 'unit/data_plot.html', {'chartID': chartID, 'chart':
    chart, 'series': series, 'title': title, 'xAxis': xAxis, 'yAxis': yAxis})
Passing Django Database Queryset to Highcharts via JSON