Add dashboard on a docType

Hy everyone like the title said i want to add a dashboard in a doctype i use a code heatmap is show but the links doesn’t show this is my code :
from future import unicode_literals
from frappe import _
import frappe
def get_data():
return {
‘heatmap’: True,
‘heatmap_message’: _(‘This is based on the Time Sheets created against this project’),
‘fieldname’: ‘commande_achat’,
‘transactions’:[
{
‘label’: _(‘Project’),

			'items': ['Bon Commande']
		}
	],

}

thnx for any help.