Code Context <div class="col-lg-12">
<div class="form-group">
<textarea id="websend_msg" class="form-control" placeholder="Treść"><?php echo $_SERVER['SCRIPT_URI']; ?></textarea>
$viewFile = '/var/www/vhost/raportroczny2015/app/View/Layouts/default.ctp'
$dataForView = array(
'element' => array(
'common' => array(),
'helper' => array(
'wykres' => '2'
)
),
'app_element' => array(
'controller' => 'strona',
'action' => 'wykresy_interaktywne',
'lang' => 'PL'
),
'content_for_layout' => '<div class="container">
<div class="container-fluid">
<div class="row m-t-20">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<div class="green_rectangle_top"></div>
<h2 class="section_title_top">Skonsolidowane sprawozdanie z zysków lub strat </h2>
</div>
<div class="row">
<div class="col-md-10">
<h3 class="site_headline purple">Skonsolidowane sprawozdanie z zysków lub strat w mln zł</h3>
</div>
<div class="col-md-2">
<a href="/strona/wykresy_interaktywne" target="_self">
<div class="knefel_interactive">
Powrót do spisu
</div>
</a>
</div>
</div>
</div>
<table class="table">
<thead>
<tr>
<th>w mln zł</th>
<th>2015</th>
<th>2014</th>
<th>2013</th>
<th>2012</th>
<th>Zmiana <br>2015/2014 (%)</th>
</tr>
</thead>
<tbody>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Przychody ze sprzedaży"
data-val1="10804" data-val1b="10 804"
data-val2="10590" data-val2b="10 590"
data-val3="11429" data-val3b="11 429"
data-val4="11177" data-val4b="11 177"
data-val6="2%" data-val6b="2%"
>
<td >Przychody ze sprzedaży</td>
<td class="center" >10 804</td>
<td class="center" >10 590</td>
<td class="center" >11 429</td>
<td class="center" >11 177</td>
<td class="center" >2%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Koszt własny sprzedaży"
data-val1="-8786" data-val1b="-8 786"
data-val2="-8464" data-val2b="-8 464"
data-val3="-9455" data-val3b="-9 455"
data-val4="-9482" data-val4b="-9 482"
data-val6="-4%" data-val6b="-4%"
>
<td >Koszt własny sprzedaży</td>
<td class="center" >-8 786</td>
<td class="center" >-8 464</td>
<td class="center" >-9 455</td>
<td class="center" >-9 482</td>
<td class="center" >-4%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Zysk brutto ze sprzedaży"
data-val1="2018" data-val1b="2 018"
data-val2="2126" data-val2b="2 126"
data-val3="1974" data-val3b="1 974"
data-val4="1694" data-val4b="1 694"
data-val6="-5%" data-val6b="-5%"
>
<td >Zysk brutto ze sprzedaży</td>
<td class="center" >2 018</td>
<td class="center" >2 126</td>
<td class="center" >1 974</td>
<td class="center" >1 694</td>
<td class="center" >-5%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Pozostałe przychody operacyjne "
data-val1="91" data-val1b="91"
data-val2="107" data-val2b="107"
data-val3="156" data-val3b="156"
data-val4="135" data-val4b="135"
data-val6="-15%" data-val6b="-15%"
>
<td >Pozostałe przychody operacyjne </td>
<td class="center" >91</td>
<td class="center" >107</td>
<td class="center" >156</td>
<td class="center" >135</td>
<td class="center" >-15%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Koszty sprzedaży"
data-val1="-336" data-val1b="-336"
data-val2="-312" data-val2b="-312"
data-val3="-294" data-val3b="-294"
data-val4="-308" data-val4b="-308"
data-val6="-8%" data-val6b="-8%"
>
<td >Koszty sprzedaży</td>
<td class="center" >-336</td>
<td class="center" >-312</td>
<td class="center" >-294</td>
<td class="center" >-308</td>
<td class="center" >-8%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Koszty ogólnego zarządu"
data-val1="-344" data-val1b="-344"
data-val2="-350" data-val2b="-350"
data-val3="-412" data-val3b="-412"
data-val4="-377" data-val4b="-377"
data-val6="2%" data-val6b="2%"
>
<td >Koszty ogólnego zarządu</td>
<td class="center" >-344</td>
<td class="center" >-350</td>
<td class="center" >-412</td>
<td class="center" >-377</td>
<td class="center" >2%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Pozostałe koszty operacyjne"
data-val1="-149" data-val1b="-149"
data-val2="-125" data-val2b="-125"
data-val3="-228" data-val3b="-228"
data-val4="-239" data-val4b="-239"
data-val6="-19%" data-val6b="-19%"
>
<td >Pozostałe koszty operacyjne</td>
<td class="center" >-149</td>
<td class="center" >-125</td>
<td class="center" >-228</td>
<td class="center" >-239</td>
<td class="center" >-19%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Zysk z działalności operacyjnej"
data-val1="1280" data-val1b="1 280"
data-val2="1446" data-val2b="1 446"
data-val3="1195" data-val3b="1 195"
data-val4="906" data-val4b="906"
data-val6="-11%" data-val6b="-11%"
>
<td >Zysk z działalności operacyjnej</td>
<td class="center" >1 280</td>
<td class="center" >1 446</td>
<td class="center" >1 195</td>
<td class="center" >906</td>
<td class="center" >-11%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Wynik na działalności finansowej"
data-val1="-228" data-val1b="-228"
data-val2="-198" data-val2b="-198"
data-val3="-172" data-val3b="-172"
data-val4="-280" data-val4b="-280"
data-val6="-15%" data-val6b="-15%"
>
<td >Wynik na działalności finansowej</td>
<td class="center" >-228</td>
<td class="center" >-198</td>
<td class="center" >-172</td>
<td class="center" >-280</td>
<td class="center" >-15%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Udział w zysku (stracie) jednostki stowarzyszonej"
data-val1="-" data-val1b="-"
data-val2="-" data-val2b="-"
data-val3="-1" data-val3b="-1"
data-val4="0" data-val4b="0"
data-val6="-" data-val6b="-"
>
<td >Udział w zysku (stracie) jednostki stowarzyszonej</td>
<td class="center" >-</td>
<td class="center" >-</td>
<td class="center" >-1</td>
<td class="center" >0</td>
<td class="center" >-</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Zysk brutto"
data-val1="1052" data-val1b="1 052"
data-val2="1248" data-val2b="1 248"
data-val3="1022" data-val3b="1 022"
data-val4="626" data-val4b="626"
data-val6="-16%" data-val6b="-16%"
>
<td >Zysk brutto</td>
<td class="center" >1 052</td>
<td class="center" >1 248</td>
<td class="center" >1 022</td>
<td class="center" >626</td>
<td class="center" >-16%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Podatek dochodowy"
data-val1="-212" data-val1b="-212"
data-val2="-239" data-val2b="-239"
data-val3="-274" data-val3b="-274"
data-val4="-167" data-val4b="-167"
data-val6="11%" data-val6b="11%"
>
<td >Podatek dochodowy</td>
<td class="center" >-212</td>
<td class="center" >-239</td>
<td class="center" >-274</td>
<td class="center" >-167</td>
<td class="center" >11%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Działalność zaniechana oraz aktywa trwałe przeznaczone do sprzedaży"
data-val1="-" data-val1b="-"
data-val2="-3" data-val2b="-3"
data-val3="-6" data-val3b="-6"
data-val4="-3" data-val4b="-3"
data-val6="100%" data-val6b="1 00%"
>
<td >Działalność zaniechana oraz aktywa trwałe przeznaczone do sprzedaży</td>
<td class="center" >-</td>
<td class="center" >-3</td>
<td class="center" >-6</td>
<td class="center" >-3</td>
<td class="center" >1 00%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Zysk netto za okres"
data-val1="840" data-val1b="840"
data-val2="1006" data-val2b="1 006"
data-val3="743" data-val3b="743"
data-val4="456" data-val4b="456"
data-val6="-17%" data-val6b="-17%"
>
<td >Zysk netto za okres</td>
<td class="center" >840</td>
<td class="center" >1 006</td>
<td class="center" >743</td>
<td class="center" >456</td>
<td class="center" >-17%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="EBITDA"
data-val1="2196" data-val1b="2 196"
data-val2="2307" data-val2b="2 307"
data-val3="1965" data-val3b="1 965"
data-val4="1629" data-val4b="1 629"
data-val6="-5%" data-val6b="-5%"
>
<td >EBITDA</td>
<td class="center" >2 196</td>
<td class="center" >2 307</td>
<td class="center" >1 965</td>
<td class="center" >1 629</td>
<td class="center" >-5%</td>
</tr> </tbody>
</table>
<p>* Dane 2012-2014 przekształcone</p>
</div>
<div class="col-md-12">
<div id="chart_div_1"></div>
</div>
</div>
</div>
<script>
google.charts.load('current', {packages: ['corechart', 'bar']});
google.charts.setOnLoadCallback(chart_div_1);
active_group = 'g0';
$(document).ready(function(){
$('.badabumik').on('click', function(){
check = $(this).data('check');
clask = $(this).data('class');
if(active_group != clask){
$('.badabumik').data('check',0);
$('.badabumik').removeClass('success');
}
active_group = clask;
if($(this).data('check')=='0'){
$(this).data('check','1');
$(this).addClass('success');
}else{
$(this).data('check','0');
$(this).removeClass('success');
}
chart_div_1();
});
});
function chart_div_1(){
zz=0;
desc = [''];
ar_2012 = ['2015'];
ar_2013 = ['2014'];
ar_2014 = ['2013'];
ar_2015 = ['2012'];
min = 0;
max = 0;
$('.badabumik').each(function(){
th=$(this);
if(th.data('check')==1){
zz++;
desc.push(th.data('val0')); desc.push({ role: 'tooltip'});
if(min>parseFloat(th.data('val1'))){ min = parseFloat(th.data('val1'))};
if(max<parseFloat(th.data('val1'))){ max = parseFloat(th.data('val1'))};
ar_2012.push(parseFloat(th.data('val1')));
ar_2012.push(th.data('val0')+': '+th.data('val1b'));
if(min>parseFloat(th.data('val2'))){ min = parseFloat(th.data('val2'))};
if(max<parseFloat(th.data('val2'))){ max = parseFloat(th.data('val2'))};
ar_2013.push(parseFloat(th.data('val2')));
ar_2013.push(th.data('val0')+': '+th.data('val2b'));
if(min>parseFloat(th.data('val3'))){ min = parseFloat(th.data('val3'))};
if(max<parseFloat(th.data('val3'))){ max = parseFloat(th.data('val3'))};
ar_2014.push(parseFloat(th.data('val3')));
ar_2014.push(th.data('val0')+': '+th.data('val3b'));
if(min>parseFloat(th.data('val4'))){ min = parseFloat(th.data('val4'))};
if(max<parseFloat(th.data('val4'))){ max = parseFloat(th.data('val4'))};
ar_2015.push(parseFloat(th.data('val4')));
ar_2015.push(th.data('val0')+': '+th.data('val4b'));
}
});
if(zz==0){
$('#chart_div_1').html('<p style="margin-top: 40px; font-family: EnergaBold, sans-serif; font-size: 18px; ">Proszę wybrać dane</p>');
}else{
ar = [desc];
ar.push(ar_2012);
ar.push(ar_2013);
ar.push(ar_2014);
ar.push(ar_2015);
var data = google.visualization.arrayToDataTable(ar);
var options = {
width: '100%',
height: 700,
legend: 'none',
colors: ['#6FB43F', '#C1D72D', '#d8d8d8', '#640036'],
annotations: {
alwaysInside: true,
textStyle: {
fontSize: 12,
color: '#000'
}
},
tooltip:{
format: 'percent'
},
vAxis: {
viewWindow: {
min: min,
max: max
},
baseline: 0,
// baselineColor: '#7c7c7c',
gridlines: {count: 0}
},
hAxis: {
textStyle:{color: '#666'},
gridlines: {count: 0}
},
};
var chart = new google.visualization.ColumnChart(document.getElementById('chart_div_1'));
chart.draw(data, options);
}
}
</script>
</div>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Strona'
)
$element = array(
'common' => array(),
'helper' => array(
'wykres' => '2'
)
)
$app_element = array(
'controller' => 'strona',
'action' => 'wykresy_interaktywne',
'lang' => 'PL'
)
$content_for_layout = '<div class="container">
<div class="container-fluid">
<div class="row m-t-20">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<div class="green_rectangle_top"></div>
<h2 class="section_title_top">Skonsolidowane sprawozdanie z zysków lub strat </h2>
</div>
<div class="row">
<div class="col-md-10">
<h3 class="site_headline purple">Skonsolidowane sprawozdanie z zysków lub strat w mln zł</h3>
</div>
<div class="col-md-2">
<a href="/strona/wykresy_interaktywne" target="_self">
<div class="knefel_interactive">
Powrót do spisu
</div>
</a>
</div>
</div>
</div>
<table class="table">
<thead>
<tr>
<th>w mln zł</th>
<th>2015</th>
<th>2014</th>
<th>2013</th>
<th>2012</th>
<th>Zmiana <br>2015/2014 (%)</th>
</tr>
</thead>
<tbody>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Przychody ze sprzedaży"
data-val1="10804" data-val1b="10 804"
data-val2="10590" data-val2b="10 590"
data-val3="11429" data-val3b="11 429"
data-val4="11177" data-val4b="11 177"
data-val6="2%" data-val6b="2%"
>
<td >Przychody ze sprzedaży</td>
<td class="center" >10 804</td>
<td class="center" >10 590</td>
<td class="center" >11 429</td>
<td class="center" >11 177</td>
<td class="center" >2%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Koszt własny sprzedaży"
data-val1="-8786" data-val1b="-8 786"
data-val2="-8464" data-val2b="-8 464"
data-val3="-9455" data-val3b="-9 455"
data-val4="-9482" data-val4b="-9 482"
data-val6="-4%" data-val6b="-4%"
>
<td >Koszt własny sprzedaży</td>
<td class="center" >-8 786</td>
<td class="center" >-8 464</td>
<td class="center" >-9 455</td>
<td class="center" >-9 482</td>
<td class="center" >-4%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Zysk brutto ze sprzedaży"
data-val1="2018" data-val1b="2 018"
data-val2="2126" data-val2b="2 126"
data-val3="1974" data-val3b="1 974"
data-val4="1694" data-val4b="1 694"
data-val6="-5%" data-val6b="-5%"
>
<td >Zysk brutto ze sprzedaży</td>
<td class="center" >2 018</td>
<td class="center" >2 126</td>
<td class="center" >1 974</td>
<td class="center" >1 694</td>
<td class="center" >-5%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Pozostałe przychody operacyjne "
data-val1="91" data-val1b="91"
data-val2="107" data-val2b="107"
data-val3="156" data-val3b="156"
data-val4="135" data-val4b="135"
data-val6="-15%" data-val6b="-15%"
>
<td >Pozostałe przychody operacyjne </td>
<td class="center" >91</td>
<td class="center" >107</td>
<td class="center" >156</td>
<td class="center" >135</td>
<td class="center" >-15%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Koszty sprzedaży"
data-val1="-336" data-val1b="-336"
data-val2="-312" data-val2b="-312"
data-val3="-294" data-val3b="-294"
data-val4="-308" data-val4b="-308"
data-val6="-8%" data-val6b="-8%"
>
<td >Koszty sprzedaży</td>
<td class="center" >-336</td>
<td class="center" >-312</td>
<td class="center" >-294</td>
<td class="center" >-308</td>
<td class="center" >-8%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Koszty ogólnego zarządu"
data-val1="-344" data-val1b="-344"
data-val2="-350" data-val2b="-350"
data-val3="-412" data-val3b="-412"
data-val4="-377" data-val4b="-377"
data-val6="2%" data-val6b="2%"
>
<td >Koszty ogólnego zarządu</td>
<td class="center" >-344</td>
<td class="center" >-350</td>
<td class="center" >-412</td>
<td class="center" >-377</td>
<td class="center" >2%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Pozostałe koszty operacyjne"
data-val1="-149" data-val1b="-149"
data-val2="-125" data-val2b="-125"
data-val3="-228" data-val3b="-228"
data-val4="-239" data-val4b="-239"
data-val6="-19%" data-val6b="-19%"
>
<td >Pozostałe koszty operacyjne</td>
<td class="center" >-149</td>
<td class="center" >-125</td>
<td class="center" >-228</td>
<td class="center" >-239</td>
<td class="center" >-19%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Zysk z działalności operacyjnej"
data-val1="1280" data-val1b="1 280"
data-val2="1446" data-val2b="1 446"
data-val3="1195" data-val3b="1 195"
data-val4="906" data-val4b="906"
data-val6="-11%" data-val6b="-11%"
>
<td >Zysk z działalności operacyjnej</td>
<td class="center" >1 280</td>
<td class="center" >1 446</td>
<td class="center" >1 195</td>
<td class="center" >906</td>
<td class="center" >-11%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Wynik na działalności finansowej"
data-val1="-228" data-val1b="-228"
data-val2="-198" data-val2b="-198"
data-val3="-172" data-val3b="-172"
data-val4="-280" data-val4b="-280"
data-val6="-15%" data-val6b="-15%"
>
<td >Wynik na działalności finansowej</td>
<td class="center" >-228</td>
<td class="center" >-198</td>
<td class="center" >-172</td>
<td class="center" >-280</td>
<td class="center" >-15%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Udział w zysku (stracie) jednostki stowarzyszonej"
data-val1="-" data-val1b="-"
data-val2="-" data-val2b="-"
data-val3="-1" data-val3b="-1"
data-val4="0" data-val4b="0"
data-val6="-" data-val6b="-"
>
<td >Udział w zysku (stracie) jednostki stowarzyszonej</td>
<td class="center" >-</td>
<td class="center" >-</td>
<td class="center" >-1</td>
<td class="center" >0</td>
<td class="center" >-</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Zysk brutto"
data-val1="1052" data-val1b="1 052"
data-val2="1248" data-val2b="1 248"
data-val3="1022" data-val3b="1 022"
data-val4="626" data-val4b="626"
data-val6="-16%" data-val6b="-16%"
>
<td >Zysk brutto</td>
<td class="center" >1 052</td>
<td class="center" >1 248</td>
<td class="center" >1 022</td>
<td class="center" >626</td>
<td class="center" >-16%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Podatek dochodowy"
data-val1="-212" data-val1b="-212"
data-val2="-239" data-val2b="-239"
data-val3="-274" data-val3b="-274"
data-val4="-167" data-val4b="-167"
data-val6="11%" data-val6b="11%"
>
<td >Podatek dochodowy</td>
<td class="center" >-212</td>
<td class="center" >-239</td>
<td class="center" >-274</td>
<td class="center" >-167</td>
<td class="center" >11%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Działalność zaniechana oraz aktywa trwałe przeznaczone do sprzedaży"
data-val1="-" data-val1b="-"
data-val2="-3" data-val2b="-3"
data-val3="-6" data-val3b="-6"
data-val4="-3" data-val4b="-3"
data-val6="100%" data-val6b="1 00%"
>
<td >Działalność zaniechana oraz aktywa trwałe przeznaczone do sprzedaży</td>
<td class="center" >-</td>
<td class="center" >-3</td>
<td class="center" >-6</td>
<td class="center" >-3</td>
<td class="center" >1 00%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Zysk netto za okres"
data-val1="840" data-val1b="840"
data-val2="1006" data-val2b="1 006"
data-val3="743" data-val3b="743"
data-val4="456" data-val4b="456"
data-val6="-17%" data-val6b="-17%"
>
<td >Zysk netto za okres</td>
<td class="center" >840</td>
<td class="center" >1 006</td>
<td class="center" >743</td>
<td class="center" >456</td>
<td class="center" >-17%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="EBITDA"
data-val1="2196" data-val1b="2 196"
data-val2="2307" data-val2b="2 307"
data-val3="1965" data-val3b="1 965"
data-val4="1629" data-val4b="1 629"
data-val6="-5%" data-val6b="-5%"
>
<td >EBITDA</td>
<td class="center" >2 196</td>
<td class="center" >2 307</td>
<td class="center" >1 965</td>
<td class="center" >1 629</td>
<td class="center" >-5%</td>
</tr> </tbody>
</table>
<p>* Dane 2012-2014 przekształcone</p>
</div>
<div class="col-md-12">
<div id="chart_div_1"></div>
</div>
</div>
</div>
<script>
google.charts.load('current', {packages: ['corechart', 'bar']});
google.charts.setOnLoadCallback(chart_div_1);
active_group = 'g0';
$(document).ready(function(){
$('.badabumik').on('click', function(){
check = $(this).data('check');
clask = $(this).data('class');
if(active_group != clask){
$('.badabumik').data('check',0);
$('.badabumik').removeClass('success');
}
active_group = clask;
if($(this).data('check')=='0'){
$(this).data('check','1');
$(this).addClass('success');
}else{
$(this).data('check','0');
$(this).removeClass('success');
}
chart_div_1();
});
});
function chart_div_1(){
zz=0;
desc = [''];
ar_2012 = ['2015'];
ar_2013 = ['2014'];
ar_2014 = ['2013'];
ar_2015 = ['2012'];
min = 0;
max = 0;
$('.badabumik').each(function(){
th=$(this);
if(th.data('check')==1){
zz++;
desc.push(th.data('val0')); desc.push({ role: 'tooltip'});
if(min>parseFloat(th.data('val1'))){ min = parseFloat(th.data('val1'))};
if(max<parseFloat(th.data('val1'))){ max = parseFloat(th.data('val1'))};
ar_2012.push(parseFloat(th.data('val1')));
ar_2012.push(th.data('val0')+': '+th.data('val1b'));
if(min>parseFloat(th.data('val2'))){ min = parseFloat(th.data('val2'))};
if(max<parseFloat(th.data('val2'))){ max = parseFloat(th.data('val2'))};
ar_2013.push(parseFloat(th.data('val2')));
ar_2013.push(th.data('val0')+': '+th.data('val2b'));
if(min>parseFloat(th.data('val3'))){ min = parseFloat(th.data('val3'))};
if(max<parseFloat(th.data('val3'))){ max = parseFloat(th.data('val3'))};
ar_2014.push(parseFloat(th.data('val3')));
ar_2014.push(th.data('val0')+': '+th.data('val3b'));
if(min>parseFloat(th.data('val4'))){ min = parseFloat(th.data('val4'))};
if(max<parseFloat(th.data('val4'))){ max = parseFloat(th.data('val4'))};
ar_2015.push(parseFloat(th.data('val4')));
ar_2015.push(th.data('val0')+': '+th.data('val4b'));
}
});
if(zz==0){
$('#chart_div_1').html('<p style="margin-top: 40px; font-family: EnergaBold, sans-serif; font-size: 18px; ">Proszę wybrać dane</p>');
}else{
ar = [desc];
ar.push(ar_2012);
ar.push(ar_2013);
ar.push(ar_2014);
ar.push(ar_2015);
var data = google.visualization.arrayToDataTable(ar);
var options = {
width: '100%',
height: 700,
legend: 'none',
colors: ['#6FB43F', '#C1D72D', '#d8d8d8', '#640036'],
annotations: {
alwaysInside: true,
textStyle: {
fontSize: 12,
color: '#000'
}
},
tooltip:{
format: 'percent'
},
vAxis: {
viewWindow: {
min: min,
max: max
},
baseline: 0,
// baselineColor: '#7c7c7c',
gridlines: {count: 0}
},
hAxis: {
textStyle:{color: '#666'},
gridlines: {count: 0}
},
};
var chart = new google.visualization.ColumnChart(document.getElementById('chart_div_1'));
chart.draw(data, options);
}
}
</script>
</div>
'
$scripts_for_layout = ''
$title_for_layout = 'Strona'
include - APP/View/Layouts/default.ctp, line 91
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::renderLayout() - CORE/Cake/View/View.php, line 546
View::render() - CORE/Cake/View/View.php, line 481
Controller::render() - CORE/Cake/Controller/Controller.php, line 960
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118