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_2Don't forget to 'view source' to see how the Javascript JSON data is loaded.
教程链接:
随意转载~但请保留教程地址★
上一篇: 301重定向的两种实现方法
下一篇: Java并发关于重入锁与读写锁的详解