2 pie in div

pull/18/head
= 2017-09-12 12:03:58 +02:00
parent c3344cb804
commit dd9fd918dc
2 changed files with 5 additions and 3 deletions

View File

@ -164,7 +164,8 @@ $(document).ready(function () {
{ label: "Series3", data: 60} { label: "Series3", data: 60}
]; ];
var plotLineChart = $.plot("#feedDiv3", sources.getEmptyData(), optionsLineChart); var plotLineChart = $.plot("#feedDiv3", sources.getEmptyData(), optionsLineChart);
var plotPieChart = $.plot("#feedDiv1", rData, optionsPieChart); var plotPieChartA = $.plot("#feedDiv1A", rData, optionsPieChart);
var plotPieChartB = $.plot("#feedDiv1B", rData, optionsPieChart);
updateChart() updateChart()
function updateChart() { function updateChart() {

View File

@ -49,8 +49,9 @@ table {
<div class="panel-heading"> <div class="panel-heading">
<i class="fa fa-bar-chart-o fa-fw"></i> Statistics <i class="fa fa-bar-chart-o fa-fw"></i> Statistics
</div> </div>
<div id="panelbody" class="panel-body" style="height: 37vh;"> <div id="panelbody" class="panel-body" style="height: 37vh; width:100%;">
<div id="feedDiv1" style="width:100%; height: calc(100% - 30px); position: relative;"></div> <div id="feedDiv1A" style="width:50%; height: calc(100% - 30px); position: relative; float: left;"></div>
<div id="feedDiv1B" style="width:50%; height: calc(100% - 30px); position: relative; float: left;"></div>
</div> </div>
<!-- /.panel-body --> <!-- /.panel-body -->