Scatter plot

The DailyWeather database has data by month, day, city and temperature. In this example we plot a scatter plot of temperature of the city of Boston w.r.t month.

Points to note:

  • Notice that the data is filtered naturally using filter method in django.


ds = DataPool(
        [{'options': {
            'source': DailyWeather.objects.filter(city="Boston")},
          'terms': [

cht = Chart(
        datasource = ds, 
        series_options = 
              'type': 'scatter'},
              'month': [
        chart_options = 
          {'title': {
               'text': 'Boston weather scatter plot'},
           'xAxis': {
                'title': {
                   'text': 'Month'}}})