views:

8284

answers:

4

Hi all,

I want to create a pie chart in javascript, On searching I found the google chart api. Since we are using jQuery I found that there is a jQuery integration for google charts available.

But my problem is here the actual data is sent to the google server for creating the charts. Is there a way to prevent this or can any one suggest any other javascript api for charts.

Thank you

+6  A: 

I've used JS Charts and it's worked wonderfully.

scompt.com
Thanks, I've downloaded the free demo version of JS Charts. It seems to be a very good tool
Arun P Johny
A: 

Please don't use pie charts. They are evil.

innaM
You can't just rule out pie charts because there poor examples of their use. All chart types have appropriate and inappropriate use cases - its a matter of choosing the best one to fit your data/needs.
Kevin
+18  A: 

Check out this post

Flot

Limitations: lines, points, filled areas, bars, pie and combinations of these

From an interaction perspective, Flot by far will get you as close as possible to Flash graphing as you can get with jQuery. Whilst the graph output is pretty slick, and great looking, you can also interact with data points. What I mean by this is you can have the ability to hover over a data point and get visual feedback on the value of that point in the graph.

The trunk version of flot supports pie charts.

Flot Zoom capability

On top of this, you also have the ability to select a chunk of the graph to get data back for a particular “zone”. As a secondary feature to this “zoning”, you can also select an area on a graph and zoom in to see the data points a little more closely. Very cool.

Sparklines

Limitations: Pie, Line, Bar, Combination

Sparklines is my favourite mini graphing tool out there. Really great for dashboard style graphs (think Google Analytics dashboard next time you login). Because they’re so tiny, they can be included in line (as in the example above). Another nice idea which can be used in all graphing plugins is the self-refresh capabilities. Their Mouse-Speed demo shows you the power of live charting at its best.

Query Chart 0.21

Limitations: Area, Line, Bar and combinations of these

jQuery Chart 0.21 isn’t the nicest looking charting plugin out there it has to be said. It’s pretty basic in functionality when it comes to the charts it can handle, however it can be flexible if you can put in some time and effort into it.

Adding values into a chart is relatively simple: 1..chartAdd({"label":"Leads","type":"Line","color":"#008800","values":["100","124","222","44","123","23","99"]})

jQchart

Limitations: Bar, Line

jQchart is an odd one, they’ve built in animation transistions and drag/drop functionality into the chart, however it’s a little clunky – and seemingly pointless. It does generate nice looking charts if you get the CSS setup right, but there are better out there.

TufteGraph

Limitations: Bar and Stacked Bar

Tuftegraph sells itself as “pretty bar graphs that you would show your mother”. It comes close, Flot is prettier, but Tufte does lend itself to be very lightweight. Although with that comes restrictions – there are few options to choose from, so you get what you’re given. Check it out for a quick win bar chart.

Sorantis
Thanks for your answer. I'm checking jqPlot now it seems to solve my problem. But 1 issue still remains, I need the chart legends to appear with in the chart than outside.
Arun P Johny
+1  A: 

You can also try out Jquery Visualize plugin.

Plippie