Skip to content

Commit

Permalink
perbaikan menampilkan grafik
Browse files Browse the repository at this point in the history
  • Loading branch information
pandigresik committed Feb 11, 2024
1 parent 4519a04 commit 5bc14f3
Show file tree
Hide file tree
Showing 114 changed files with 123 additions and 38,821 deletions.
3 changes: 2 additions & 1 deletion akademik/include/chartfactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ function DrawBarChart() {
if ( (count($this->xdata) == 0) || (count($this->ydata) == 0) ) return;

//Buat grafik
$graph = new Graph(450,300,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(450,300,"auto");
$graph->SetScale("textlin");

//setting kanvas
Expand Down
1 change: 1 addition & 0 deletions akademik/mutasi/gambar_statistik.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
}else {

//Buat grafik
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(450,300,"auto");
$graph->SetScale("textlin");

Expand Down
1 change: 1 addition & 0 deletions akademik/presensi/statistik_batang.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
$color = ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]'];

//Buat grafik
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(300,200,"auto");
$graph->SetScale("textlin");

Expand Down
1 change: 1 addition & 0 deletions akademik/presensi/statistik_batang1.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@


//Buat grafik
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(500,280,"auto");
$graph->SetScale("textlin");

Expand Down
5 changes: 4 additions & 1 deletion akademik/presensi/statistik_harianbatang.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
**[N]**/ ?>
**[N]**/

?>
<?php
include_once '../../vendor/autoload.php';
require_once('../include/config.php');
Expand Down Expand Up @@ -80,6 +82,7 @@
$color = ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]'];

//Buat grafik
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(300,200,"auto");
$graph->SetScale("textlin");

Expand Down
14 changes: 10 additions & 4 deletions akademik/siswa/statistik_batang.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
**[N]**/ ?>
**[N]**/

?>
<?php
include_once '../../vendor/autoload.php';
require_once('../include/config.php');
require_once('../include/db_functions.php');

mitoteam\jpgraph\MtJpGraph::load();
//echo "Masuk"; exit;
$color = ['red', 'green', 'yellow', 'blue', 'orange', 'darkblue', 'gold', 'navy', 'gray', 'darkred', 'darkgreen', 'pink', 'black'];

Expand Down Expand Up @@ -87,7 +90,8 @@
$data5 = [$j5];

