Activate your free membership today | Log-in

Thursday, July 2nd, 2009

GChart 2.5: Faster, sharper, canvas-rendered, pie, line, and area charts

Category: Component, GWT, Library

John Gunther has released GChart 2.5, a client-side library that adds a new canvas-rendering option for sharper, better looking, alpha-transparent, pie, line, and area charts.

John told us:

Canvas-rendering corrects GChart’s most serious visual quality limitations (including the most often mentioned problem by its users: the banded-filled pie slice).

Coupled with its existing feature set and ease of GWT integration, the canvas-rendering option makes GChart an excellent choice for those who want to add basic charts to a GWT application without a lot of fuss.

To access these features, you’ll need to plug an external canvas library into GChart (GWTCanvas in the gwt-incubator is reccommended) as described in detail in the setCanvasFactory method.

With the external canvas in place, the next step is to tell GChart you want a curve to be “continuously filled” by invoking setFillSpacing(0).

With each such continuously filled curve, GChart automatically exploits your external canvas library to improved the quality and speed of that curve’s rendering. Specifically, banded-filled pie slices become solid filled, dotted connecting lines become continuously connected, and (the biggest stretch) bar charts become area charts. See the setFillSpacing method’s javadocs for a detailed description of how each existing symbol type implements this new “continuously-filled”, canvas-powered, rendering option.

Note that GChart’s previous HTML-only rendering is still available, and is the default rendering mode if you don’t bother to plug in an external canvas.

Check out the demo

Posted by Dion Almaer at 6:44 am
6 Comments

+++--
3.3 rating from 23 votes

6 Comments »

Comments feed TrackBack URI

Great, now all they need to do is also create a clientside API that doesn’t look like spaghetti so that we can use it from plain JS :)

Comment by SchizoDuckie — July 2, 2009

This is pretty great stuff. I’m always looking for new charts.

Comment by okonomiyaki3000 — July 2, 2009

@SchizoDuckie: Exactly. It’s JS all the way for me. I don’t touch Java.

Comment by andysky — July 2, 2009

Dion – The link very much appreciated (and it isn’t even April 1)

@SchizoDuckie, andysky: I prefer Java to JS for a very simple reason: I was unable to master JS in a reasonable time frame. GWT solved this and many other practical problems (”how do I use the JS debugger in IE”) for me by creating a bridge between the tools I knew (Java + Eclipse) and the browsers I had to get my stuff to run in.

Comment by JohnGunther — July 3, 2009

With the changing trend of the world, wedding apart from white,Princess Strapless Satin Evening Dress ivory, beige and other traditional colors,are also increasingly popular in recent years, ghetto prom dressespink wedding package,gothic prom dresses such as pink, pink orange, baby blue, purple night, light green and light silver-gray, very soft and pleasing to wedding hair accessoriesthe eye; if you have the courage to try, dark green, purplish red, deep purple, decorated in pink wedding dress, the formation of rich colors,the dress, the effect is very special;Sash Lace Satin Flower Girl Dress, laden with flour colored silk flowers, butterflies, in order to add color.wedding dressIn fact, the wedding is the color of lesser importance, the most important prerequisite is to match the bride’s complexion. Oriental deep and yellowish color, wearing white Mermaid Satin Organdie Wedding Dress,will appear dull, wearing ivory would be more harmonious and natural, baby blue, wedding accessoriespurple night can not be coordinated with the yellow, but pink orange, light green with yellowish color match. As for the skin and rosy, or bronze skin, wearing white will look great, wedding dress

Comment by wuwei — November 10, 2009

A wedding dresses is always

expensive. Every couple will agree on this.When you are planning for

your wedding, you will probably find that every item can be very

expensive. This is especially true when it comes to the wedding dress.
You may think that there is no way for you to get a Wedding gown dresswhich is

elegant and at the same time cheap. However, I can tell you that there

are some ways to save money on this item.
So, the question here is how to make your white wedding dressinexpensive.
In fact, one thing you need to understand is that it is totally

possible for you to find a cheap

wedding dress which is also elegant and beautiful. You do not need

to sacrifice the quality just because you will need to search for cheap wedding gowns items.
As a matter of fact, one of the ways to get a bridal gowns is to wear the one

your mother wore when she got married. The point here is that you will

be wearing a bridal dresses

item and it will certainly be very stylish.

Comment by wuxiseo — November 26, 2009

Leave a comment

You must be logged in to post a comment.