Skip to content

Commit

Permalink
MantisGraph, add pie chart in Category Graph
Browse files Browse the repository at this point in the history
Fixes: #22099
  • Loading branch information
cproensa authored and dregad committed Feb 14, 2019
1 parent 4ec7a42 commit fe4ec5c
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions plugins/MantisGraph/pages/category_graph.php
Expand Up @@ -38,23 +38,24 @@
?>

<div class="col-md-12 col-xs-12">
<div class="space-10"></div>

<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart-o"></i>
<?php echo plugin_lang_get( 'graph_imp_category_title' ) ?>
</h4>
</div>

<?php
graph_bar( $t_metrics, lang_get( 'by_category' ), $t_series_name );
# echo '<div class="space-10"></div>';
# graph_pie( $t_metrics, plugin_lang_get( 'by_category_pct' ) );
?>

</div>
<div class="space-10"></div>

<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart-o"></i>
<?php echo plugin_lang_get( 'graph_imp_category_title' ) ?>
</h4>
</div>

<div class="col-md-6 col-xs-12">
<?php graph_bar( $t_metrics, lang_get( 'by_category' ), $t_series_name ); ?>
</div>

<div class="col-md-6 col-xs-12">
<?php graph_pie( $t_metrics, plugin_lang_get( 'by_category_pct' ) ); ?>
</div>
</div>
</div>

<?php
Expand Down

0 comments on commit fe4ec5c

Please sign in to comment.