Why does openflashchart not display charts?

Source: Internet
Author: User
Why does openflashchart not display charts? I downloaded openflashchart online, and the version is: open-flash-chart-2-Lug-Wyrm-Charmer I run the built-in example why don't I show the chart? But what about the display? The original code is as follows: & lt ;? Php/** & nbsp; * PHPIntegrati help: Why is open flash chart not displayed?
Open flash chart I downloaded online, version: open-flash-chart-2-Lug-Wyrm-Charmer

Why don't I show charts when I run my own examples? But what about the display?

The original code is as follows:
/**
* PHP Integration of Open Flash Chart
* Copyright (C) 2008 John Glazebrook
*
* 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
* MERCHANTABILITY or fitness for a special PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You shoshould have written ed 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 ();
?>

Display result:

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


Do you know about prawns? Urgent, online, etc. Thank you!



------ Solution --------------------
Echo gmdate ('H: I: S', abs (strtotime ('2017-04-17 17:43:09 ')-strtotime ('2017-04-17 18:01:02 ')));

00:17:53

Calm down and think carefully

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.