BizzyBee’s BizzyThoughts

Think Outside The Hive – About Notes and Web
 
 

Even better looking charts from your data with Fusioncharts


My very first article here was about how to create good looking charts from your data.

I found a tool that produces even better looking results in the browser. Take a look at this:

Pie 3D chart

The tool I found was FusionCharts. It’s not freeware or open source, but you can download an evaluation version on their site and if you like it, you can buy a user license for 69$ (this means you cannot edit the flash source code, and you are allowed to use it on one website and an unlimited number of developer and test servers).

Using their evaluation version, I created a charts demo database with some examples on how to use Fusioncharts in a Lotus Notes web application.

Just download and unzip the database and do a web preview of the page Charts.

Below you find a clarifying image of the different parts that are needed in html.

Different parts of implementing a chart

  1. Include the FusionCharts.js javascript library. I inserted it in the file resources of the database.
  2. You need a reference to the type of chart to use. All charts are included in the file resources as swf (Flash) movies. If you ever buy a license, just replace the files in the file resources with the files in the charts directory of the package.
  3. Add a div where you want to display the chart and refer to it by its id in your javascript.
  4. The data must be present in an xml file. This is where you have to decide on how to deliver the xml.
  5. Give the chart object a name for js access, f.e. to do a refresh of the chart.
  6. Experiment with the dimensions of the chart.

I included 3 examples in the demo database:

  1. Pie3D (top image) uses form piedata to create documents, view piedataxml to embed in page pie3d.xml. The page also contains the markup xml.
  2. Column2D (image below) uses form columndata to create documents, view columndataxml is used to access its values via @DbColumn in page column2d.xml.
  3. MsColumn3D (image below): I just put the data in a simple page mscolumn3D.xml (I didn’t have any spare energy to create a structure around it ;-) )

Column 2D chart

Multiseries column 3D chart

For an explanation of all different parameters, settings and chart types, I refer to their website. There are tons of different possibilities, gradients, shadows, neat color schemes,… to satisfy even the most graphic hungry among you.


1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5.00 out of 5)
Loading ... Loading ...

37 Responses to “Even better looking charts from your data with Fusioncharts”

  1. Gravatar Patrick Kwinten says:

    I have setup some databases with FusionChart myself, based on Ferdy Christant’s blog article.

    The charts look very nice indeed and easy to implement!

  2. Gravatar Martin Vereecken says:

    Apparently somebody out there already created a demo. It’s hard to come up with something original with all those good bloggers out there :-) . But then again, 2 ways of explaining the same thing=more information, somewhat different approach,…

  3. Gravatar BizzyBee’s BizzyThoughts » Blog Archive » Playing Flash movies (like FusionCharts) in the Notes Client? Not that simple… says:

    [...] real purpose then. Until I saw IntelliPRINT’s Dashboard Reporting: they use FusionCharts, the tool I spoke about earlier, to display its amazing charts in the [...]

  4. Gravatar dan says:

    Any easy way to have this pull in categorized data from a notes view….to get the record count by category and then chart that?
    Thanks
    (By easy I am hoping to avoid looping through each document to determine the number in each category)

  5. Gravatar Sankaran says:

    Dan – You should try IntelliPRINT Dashboard Reporting

  6. Gravatar Jason says:

    Do you know how to make this work by passing values in a url and generating xml via an agent? I would like to pass an account number to an agent, and generate the xml on the fly. But the chart.setDataURL parameter isn’t reading anything after the question mark.

    chart.setDataURL(“https://cbsdev.cbservices.org/testPieAgent2.xml?openagent&France=100″);

    If you open the URL itself, you’ll see that it set’s France to 100 in the XML. But it’s not working when in the setDataURL parameter – so I think it’s ignoring everything after the question mark.

    Do you know of any other way to accomplish this?

  7. Gravatar Jason says:

    Sorry wrong URL:
    http://www.cbservices.org/charts_demo.nsf/testPieAgent2.xml?openagent&France=100

    Generates the XML, but this page doesn’t show France:
    http://www.cbservices.org/charts_demo.nsf/testPieAgent2?OpenPage

  8. Gravatar Jason says:

    I figured it out – the setDataURL doesn’t like the ‘&’ after the open agent. Use the character code ‘%26′ instead.

  9. Gravatar Martin Vereecken says:

    Great, Jason, I didn’t have to do anything, you figured it out by yourself! :-) .

    Thanks for the tip!

  10. Gravatar charly says:

    Hi, i need to do some charts in a application, but i need it works like a server, i put your chart demo in the server where it will work but when the example CHARTS runs get the “Error in loading data”, what can i do?

  11. Gravatar Dale Walker says:

    x0DwMe Hi! The post is really interesting! I’ve read your blog and can say it’s a good job.thanks,

  12. Gravatar Rebecca Clemency says:

    Thank you for this site, such as multi information.I! Thank you!,

  13. Gravatar Linda McNabb says:

    Bravo! Nice Article.,

  14. Gravatar Bradford Drake says:

    Thanks for your insights – I couldn’t agree more.,

  15. Gravatar Aaron Scott says:

    beautiful site..)),

  16. Gravatar Darcy Humphrey says:

    Hi can someone please translate for me thanx,

  17. Gravatar Joshua Ison says:

    Nice man!,

  18. Gravatar Cassandra Barringer says:

    beautiful site..)),

  19. Gravatar Christine Williams says:

    Great post, well written!,

  20. Gravatar Kimberly Kubiak says:

    beautiful site..)),

  21. Gravatar Terance Dixon says:

    Thanks I’ll give that a go!,

  22. Gravatar Gerald Volpp says:

    Cool Info, practical.. lol,

  23. Gravatar cathey jordanhazy says:

    Don’t you think he is a little late for the game?,

  24. Gravatar Kay Christopherson says:

    Thanks I’ll give that a go!,

  25. Gravatar scott martin says:

    Cool Info, practical.. lol,

  26. Gravatar robert says:

    8RmHxc http://j8Jw83mNs0doPpsqvjrcns5.info

  27. Gravatar Moncler Women says:

    I’ve to say that I concur with all the sentiments about getting AOL as quantity one particular. The comments posted along side it sum it up nicely, that it does almost nothing to strengthen the brand, but only adds confusion.From the perfect rebrands while in the l ist, I would place SyFy at the prime. In the beginning I hated the name, due to the fact I thought they did it ??just because,??? when actually that they had to change their name due to getting unable to legally use Sci-fi.??? Now relatively than coming up which has a full new name that no one would know- and maybe lose a great deal with the previously inbuilt SciFi??? brand- they caught using the outdated name which has a little bit of phrase play. I can even now call SyFy Sci-fi when it comes up, and that makes me satisfied.

  28. Gravatar Katherina Houlihan says:

    Howdy! I know this is kinda off topic however , I’d figured I’d ask. Would you be interested in exchanging links or maybe guest authoring a blog article or vice-versa? My site covers a lot of the same topics as yours and I think we could greatly benefit from each other. If you happen to be interested feel free to send me an e-mail. I look forward to hearing from you! Fantastic blog by the way!

  29. Gravatar benign prostatic hyperplasia says:

    Your blog is just about the most informative information sites within this industry. Practically every blog post that you make is golden. Your way of writing is eloquent, exciting,and very interesting.

  30. Gravatar megavideo movies says:

    Thanks for every other informative website. The place else may I am getting that type of information written in such an ideal manner? I’ve a undertaking that I’m simply now operating on, and I have been at the glance out for such info.

  31. Gravatar watches for sale ebay says:

    Thanks for another magnificent article. Where else could anybody get that type of info in such an ideal way of writing? I’ve a presentation next week, and I’m on the look for such info.

  32. Gravatar Tera Montanaro says:

    Thank you a whole lot with regard to offering people who have this type of marvellous possiblity to verify suggestions from this website. It’s typically extremely ideal and stuffed with an enjoyable experience personally as well as my personal workplace partners to talk to your web site specifically three times every week to study the fresh stuff you have. And finally, we’re certainly contented concerning the terrific info you give. Picked a couple of tips about this site are really the finest I have ever experienced.

  33. Gravatar Molly Boron says:

    Wow, fantastic weblog format! How long have you ever been blogging for? you made running a blog glance easy. The whole glance of your web site is magnificent, let alone the content material!

  34. Gravatar Teodoro Megeath says:

    Good post. I be taught something more difficult on completely different blogs everyday. It’s going to all the time be stimulating to learn content from other writers and apply a little something from their store. I’d favor to make use of some with the content on my weblog whether you don’t mind. Natually I’ll provide you with a link on your internet blog. Thanks for sharing.

  35. Gravatar Jammie Aihara says:

    I went over this web site and I think you have a lot of great info, bookmarked (:.

  36. Gravatar Mechas Californianas says:

    Rattling informative and good bodily structure of subject matter, now that’s user friendly (:.

  37. Gravatar Doug Finner says:

    I just ran across the OpenNTF chart app (*) that uses the free version of FusionCharts and was having trouble understanding how to use the DataURL method instead of the agent driven method so your sample db is great. I’m not sure that the Data method turns out to be any better than the Data XML method. When you build the XML string in an agent, the data is sting length limited. If you use views and create the dataULR method, you’re doing a dbColumn to set the ‘XML’data and that is also limited. I don’t know if the DbColumn is bigger than smaller than the xml string limit. In any case, thanks for the example.

    (*) http://www.openntf.org/internal/home.nsf/release.xsp?action=openDocument&documentId=CF77960FE7FF01FF86257584001ABB59

Leave a Reply