Flex Chart Range Selector - Google Finance'ish
So I noticed some posts re: this type of component on flexcoders the other day, and being that I was bored at work on this sunny Friday afternoon, decided to give it a whirl. Right click to view source inside app...
http://www.stretchmedia.ca/code_examples/chart_range_selection/main.html
After I finished putting this together (in all of 45 minutes) I was as giddy as a little kid because it's just so damn COOL... Yeah, it doesn't have all the bell's and whistles that the graphing on Google Finance has, but still, can you imagine how long this effect would have taken to do in Flash?
Three words... "I love Flex"...
Have to give credit to Ely Greenfield (for his data generation function, and let's face it, for being The Man) as well as Doug McCune for his Dual Slider component (which is better than the one I did, which is why I used it here).


This is GREAAAAAAAAAAAAAAAAAAAAAAAT.
Great Job.
Sean.
indeed a GREAT JOB
Thanks mucho to all who contributed!
This example is going to help a lot of people, who admire to make apps something like the google finance charts! Way to Go!
Excellent Work Man!
Cheers,
Arthur
I am intersted in seeing how the axis data also changes based on the pan/selection. It would be cool to also have that in your sample.
great work
How would you change the data provider to a Java remote object (using remoting).
I can not get through it.
Thanks in advance.
great work
Question: Is there a way to add a second and third axis? Like having more than 1 set of data appear as an area chart. I'm curious to see if I can add a couple of line charts over this.
Great job was made by you!
nice, nice, nice ;)
___
ESO, http://www.esoblog.info
I am intersted in seeing how the axis data also changes based on the pan/selection. It would be cool to also have that in your sample.
How would you change the data provider to a Java remote object (using remoting).
I can not get through it.
http://www.meutzner.com/blog/index.cfm/2007/6/15/G...
Although I haven't released the code for this example yet, I plan to after presenting it at the Flex 360 Conference (http://360Flex.org) in Seattle August 13-15. There is a breeze posting of the SilvaFug meeting in June where I went through the functionality if you can't wait until August (http://www.silvafug.org).
var myChart : LineChart = new LineChart();
var lineSeries:LineSeries;
var seriesData:Array = new Array();
lineSeries = new LineSeries;
lineSeries.yField = 'buyPrice';
lineSeries.xField = 'dateNo';
lineSeries.dataProvider = dataGraph1;
seriesData.push (lineSeries);
lineSeries = new LineSeries;
lineSeries.yField = 'buyPrice';
lineSeries.xField = 'dateNo';
lineSeries.dataProvider = dataGraph2;
seriesData.push (lineSeries);
myChart.series = seriesData
Thanks!