diff options
author | Tyron Madlener <tyronx@gmail.com> | 2011-06-09 17:36:41 +0400 |
---|---|---|
committer | Tyron Madlener <tyronx@gmail.com> | 2011-06-09 17:36:41 +0400 |
commit | 21b65e56f4decdce8c634272c59329fe95a47136 (patch) | |
tree | 61803e9c177d5428a834292aefe39972b1221343 /tbl_chart.php | |
parent | c928d53ef83438bbd1639a473dfcd4ecaa43101d (diff) |
A currently rather strange series selection to behave similar to the old charting system
Diffstat (limited to 'tbl_chart.php')
-rw-r--r-- | tbl_chart.php | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/tbl_chart.php b/tbl_chart.php index 49635175cf..a7aed61248 100644 --- a/tbl_chart.php +++ b/tbl_chart.php @@ -105,8 +105,9 @@ url_query = '<?php echo $url_query;?>'; <br> <input type="text" name="chartTitle" value="<?php echo __('Chart title'); ?>"> <?php $keys = array_keys($data[0]); - if(count($keys)>1) { - echo __('X-Axis:'); ?> <select name="chartXAxis"> + if(count($keys)>1) { + echo '<br>'; + echo __('X-Axis:'); ?> <select name="chartXAxis"> <?php $yaxis=-1; @@ -120,10 +121,20 @@ url_query = '<?php echo $url_query;?>'; } ?> + </select><br> + <?php echo __('Series:'); ?> + <select name="chartSeries"> + <option value="columns"><?php echo __('The remaining columns'); ?></option> + <?php + foreach($keys as $idx=>$key) { + echo '<option>'.$key.'</option>'; + } + ?> </select> - <?php - } - ?> + <?php + } + ?> + </div> <div style="float:left; padding-left:40px;"> <?php echo __('X-Axis label:'); ?> <input style="margin-top:0;" type="text" name="xaxis_label" value="<?php echo $keys[$yaxis]; ?>"><br> |