this is the second chart range selector.
some of the code here is also borrowed from somewhere (sorry for not remembering who from).
this is the second chart range selector.
some of the code here is also borrowed from somewhere (sorry for not remembering who from).
August 28, 2008 at 10:15 |
that’s really good job you are doing. I like your examples because they are different from the many other on the internet about range selector chart and it’s always nice to see another point of view
August 31, 2008 at 05:15 |
Very interesting way of doing range selections.
October 9, 2008 at 01:08 |
Excellent example. I have been looking over the source code for a couple days now and have reproduced something similar… Now how would I go about UNZOOMING the graph back to its original view, lets say with a button on ‘click’
October 9, 2008 at 15:05 |
Phil hi,
what i did for UNzooming [in both cases] was to manage a “cache” – an array of each zoom data so the user can go back one step to the previous zoom position.
meaning when the user zoomed in several times he could always go back one step or reset to the original.
March 1, 2009 at 11:45 |
Hi Shemesh,
could you please actually post the Code for unzooming ?
that would be great…
Thaks
March 1, 2009 at 13:58 |
Frank hi,
mmmm… i will have to look for that code…
March 1, 2009 at 14:05 |
Hi Shemesh,
thanks for your quick answer.
This would be really kind.
Another question, do you have any idea how this http://www.stretchmedia.ca/code_examples/chart_range_selection/main.html could work with multiple charts laying above each other and the range selector is changing the range of all charts (e.g i have 10 charts above each other an each chart has another range but one control (slider on the bottom handling the range of all)?
Greetz and Thanks
March 1, 2009 at 14:14 |
gee..
i m not working with Flex for some time now (i m on Silverlight now).
i suppose you will need to save your start & end points on some global var that all charts can access.
maybe use a model locator pattern to do this.
shouldn’t be too hard.
March 28, 2009 at 09:15 |
Hi Shemesh,
I have one question.
Do you know if it is possible to drag annotation elements over charts?
E.G. I have a draggable sprite, which I can drag everywhere over a chart.
Cheers,
Frank
March 30, 2009 at 08:30 |
Frank,
i don’t see any problem with that (although i haven’t tried it).
the annotation element is a layer on top of the chart which you can exploit to do whatever you want.
you can push a canvas in there and apply you’re drag-n-drop.
March 30, 2009 at 09:28 |
Hi Shemesh,
I have now a canvas as annotation element.
But this annotation element is covering the whole chart.
I would like to drag only a small canvas over the chart (like a marker: about 15 x 15 pixel not covering the whole chart).
Is this going?
I didn’t get it work.
Because right now it is as big as the chart.
March 30, 2009 at 12:35 |
Frank,
right! your top most container in an annotation element is always the size of its parent chart.
refer to the canvas as your ’stage’ – on it you can add ‘actors’ (e.g. your draggable sprite).
look at the code of this sample, i have added an annotation element to the chart and everything happens INSIDE that element.
April 15, 2009 at 12:41 |
Hi Shemesh,
Nice work with the Range Selector. Have you tried to do the same thing with Silverlight 2 ?
thanks.
April 17, 2009 at 15:59 |
actually YES!
i do have the same for Silverlight 2!
will be up in few days.
April 26, 2009 at 12:15 |
Hi Shemesh,
Any news from the Silverlight version ? I’m really interesting in it
Thanks !
April 26, 2009 at 21:12 |
the Silverlight version is here: Silverlight: DragSelect component
July 15, 2009 at 00:37 |
Nice component!
I am also working on open source chart scrolling / zooming component. In my component zooming is achieved by spinning mouse wheel and scrolling by dragging chart series. Currently my component supports charts with LinearAxis or DateTimeAxis. I have tested it with ColumnChart and LineChart but it should work with other subclasses of CartesianChart as well.
You can find more details at:
http://www.iwobanas.com/2009/07/scrolling-and-zooming-chart-with-chartscroller/
Cheers,
Iwo Banaś
September 9, 2009 at 14:22 |
Great work.