In case of 1 and 2 you should use:
'<b>Amount</b>: ' + format(d.value) +'€';
instead of
'<b>Amount</b>: ' + format(d.import) +'€';
The hierarchy function creates a property named value to store the sum of children (in your case the sum of the import property).