open flash chart為什麼不顯示圖表

來源:互聯網
上載者:User
求助:open flash chart為什麼不顯示圖表?
我在網上下載的open flash chart,版本是:open-flash-chart-2-Lug-Wyrm-Charmer

我運行內建的例子為什麼不顯示圖表?而是顯示的這些東西呢?

原代碼如下:
/**
* PHP Integration of Open Flash Chart
* Copyright (C) 2008 John Glazebrook <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

require_once('../lib/OFC/OFC_Chart.php');

$title = new OFC_Elements_Title( date("D M d Y") );

$bar = new OFC_Charts_Bar_Glass();
$bar->set_values( array(9,8,7,6,5,4,3,2,1) );

$chart = new OFC_Chart();
$chart->set_title( $title );
$chart->add_element( $bar );

echo $chart->toString();
?>

顯示結果:

{"title":{"text":"Tue Apr 17 2012"},"elements":[{"type":"bar_glass","values":[9,8,7,6,5,4,3,2,1]}]}


請問有大蝦知道嗎?急,線上等。謝謝!



------解決方案--------------------
echo gmdate('H:i:s', abs(strtotime('2012-04-17 17:43:09') - strtotime('2012-04-17 18:01:02')));

00:17:53

沉下心來,認真思考
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.