//Buat grafik
$graph = new Graph(450,300,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(450,300,"auto");
$graph->SetScale("textlin");

$lab = ["Penghasilan"];
Expand Down Expand Up @@ -293,7 +297,8 @@
if ($iddasar == "2" || $iddasar=="6" ) {

//Buat grafik
$graph = new Graph(450,300,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(450,300,"auto");
$graph->SetScale("textlin");

//setting kanvas
Expand Down Expand Up @@ -348,7 +353,8 @@
$graph->Stroke();
} else {
//Buat grafik
$graph = new Graph(450,300,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(450,300,"auto");
$graph->SetScale("textlin");

//setting kanvas
Expand Down
1 change: 1 addition & 0 deletions akademik/siswa/statistik_batang2.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@


//Buat grafik
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(450,300,"auto");
$graph->SetScale("textlin");

Expand Down
9 changes: 6 additions & 3 deletions akademik/siswa_baru/statistik_batang.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
$data5 = [$j5];

//Buat grafik
$graph = new Graph(450,300,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(450,300,"auto");
$graph->SetScale("textlin");

$lab = ["Penghasilan"];
Expand Down Expand Up @@ -282,7 +283,8 @@
if ($iddasar == "2" || $iddasar=="6" ) {

//Buat grafik
$graph = new Graph(450,300,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(450,300,"auto");
$graph->SetScale("textlin");

//setting kanvas
Expand Down Expand Up @@ -338,7 +340,8 @@
} else {

//Buat grafik
$graph = new Graph(450,300,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(450,300,"auto");
$graph->SetScale("textlin");

//setting kanvas
Expand Down
1 change: 1 addition & 0 deletions akademik/siswa_baru/statistik_batang2.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@


//Buat grafik
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(450,300,"auto");
$graph->SetScale("textlin");

Expand Down
3 changes: 2 additions & 1 deletion anjungan/library/chartfactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ function DrawBarChart()
//$months = $gDateLocale->GetShortMonth();

// Create the graph.
$graph = new Graph(805, 250);
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(805, 250);
$graph->SetScale("textlin");
$graph->SetMarginColor('white');

Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"require": {
"phpoffice/phpspreadsheet": "^2.0",
"mitoteam/jpgraph": "^10.4",
"rospdf/pdf-php": "^0.12.67",
"picqer/php-barcode-generator": "^2.4"
}
}
76 changes: 1 addition & 75 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions ema/inc/getheader.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ function getHeader($dep)
$row = @mysqli_fetch_array($result);
$replid = $row['replid'];
$nama = $row['nama'];
$alamat1 = $row[\ALAMAT1];
$alamat2 = $row[\ALAMAT2];
$te1p1 = $row[\TELP1];
$telp2 = $row[\TELP2];
$te1p3 = $row[\TELP3];
$telp4 = $row[\TELP4];
$fax1 = $row[\FAX1];
$fax2 = $row[\FAX2];
$alamat1 = $row['ALAMAT1'];
$alamat2 = $row['ALAMAT2'];
$te1p1 = $row['TELP1'];
$telp2 = $row['TELP2'];
$te1p3 = $row['TELP3'];
$telp4 = $row['TELP4'];
$fax1 = $row['FAX1'];
$fax2 = $row['FAX2'];
$situs = $row['situs'];
$email = $row['email'];
$head = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
Expand Down
3 changes: 2 additions & 1 deletion ema/lib/chartfactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ function DrawBarChart() {
if ( (count($this->xdata) == 0) || (count($this->ydata) == 0) ) return;

//Buat grafik
$graph = new Graph(550,280,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(550,280,"auto");
$graph->SetScale("textlin");

//setting kanvas
Expand Down
3 changes: 2 additions & 1 deletion ema/lib/chartfactory2.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ function DrawBarChart() {
//$months = $gDateLocale->GetShortMonth();

// Create the graph.
$graph = new Graph(400,225);
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(400,225);
$graph->SetScale("textlin");
$graph->SetMarginColor('white');

Expand Down
3 changes: 2 additions & 1 deletion ema/lib/chartfactory3.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ function DrawBarChart() {
//$months = $gDateLocale->GetShortMonth();

// Create the graph.
$graph = new Graph(400,300);
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(400,300);
$graph->SetScale("textlin");
$graph->SetMarginColor('white');

Expand Down
3 changes: 2 additions & 1 deletion ema/lib/chartfactory_orig.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ function DrawBarChart() {
//$months = $gDateLocale->GetShortMonth();

// Create the graph.
$graph = new Graph(400,300);
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(400,300);
$graph->SetScale("textlin");
$graph->SetMarginColor('white');

Expand Down
3 changes: 2 additions & 1 deletion ema/siswa/statimagenilai.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@
$color = ['#cd9b9b', '#7d26cd', '#8b1c62', '#b03060', '#faf0e6', '#ff69b4', '#d2d2d2', '#7fff00', '#00bfff', '#ff1493', '#6e8b3d', '#b8860b', '#00ffff', '#dcdcdc', '#00c5cd', '#a52a2a'];

//=====================================================
$graph = new Graph(550,275,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(550,275,"auto");
$graph->SetScale("textlin");

//setting kanvas
Expand Down
3 changes: 2 additions & 1 deletion infoguru/include/chartfactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ function DrawBarChart() {
if ( (count($this->xdata) == 0) || (count($this->ydata) == 0) ) return;

//Buat grafik
$graph = new Graph(550,300,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(550,300,"auto");
$graph->SetScale("textlin");

//setting kanvas
Expand Down
16 changes: 8 additions & 8 deletions infoguru/include/getheader.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ function getHeader($dep){
$row = @mysqli_fetch_array($result);
$replid = $row['replid'];
$nama = $row['nama'];
$alamat1 = $row[\ALAMAT1];
$alamat2 = $row[\ALAMAT2];
$te1p1 = $row[\TELP1];
$telp2 = $row[\TELP2];
$te1p3 = $row[\TELP3];
$telp4 = $row[\TELP4];
$fax1 = $row[\FAX1];
$fax2 = $row[\FAX2];
$alamat1 = $row['ALAMAT1'];
$alamat2 = $row['ALAMAT2'];
$te1p1 = $row['TELP1'];
$telp2 = $row['TELP2'];
$te1p3 = $row['TELP3'];
$telp4 = $row['TELP4'];
$fax1 = $row['FAX1'];
$fax2 = $row['FAX2'];
$situs = $row['situs'];
$email = $row['email'];
$head = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
Expand Down
1 change: 1 addition & 0 deletions infoguru/presensi/statistik_batang.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
$color = ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]'];

//Buat grafik
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(300,200,"auto");
$graph->SetScale("textlin");

Expand Down
1 change: 1 addition & 0 deletions infoguru/presensi/statistik_batang1.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@


//Buat grafik
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(500,280,"auto");
$graph->SetScale("textlin");

Expand Down
1 change: 1 addition & 0 deletions infoguru/presensi/statistik_harianbatang.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
$color = ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]'];

//Buat grafik
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(300,200,"auto");
$graph->SetScale("textlin");

Expand Down
3 changes: 2 additions & 1 deletion infoguru/siswa/statimagenilai.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
$color = ['#cd9b9b', '#7d26cd', '#8b1c62', '#b03060', '#faf0e6', '#ff69b4', '#d2d2d2', '#7fff00', '#00bfff', '#ff1493', '#6e8b3d', '#b8860b', '#00ffff', '#dcdcdc', '#00c5cd', '#a52a2a'];

//=====================================================
$graph = new Graph(550,275,"auto");
mitoteam\jpgraph\MtJpGraph::load(['bar']);
$graph = new Graph(550,275,"auto");
$graph->SetScale("textlin");

//setting kanvas
Expand Down
Loading

0 comments on commit 5bc14f3

Please sign in to comment.