欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

php与Open Flash Chart多报表切换例子

程序员文章站 2022-04-18 17:46:09
...
set_values( array(9,8,7,6,5,4,3,2,1) ); 
$chart_1 = new open_flash_chart();
$chart_1->set_title($title);
$chart_1->add_element($bar);
// generate some random data
srand((double)microtime() * 1000000);
$tmp = array();
for ($i = 0; $i set_values($tmp);
$chart_2 = new open_flash_chart();
$chart_2->set_title(new title("Chart 2 :-)"));
$chart_2->add_element($bar_2);
?>

//

// This is the VIEW section:

//

 

Open Flash Chart


display data_1 || display data_2

Don't forget to 'view source' to see how the Javascript JSON data is loaded.


教程链接:

随意转载~但请保留教程地址★