Jump to content

[SOLVED] baachart help


c172cpt

Recommended Posts

i am having problems using the baachart class i cant figure out how to get it to display the variables (defined before the following code)

$chart = new baaChart(600);

$chart->setTitle('Orangepeel Connection Stats','for $value');

$chart->setXLabels($day1['name'],$day2['name'],$day3['name'],$day4['name'],$day5['name'],$day6['name'],$day7['name']);

$chart->setXAxis("Past 7 Days");

$chart->setYAxis("Connections",0,100,10,1);

$chart->setSeriesColor(1,0,204,255);//successfull color

$chart->setSeriesColor(2,0,204,153);//failed color

$chart->addDataSeries('C',0,$day1['good'],$day2['good'],$day3['good'],$day4['good'],$day5['good'],$day6['good'],$day7['good'], "Successfull Connections");

$chart->addDataSeries('C',0,$day1['bad'],$day2['bad'],$day3['bad'],$day4['bad'],$day5['bad'],$day6['bad'],$day7['bad'],"Failed Connections");

$chart->drawGraph();

 

the output is at

www.orangepeelsoft.com/orange/reports.php

 

any ideas??

 

-scott-

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.