12

I need some sort of interactive chart control for my .NET-based web app. I have some wide XY charts, and the user should be able to interactively scroll and zoom into a specific window on the x axis. Something that acts similar to the google finance control would be nice, but without the need for the date labels or the news event annotations. Also, I'd prefer to avoid Flash, if that's even possible. Can someone please give some recommendations of something that might come close?

EDIT: the "real" google timeline visualization is for date-based data. I just have numeric data. I tried to use that control for non-date data, but it seems to always want to show a date and demands that the first data column actually be a date.

Chris Farmer
  • 23,314
  • 32
  • 110
  • 161

12 Answers12

24

How about using the "real" google finance tool from the Google visualizations project?

http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html

smerickson
  • 265
  • 1
  • 2
  • you could probably generalise this solution into a server control if you were interested in reuse. – Martin Clarke Sep 21 '08 at 20:31
  • note that using google's control / API implies that you need to make your data available to google (their servers must be able to fetch the data). might not be feasible for confidential company data or intranets – knb Dec 10 '10 at 19:31
  • 3
    @knb: This is wrong: "All code and data are processed and rendered in the browser. No data is sent to any server." – Johannes Rudolph Jul 05 '11 at 13:32
  • Agree with gdw2, OP said he didn't want to use Flash – bpeikes Jun 14 '13 at 16:59
9

This is the one you are looking for. An almost exact match for the Google Flash graph.

http://www.humblesoftware.com/finance/index

Shaun
  • 706
  • 6
  • 11
  • doesn't this require that the user have html5 capability in their browser? I think lower versions of ie and firefox don't support this yet – locoboy Dec 24 '10 at 04:07
  • you can use excanvas to impersonate a canvas in IE http://excanvas.sourceforge.net/ – topwik Apr 12 '12 at 13:29
5

Have a look at the the Google vizualisation API, I guess this is what Google uses on Google Finance. I had a look at a few other chart API's, but this one is free and beautiful.

5

You could try out Flotr, a nice javascript library. It has pretty decent mouse controls and is free to use.

TM.
  • 94,986
  • 30
  • 119
  • 125
1

The Zoom Scrollbar sample on the SoftwareFX site looks like what you are looking for:

http://demo.softwarefx.com/chartfx/aspnet/ajaxsamples/

Lou Franco
  • 83,503
  • 14
  • 127
  • 183
  • But this feels quite heavy and slow compared to other alternatives like Flotr or Google Visualization Annotated Timeline – dance2die Nov 30 '09 at 03:49
1

Check out amCharts. There's XY Chart and Stock charts. Sure these are Flash based charts but I don't think you can have anything this nice and interactive without Flash or Silverlight these days.

Alan Mendelevich
  • 3,531
  • 4
  • 28
  • 49
1

jqplot is impressive and improving every day

dhrubo
  • 11
  • 1
1

Why not use this clone:

http://code.google.com/p/time-series-graph/

Stefan Steiger
  • 68,404
  • 63
  • 337
  • 408
1

I wanted to respond to knb's comment about Google Finance chart but seems like there's no reply button. Anyhow, according to this:

http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html#Data_Policy

No data is sent to any server so it doesn't seem like anything is fetched by Google. Anyone have any comment as to this being the case or not? Is it better to err on the side of safety and not use it if concerned about Google having your data?

Rob
  • 109
  • 1
  • 4
1

D3 is a good library for plotting very rich UI charts. One can use D3 for plotting google finance like interactive charts.

Find more exaples here

Kapil Bhosale
  • 59
  • 1
  • 7
0

I've recently used two generic libraries with my .NET work - they both have many different charttypes which include the zooming and scrolling you're after: one is free (ZedGraph) the other is not (Dundas).

I'd happily recommend them both. Dundas is better - but it isn't cheap. Zed is open source so can be quite informative to just read the code.

Unsliced
  • 9,926
  • 8
  • 47
  • 80
0

HighCharts (comercial licenses only) have a pure JS finance like chart the looks good. It is currently in Beta, though.

tsg
  • 1,947
  • 10
  • 11
  • Update: Highcharts is no longer beta, has a free ver for non-commercial use, and has stock ticker version that is pretty much identical to the google one. – Brady Moritz Aug 09 '14 at 16:46