Forums / Developer / How to create charts with ez3?

How to create charts with ez3?

Author Message

Marco Zinn

Monday 14 January 2008 8:48:31 am

Hello,

I wonder, how to create a chart (bar, pie) with a current ez3-Installation.

I saw some references to an extension of Björn using JPGraph.
Is this the only (working) solution for ez3 at the moment?
The threads and the extension are from 2005... does it work with ez 3.10, for example?

If anyone is using it, can somebody give a sample, i.e on how to create a simple bar chart?

Thanks in Advance.

Marco
http://www.hyperroad-design.com

Björn Dieding@xrow.de

Monday 14 January 2008 12:10:27 pm

I think I would upgrade to 4.0 and use the ezcGraph inside a new extension.

I guess you have considered this and you are just afraid of the upgrade or have a blocking arguement.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Marco Zinn

Monday 14 January 2008 11:22:10 pm

Hi Björn,

currently i do not want to upgrade some sites to eZ 4, so I was looking for a solution for eZ 3.
Do or did you use your extension with a current (3.8+) ez 3 site ?

For eZ 4: Is there already an extension, that makes use of the new Graph component?
That means: Can one already use the component in the ez templates?

Marco
http://www.hyperroad-design.com

Maxime Thomas

Monday 21 January 2008 7:05:48 am

Hi Marco,

I was thinking about an alternate solution to actually produce some charts and I've found this article :

http://www.smashingmagazine.com/2007/10/18/charts-and-graphs-modern-solutions/

My opinion is that it will more interesting for you to develop an generic extension that you can plug in each of your websote to generate graphs. So the bust is to use the eZComponent Graph.

http://ezcomponents.org/docs/tutorials/Graph

However, it needs PHP5 and by the way eZPublish 4.0.x.

If you would like to integrate one of the other solutions in your eZPublish 3.x, it will certainly work, but it might be more complex.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

eZ debug

Timing: Jan 18 2025 16:26:35
Script start
Timing: Jan 18 2025 16:26:35
Module start 'content'
Timing: Jan 18 2025 16:26:36
Module end 'content'
Timing: Jan 18 2025 16:26:36
Script end

Main resources:

Total runtime0.8956 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.8438180.8359
Module start 'content' 0.00660.7139 769.6797608.0547
Module end 'content' 0.72050.1751 1,377.7344337.3750
Script end 0.8956  1,715.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4659210.0002
Check MTime0.00150.1719210.0001
Mysql Total
Database connection0.00080.091810.0008
Mysqli_queries0.808890.29801990.0041
Looping result0.00230.25581970.0000
Template Total0.864296.520.4321
Template load0.00200.226520.0010
Template processing0.862196.258920.4311
Template load and register function0.00020.022710.0002
states
state_id_array0.00230.252110.0023
state_identifier_array0.00090.097120.0004
Override
Cache load0.00170.1953310.0001
Sytem overhead
Fetch class attribute can translate value0.00180.199840.0004
Fetch class attribute name0.00130.139970.0002
XML
Image XML parsing0.00160.183940.0004
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00240.2715390.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs