2 decimal places in values

master
g 3 years ago
parent f30cc7ba49
commit 363962df47

@ -202,7 +202,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) {
{currentTech.label} {currentTech.label}
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info[currentParameter.value].toFixed(1).replace(".", ",")} {info[currentParameter.value].toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -222,7 +222,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) {
Солнечные электростанции Солнечные электростанции
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_power_fact_solar_mw.toFixed(1).replace(".", ",")} {info.static_power_fact_solar_mw.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -232,7 +232,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) {
Наземные ветроэлектростанции Наземные ветроэлектростанции
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_power_fact_onshore_mw.toFixed(1).replace(".", ",")} {info.static_power_fact_onshore_mw.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -242,7 +242,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) {
Офшорные ветроэлектростанции Офшорные ветроэлектростанции
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_power_fact_offshore_mw.toFixed(1).replace(".", ",")} {info.static_power_fact_offshore_mw.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -252,7 +252,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) {
Всего ВИЭ <span className="font-normal normal-case">(включая СЭС, ВЭС, ГЭС, БиоЭС, ГеоЭС)</span> Всего ВИЭ <span className="font-normal normal-case">(включая СЭС, ВЭС, ГЭС, БиоЭС, ГеоЭС)</span>
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_power_fact_res_mw.toFixed(1).replace(".", ",")} {info.static_power_fact_res_mw.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -262,7 +262,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) {
Доля всей ВИЭ-генерации в балансе мощности страны, % Доля всей ВИЭ-генерации в балансе мощности страны, %
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_res_share_power.toFixed(1).replace(".", ",")} {info.static_res_share_power.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -272,7 +272,7 @@ export default function Countries({ mapOptions, onMapOptionClick }) {
Доля СЭС и ВЭС в балансе мощности страны, % Доля СЭС и ВЭС в балансе мощности страны, %
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_solar_wind_share_power.toFixed(1).replace(".", ",")} {info.static_solar_wind_share_power.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }

@ -249,7 +249,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) {
{currentTech.label}, {currentSupport.label} {currentTech.label}, {currentSupport.label}
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info[currentParameter.value].toFixed(1).replace(".", ",")} {info[currentParameter.value].toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -268,7 +268,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) {
Солнечные электростанции Солнечные электростанции
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_power_fact_solar_mw.toFixed(1).replace(".", ",")} {info.static_power_fact_solar_mw.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -278,7 +278,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) {
Ветроэлектростанции Ветроэлектростанции
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_power_fact_wind_mw.toFixed(1).replace(".", ",")} {info.static_power_fact_wind_mw.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -288,7 +288,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) {
Малые гидроэлектростанции Малые гидроэлектростанции
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_power_fact_shydro_mw.toFixed(1).replace(".", ",")} {info.static_power_fact_shydro_mw.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -298,7 +298,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) {
Другие объекты ВИЭ-генерации Другие объекты ВИЭ-генерации
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_power_fact_other_mw.toFixed(1).replace(".", ",")} {info.static_power_fact_other_mw.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -308,7 +308,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) {
Всего ВИЭ Всего ВИЭ
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_power_fact_res_mw.toFixed(1).replace(".", ",")} {info.static_power_fact_res_mw.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }
@ -318,7 +318,7 @@ export default function Regions({ mapOptions, onMapOptionClick }) {
Доля всех ВИЭ в балансе мощности региона, % Доля всех ВИЭ в балансе мощности региона, %
</th> </th>
<td className="px-2 py-4 text-right"> <td className="px-2 py-4 text-right">
{info.static_res_share_power.toFixed(1).replace(".", ",")} {info.static_res_share_power.toFixed(2).replace(".", ",")}
</td> </td>
</tr> </tr>
} }

Loading…
Cancel
Save