Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points

2008-11-18 Thread Romain de Wolff
You can always try a Java Applet. But this suggestion might be off topic!

On Wed, Nov 19, 2008 at 12:04 AM, Mark Easton [EMAIL PROTECTED]wrote:

I'd be using C++. :)

 I already have a C++ application running on our gateway which deals with
 grabbing data from the stations. It then passes that to a parser utility I
 wrote so that would be a good place to reduce the dataset ready for a
 progressive display on a flex chart.

 Yep - a very interesting application!

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Josh McDonald
 *Sent:* Wednesday, November 19, 2008 11:34 AM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points

  I'd look into some intermediary code to reduce your dataset, written in
 something with threads (my first choice would be Java, but that's me). It
 sounds like you're working on some interesting stuff Mark :)

 -Josh

 On Wed, Nov 19, 2008 at 6:15 AM, Mark Easton [EMAIL PROTECTED]wrote:

 Thanks Brendan,

 We are charting observations from a range of sensors and contact inputs.
 The contact inputs are a special case as they can only have 1 or 0 values.
 But the sensors include temperature, current, voltage, light, humidity,
 vibration, motion, gps velocity, gps location, wind speed, wind direction
 etc.

 The client does like the the charting features so he wants all of the flex
 charting cool stuff as well as the ability to see these charts.

 But that does not mean that I cant look at a combination of approaches.
 Its a good idea to look at coding a custom chart, and one I will look at
 closely.

 Yes I was thinking along the lines of having 2000 plot points. So in the
 case of a 3 month graph I would start with 120,000 points and need to reduce
 that to 2000.

 Cheers,
 Mark

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Brendan Meutzner
 *Sent:* Wednesday, November 19, 2008 8:51 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points

What kind of charts are you displaying?  I've had amazing success with
 scrapping the charting framework all together and simply drawing the chart
 programmatically.  Yes, it's a bit more work, and yes it's only feasible if
 you don't really need a lot of the charting features that come in the
 framework.  However, the performance difference is huge.

 The project I applied this on was for financial stock data, and using a
 custom drawn chart I mention above, along with the concept someone else
 mentioned by only showing the n-th datapoint interval depending on the
 overall range being displayed worked quite well.  You're able to keep a
 consistent number of plot points (I've found 500-750 performs best) no
 matter what the overall range of data you're displaying.  I say 500-750
 performs best as I also had a horizontal axis slider which allowed for
 constantly updating data in the chart.

 Brendan


 On Tue, Nov 18, 2008 at 1:27 PM, jim.abbott45 [EMAIL PROTECTED]wrote:

   50,000? LOL. ;-)

 On a more serious note, I have to agree with Fotis and Ricky that 50K
 data points is too many, both from a (Flash 9 VM at least) performance
 perspective and probably also from an Information Visualization
 perspective (unless, maybe, your users have 300 dpi monitors).

 There are several standard interaction design and information
 visualization techniques which may be useful to you . . .

 1) Aggregation (as already suggested, take 'N' data points, average
 them, and then only display the average value).

 2) Filtering (by sliders on an axis, by date/time, by structured or
 open-ended queries, ...)

 3) Progressive rendering (sample the entire data set at intervals of
 'N', render those points, then go back and get the data which is
 mid-point between the original points, add the new points to the
 curve, repeat until desired resolution obtained--or on user demand)

 4) Non-linear zooming (like idea 1), but allow user to zoom in on a
 section of the curve, when they do, add the additional data points to
 the curve for the zoomed-in region)

 On a more pragmatic note, you certainly _can_ plot more than 2,000
 points. For example, I've personally used Flex to create charts with
 over 14,000 points in them, so I know that at least that number is
 definitely *possible*. However, the overall rendering time was (as I
 recall) over 3 minutes long. More troubling was the fact that the
 entire Flex UI become very sluggish once a chart that large was
 displayed. I've seen good chart rendering speed ( ~= 2S ) and no UI
 sluggishness, up to about 1500 points. I've also been able to render
 up to 6,000 points, but it took about 10S for the rendering and the UI
 started to become sluggish. From your posting, it sounds like you're
 not seeing those rendering speeds. I'd recommend that you experiment
 with how you are using the 

