title: something wrong in presenting highcharts using django
body: <p>I was stuck in passing dict's data to highchart using django</p>
  
  <p>here's my views.py code. My thought is trying to pass the database's data to dictionary <code>data</code> , then pass its to <code>user_chart.html's highchairs</code> </p>
  
  <pre><code>def user_chart(request):
  
      user_data = User_Data.objects.filter(user=request.user.username)
      data = {'words':[], 'click_times':[]}
      for i in user_data:
          data['words'].append(i.word)
          data['click_times'].append(i.click_times)
  
      xAxis = {"title": {"text": 'ss'}, 'categories': data['words']}
      yAxis = {"title": {'text': 'fdfd'}}
      series = [
          {"name": 'dfdf', "data": data['click_times']}
      ]
      content = {'xAxis': xAxis, 'yAxis': yAxis, 'series': series}
      return render(request, 'yigu/user_chart.html', content)
  </code></pre>
  
  <p>user_chart.html's code. I want to achieve a goal that highchart receives the data then present its as chart.</p>
  
  <pre><code>{% extends 'yigu/base_charts.html' %}
  
  {% block body_block %}
  
  &lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md-1"&gt;&lt;/div&gt;
      &lt;div class="col-md-1"&gt;&lt;/div&gt;
      &lt;div class="col-md-1"&gt;&lt;/div&gt;
      &lt;div class="col-md-1"&gt;
        &lt;div id="chart1" style="width:450px"&gt;
            &amp;nbsp;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-md-4"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;script&gt;
    var xAxis = {{ xAxis|safe }}
    var yAxis = {{ yAxis|safe }}
    var series = {{ series|safe }}
  &lt;/script&gt;
  &lt;script&gt;
  
  $(document).ready(function(){
  
      $("#chart1").highcharts({
              chart: {
            type: 'column'
        },
        title: {
            text: '搜索频率'
        },
        xAxis: xAxis,
        yAxis: yAxis,
        series: series
    });
  });
  &lt;/script&gt;
  {% endblock %}
  </code></pre>
  
  <p>But i just got the blank response, the chart didn't show up. Anyone could give me a hand?</p>