Created
February 8, 2012 05:49
-
-
Save yesidays/1765878 to your computer and use it in GitHub Desktop.
codejobs.biz - Grafica de barras - Codeigniter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function barras() { | |
$this->load->library('phpgraphlib'); | |
$graph = new PHPGraphLib(350,200); | |
for ($j=1;$j<=$total;$j++) { | |
$graph->addData($data[$j]); | |
} | |
$graph->setBars(false); | |
$graph->setLine(true); | |
$graph->setDataPoints(true); | |
$graph->setTitle('Menciones por Canal dentro de : '.utf8_decode($camp).''); | |
$graph->setLineColor("#FF0000", "#1D669D","#E7DE1D","#AB9999","#002102","#BBDDFF","#D91012","#ABB291","#CC0022","#DD9922","#AB2211"); | |
$graph->setDataPoints(false); | |
$graph->setDataPointColor('maroon'); | |
$graph->setDataValueColor('maroon'); | |
$graph->setGoalLine(.0025); | |
$graph->setGoalLineColor('red'); | |
$graph->createGraph(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment