Skip to content

Commit f147776

Browse files
committed
Minor improvements to graph esthetics
1 parent e36d15b commit f147776

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/dashboard/block_student_graph/block_student_graph.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function get_students_attendance_graph() {
175175
//X axis
176176
$test->setFixedScale(0,100,10);
177177
//var_dump($data_set->GetDataDescription());
178-
$test->drawHorScale($data_set->GetData(),$data_set->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE);
178+
$test->drawHorScale($data_set->GetData(),$data_set->GetDataDescription(),SCALE_ADDALL,150,150,150,TRUE,0,0,TRUE);
179179
$test->setColorPalette(0,255,0,0);
180180
$test->drawHorGrid(10,TRUE,230,230,230,50);
181181

@@ -184,7 +184,7 @@ public function get_students_attendance_graph() {
184184
$test->drawTreshold(0,143,55,72,TRUE,TRUE);
185185

186186
// Draw the bar graph
187-
$test->drawHorBarGraph($data_set->GetData(),$data_set->GetDataDescription(),FALSE);
187+
$test->drawHorBarGraph($data_set->GetData(),$data_set->GetDataDescription(),TRUE,50);
188188

189189
$cache->WriteToCache($graph_id, $data_set->GetData(), $test);
190190

0 commit comments

Comments
 (0)