Remarks:
This is php code to generate weekly Chart
<?php

include_once '../lib_chart/config.inc.php';
require_once '../config/config.inc';
require_once MODULE.'/MainLibrary.php';

error_reporting(0);


CreateWeeklyChart();




function CreateWeeklyChart()
{
$con=DBManager::getInstance();
    $sqldaily="select distinct(TDate),nepseindex from tbl_nepseindex where
weekday=4 order by TDate desc limit 0,5";
$IndexValue=array();
$MainDate=array();

                    $rsDaily=$con->execute($sqldaily);
                    while(!$rsDaily->EOF)
                    {

                        $IndexValue[]=$rsDaily->fields('nepseindex');
                        $Date[]=$rsDaily->fields('TDate');


                        $rsDaily->MoveNext();
                    }

                    for($i=count($Date);$i>0;$i--)
                    {
                        $tempdate=$Date[$i-1];
                        $MainDate[]=str_replace("-","/",$tempdate);
                        $MainIndexValue[]=$IndexValue[$i-1];
                    }

$chart = new QAreachartGoogleGraph;
$chart    ->addDrawProperties(
            array(
                "title"=>'Nepse Index',
                'isStacked'=>'true',

                "backgroundColor" => "{backgroundColor:
{stroke:'black',strokeSize: 1}}",
                "width"=>275,


            )
        )
        ->addColumns(array(array('string', 'Date'),array('number',
'Index')));


for($i=0;$i<count($Date);$i++)
{
$chart->setValues(
            array(
                array($i, 0, $MainDate[$i]),
                array($i, 1,(float)$MainIndexValue[$i])
                )
        );

}
echo $chart->render();
}

Remarks:this php page is used in jquery tab which is shown below:
<div id="container-nepse" style="background-image:url(images/gray_mid.gif)">
                  <ul class="ui-tabs-nav">
                  <li class="ui-tabs-loading"><a
href="#Daily">Daily</a></li>
                <li><a href="#Weekly">Weekly</a></li>
                <li><a href="#Monthly">Monthly</a></li>

            </ul>
            <div id="Monthly">
            <?php include CHART.'/NepseMonthlyChart.php';
            ?>
            </div>
            <div id="Daily">
            <?php include CHART.'/DailyChart.php';?>
            </div>
            <div id="Weekly">
            <?php include CHART.'/NepseWeeklyChart.php';?>
            </div>
             </div>

On Tue, Jul 7, 2009 at 3:19 PM, Michael Smith <[email protected]> wrote:

>
> I don't think anyone is going to be able to help with this information.
>
> Can you provide an example where we can see the problem?
>
> On Tue, Jul 7, 2009 at 5:39 AM, devck<[email protected]> wrote:
> >
> > i m using Google Area Chart to display stock information daily,weekly
> > and monthly and i use jquery tab to show this information, in first
> > Tab it works fine but in 2nd and 3rd tab the chart not looks good i.e
> > their x axis and y axis are not showing good. plz help as soon as
> > possible.
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-chart-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to