WIP: calc the data required by the chart
WIP: more tries to put chart to work