Permalink
Browse files

Improvements to the standard deviation bars display

  • Loading branch information...
martin
martin committed Aug 14, 2002
1 parent fb8418d commit 961669acbc9eee63ff686abb5d39ecb29a8a2056
Showing with 10 additions and 11 deletions.
  1. +10 −11 mod/survey/graph.php
View
@@ -64,9 +64,9 @@
$graph->x_data = $options;
$graph->y_data['answers1'] = $buckets1;
- $graph->y_format['answers1'] = array('colour' => 'blue','bar' => 'fill','legend' =>'actual','bar_size' => 0.4);
+ $graph->y_format['answers1'] = array('colour' => 'ltblue','bar' => 'fill','legend' =>'actual','bar_size' => 0.4);
$graph->y_data['answers2'] = $buckets2;
- $graph->y_format['answers2'] = array('colour'=>'green','bar' => 'fill','legend' =>'preferred','bar_size' => 0.2);
+ $graph->y_format['answers2'] = array('colour' =>'ltgreen','bar' => 'fill','legend' =>'preferred','bar_size' => 0.2);
$graph->parameter['legend'] = 'outside-top';
$graph->parameter['legend_border'] = 'black';
@@ -174,10 +174,10 @@
'shadow_offset' => 4, 'legend' => 'preferred');
$graph->y_data['stdev1'] = $stdev1;
$graph->y_format['stdev1'] = array('colour' => 'ltltblue', 'bar' => 'fill',
- 'shadow_offset' => '4', 'legend' => 'none');
+ 'shadow_offset' => '4', 'legend' => 'none', 'bar_size' => 0.3);
$graph->y_data['stdev2'] = $stdev2;
$graph->y_format['stdev2'] = array('colour' => 'ltltgreen', 'bar' => 'fill',
- 'shadow_offset' => '4', 'legend' => 'none');
+ 'shadow_offset' => '4', 'legend' => 'none', 'bar_size' => 0.2);
$graph->offset_relation['stdev1'] = 'answers1';
$graph->offset_relation['stdev2'] = 'answers2';
@@ -301,14 +301,13 @@
$graph->y_data['stdev1'] = $stdev1;
$graph->y_format['stdev1'] = array('colour' => 'ltltblue', 'bar' => 'fill',
- 'shadow_offset' => '4', 'legend' => 'none');
+ 'shadow_offset' => '4', 'legend' => 'none', 'bar_size' => 0.3);
$graph->y_data['stdev2'] = $stdev2;
$graph->y_format['stdev2'] = array('colour' => 'ltltgreen', 'bar' => 'fill',
- 'shadow_offset' => '4', 'legend' => 'none');
+ 'shadow_offset' => '4', 'legend' => 'none', 'bar_size' => 0.2);
$graph->offset_relation['stdev1'] = 'answers1';
$graph->offset_relation['stdev2'] = 'answers2';
- $graph->parameter['bar_size'] = 0.15;
$graph->parameter['legend'] = 'outside-top';
$graph->parameter['legend_border'] = 'black';
$graph->parameter['legend_offset'] = 4;
@@ -452,10 +451,10 @@
'shadow_offset' => 4, 'legend' => 'student preferred');
$graph->y_data['stdev1'] = $stdev1;
$graph->y_format['stdev1'] = array('colour' => 'ltltblue', 'bar' => 'fill',
- 'shadow_offset' => 0.1, 'legend' => 'none');
+ 'shadow_offset' => 0.1, 'legend' => 'none', 'bar_size' => 0.3);
$graph->y_data['stdev2'] = $stdev2;
$graph->y_format['stdev2'] = array('colour' => 'ltltgreen', 'bar' => 'fill',
- 'shadow_offset' => 0.1, 'legend' => 'none');
+ 'shadow_offset' => 0.1, 'legend' => 'none', 'bar_size' => 0.2);
$graph->offset_relation['stdev1'] = 'answers1';
$graph->offset_relation['stdev2'] = 'answers2';
@@ -596,10 +595,10 @@
'shadow_offset' => 4, 'legend' => 'student preferred');
$graph->y_data['stdev1'] = $stdev1;
$graph->y_format['stdev1'] = array('colour' => 'ltltblue', 'bar' => 'fill',
- 'shadow_offset' => 0.1, 'legend' => 'none');
+ 'shadow_offset' => 0.1, 'legend' => 'none', 'bar_size' => 0.3);
$graph->y_data['stdev2'] = $stdev2;
$graph->y_format['stdev2'] = array('colour' => 'ltltgreen', 'bar' => 'fill',
- 'shadow_offset' => 0.1, 'legend' => 'none');
+ 'shadow_offset' => 0.1, 'legend' => 'none', 'bar_size' => 0.2);
$graph->offset_relation['stdev1'] = 'answers1';
$graph->offset_relation['stdev2'] = 'answers2';

0 comments on commit 961669a

Please sign in to comment.