SwarmOnline Menu Mobile
  • Home
  • About
  • Services
  • Portfolio
  • Blog
  • Contact

Recent Posts

  • Integrating the TestFlight SDK into your PhoneGap Application
  • Retrieving References to Internal View Components
  • Launching Sencha Insights
  • Documenting your Sencha apps with JSDuck
  • Localising Sencha Touch and Ext JS applications with Ux.locale.Manager

Recent Comments

  • Stuart on Ext.ux.TouchCalendar – A Sencha Touch Calendar component
  • Stuart on Localising Sencha Touch and Ext JS applications with Ux.locale.Manager
  • Manuel Rodriguez on Localising Sencha Touch and Ext JS applications with Ux.locale.Manager
  • Remi Bloch on Ext.ux.TouchCalendar – A Sencha Touch Calendar component
  • Remi Bloch on Ext.ux.TouchCalendar – A Sencha Touch Calendar component

Archives

  • May 2013
  • March 2013
  • February 2013
  • December 2012
  • September 2012
  • August 2012
  • November 2011
  • October 2011
  • May 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010

Categories

  • Development Tips
  • Ext JS
  • News
  • Sencha Touch
  • Sencha Touch Extensions & Plugins
  • Web Design
  • Web Design & Development Blog

10 Reasons Why Ext JS 4′s Charts Are Awesome

3
07 Mar
2011

Ext JS

Web Design & Development Blog

The new Charting package that is shipping with the latest Ext JS 4 Preview is fantastic and really does dwarf the previous releases offering (which was also very good). I’m going to outline a few of the key features that make it so good.

Flashy? Yes. Flash? No

First things first, no Flash. That’s right, beautiful, animated, colourful, shiny graphs without any nasty plugins needed. Ideal. It relies on the Ext.draw package which uses SVG, Canvas or VML depending on what your browser has to offer and draws them directly on the page.

Maximum Interactivity

People like clicking stuff, your boss definitely wants to be able to click a graph point and have that data jump straight into his brain or at the very least expand out into a nice summary window. Now you can keep him happy.

Every part of the chart is a regular Ext object so you can attach to events and add functionality just like you would with any other part of Ext.

Create any Chart Style

You can create your own chart types by extending the Cartseisan Series class (or one of its sub-classes). This means you can finally have that bar chart that renders 10 bananas in a row to represent the amount of lunch your pet monkeys are actually eating. Sure, its not going to be that easy but its possible!

Smooooth Curves

Like things to be gentle and smooth? You’re in luck! You can now render line graphs with smooth paths through each point. Unfortunately it’s VERY difficult and requires a lot of code…

smooth: true

Oh wait, nope, that’s all it takes.

Variety out the Box

The sheer number of built in chart types is huge. At the base level you have 7 different types:

  • Bar
  • Column
  • Pie
  • Scatter
  • Radar
  • Area
  • Line

And each of these has a boat load of configuration options to make them pretty unique even to themselves. And, as I mentioned before, its easily expandable until your imagination explodes.

Resolution Independent

All the graphs are created as vector graphics so you can zoom until your heart’s content without losing quality.

Customise. Everything.

Each tiny aspect of an Ext JS 4 chart can have its look customised through nothing fancier that its config object. From things like the appearance of a Line Graph’s point markers to the style of a pie slice when it’s hovered over – it’s all there, ready for people to make the most hideous looking graphs since Excel c.1999.

Make friends with Ext 3

You can use it with Ext 3! Yes, you heard me right. You can have Ext JS 4′s charting package sitting right alongside your Ext 3.x application and everyone will play nicely and won’t fight.

Mobile Friendly

You can use them with Sencha Touch. Ok, not yet but that is the plan and the way they have been written means it will be easy and work across all WebKit browsers.

Make Your Life Easier

Let’s be honest, the power that this charting and drawing package provides is going to make us developers’ lives much easier and keep our bosses happier than ever. This can only be a good thing, but will undoubtedly result in their imaginations running wild and demanding more – I’m confident that the future releases and the community contributions won’t disappoint!

Let us know if you’ve been tinkering with Ext JS 4 and its charting package and have some more words of praise.

For more information on Ext JS 4′s Charting package check out the links below:

Ext JS 4 Charts and Drawing Demos

Introduction to Charting and Drawing blog post

Sencha Conference 2010 Charting Presentation

Sencha Conference 2010 Charting Slides

Tweet

3
  1. Tao - Reply

    May 25, 2011 at 11:21 am

    hi, I’d like to know how to use ext4 charts with my current working ext3 application. I do not want to take great efforts to migrate my code base…

    Great thanks!

    • Stuart - Reply

      May 25, 2011 at 11:28 am

      Hi Tao

      It is possible to integrate Ext Js 4′s charts with an Ext JS 3 application. There is a demo of this on the main demos page (http://dev.sencha.com/deploy/ext-4.0.1/examples/sandbox/sandbox.html) which should show you how to integrate it.

      Cheers
      Stuart

  2. Tao - Reply

    May 25, 2011 at 5:01 pm

    Thanks for quick response!
    I tried to look at the sample sandbox code; but it’s difficult to understand for the beginner. I will really appreciate if someone can provide me small working example like this:
    var ext3Panel = new Ext.Panel({
    title:’Ext3′
    });
    ext3Panel.on(‘afterrender’, function() {
    var ext4Panel = Ext4.create(‘Ext.panel.Panel’, {
    title:’Ext4′,
    renderTo:ext3Panel.body.dom,
    });
    ext3Panel.add(ext4Panel);
    });

    I have read threads below:
    http://stackoverflow.com/questions/6073241/adding-extjs4-components-to-extjs3-components
    http://www.sencha.com/forum/archive/index.php/t-126391.html?s=883dcae1c09ec820e52fb96c737fe20f

    Seems some other people are also looking for such an example.

    Thanks & Regards,

Leave a Comment - Cancel reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

About SwarmOnline

Based in Glasgow’s West End, SwarmOnline provide web development, cross platform mobile app development and training services for local and international organisations. We have expert knowledge of Sencha technologies and have been Sencha Partners since 2011. We specialise in creating dynamic, innovative and practical solutions.

Meet the Team...

Newsletter

Subscribe to our newsletter and we’ll keep you up-to-date. We don't do spam.

Get in touch!

Email: info@swarmonline.com   
Skype: andrew-swarmonline stuart-swarmonline   
Phone: 0141 438 2231   


© 2013 SwarmOnline Ltd. All Rights Reserved.

SwarmOnline Ltd is a Limited Company registered in Scotland, with company number SC411633. Our Registered Office is 1-2 249 Byres Road, Glasgow G12 8UB.