{% extends 'baseSyntherm.html.twig' %}
{% block title %}
SOBRO XML
{% endblock %}
{% block body %}
<div class="form-row">
<div class="form-group col-md-8">
<br>
Ceci est la fiche n° {{ theFicheBatiment.id }}.<br>
{% if theFicheBatiment.theUser %}
Utilisateur :
<a href="{{ path('user_manage_fiche', {'id' : theFicheBatiment.theUser.id}) }}">
{{ theFicheBatiment.theUser }}
</a>
<br>
{% endif %}
MOA : {{ theFicheBatiment.moa }}<br>
Nom du Projet : {{ theFicheBatiment.nomDuProjet }}<br>
Ville : {{ theFicheBatiment.ville }}<br>
Département : {{ theFicheBatiment.departement }}<br>
Usage : {{ theFicheBatiment.nomUsage }}<br>
BBIO chaud = {{ theFicheBatiment.bbioChaudAnnuel }}pts / Moyenne database : {{ bbioChaudAnnuelMoyen }} <br>
Compacité = {{ theFicheBatiment.compacite }} m2env/ m²SHON / Moyenne database : {{ compaciteMoyen }} <br>
Taux de brassage = {{ theFicheBatiment.tauxBrassageBBIO }}vol/h / Moyenne database : {{ tauxBrassageBBIOMoyen }} <br>
Taux de vitrage = {{ theFicheBatiment.tauxVitrage }}m2vitr/m²SHON / Moyenne database : {{ tauxvitrageMoyen }} <br>
Uw moyen = {{ theFicheBatiment.uwMoyen }}W/m².K / Moyenne database : {{ uwMoyenMoyen }} <br>
Déperditions pour 19°C interieur = {{ DeperditionkW }} kW <br>
<br></div>
{% if theFicheBatiment.CepCh is not null %}
<div class="form-group col-md-4">
<div id="cep" style="height: 370px; width: 100%;">
</div>
</div>
{% endif %}
</div>
<div><br>
Analyse du chauffage :
<br></div>
<div class="form-row">
<div class="form-group col-md-3">
<div id="BBIO" style="height: 370px; width: 250px;"></div></div>
<div class="form-group col-md-3">
<div id="compacite" style="height: 370px; width: 250px;"></div></div>
<div class="form-group col-md-3">
<div id="ratioPsi" style="height: 370px; width: 250px;"></div></div>
<div class="form-group col-md-3">
<div id="deperditionSurfacique" style="height: 370px; width: 250px;"></div></div>
</div>
<div class="form-row">
<div class="form-group col-md-3">
<div id="UwMoyen" style="height: 370px; width: 250px;"></div></div>
<div class="form-group col-md-3">
<div id="masqueMoyen" style="height: 370px; width: 250px;"></div></div>
<div class="form-group col-md-3">
<div id="brassage" style="height: 370px; width: 250px;"></div></div>
<div class="form-group col-md-3">
<div id="TauxVitrage" style="height: 370px; width: 250px;"></div></div>
</div>
{% if theFicheBatiment.RatioEclNat is not null %}
<div> <br>
Analyse de l'éclairage naturel:
<br></div>
<div class="form-row">
<div class="form-group col-md-3">
<div id="RatioEclNat" style="height: 370px; width: 250px;"></div></div>
{#<div class="form-group col-md-3">
<div id="TauxVitrage" style="height: 370px; width: 250px;"></div></div>#}
</div>
{% endif %}
<div>
<br>
Analyse de la ventilation :
<br>
</div>
<div class="form-row">
<div class="form-group col-md-3">
<div id="PVentSpecifiqueBatiment" style="height: 370px; width: 250px;"></div></div>
<div class="form-group col-md-3">
<div id="brassage" style="height: 370px; width: 250px;"></div></div>
</div>
<br>
<a class="nav-link" href="{{ path('aide') }}">Aide à la lecture{#<span class="sr-only">(current)</span>#}</a>
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<script>
window.onload = function () {
var chart = new CanvasJS.Chart("BBIO", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
title:{
text: "BBIO chaud"
},
axisY: {
title: "BBIO chaud en pts",
includeZero: false,
tickLength: 0,
gridDashType: "dash",
},
legend: {
cursor: "pointer",
itemclick: toggleDataSeries
},
dataPointWidth: 20,
data: [{
type: "boxAndWhisker",
toolTipContent: "<span style=\"color:#6D78AD\">{label}:</span> <br><b>Maximum:</b> {y[3]},<br><b>10% les plus hauts:</b> {y[2]},<br><b>Médiane:</b> {y[4]}<br><b>10% les plus faibles:</b> {y[1]}<br><b>Minimum:</b> {y[0]}",
yValueFormatString: "#####.0 pts",
dataPoints: [
{ x: 0, label: "Database", y:
{{graphjson.graphBbio}}
}
]
},
{
type: "scatter",
name: "Bbio chaud projet",
toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
showInLegend: true,
dataPoints: [
{ x: 0, label: "Projet", y: {{ theFicheBatiment.bbioChaudAnnuel }} },
]
}]
}); chart.render();
var chart = new CanvasJS.Chart("compacite", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
title:{
text: "Compacité"
},
axisY: {
title: "Compacité en m²env / m²SHON",
includeZero: false,
tickLength: 0,
gridDashType: "dash",
},
legend: {
cursor: "pointer",
itemclick: toggleDataSeries
},
dataPointWidth: 20,
data: [{
type: "boxAndWhisker",
toolTipContent: "<span style=\"color:#6D78AD\">{label}:</span> <br><b>Maximum:</b> {y[3]},<br><b>10% les plus hauts:</b> {y[2]},<br><b>Médiane:</b> {y[4]}<br><b>10% les plus faibles:</b> {y[1]}<br><b>Minimum:</b> {y[0]}",
yValueFormatString: "0.0",
dataPoints: [
{ x: 0, label: "Database", y:
{{graphjson.graphCompacite}}
}
]
},
{
type: "scatter",
name: "Compacité",
toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
showInLegend: true,
dataPoints: [
{ x: 0, label: "Projet", y: {{ theFicheBatiment.compacite }} },
]
}]
}); chart.render();
var chart = new CanvasJS.Chart("brassage", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
title:{
text: "Taux d'air neuf"
},
axisY: {
title: "Brassage en vol/h",
includeZero: false,
tickLength: 0,
gridDashType: "dash",
},
legend: {
cursor: "pointer",
itemclick: toggleDataSeries
},
dataPointWidth: 20,
data: [{
type: "boxAndWhisker",
toolTipContent: "<span style=\"color:#6D78AD\">{label}:</span> <br><b>Maximum:</b> {y[3]},<br><b>10% les plus hauts:</b> {y[2]},<br><b>Médiane:</b> {y[4]}<br><b>10% les plus faibles:</b> {y[1]}<br><b>Minimum:</b> {y[0]}",
yValueFormatString: "0.00 vol/h",
dataPoints: [
{ x: 0, label: "Database", y:
{{graphjson.graphBrassage}}
}
]
},
{
type: "scatter",
name: "taux de brassage",
toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
showInLegend: true,
dataPoints: [
{ x: 0, label: "Projet", y: {{ theFicheBatiment.tauxBrassageBBIO }} },
]
}]
});
chart.render();
var chart = new CanvasJS.Chart("TauxVitrage", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
title:{
text: "Taux de vitrage"
},
axisY: {
title: "Taux de vitrage en m²v/m²SHON",
includeZero: false,
tickLength: 0,
gridDashType: "dash",
},
legend: {
cursor: "pointer",
itemclick: toggleDataSeries
},
dataPointWidth: 20,
data: [{
type: "boxAndWhisker",
toolTipContent: "<span style=\"color:#6D78AD\">{label}:</span> <br><b>Maximum:</b> {y[3]},<br><b>10% les plus hauts:</b> {y[2]},<br><b>Médiane:</b> {y[4]}<br><b>10% les plus faibles:</b> {y[1]}<br><b>Minimum:</b> {y[0]}",
yValueFormatString: "0.00 m²v/m²",
dataPoints: [
{ x: 0, label: "Database", y:
{{graphjson.graphTauxVitrage}}
}
]
},
{
type: "scatter",
name: "Taux vitrage",
toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
showInLegend: true,
dataPoints: [
{ x: 0, label: "Projet", y: {{ theFicheBatiment.tauxVitrage }} },
]
}]
});
chart.render(); var chart = new CanvasJS.Chart("UwMoyen", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
title:{
text: "Uw Moyen"
},
axisY: {
title: "Uw en W/m².K",
includeZero: false,
tickLength: 0,
gridDashType: "dash",
},
legend: {
cursor: "pointer",
itemclick: toggleDataSeries
},
dataPointWidth: 20,
data: [{
type: "boxAndWhisker",
toolTipContent: "<span style=\"color:#6D78AD\">{label}:</span> <br><b>Maximum:</b> {y[3]},<br><b>10% les plus hauts:</b> {y[2]},<br><b>Médiane:</b> {y[4]}<br><b>10% les plus faibles:</b> {y[1]}<br><b>Minimum:</b> {y[0]}",
yValueFormatString: "0.00 W/m²K",
dataPoints: [
{ x: 0, label: "Database", y:
{{graphjson.graphUwMoyen}}
}
]
},
{
type: "scatter",
name: "Uw",
toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
showInLegend: true,
dataPoints: [
{ x: 0, label: "Projet", y: {{ theFicheBatiment.uwMoyen }} },
]
}]
});
chart.render(); var chart = new CanvasJS.Chart("RatioEclNat", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
title:{
text: "Taux d'éclairage naturel"
},
axisY: {
title: "% accès à la lumière naturelle",
includeZero: false,
tickLength: 0,
gridDashType: "dash",
},
legend: {
cursor: "pointer",
itemclick: toggleDataSeries
},
dataPointWidth: 20,
data: [{
type: "boxAndWhisker",
toolTipContent: "<span style=\"color:#6D78AD\">{label}:</span> <br><b>Maximum:</b> {y[3]},<br><b>10% les plus hauts:</b> {y[2]},<br><b>Médiane:</b> {y[4]}<br><b>10% les plus faibles:</b> {y[1]}<br><b>Minimum:</b> {y[0]}",
yValueFormatString: "0.00",
dataPoints: [
{ x: 0, label: "Database", y:
{{graphjson.graphRatioEclNat}}
}
]
},
{
type: "scatter",
name: "Projet",
toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
showInLegend: true,
dataPoints: [
{ x: 0, label: "", y: {{ theFicheBatiment.RatioEclNat }} },
]
}]
});
chart.render(); var chart = new CanvasJS.Chart("ratioPsi", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
title:{
text: "Pont thermique moyen"
},
axisY: {
title: "en W/ml/K",
includeZero: false,
tickLength: 0,
gridDashType: "dash",
},
legend: {
cursor: "pointer",
itemclick: toggleDataSeries
},
dataPointWidth: 20,
data: [{
type: "boxAndWhisker",
toolTipContent: "<span style=\"color:#6D78AD\">{label}:</span> <br><b>Maximum:</b> {y[3]},<br><b>10% les plus hauts:</b> {y[2]},<br><b>Médiane:</b> {y[4]}<br><b>10% les plus faibles:</b> {y[1]}<br><b>Minimum:</b> {y[0]}",
yValueFormatString: "0.00",
dataPoints: [
{ x: 0, label: "Database", y:
{{graphjson.graphratioPsi}}
}
]
},
{
type: "scatter",
name: "Projet",
toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
showInLegend: true,
dataPoints: [
{ x: 0, label: "", y: {{ theFicheBatiment.ratioPsi }} },
]
}]
});
chart.render(); var chart = new CanvasJS.Chart("PVentSpecifiqueBatiment", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
title:{
text: "Puissance ventilateur"
},
axisY: {
title: "en W/m3/h",
includeZero: false,
tickLength: 0,
gridDashType: "dash",
},
legend: {
cursor: "pointer",
itemclick: toggleDataSeries
},
dataPointWidth: 20,
data: [{
type: "boxAndWhisker",
toolTipContent: "<span style=\"color:#6D78AD\">{label}:</span> <br><b>Maximum:</b> {y[3]},<br><b>10% les plus hauts:</b> {y[2]},<br><b>Médiane:</b> {y[4]}<br><b>10% les plus faibles:</b> {y[1]}<br><b>Minimum:</b> {y[0]}",
yValueFormatString: "0.00 W/m3/h",
dataPoints: [
{ x: 0, label: "Database", y:
{{graphjson.graphPVentSpecifiqueBatiment}}
}
]
},
{
type: "scatter",
name: "Projet",
toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
showInLegend: true,
dataPoints: [
{ x: 0, label: "", y: {{ theFicheBatiment.PVentSpecifiqueBatiment }} },
]
}]
});
chart.render(); var chart = new CanvasJS.Chart("deperditionSurfacique", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
title:{
text: "Deperdition totale surfacique"
},
axisY: {
title: "en W/m²",
includeZero: false,
tickLength: 0,
gridDashType: "dash",
},
legend: {
cursor: "pointer",
itemclick: toggleDataSeries
},
dataPointWidth: 20,
data: [{
type: "boxAndWhisker",
toolTipContent: "<span style=\"color:#6D78AD\">{label}:</span> <br><b>Maximum:</b> {y[3]},<br><b>10% les plus hauts:</b> {y[2]},<br><b>Médiane:</b> {y[4]}<br><b>10% les plus faibles:</b> {y[1]}<br><b>Minimum:</b> {y[0]}",
yValueFormatString: "0.00 W/m²",
dataPoints: [
{ x: 0, label: "Database", y:
{{graphjson.graphdeperditionSurfacique}}
}
]
},
{
type: "scatter",
name: "Projet",
toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
showInLegend: true,
dataPoints: [
{ x: 0, label: "", y: {{ theFicheBatiment.deperditionSurfacique }} },
]
}]
});
chart.render(); var chart = new CanvasJS.Chart("masqueMoyen", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
title:{
text: "Masque lointain moyen"
},
axisY: {
title: "en degré",
includeZero: false,
tickLength: 0,
gridDashType: "dash",
},
legend: {
cursor: "pointer",
itemclick: toggleDataSeries
},
dataPointWidth: 20,
data: [{
type: "boxAndWhisker",
toolTipContent: "<span style=\"color:#6D78AD\">{label}:</span> <br><b>Maximum:</b> {y[3]},<br><b>10% les plus hauts:</b> {y[2]},<br><b>Médiane:</b> {y[4]}<br><b>10% les plus faibles:</b> {y[1]}<br><b>Minimum:</b> {y[0]}",
yValueFormatString: "0.00°",
dataPoints: [
{ x: 0, label: "Database", y:
{{graphjson.graphmasqueMoyen}}
}
]
},
{
type: "scatter",
name: "Projet",
toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
showInLegend: true,
dataPoints: [
{ x: 0, label: "", y: {{ theFicheBatiment.masqueMoyen }} },
]
}]
});
{% if theFicheBatiment.CepCh is not null %}
chart.render();
var chart = new CanvasJS.Chart("cep", {
animationEnabled: true,
title:{
text: "Cep",
fontFamily: "arial black",
fontColor: "#695A42"
}, legend: {
horizontalAlign: "left", // left, center ,right
verticalAlign: "center", // top, center, bottom
},
axisX: {
},
axisY:{includeZero: true,
title : "Consommation en kWhEP/m²/an",
valueFormatString:"0",
gridColor: "#B6B1A8",
tickColor: "#B6B1A8"
},
toolTip: {
shared: true,
content: toolTipContent
},
data: [{
type: "stackedColumn",
showInLegend: true,
color: "red",
name: "Chauffage",
dataPoints: [
{ y:{{ theFicheBatiment.CepCh }}, label: "Cep" }
]
},
{
type: "stackedColumn",
showInLegend: true,
name: "Climatisation",
color: "blue",
dataPoints: [
{ y:{{ theFicheBatiment.CepFr }}, label: "Cep" }
]
},
{
type: "stackedColumn",
showInLegend: true,
name: "ECS",
color: "orange",
dataPoints: [
{ y:{{ theFicheBatiment.CepECS }}, label: "Cep" }
]
},
{
type: "stackedColumn",
showInLegend: true,
name: "Eclairage",
color: "yellow",
dataPoints: [
{ y:{{ theFicheBatiment.CepEcl }}, label: "Cep" }]
},
{
type: "stackedColumn",
showInLegend: true,
name: "Ventilateurs",
color: "green",
dataPoints: [
{ y:{{ theFicheBatiment.CepVentil }}, label: "Cep" }]
},
{
type: "stackedColumn",
showInLegend: true,
name: "Distribution",
{#color: "#B6B1A8",#}
dataPoints: [
{ y:{{ theFicheBatiment.CepDistrib }}, label: "Cep" }
]
}]
});
chart.render();
function toolTipContent(e) {
var str = "";
var total = 0;
var str2, str3;
for (var i = 0; i < e.entries.length; i++){
var str1 = "<span style= \"color:" + e.entries[i].dataSeries.color + "\"> " + e.entries[i].dataSeries.name + "</span>: <strong>" + e.entries[i].dataPoint.y + "</strong> kWhEP/m²/an<br/>";
total = e.entries[i].dataPoint.y + total;
str = str.concat(str1);
}
str2 = "<span style = \"color:DodgerBlue;\"><strong>" + (e.entries[0].dataPoint.x).getFullYear() + "</strong></span><br/>";
total = Math.round(total * 100) / 100;
str3 = "<span style = \"color:Tomato\">Total:</span><strong> " + total + "</strong>kWhEP/m²/an<br/>";
return (str2.concat(str)).concat(str3);
}
{% endif %}
function toggleDataSeries(e) {
if (typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible) {
e.dataSeries.visible = false;
} else {
e.dataSeries.visible = true;
}
e.chart.render();
}
}
</script>
{% endblock %}