Commit 9bf422c3ee7131e5de8d291db688b9dc409b55de

Authored by Felipe Bormann
1 parent d6c65ab8

added instant loading for weekly chart

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
dashboards/static/dashboards/js/behavior.js
... ... @@ -30,6 +30,13 @@ $(document).ready(function(){
30 30 charts.month_heatmap(data, '#right-chart-body');
31 31 });
32 32  
  33 + //first call to weekly chart
  34 + var today_date = new Date();
  35 + var date = (today_date.getMonth() + 1) + '/' + today_date.getDate() + '/' + today_date.getFullYear();
  36 + $.get('/analytics/get_days_of_the_week_log', {date: date}).done(function(data){
  37 + charts.month_heatmap(data, '#bottom-right-chart-body', '#weekly-chart');
  38 + });
  39 +
33 40  
34 41  
35 42 });
... ...