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' => '10'
)
),
'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">Dystrybucja energii elektrycznej wg grup taryfowych</h2>
</div>
</div>
<div class="row">
<div class="col-md-10">
<h3 class="site_headline purple">Dystrybucja energii elektrycznej wg grup taryfowych w GWh – sprzedaż zafakturowana*</h3>
</div>
<div class="col-md-2 col-xs-12">
<a href="/strona/wykresy_interaktywne" target="_self">
<div class="knefel_interactive">
Powrót do spisu
</div>
</a>
</div>
</div>
<table class="table">
<thead>
<tr>
<th></th>
<th>2012</th>
<th>2013</th>
<th>2014</th>
<th>2015*</th>
<th>Zmiana <br>w 2015/2014 (%)</th>
</tr>
</thead>
<tbody>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Grupa taryfowa A (WN)"
data-val1="3783" data-val1b="3 783"
data-val2="3948" data-val2b="3 948"
data-val3="4143" data-val3b="4 143"
data-val4="4280" data-val4b="4 280"
data-val6="3%"
>
<td >Grupa taryfowa A (WN)</td>
<td class="center">3 783</td>
<td class="center">3 948</td>
<td class="center">4 143</td>
<td class="center">4 280</td>
<td class="center">3%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Grupa taryfowa B (SN)"
data-val1="6654" data-val1b="6 654"
data-val2="6829" data-val2b="6 829"
data-val3="7210" data-val3b="7 210"
data-val4="7531" data-val4b="7 531"
data-val6="4%"
>
<td >Grupa taryfowa B (SN)</td>
<td class="center">6 654</td>
<td class="center">6 829</td>
<td class="center">7 210</td>
<td class="center">7 531</td>
<td class="center">4%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Grupa taryfowa C (nN)"
data-val1="4172" data-val1b="4 172"
data-val2="4250" data-val2b="4 250"
data-val3="4246" data-val3b="4 246"
data-val4="4283" data-val4b="4 283"
data-val6="1%"
>
<td >Grupa taryfowa C (nN)</td>
<td class="center">4 172</td>
<td class="center">4 250</td>
<td class="center">4 246</td>
<td class="center">4 283</td>
<td class="center">1%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Grupa taryfowa G (nN)"
data-val1="5450" data-val1b="5 450"
data-val2="5418" data-val2b="5 418"
data-val3="5323" data-val3b="5 323"
data-val4="5392" data-val4b="5 392"
data-val6="1%"
>
<td >Grupa taryfowa G (nN)</td>
<td class="center">5 450</td>
<td class="center">5 418</td>
<td class="center">5 323</td>
<td class="center">5 392</td>
<td class="center">1%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Dystrybucja energii razem"
data-val1="20058" data-val1b="20 058"
data-val2="20444" data-val2b="20 444"
data-val3="20923" data-val3b="20 923"
data-val4="21486" data-val4b="21 486"
data-val6="3%"
>
<td >Dystrybucja energii razem</td>
<td class="center">20 058</td>
<td class="center">20 444</td>
<td class="center">20 923</td>
<td class="center">21 486</td>
<td class="center">3%</td>
</tr> </tbody>
</table>
<p>*W przypadku danych za rok 2015 (dotyczy taryf C i G) dane o sprzedaży zafakturowanej zostały powiększone o wolumen dostarczonej energii elektrycznej (na podstawie odczytów), który nie został zafakturowany ze względu na przesunięcie fakturowania związane z migracją danych do nowych systemów bilingowych.</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 = ['2012'];
ar_2013 = ['2013'];
ar_2014 = ['2014'];
ar_2015 = ['2015'];
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' => '10'
)
)
$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">Dystrybucja energii elektrycznej wg grup taryfowych</h2>
</div>
</div>
<div class="row">
<div class="col-md-10">
<h3 class="site_headline purple">Dystrybucja energii elektrycznej wg grup taryfowych w GWh – sprzedaż zafakturowana*</h3>
</div>
<div class="col-md-2 col-xs-12">
<a href="/strona/wykresy_interaktywne" target="_self">
<div class="knefel_interactive">
Powrót do spisu
</div>
</a>
</div>
</div>
<table class="table">
<thead>
<tr>
<th></th>
<th>2012</th>
<th>2013</th>
<th>2014</th>
<th>2015*</th>
<th>Zmiana <br>w 2015/2014 (%)</th>
</tr>
</thead>
<tbody>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Grupa taryfowa A (WN)"
data-val1="3783" data-val1b="3 783"
data-val2="3948" data-val2b="3 948"
data-val3="4143" data-val3b="4 143"
data-val4="4280" data-val4b="4 280"
data-val6="3%"
>
<td >Grupa taryfowa A (WN)</td>
<td class="center">3 783</td>
<td class="center">3 948</td>
<td class="center">4 143</td>
<td class="center">4 280</td>
<td class="center">3%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Grupa taryfowa B (SN)"
data-val1="6654" data-val1b="6 654"
data-val2="6829" data-val2b="6 829"
data-val3="7210" data-val3b="7 210"
data-val4="7531" data-val4b="7 531"
data-val6="4%"
>
<td >Grupa taryfowa B (SN)</td>
<td class="center">6 654</td>
<td class="center">6 829</td>
<td class="center">7 210</td>
<td class="center">7 531</td>
<td class="center">4%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Grupa taryfowa C (nN)"
data-val1="4172" data-val1b="4 172"
data-val2="4250" data-val2b="4 250"
data-val3="4246" data-val3b="4 246"
data-val4="4283" data-val4b="4 283"
data-val6="1%"
>
<td >Grupa taryfowa C (nN)</td>
<td class="center">4 172</td>
<td class="center">4 250</td>
<td class="center">4 246</td>
<td class="center">4 283</td>
<td class="center">1%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Grupa taryfowa G (nN)"
data-val1="5450" data-val1b="5 450"
data-val2="5418" data-val2b="5 418"
data-val3="5323" data-val3b="5 323"
data-val4="5392" data-val4b="5 392"
data-val6="1%"
>
<td >Grupa taryfowa G (nN)</td>
<td class="center">5 450</td>
<td class="center">5 418</td>
<td class="center">5 323</td>
<td class="center">5 392</td>
<td class="center">1%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Dystrybucja energii razem"
data-val1="20058" data-val1b="20 058"
data-val2="20444" data-val2b="20 444"
data-val3="20923" data-val3b="20 923"
data-val4="21486" data-val4b="21 486"
data-val6="3%"
>
<td >Dystrybucja energii razem</td>
<td class="center">20 058</td>
<td class="center">20 444</td>
<td class="center">20 923</td>
<td class="center">21 486</td>
<td class="center">3%</td>
</tr> </tbody>
</table>
<p>*W przypadku danych za rok 2015 (dotyczy taryf C i G) dane o sprzedaży zafakturowanej zostały powiększone o wolumen dostarczonej energii elektrycznej (na podstawie odczytów), który nie został zafakturowany ze względu na przesunięcie fakturowania związane z migracją danych do nowych systemów bilingowych.</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 = ['2012'];
ar_2013 = ['2013'];
ar_2014 = ['2014'];
ar_2015 = ['2015'];
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