-
14 Apr 2008 11:27 AM #1
ux.Media.ChartPack 2.1.2 (Fusion, OFC2, amChart) released.
ux.Media.ChartPack 2.1.2 (Fusion, OFC2, amChart) released.
ux.Media ChartPack 2.1.2 is also available on Google Code (SVN).
Supported Ext Releases
RC1: (deprecated) Supported Ext Releases: 2.0.x, License: LGPL3
ChartPack2.1 : Supported Ext Releases: 2.1, 2.2, 3.0, License: GPL3
A set of ux.Chart Components designed for use with:
-- InfoSoft's Fusion Charts (Flash)
-- Open Flash Chart 2 (Flex/Flash)
-- amChart (and amStock) (Flash)
All ux.Chart classes come in standard Component Flavors:
Component, Panel, Portlet, Window
All charts may also be rendered inline in markup.
As these classes inherit from the ux.Media/Flash classes (required), it is not necessary to load the SWFObject.js or FusionCharts.js files.
Examples: While still evolving, are available online:
See the Fusion.Window demo.
See the OFC2 demo.
Fusion Chart Sample with common (to all supported charts) config options:
Notes:PHP Code:<head>
<link rel="stylesheet" type="text/css" href="lib/ext/resources/css/ext-all.css" />
<script type="text/javascript" src="lib/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="lib/ext/ext-all-debug.js"></script>
<script type="text/javascript" src="lib/ux/uxfusionpak-debug.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
fusionPanel = new Ext.ux.Chart.Fusion.Panel({
title : 'ux.FusionPanel',
collapsible : true,
renderTo : Ext.getBody(),
chartCfg :{ id : 'chart1'
,params:{
flashVars : {
debugMode : 0,
lang : 'EN'
}
}
},
autoScroll : true,
id : 'chartpanel',
chartURL : 'fusioncharts/Column3D.swf',
//dataURL : 'fusioncharts/data/Column3D.xml' , //let the Flash chartObj load it
autoLoad :'fusioncharts/data/Column3D.xml' , //let Ext autoLoad do the same.
loadMask : {msg: 'Loading data...'},
autoMask : true,
width : 500,
height : 400,
listeners :{
,chartload : function(p,obj){console.log('chart '+obj.id+' loaded.')},
,chartrender : function(p,obj){console.log('chart '+obj.id+' rendered.')}
},
tools : [
{id:'gear', handler:function(e,t,p){ p.refreshMedia();},qtip: {text:'Refresh the Chart'} },
{id:'print', handler:function(e,t,p){ p.print();},qtip: {text:'Print the Chart'} }
]
});
fusionPanel.show();
});
</script>
</head>
(1) The ux.Chart.Fusion classes are compatible with the older FCF (FusionChartsFree) but you won't like the result on IE much (poor rendering quality and weak remote URL loading support).
(2) RE: Fusion: Answers to questions regarding Fusions chart formatting and XML definition options for charting may be found in their site's forums and documentation.
(3) RE: OFC2: Answers to questions regarding OFC2 chart formatting and JSON definition options for charting may be found in their site's forums and documentation.
(4) RE: amCharts: Answers to questions regarding amChart chart formatting and definition options for charting may be found in their site's forums and documentation.
(5) The 2.1.x distribution now includes a /build path (with JSB build files). Choose you ux[flavor]pak.js for the chart you use, and include that package on your page. It includes all the necessary classes.
Note: the current vBulletin config gzips attachments which IE hates. Download this with Firefox (or other browser) instead of IE.Last edited by hendricd; 27 Oct 2009 at 5:00 AM. Reason: Release 2.1.2
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
14 Apr 2008 11:41 AM #2
Live example please!!

Thanks!
-
14 Apr 2008 11:43 AM #3
Sorry, its still your Ext-2.x/examples/fusion for now.
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
14 Apr 2008 6:56 PM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
Go with your bad self dude


Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
14 Apr 2008 9:50 PM #5
Fantastic Widget.
Thank you very much for sharing!Extensions:
Ext.ux.DatePickerPlus (Multimonth,Multiselect,...)
Ext.ux.menu.StoreMenu - Ajax Store as menu-item config
Extended Window - Aero Shadows, nested grayscaled modal windows
Ext.MessageBox.promptCombo/promptRadio/promptCheckbox
Ext.ux.plugin.triggerfieldTooltip (for Comboboxes, Datefields...)
Ext.util.MD5
Ext.util.Utf8 (encode/decode)
Ext.util.base64 (encode/decode)
Using:
ExtJS 3.4.1.1/4.2
XPsp3/W7sp1
IE8/9/10
FF 20
Chrome 26
-
15 Apr 2008 6:49 AM #6
This is awesome. I did notice that the "Print Chart" toolbar item doesn't appear to work.
-
15 Apr 2008 7:06 AM #7
What browser you on? It works fine for me on IE, FF, Opera, Safari (win).
What error are you getting, if any?"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
15 Apr 2008 2:16 PM #8
Doug,
This is really solid. Have you looked at the current Ext 3 implementation of YUI Charts? It would be nice to have a consistent client implementation between Ext charts.
Here is Jack's sample implementation of the charts in the svn trunk.
Best regards,Code:var store = new Ext.data.JsonStore({ fields:['name', 'visits', 'views'], data: [ {name:'Jul 07', visits: 245000, views: 3000000}, {name:'Aug 07', visits: 240000, views: 3500000}, {name:'Sep 07', visits: 355000, views: 4000000}, {name:'Oct 07', visits: 375000, views: 4200000}, {name:'Nov 07', visits: 490000, views: 4500000}, {name:'Dec 07', visits: 495000, views: 5800000}, {name:'Jan 08', visits: 520000, views: 6000000}, {name:'Feb 08', visits: 620000, views: 7500000} ] }); new Ext.Panel({ title: 'ExtJS.com Visits Trend, 2007/2008 (No styling)', renderTo: 'container', width:500, height:300, layout:'fit', items: { xtype: 'barchart', store: store, url: 'charts.swf', yField: 'name', xField: 'visits' } });
Jerry Brown
-
15 Apr 2008 3:07 PM #9
Yes, I've seen Jack's first round in SVN, and I'm contemplating a ux.Chart.YUI interface already. Still wondering what data interfaces to support initially (just Ext.stores ? etc.).
GWT has already published one for YUI charts (but, data bindings?).
But, they're so easy to wrap now with the ux.Media/Flash classes."be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
15 Apr 2008 5:42 PM #10
Doug,
All of my data comes in through stores which I share across my application so Databinding or more particular store binding (like how it is done in Jack's implementation) would be preferable to me. Also, it keeps options open since it is easy to populate store with XML or JSON data.
Best regards,
Jerry





Reply With Quote