templates/fiche/fiche-batiment/analyse.html.twig line 1

Open in your IDE?
  1. {% extends 'baseSyntherm.html.twig' %}
  2. {% block title %}
  3.     SOBRO XML
  4. {% endblock %}
  5. {% block body %}
  6.     <div class="form-row">
  7.         <div class="form-group col-md-8">
  8.             <br>
  9.             Ceci est la fiche n° {{ theFicheBatiment.id }}.<br>
  10.             {% if theFicheBatiment.theUser %}
  11.                 Utilisateur :
  12.                     <a href="{{ path('user_manage_fiche', {'id' : theFicheBatiment.theUser.id}) }}">
  13.                         {{ theFicheBatiment.theUser }}
  14.                     </a>
  15.                 <br>
  16.             {% endif %}
  17.             MOA : {{ theFicheBatiment.moa }}<br>
  18.             Nom du Projet : {{ theFicheBatiment.nomDuProjet }}<br>
  19.             Ville : {{ theFicheBatiment.ville }}<br>
  20.             Département : {{ theFicheBatiment.departement }}<br>
  21.             Usage : {{ theFicheBatiment.nomUsage }}<br>
  22.                         BBIO chaud = {{ theFicheBatiment.bbioChaudAnnuel }}pts / Moyenne database : {{ bbioChaudAnnuelMoyen }} <br>
  23.                         Compacité = {{ theFicheBatiment.compacite }} m2env/ m²SHON / Moyenne database : {{ compaciteMoyen }} <br>
  24.                         Taux de brassage = {{ theFicheBatiment.tauxBrassageBBIO }}vol/h / Moyenne database : {{ tauxBrassageBBIOMoyen }} <br>
  25.                         Taux de vitrage = {{ theFicheBatiment.tauxVitrage }}m2vitr/m²SHON / Moyenne database : {{ tauxvitrageMoyen }} <br>
  26.                         Uw moyen = {{ theFicheBatiment.uwMoyen }}W/m².K / Moyenne database : {{ uwMoyenMoyen }} <br>
  27.                         Déperditions pour 19°C interieur = {{ DeperditionkW }} kW <br>
  28.             <br></div>
  29.             {% if theFicheBatiment.CepCh is not null %}
  30.             <div class="form-group col-md-4">
  31.                 <div id="cep" style="height: 370px; width: 100%;">
  32.                     
  33.                 </div>
  34.                 
  35.             </div>
  36.             {% endif %}
  37.             </div>
  38.             
  39.     <div><br>
  40.     Analyse du chauffage : 
  41.     <br></div>        
  42.             
  43.     <div class="form-row">
  44.         <div class="form-group col-md-3">
  45.             <div id="BBIO" style="height: 370px; width: 250px;"></div></div>
  46.         <div class="form-group col-md-3">
  47.             <div id="compacite" style="height: 370px; width: 250px;"></div></div>
  48.         <div class="form-group col-md-3">
  49.             <div id="ratioPsi" style="height: 370px; width: 250px;"></div></div>
  50.         <div class="form-group col-md-3">
  51.             <div id="deperditionSurfacique" style="height: 370px; width: 250px;"></div></div>
  52.     </div>
  53.     <div class="form-row">
  54.         <div class="form-group col-md-3">
  55.             <div id="UwMoyen" style="height: 370px; width: 250px;"></div></div>
  56.         <div class="form-group col-md-3">
  57.             <div id="masqueMoyen" style="height: 370px; width: 250px;"></div></div>
  58.         <div class="form-group col-md-3">
  59.             <div id="brassage" style="height: 370px; width: 250px;"></div></div>
  60.         <div class="form-group col-md-3">
  61.             <div id="TauxVitrage" style="height: 370px; width: 250px;"></div></div>                   
  62.     </div>
  63.     
  64.             
  65.           {% if theFicheBatiment.RatioEclNat is not null %}  
  66.     <div> <br>
  67.     Analyse de l'éclairage naturel: 
  68.      <br></div>
  69.     <div class="form-row">
  70.         <div class="form-group col-md-3">
  71.                 <div id="RatioEclNat" style="height: 370px; width: 250px;"></div></div>
  72.         {#<div class="form-group col-md-3">
  73.             <div id="TauxVitrage" style="height: 370px; width: 250px;"></div></div>#}
  74.     </div>
  75.          {% endif %}
  76.     <div>
  77.      <br>
  78.         Analyse de la ventilation : 
  79.       <br>
  80.     </div>
  81.     <div class="form-row">
  82.         <div class="form-group col-md-3">
  83.             <div id="PVentSpecifiqueBatiment" style="height: 370px; width: 250px;"></div></div> 
  84.         <div class="form-group col-md-3">
  85.             <div id="brassage" style="height: 370px; width: 250px;"></div></div>
  86.     </div>                     
  87.     <br>
  88.     <a class="nav-link" href="{{ path('aide') }}">Aide à la lecture{#<span class="sr-only">(current)</span>#}</a>
  89.     <script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
  90.     <script>
  91.         window.onload = function () {
  92.         var chart = new CanvasJS.Chart("BBIO", {
  93.         animationEnabled: true,
  94.                 theme: "light2", // "light1", "light2", "dark1", "dark2"
  95.                 title:{
  96.                 text: "BBIO chaud"
  97.                 },
  98.                 axisY: {
  99.                 title: "BBIO chaud en pts",
  100.                         includeZero: false,
  101.                         tickLength: 0,
  102.                         gridDashType: "dash",
  103.                 },
  104.                 legend: {
  105.                 cursor: "pointer",
  106.                         itemclick: toggleDataSeries
  107.                 },
  108.                 dataPointWidth: 20,
  109.                 data: [{
  110.                 type: "boxAndWhisker",
  111.                         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]}",
  112.                         yValueFormatString: "#####.0 pts",
  113.                         dataPoints: [
  114.                         { x: 0, label: "Database", y:
  115.         {{graphjson.graphBbio}}
  116.                             }
  117.                             ]
  118.                     },
  119.                     {
  120.                     type: "scatter",
  121.                             name: "Bbio chaud projet",
  122.                             toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
  123.                             showInLegend: true,
  124.                             dataPoints: [
  125.                             { x: 0, label: "Projet", y: {{ theFicheBatiment.bbioChaudAnnuel }} },
  126.                             ]
  127.                     }]
  128.             }); chart.render();
  129.             var chart = new CanvasJS.Chart("compacite", {
  130.             animationEnabled: true,
  131.                     theme: "light2", // "light1", "light2", "dark1", "dark2"
  132.                     title:{
  133.                     text: "Compacité"
  134.                     },
  135.                     axisY: {
  136.                     title: "Compacité en m²env / m²SHON",
  137.                             includeZero: false,
  138.                             tickLength: 0,
  139.                             gridDashType: "dash",
  140.                     },
  141.                     legend: {
  142.                     cursor: "pointer",
  143.                             itemclick: toggleDataSeries
  144.                     },
  145.                     dataPointWidth: 20,
  146.                     data: [{
  147.                     type: "boxAndWhisker",
  148.                             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]}",
  149.                             yValueFormatString: "0.0",
  150.                             dataPoints: [
  151.                             { x: 0, label: "Database", y:
  152.         {{graphjson.graphCompacite}}
  153.                             }
  154.                             ]
  155.                     },
  156.                     {
  157.                     type: "scatter",
  158.                             name: "Compacité",
  159.                             toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
  160.                             showInLegend: true,
  161.                             dataPoints: [
  162.                             { x: 0, label: "Projet", y: {{ theFicheBatiment.compacite }} },
  163.                             ]
  164.                     }]
  165.             }); chart.render();
  166.             var chart = new CanvasJS.Chart("brassage", {
  167.             animationEnabled: true,
  168.                     theme: "light2", // "light1", "light2", "dark1", "dark2"
  169.                     title:{
  170.                     text: "Taux d'air neuf"
  171.                     },
  172.                     axisY: {
  173.                     title: "Brassage en vol/h",
  174.                             includeZero: false,
  175.                             tickLength: 0,
  176.                             gridDashType: "dash",
  177.                     },
  178.                     legend: {
  179.                     cursor: "pointer",
  180.                             itemclick: toggleDataSeries
  181.                     },
  182.                     dataPointWidth: 20,
  183.                     data: [{
  184.                     type: "boxAndWhisker",
  185.                             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]}",
  186.                             yValueFormatString: "0.00 vol/h",
  187.                             dataPoints: [
  188.                             { x: 0, label: "Database", y:
  189.         {{graphjson.graphBrassage}}
  190.                             }
  191.                             ]
  192.                     },
  193.                     {
  194.                     type: "scatter",
  195.                             name: "taux de brassage",
  196.                             toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
  197.                             showInLegend: true,
  198.                             dataPoints: [
  199.                             { x: 0, label: "Projet", y: {{ theFicheBatiment.tauxBrassageBBIO }} },
  200.                             ]
  201.                     }]
  202.             });
  203.             chart.render();
  204.             var chart = new CanvasJS.Chart("TauxVitrage", {
  205.             animationEnabled: true,
  206.                     theme: "light2", // "light1", "light2", "dark1", "dark2"
  207.                     title:{
  208.                     text: "Taux de vitrage"
  209.                     },
  210.                     axisY: {
  211.                     title: "Taux de vitrage en m²v/m²SHON",
  212.                             includeZero: false,
  213.                             tickLength: 0,
  214.                             gridDashType: "dash",
  215.                     },
  216.                     legend: {
  217.                     cursor: "pointer",
  218.                             itemclick: toggleDataSeries
  219.                     },
  220.                     dataPointWidth: 20,
  221.                     data: [{
  222.                     type: "boxAndWhisker",
  223.                             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]}",
  224.                             yValueFormatString: "0.00 m²v/m²",
  225.                             dataPoints: [
  226.                             { x: 0, label: "Database", y:
  227.         {{graphjson.graphTauxVitrage}}
  228.                             }
  229.                             ]
  230.                     },
  231.                     {
  232.                     type: "scatter",
  233.                             name: "Taux vitrage",
  234.                             toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
  235.                             showInLegend: true,
  236.                             dataPoints: [
  237.                             { x: 0, label: "Projet", y: {{ theFicheBatiment.tauxVitrage }} },
  238.                             ]
  239.                     }]
  240.             });
  241.             chart.render(); var chart = new CanvasJS.Chart("UwMoyen", {
  242.             animationEnabled: true,
  243.                     theme: "light2", // "light1", "light2", "dark1", "dark2"
  244.                     title:{
  245.                     text: "Uw Moyen"
  246.                     },
  247.                     axisY: {
  248.                     title: "Uw en W/m².K",
  249.                             includeZero: false,
  250.                             tickLength: 0,
  251.                             gridDashType: "dash",
  252.                     },
  253.                     legend: {
  254.                     cursor: "pointer",
  255.                             itemclick: toggleDataSeries
  256.                     },
  257.                     dataPointWidth: 20,
  258.                     data: [{
  259.                     type: "boxAndWhisker",
  260.                             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]}",
  261.                             yValueFormatString: "0.00 W/m²K",
  262.                             dataPoints: [
  263.                             { x: 0, label: "Database", y:
  264.         {{graphjson.graphUwMoyen}}
  265.                             }
  266.                             ]
  267.                     },
  268.                     {
  269.                     type: "scatter",
  270.                             name: "Uw",
  271.                             toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
  272.                             showInLegend: true,
  273.                             dataPoints: [
  274.                             { x: 0, label: "Projet", y: {{ theFicheBatiment.uwMoyen }} },
  275.                             ]
  276.                     }]
  277.             });
  278.             chart.render(); var chart = new CanvasJS.Chart("RatioEclNat", {
  279.             animationEnabled: true,
  280.                     theme: "light2", // "light1", "light2", "dark1", "dark2"
  281.                     title:{
  282.                     text: "Taux d'éclairage naturel"
  283.                     },
  284.                     axisY: {
  285.                     title: "% accès à la lumière naturelle",
  286.                             includeZero: false,
  287.                             tickLength: 0,
  288.                             gridDashType: "dash",
  289.                     },
  290.                     legend: {
  291.                     cursor: "pointer",
  292.                             itemclick: toggleDataSeries
  293.                     },
  294.                     dataPointWidth: 20,
  295.                     data: [{
  296.                     type: "boxAndWhisker",
  297.                             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]}",
  298.                             yValueFormatString: "0.00",
  299.                             dataPoints: [
  300.                             { x: 0, label: "Database", y:
  301.         {{graphjson.graphRatioEclNat}}
  302.                             }
  303.                             ]
  304.                     },
  305.                     {
  306.                     type: "scatter",
  307.                             name: "Projet",
  308.                             toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
  309.                             showInLegend: true,
  310.                             dataPoints: [
  311.                             { x: 0, label: "", y: {{ theFicheBatiment.RatioEclNat }} },
  312.                             ]
  313.                     }]
  314.             });
  315.                         chart.render(); var chart = new CanvasJS.Chart("ratioPsi", {
  316.             animationEnabled: true,
  317.                     theme: "light2", // "light1", "light2", "dark1", "dark2"
  318.                     title:{
  319.                     text: "Pont thermique moyen"
  320.                     },
  321.                     axisY: {
  322.                     title: "en W/ml/K",
  323.                             includeZero: false,
  324.                             tickLength: 0,
  325.                             gridDashType: "dash",
  326.                     },
  327.                     legend: {
  328.                     cursor: "pointer",
  329.                             itemclick: toggleDataSeries
  330.                     },
  331.                     dataPointWidth: 20,
  332.                     data: [{
  333.                     type: "boxAndWhisker",
  334.                             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]}",
  335.                             yValueFormatString: "0.00",
  336.                             dataPoints: [
  337.                             { x: 0, label: "Database", y:
  338.         {{graphjson.graphratioPsi}}
  339.                             }
  340.                             ]
  341.                     },
  342.                     {
  343.                     type: "scatter",
  344.                             name: "Projet",
  345.                             toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
  346.                             showInLegend: true,
  347.                             dataPoints: [
  348.                             { x: 0, label: "", y: {{ theFicheBatiment.ratioPsi }} },
  349.                             ]
  350.                     }]
  351.             });
  352.             
  353. chart.render(); var chart = new CanvasJS.Chart("PVentSpecifiqueBatiment", {
  354.             animationEnabled: true,
  355.                     theme: "light2", // "light1", "light2", "dark1", "dark2"
  356.                     title:{
  357.                     text: "Puissance ventilateur"
  358.                     },
  359.                     axisY: {
  360.                     title: "en W/m3/h",
  361.                             includeZero: false,
  362.                             tickLength: 0,
  363.                             gridDashType: "dash",
  364.                     },
  365.                     legend: {
  366.                     cursor: "pointer",
  367.                             itemclick: toggleDataSeries
  368.                     },
  369.                     dataPointWidth: 20,
  370.                     data: [{
  371.                     type: "boxAndWhisker",
  372.                             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]}",
  373.                             yValueFormatString: "0.00 W/m3/h",
  374.                             dataPoints: [
  375.                             { x: 0, label: "Database", y:
  376.         {{graphjson.graphPVentSpecifiqueBatiment}}
  377.                             }
  378.                             ]
  379.                     },
  380.                     {
  381.                     type: "scatter",
  382.                             name: "Projet",
  383.                             toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
  384.                             showInLegend: true,
  385.                             dataPoints: [
  386.                             { x: 0, label: "", y: {{ theFicheBatiment.PVentSpecifiqueBatiment }} },
  387.                             ]
  388.                     }]
  389.             });                            
  390. chart.render(); var chart = new CanvasJS.Chart("deperditionSurfacique", {
  391.             animationEnabled: true,
  392.                     theme: "light2", // "light1", "light2", "dark1", "dark2"
  393.                     title:{
  394.                     text: "Deperdition totale surfacique"
  395.                     },
  396.                     axisY: {
  397.                     title: "en W/m²",
  398.                             includeZero: false,
  399.                             tickLength: 0,
  400.                             gridDashType: "dash",
  401.                     },
  402.                     legend: {
  403.                     cursor: "pointer",
  404.                             itemclick: toggleDataSeries
  405.                     },
  406.                     dataPointWidth: 20,
  407.                     data: [{
  408.                     type: "boxAndWhisker",
  409.                             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]}",
  410.                             yValueFormatString: "0.00 W/m²",
  411.                             dataPoints: [
  412.                             { x: 0, label: "Database", y:
  413.         {{graphjson.graphdeperditionSurfacique}}
  414.                             }
  415.                             ]
  416.                     },
  417.                     {
  418.                     type: "scatter",
  419.                             name: "Projet",
  420.                             toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
  421.                             showInLegend: true,
  422.                             dataPoints: [
  423.                             { x: 0, label: "", y: {{ theFicheBatiment.deperditionSurfacique }} },
  424.                             ]
  425.                     }]
  426.             });
  427.             chart.render(); var chart = new CanvasJS.Chart("masqueMoyen", {
  428.             animationEnabled: true,
  429.                     theme: "light2", // "light1", "light2", "dark1", "dark2"
  430.                     title:{
  431.                     text: "Masque lointain moyen"
  432.                     },
  433.                     axisY: {
  434.                     title: "en degré",
  435.                             includeZero: false,
  436.                             tickLength: 0,
  437.                             gridDashType: "dash",
  438.                     },
  439.                     legend: {
  440.                     cursor: "pointer",
  441.                             itemclick: toggleDataSeries
  442.                     },
  443.                     dataPointWidth: 20,
  444.                     data: [{
  445.                     type: "boxAndWhisker",
  446.                             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]}",
  447.                             yValueFormatString: "0.00°",
  448.                             dataPoints: [
  449.                             { x: 0, label: "Database", y:
  450.         {{graphjson.graphmasqueMoyen}}
  451.                             }
  452.                             ]
  453.                     },
  454.                     {
  455.                     type: "scatter",
  456.                             name: "Projet",
  457.                             toolTipContent: "<span style=\"color:#C0504E\">{name}</span>: {y}",
  458.                             showInLegend: true,
  459.                             dataPoints: [
  460.                             { x: 0, label: "", y: {{ theFicheBatiment.masqueMoyen }} },
  461.                             ]
  462.                     }]
  463.             });
  464.                        
  465.             
  466.             
  467.                             {% if theFicheBatiment.CepCh is not null %}
  468.             chart.render();
  469.             var chart = new CanvasJS.Chart("cep", {
  470.             animationEnabled: true,
  471.                     title:{
  472.                     text: "Cep",
  473.                             fontFamily: "arial black",
  474.                             fontColor: "#695A42"
  475.                     }, legend: {
  476.             horizontalAlign: "left", // left, center ,right 
  477.                     verticalAlign: "center", // top, center, bottom
  478.             },
  479.                     axisX: {
  480.                     },
  481.                     axisY:{includeZero: true,
  482.                 title : "Consommation en kWhEP/m²/an",
  483.                             valueFormatString:"0",
  484.                             gridColor: "#B6B1A8",
  485.                             tickColor: "#B6B1A8"
  486.                     },
  487.                     toolTip: {
  488.                     shared: true,
  489.                             content: toolTipContent
  490.                     },
  491.                     data: [{
  492.                     type: "stackedColumn",
  493.                             showInLegend: true,
  494.         color: "red",
  495.                             name: "Chauffage",
  496.                             dataPoints: [
  497.                             { y:{{ theFicheBatiment.CepCh }}, label: "Cep" }
  498.                             ]
  499.                     },
  500.                     {
  501.                     type: "stackedColumn",
  502.                             showInLegend: true,
  503.                             name: "Climatisation",
  504.         color: "blue",
  505.                             dataPoints: [
  506.                             { y:{{ theFicheBatiment.CepFr }}, label: "Cep" }
  507.                             ]
  508.                     },
  509.                     {
  510.                     type: "stackedColumn",
  511.                             showInLegend: true,
  512.                             name: "ECS",
  513.         color: "orange",
  514.                             dataPoints: [
  515.                             { y:{{ theFicheBatiment.CepECS }}, label: "Cep" }
  516.                             ]
  517.                     },
  518.                     {
  519.                     type: "stackedColumn",
  520.                             showInLegend: true,
  521.                             name: "Eclairage",
  522.         color: "yellow",
  523.                             dataPoints: [
  524.                             { y:{{ theFicheBatiment.CepEcl }}, label: "Cep" }]
  525.                     },
  526.                     {
  527.                     type: "stackedColumn",
  528.                             showInLegend: true,
  529.                             name: "Ventilateurs",
  530.         color: "green",
  531.                             dataPoints: [
  532.                             { y:{{ theFicheBatiment.CepVentil }}, label: "Cep" }]
  533.                     },
  534.                     {
  535.                     type: "stackedColumn",
  536.                             showInLegend: true,
  537.                             name: "Distribution",
  538.         {#color: "#B6B1A8",#}
  539.                             dataPoints: [
  540.                             { y:{{ theFicheBatiment.CepDistrib }}, label: "Cep" }
  541.                             ]
  542.                     }]
  543.             });
  544.             chart.render();
  545.             function toolTipContent(e) {
  546.             var str = "";
  547.             var total = 0;
  548.             var str2, str3;
  549.             for (var i = 0; i < e.entries.length; i++){
  550.             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/>";
  551.             total = e.entries[i].dataPoint.y + total;
  552.             str = str.concat(str1);
  553.             }
  554.             str2 = "<span style = \"color:DodgerBlue;\"><strong>" + (e.entries[0].dataPoint.x).getFullYear() + "</strong></span><br/>";
  555.             total = Math.round(total * 100) / 100;
  556.             str3 = "<span style = \"color:Tomato\">Total:</span><strong> " + total + "</strong>kWhEP/m²/an<br/>";
  557.             return (str2.concat(str)).concat(str3);
  558.             }
  559. {% endif %}
  560.             function toggleDataSeries(e) {
  561.             if (typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible) {
  562.             e.dataSeries.visible = false;
  563.             } else {
  564.             e.dataSeries.visible = true;
  565.             }
  566.             e.chart.render();
  567.             }
  568.             }
  569.     </script>
  570. {% endblock %}