Re: [flexcoders] Cairngorm for AS3 projects?

2008-11-17 Thread Romain de Wolff

It's a pretty hot topic on the web, the battle PureMVC vs Cairngorm.

Imho, PureMVC is a bit more complicated to put in place, but is a  
great pleasure to use after set up.


The best'd be to test them both if you have time :)

Regards,

Romain de Wolff

Le 13 nov. 08 à 17:18, gabriel montagné a écrit :

On Thu, Nov 13, 2008 at 7:03 AM, Rick Schmitty [EMAIL PROTECTED]  
wrote:

 Is there any reason not to use cairngorm for AS3 projects. [...]

Cairngorm is definitely a Flex thing, it's dependencies are not  
superficial;
it wouldn't make much sense to try to use it on a pure AS3 project.  
You'd

have to redo it and redo the stuff it relies on, which is not trivial.

I agree with Pedro that you should take a look at PureMVC... or,  
better yet,

go back to Flex ;-)

--
gabriel montagné láscaris comneno
http://rojored.com
t/506.8367.6794






Re: [flexcoders] How do you load a page in a tab

2008-11-15 Thread Romain de Wolff
As far as I know, this is not a supported action. You cannot choose to open
a link in a tab, as it's not standard to have tabs in a browser. Even if
this is very common now.
It's up to the user to choose the option, for exemple, to force new windows
to open in a tab.

Maybe I'm wrong.. let's see what will think other people.

Good luck

On Sat, Nov 15, 2008 at 9:28 AM, dorkie dork from dorktown 
[EMAIL PROTECTED] wrote:

   How do you open a url in a tab? This is what you use for a page:

 navigateToURL(new URLRequest(url),'_blank');

 dorkie dork from dorktown
  




-- 

Rita Rudner  - My mother buried three husbands - and two of them were only
napping.


[flexcoders] mxml implements actionscript interface

2008-11-07 Thread Romain de Wolff
Hello all,

Is there a way to implement an interface within an MXML file?

Thanks for any info!


Re: [flexcoders] tile list animation / transition throws error when height shrinks(not always!)

2008-11-07 Thread Romain de Wolff

We need more code to see what happens there.

You have events that might have not set a var? There is something to  
dig into your event order, or item initialization.


Cheers,
G

Le 7 nov. 08 à 12:19, fotis.chatzinikos a écrit :


Hello all,

can anybody throw any pointer on this?

I have a tilelist (vertical/single column) with custom item renderer,
when i use a state to shrink its height (minimize like functionality)
sometimes i get the following error (note: SOMETIMES once every ... do
not know 5 times):

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at mx.controls.listClasses::ListBase/addToFreeItemRenderers()
at mx.controls.listClasses::ListBase/reduceRows()
at mx.controls.listClasses::ListBase/updateDisplayList()
at mx.controls.listClasses::TileBase/updateDisplayList()
at mx.controls.listClasses::ListBase/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/validateNow()
at mx.effects::Tween$/timerHandler()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

TIA,
Fotis







Re: [flexcoders] Re: AS3 Class, MXML implements it

2008-11-07 Thread Romain de Wolff
Thanks a lot! I was looking for this to architecture my project in a  
best way!


Regards,

Romain DW

Le 7 nov. 08 à 16:34, florian.salihovic a écrit :

Just just the implements Attribute in the root node and specify ypur  
interface, which will be

implement.

Best regards.

--- In flexcoders@yahoogroups.com, geniium [EMAIL PROTECTED] wrote:

 Hello,

 Do you know any way to implement an interface in a MXML file?

 Thanks for any info,

 G