Project

General

Profile

Bug #45587

dataviz, Type error at /stats/ object of type 'NoneType' has no len()

Added by Frédéric Péters 6 days ago. Updated 6 days ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
30 Jul 2020
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

File "/usr/lib/python3/dist-packages/combo/data/models.py" in render
  950.         context.update(self.get_cell_extra_context(context))

File "/usr/lib/python3/dist-packages/combo/apps/dataviz/models.py" in get_cell_extra_context
  168.                 chart = self.get_chart(raise_if_not_cached=not(context.get('synchronous')))

File "/usr/lib/python3/dist-packages/combo/apps/dataviz/models.py" in get_chart
  218.             if len(y_labels) != len(data) or not all([len(x) == len(x_labels) for x in data]):

File "/usr/lib/python3/dist-packages/combo/apps/dataviz/models.py" in <listcomp>
  218.             if len(y_labels) != len(data) or not all([len(x) == len(x_labels) for x in data]):

Exception Type: TypeError at /ajax/cell/37/dataviz_chartngcell-6/
Exception Value: object of type 'NoneType' has no len()

Avec en données brutes quelque chose qui devait être de cet ordre :

{
 "data":
  [null,null,null,110.428571,null,null,null],
 "axis": {
   "loop":["Avesnois","Cambrai","Douai","Flandres","Lille","Roubaix-Tourcoing","Valenciennes"]},
   "format":"1",
   "unit":"seconds",
   "measure":"duration" 
  }
}

Also available in: Atom PDF