I have 2 graphs and 2 problems

I am fighting since several hours without success...
For the graph on the left, I don't understand why I don't have the legend at the bottom.
See my code:
Code: Select all
//Graph Temp
blocks ['Graph Temp'] = {
title: 'Températures',
devices: [37, 81, 41, 38],
graphTypes: ['te'],
width: 12,
graph: ['line', 'line', 'line', 'line'],
custom: {
"Dernières heures": {
range: 'last hours',
data: {
Maison: 'd.te_37',
Moyenne: 'd.te_81',
AirPulsé: 'd.te_41',
Extèrieur: 'd.te_38',
}
},
"Dernières 24h":{
range: 'day',
data: {
Maison: 'd.te_37',
Moyenne: 'd.te_81',
AirPulsé: 'd.te_41',
Extèrieur: 'd.te_38',
}
},
"Mois":{
range: 'month',
data: {
Maison: 'd.te_37',
Moyenne: 'd.te_81',
AirPulsé: 'd.te_41',
Extèrieur: 'd.te_38',
}
},
legend: {
'te_37': 'Maison',
'te_81': 'Moyenne',
'te_41': 'Air Pulsé',
'te_38': 'Extèrieur'
}
}
}


Code: Select all
//Graph Elec
blocks ['Graph Elec'] = {
title: 'Consommation',
devices: [34, 157],
graph: ['bar', 'bar', 'bar'],
legend: true,
width: 12,
custom: {
"Dernières heures": {
range: 'last hours',
data: {
Linky: 'd.v_34',
Solaire: 'd.v_157',
},
},
"Dernières 24h":{
range: 'day',
data: {
Linky: 'd.v_34',
Solaire: 'd.v_157',
},
},
"Mois":{
range: 'month',
data: {
Linky: 'd.v_34',
Solaire: 'd.v_157',
},
},
},
}