Hybrid View
-
20 Nov 2011 7:54 AM #1
Ext.ux.chart.TitleChart - Chart with a Title
Ext.ux.chart.TitleChart - Chart with a Title
When one page contains several charts, it may be necessary to provide users with information on each charts' meaning. This is what Ext.ux.chart.TitleChart is for: it allows assigning title text to any kind of chart supported by Ext JS.
It looks like this:
TitleChart screenshot.png
TitleChart accounts for presence or absence of a title, adjusting chart dimensions accordingly. Title can be placed at top, bottom, left or right side of the Chart. Padding between Chart edge and title text is configurable, as well as margin between title text and actual charting area.
Usage is pretty straightforward, take a look at the source and it should be obvious how to use it. Demo application is provided as well.
Tested with:- Chrome 15
- Firefox 7
- Safari 5
- Opera 11
- MSIE 8
Live demo: http://nohuhu.org/demos/demo_titlechart.html
Sencha Market page: https://market.sencha.com/users/30/extensions/36
Regards,
Alex.Last edited by nohuhu; 14 Aug 2012 at 3:09 PM. Reason: Added demo link
-
20 Nov 2011 1:14 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,710
- Vote Rating
- 436
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
8 Feb 2012 6:42 AM #3
Hello
I try to use your plugin but I get that message :
BTW, in my code (it's ASP.NET), I have :uncaught exception: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.chart.TitleChart
I add that to my main include :Code:<script type="text/javascript" src="jsFile/ext-all.js" /> <script type="text/javascript"> Ext.Loader.setConfig({ enabled: true, disableCaching: true, paths: { 'Ext': "/app/" } }); </script> <script src="jsFile/Chart.js" type="text/javascript"></script> <script src="jsFile/TitleChart.js" type="text/javascript"></script> ....
I have already that :Code:Ext.require('Ext.ux.chart.Chart');Ext.require('Ext.chart.TitleChart'); Ext.require('Ext.ux.chart.TitleChart');
but epic fail...Code:Ext.require(['*']);
I called the chart like that (not sure it will be good):
BTW, your example works well...Could you help me please?Code:var ETTRChart= Ext.create('Ext.chart.TitleChart', { animate: true, store: stoETTR, title: 'ETTR', titleFont: 'bold 16px sans-serif', titlePadding: 5, titleMargin: 5, insetPadding: 5, shadow: false,
-
8 Feb 2012 6:55 AM #4
Forget it, it works. I thought I was in 4.0.7, but apprently, i'm not, I try with 4.1.0 and it's good.
Sorry to bother you.
-
14 Aug 2012 3:06 PM #5
Version 0.99 supports Ext JS 4.1.
-
22 Jan 2013 9:29 AM #6
Does not work in IE8 or older
Does not work in IE8 or older
Hi @ nohuhu,
your extension works great with 4.1.3 and the popular browsers, but it does not work with IE8 and older or in Quirksmodus, just with IE9.
If you open your demo with IE8(Win 7), you'll get the panel empty without chart and chart title.
Do you know about this? There is no error or warning in the IE browsers, so I do not really have an idea how to get it working.
Thank you for your shared extension
MariusFirst I would like to thank you for your time and knowledge
Win 7 Ext JS 4.1.3 IE(6-9), FF17


Reply With Quote