RE: [flexcoders] Intellectual property or licensing of posted/blogged work

2007-02-07 Thread Ely Greenfield
 
 
Since it was partially some of my code that kicked off this
discussion...
 
In general, almost everything published on my blog is published under
the MIT open source license, which was included earlier in this thread.
Very occasionally, I'll publish something that's not available for use.
I try and be explicit about it, but if you're looking to use something
from quietlyscheming and you can't find a license in the source, or a
description of the licensing on the page where I posted it, it's
probably best to just leave a comment or send me an email asking about
it.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Tuesday, February 06, 2007 1:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Intellectual property or licensing of
posted/blogged work



I will now pass myself off as a legal expert despite the fact that I
haven't attended law school...so anyone with authority should overrule
my opinion.

Generally speaking, if the owner (which is usually the author) publishes
the code on the web, then you are allowed to look at it.  They showed it
to the public, the public gets to see it.  (It's the same theory that
while a billboard is still copyrighted, you can't tell people not to
look at it.)  You can even tell other people about it and where it is
(although you can't necessarily give them a copy yourself). 

As far as using it in your own projects, that depends entirely on the
license.  Sorry, there is no standard.  However, many blogs and most
adobe products/solutions/projects (including many you mentioned) are
pretty explicit on what you can do.  I assume if you publish things on
this list then you're ok with people using them as they see fit, but
that's a personal assumption, not a legal one.  Maybe there was
something in the signup that i missed which said this list is in the
public domain, but I don't remember it. 

- Dan


On 2/6/07, engkee <[EMAIL PROTECTED]  > wrote:


I have to commend you all for posting a lot of wonderful
components 
and extensions to Flex... eg. Ely's calendar, Doug and Jason's
tab 
navigator extensions, Ben and Trey's reflection effect, Alex's 
distortion effect, just to name a few.

Unfortunately, in these day and age, I would have to ask... am I

allowed to incorporate those wonderful works in commercial
products?
Am I even allowed to look at the source code, if I work for a
company 
producing commercial software, without violating some IP issues.

Most of them are not explicitly associated with any specific 
licensing terms.

Sure would be nice if there could be some standard practice of 
associating these works with a common license, eg. the Creative 
Commons (http://creativecommons.org/licenses/by/2.5/
 )

Maybe there already is some presumed license or disclaimer 
for "published" works. If so, please send a pointer.

Just a thought.

-Engkee






 


RE: [flexcoders] Re: Tutorial zoom in a linechart

2007-02-07 Thread Ely Greenfield
 
 
Hi Graham. That would work just fine.  It forces the chart to do some
extra work, b/c it still has to process those out of bounds data values
far enough to decide they're out of bounds.  So be alert for performance
issues. But other than that, it should work fine.
 
Ely.
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of g_odds
Sent: Wednesday, February 07, 2007 1:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tutorial zoom in a linechart



Everywhere seems to use the slicing the data set style approach. Why
would one not set the minimum and maximum of an axis to do this?

Graham

--- In flexcoders@yahoogroups.com 
, "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> As Mikhail pointed out, if by "zoom" you mean changing the range
shown along
> the horizontal axis, this example should help. Just right click to
view the
> source:
> 
> http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html


> 
> Brendan
> 
> 
> On 2/7/07, Mikhail Shevchuk <[EMAIL PROTECTED]> wrote:
> >
> > I suppose that it is not difficult to implement. During zooming,
just
> > store smaller (zoomed area, relatively to the whole chart) array
collection
> > and change a dataprovider for the component.
> >
> > 2007/2/7, bcncgn3 <[EMAIL PROTECTED]>:
> > >
> > > I have linechart and i want that the user can zoom in in the
> > > horizontal
> > > axis selecting an area on the chart? Someone knows a tutorial
which
> > > explains how to program this?
> > >
> > >
> >
> >
> > --
> > A vivid and creative mind characterizes you.
> >
> > 
> >
> 
> 
> 
> -- 
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca  
>



 


RE: [flexcoders] Animated Drag Tile

2007-02-12 Thread Ely Greenfield
 
 
Hi Nate.  The source should be downloadable. Please try again.
 
 
My site has gone through some changes over the past few months which
have resulting in some broken view source links. If people have been
looking to download source and are getting errors, please post here or
email me directly and I'll get them patched up. Sorry about the hassle.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of napearson99
Sent: Monday, February 12, 2007 10:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Animated Drag Tile



Anyone know how to make an animated drag tile component? I saw Ely's
posting at http://demo.quietlyscheming.com/DragTile/DragDrop.html
  and
I love it. It won't let me download the code though so I can't figure
out how it's done.

-Nate



 


RE: [flexcoders] Re: Animated Drag Tile

2007-02-12 Thread Ely Greenfield
 
 
Hi Nate.  Now you get to be my guineapig :)  I think the zip file should
now container all the files you need. Please clear your cache, download
it again, and see if that works.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of napearson99
Sent: Monday, February 12, 2007 1:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Animated Drag Tile



I cant find the BitmapTile file for the Drag Tile custom itemrenderer.
Am i making a mistake?

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "napearson99" <[EMAIL PROTECTED]> wrote:
>
> I was able to dl the source with IE 6. Firefox 2.0 throws that error.
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "napearson99" 
wrote:
> >
> > When I right click to view source I get the error:
> > 
> > Routing Error
> > 
> > Recognition failed for "/DragTile/DragDropViewSource/index.html"
> > 
> > I'm going to try to adjust your drag tile so that the images get out
> > of the way in a vertical sense instead of horizontal like your demo
> > shows. I'm also going to put just one item per line. This will
> > create a sort of drag and drop list. Do you think this will be hard
> > to do?
> > 
> > On a personal note I love love love your site. I work at a fortune
> > 500 company and upper management is really excited about the flex
apps
> > with charting that I am making. I've only been using Flex/AS for 20
> > days now and I have more than one functional app pulling data from
SQL
> > Servers. Management wants to use Flex as an enhanced GUI for SAP. 
> > Your blog greatly helped me make these cool apps. Keep those posts
> > coming!
> > 
> > SO THANKS! :) 
> > 
> > oh yah, they think im a genius now and I'll probably get a raise ;).
> > 
> > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "Ely Greenfield" 
wrote:
> > >
> > > 
> > > 
> > > Hi Nate. The source should be downloadable. Please try again.
> > > 
> > > 
> > > My site has gone through some changes over the past few months
which
> > > have resulting in some broken view source links. If people have
been
> > > looking to download source and are getting errors, please post
here or
> > > email me directly and I'll get them patched up. Sorry about the
> hassle.
> > > 
> > > Ely.
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> ] On
> > > Behalf Of napearson99
> > > Sent: Monday, February 12, 2007 10:46 AM
> > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Animated Drag Tile
> > > 
> > > 
> > > 
> > > Anyone know how to make an animated drag tile component? I saw
Ely's
> > > posting at http://demo.quietlyscheming.com/DragTile/DragDrop.html
<http://demo.quietlyscheming.com/DragTile/DragDrop.html> 
> > > <http://demo.quietlyscheming.com/DragTile/DragDrop.html
<http://demo.quietlyscheming.com/DragTile/DragDrop.html> > and
> > > I love it. It won't let me download the code though so I can't
figure
> > > out how it's done.
> > > 
> > > -Nate
> > >
> >
>



 


RE: [flexcoders] Re: Animated Drag Tile

2007-02-13 Thread Ely Greenfield
 
 
Hi Nate.  I updated DragTile a while back, and didn't update the sample
files, which is what you're seeing.
 
Grab the source again, that should be fixed.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of napearson99
Sent: Monday, February 12, 2007 3:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Animated Drag Tile



Ely, the tiles disappear when you rearrange inside the same data
provider. It happens your demos and in the code I downloaded.

-Nate
--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "napearson99" <[EMAIL PROTECTED]> wrote:
>
> woohoo it works. Now I'm going to try to edit ur program to do the
> vertical shuffling. gl to me.
> 
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "napearson99" 
wrote:
> >
> > I think you just forgot the images in the img folder. I put some in
> > named img1.jpg, img2.jpg ect and they came up, although these
pictures
> > are at 1900x1680 so i might want to rescale them first to make sure
it
> > works.
> > 
> > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "napearson99" 
wrote:
> > >
> > > Nice, use me all you like. I enjoy it and I think I'll learn a
lot.
> > > 
> > > Now I get: "Error #2044: Unhandled IOErrorEvent:. text=Error
#2035:
> > > URL Not Found."
> > > 
> > > the page comes up but there aren't any tiles.
> > > 
> > > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "Ely Greenfield" 
wrote:
> > > >
> > > > 
> > > > 
> > > > Hi Nate. Now you get to be my guineapig :) I think the zip file
> > should
> > > > now container all the files you need. Please clear your cache,
> > download
> > > > it again, and see if that works.
> > > > 
> > > > Ely.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> > [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> ] On
> > > > Behalf Of napearson99
> > > > Sent: Monday, February 12, 2007 1:42 PM
> > > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> > > > Subject: [flexcoders] Re: Animated Drag Tile
> > > > 
> > > > 
> > > > 
> > > > I cant find the BitmapTile file for the Drag Tile custom
> itemrenderer.
> > > > Am i making a mistake?
> > > > 
> > > > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com>
> > > > , "napearson99"  wrote:
> > > > >
> > > > > I was able to dl the source with IE 6. Firefox 2.0 throws that
> > error.
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> > > > <mailto:flexcoders%40yahoogroups.com> , "napearson99"

> > > > wrote:
> > > > > >
> > > > > > When I right click to view source I get the error:
> > > > > > 
> > > > > > Routing Error
> > > > > > 
> > > > > > Recognition failed for
"/DragTile/DragDropViewSource/index.html"
> > > > > > 
> > > > > > I'm going to try to adjust your drag tile so that the images
> > get out
> > > > > > of the way in a vertical sense instead of horizontal like
your
> > demo
> > > > > > shows. I'm also going to put just one item per line. This
will
> > > > > > create a sort of drag and drop list. Do you think this will
be
> > hard
> > > > > > to do?
> > > > > > 
> > > > > > On a personal note I love love love your site. I work at a
> fortune
> > > > > > 500 company and upper management is really excited about the
> flex
> > > > apps
> > > > > > with charting that I am making. I've only been using Flex/AS
> > for 20
> > > > > > days now and I have more than one functional app pulling
> data from
> > > > SQL
> > > > > > Servers. Management wants to use Flex as an enhanced GUI for
> SAP. 
> > > >

RE: [flexcoders] Exporting Charts as Image

2007-02-14 Thread Ely Greenfield
 
Hi Prateek. There are various libraries around that allow you to capture
a chart, or any other flex component, as a PNG or JPG.  you could then
upload that to the server, and do what you want with it.
 
See:
 
http://code.google.com/p/as3corelib/
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ., Prateek (MSAS Sys Dev IBD)
Sent: Wednesday, February 14, 2007 4:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Exporting Charts as Image



Hi All
 
We are using Flex charts in our web app. We also have a need to export
the chart as an image so that the same can be embedded in an email sent
out to users.
Any pointers ?
 
Thanks
Prateek



NOTICE: If received in error, please destroy and notify sender. Sender
does not intend to waive confidentiality or privilege. Use of this email
is prohibited when received in error.

 


RE: [flexcoders] how to clear datatip

2007-02-15 Thread Ely Greenfield
 
 
That sounds like an unfortunate bug.  If you set showDataTips to false,
it should clear it immediately.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jer_ela
Sent: Thursday, February 15, 2007 11:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to clear datatip



I have a column chart with drill down functionality. When you click
on a column, it displays a more detailed chart for that item. The
more detailed chart is in a view stack with the drill down chart so
the main thing I do to get it to display is to change the selected
index of the view stack. 

The problem is that the columns have datatips and when I switch to the
new chart the datatip is still there. Any ideas on how to make it go
away?



 


RE: [flexcoders] Programmatic chart data tip

2007-02-16 Thread Ely Greenfield
 
 
Unfortunately, no.  You'll have to create your own datatips if that's
what you want to do.
 
http://www.quietlyscheming.com/blog/charts/easy-custom-charts/
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Friday, February 16, 2007 11:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Programmatic chart data tip



In a Plot chart, given the x & y coordinates of a datapoint (or the data

values for the datapoint) is there a way to programmatically turn on and

turn off the data tip for just that point?

- Tom



 


RE: [flexcoders] Charting Tooltips do not show ColumnSeries name

2007-02-19 Thread Ely Greenfield
 
 
 
 
 
use displayName, not name. confusing, I know, but a fact of life.
 
(name is a property defined and used by the core player displayList).
 
Ely.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Private Romeo
Sent: Monday, February 19, 2007 3:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Charting Tooltips do not show ColumnSeries name



I have the following simple charting app:

 



http://www.adobe.com/2006/mxml";
layout="absolute" styleName="plain">



   





   

 


   

   

 


   

   




















 

However the names of the ColumnSeries ("Calls Answered" and "Calls
Accepted") are not shown in the data tips. Any hint?

 

 



RE: [flexcoders] Accessing a Flex Model via JavaScript (FABridge)

2007-02-19 Thread Ely Greenfield
 
 
 
The FABridge relies on the ability to introspect actionscript types and
create proxies in javascript for classes, methods. and properties on the
fly. Since Model is dynamic it can't be introspected by the current
bridge behavior, so you can't manipulate it directly through the Bridge.
 
You have three options:
 
1) the bridge has low level APIs for setting and getting properties, and
calling methods, on an arbitrary object reference.  You can see if using
these to access members of the model fixes your problem.
 
2) if you know in advance what type of manipulations you want to do to
your model, you can write methods in your application to do them, and
call those (with parameters) from your javascript.
 
3) use a strongly typed class based model rather than the generic model
tag.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Private Romeo
Sent: Monday, February 19, 2007 7:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Accessing a Flex Model via JavaScript (FABridge)



I've got the following model in my MXML app (bound to a column chart
control):

 





  

January

1000

3

  

  

February

1200

5

  

   



 

and by using the FABridge I want to change the data within JavaScript:

 

flexApp.getMyLabel().setText("Updated via JavaScript!");

var sampleData = flexApp.getSampleData();

sampleData[1].Sales=50;

 

however the last line seems to not work. How do I make it work?

 

Your help is greatly appreciated.

 

R.

 



RE: [flexcoders] Re: Adding annotationElements programatically

2007-02-20 Thread Ely Greenfield
 
 
Rule of thumb in actionscript...there's no way to detect a change in an
array. So if you're calling 'push' on an array and expecting some other
component to notice, you're going to be unhappy. You need to explicitly
inform other components that the array has changed, usually by just
passing it the array as a 'new value.' 
 
In this case, there's some small cost to reprocessing the other
annotation elements, but nothing too heavy.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of durnelln
Sent: Tuesday, February 20, 2007 8:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Adding annotationElements programatically



I am also trying to add annotationElements programatically and have a 
slightly different problem.

My annotationElement uses its dataTransform object to convert data 
values into screen coordinates. If added to the chart's 
annotationElements in MXML it works fine. However when I try to add 
it programatically in Actionscript (as below) the annotationElement 
is instantiated but its dataTranform remains null.

Am I missing something? Is there an extra step required to set up 
the annotationElement's dataTransform object?

Thanks,

Nick.

--- In flexcoders@yahoogroups.com 
, "Daniel Tuppeny" <[EMAIL PROTECTED]> 
wrote:
>
> My problem was this:
> 
> payChart.annotationElements.push(bfl);
> 
> It doesn't seem to work, but this:
> 
> payChart.annotationElements =
> payChart.annotationElements.concat(bfl);
> 
> does. Seems a little ott (because I'm guessing this will re-render 
the
> other annotationElements on the graph), but it works!
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Daniel Tuppeny
> Sent: 26 July 2006 10:24
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Adding annotationElements programatically
> 
> 
> Hi all,
> 
> I've got this in my chart, which works:
> 
> 
>  
> dataProvider="{pmService.GetBestFitLines.lastResult.LinearBestFit}"
> />
> 
> 
> But now I want to do it programatically, so I've removed it, and 
added
> this script:
> 
> var bfl:Quadratic = new Quadratic();
> payChart.annotationElements.push(bfl);
> bfl.dataProvider =
> pmService.GetBestFitLines.lastResult.QuadraticBestFit;
> // Added to try and force things to update!
> payChart.invalidateDisplayList();
> payChart.invalidateProperties();
> payChart.invalidateSeriesStyles();
> 
> But the best fit line never appears. I can't provide the source for
> Quadratic, because there are many base classes, but it's basically a
> class inheriting from ChartElement which does some drawing in
> updateDisplayList!
> 
> Am I doing something wrong?
> 
> 
> The information contained in this e-mail and/or any attachments is
> confidential and intended only for the individual(s) to which it is
> addressed. If you are not named as an addressee you must not 
disclose,
> copy or take any action in reliance of this transmission. This e-
mail
> and its attachments have been scanned for viruses by MessageLabs 
Ltd. 
> 
> 
> 
__
> This email has been scanned by the MessageLabs Email Security 
System.
> For more information please visit http://www.messagelabs.com/email
  
> 
__
> 
> [Inbound Mail Scanned by MessageLabs]
> 
> 
> 
__
> This email has been scanned by the MessageLabs Email Security 
System.
> For more information please visit http://www.messagelabs.com/email
  
> 
__
>



 


RE: [flexcoders] Replace an on screen component.

2007-02-20 Thread Ely Greenfield


Hi Grant.  The answer is yes, and yes.

Ely.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, February 20, 2007 12:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Replace an on screen component.

Hi guys,

We have a chart displayed on a dashboard amongst other components, when
a user selects a different chart we need to remove the chart and display
a different one, I was going to use view states but we have lots of
different charts and it "seems" that the charts not in the current view
are still "alive" and respond to events they are subscribed for, is this
correct ?

In "flash" i'd remove the movie clip and load a new one, can I remove
the component and load another one within my dashboard ?

Grant


RE: [flexcoders] Please Help with CandleStick Chart

2007-02-21 Thread Ely Greenfield
 
 
I'm assuming by looking at your data that you have multiple series in
this chart, and you're trying to figure out which series they clicked
on?
 
The ChartItem has a property called element which points back to the
series it's associated with. You can use that to decide whether it's
open1, open2, etc.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Wednesday, February 21, 2007 12:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Please Help with CandleStick Chart



Hello,
I have a problem which I am sure is easy to solve but I am missing a 
piece of the pazzle.

I have a CandleStickChart.

In my candle stick chart I have an underline array collection.

My array collection looks like this:

[Bindable]
private var expensesAC:ArrayCollection = new ArrayCollection( [
{ Date: "25-Jul", Open1: 40, High1: 40, Low1: 20, Close1:20 , Open2: 
42, High2: 42, Low2: 48, Close2:48 , Open3: 60, High3: 60, Low3: 
50, Close3:50} ]);

As you can see, I have a single column which is broken into multiple 
Open/Close High/Low + an index number ( 1 - 10 )

I have an event so whenever an item is clicked on the chart I grab it 
such as:

private function selectBox(event:ChartItemEvent):void { 


trace("A TimeClockID: " + 
event.hitData.item.Open1);
trace("B TimeClockID: " + 
event.hitData.chartItem.index); 

trace("C TimeClockID: " + 
event.hitData.chartItem.itemRenderer.name); 

trace("D TimeClockID: " + event.hitSet.valueOf
());
trace("D TimeClockID: " + event.hitSet);



}

The problem is that I can not find away to figure out which specific 
column in the candle stick chart the user clicked on.

In other words, if you look at:

trace("A TimeClockID: " + event.hitData.item.Open1);

I get the valid data which Open1 holds.

However, I do not know if the user clicked on Open1 or Open2 or Open3.

I just know which object in the chart he clicked on, but I DO NOT 
KNOW which object he clicked on within the object ( i.e.: did he 
click on Open1 or 2 ... 3 ... ) .

How can I figure this out ...

Help

Regards,
Sean.



 


RE: [flexcoders] RE: Accessing a Flex Model via JavaScript (FABridge)

2007-02-21 Thread Ely Greenfield
> Could a multi-dimensional JavaScript Array do? What would be your 
advice to
> reach our above described objective?
> 
> 
> 
> Best regards
> 
> Ralf
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Ely Greenfield
> Sent: Montag, 19. Februar 2007 18:02
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: RE: [flexcoders] Accessing a Flex Model via JavaScript 
(FABridge)
> 
> 
> 
> 
> 
> 
> 
> 
> 
> The FABridge relies on the ability to introspect actionscript 
types and
> create proxies in javascript for classes, methods. and properties 
on the
> fly. Since Model is dynamic it can't be introspected by the 
current bridge
> behavior, so you can't manipulate it directly through the Bridge.
> 
> 
> 
> You have three options:
> 
> 
> 
> 1) the bridge has low level APIs for setting and getting 
properties, and
> calling methods, on an arbitrary object reference. You can see if 
using
> these to access members of the model fixes your problem.
> 
> 
> 
> 2) if you know in advance what type of manipulations you want to 
do to your
> model, you can write methods in your application to do them, and 
call those
> (with parameters) from your javascript.
> 
> 
> 
> 3) use a strongly typed class based model rather than the generic 
model tag.
> 
> 
> 
> Ely.
> 
> 
> 
> 
> 
> _ 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Private Romeo
> Sent: Monday, February 19, 2007 7:17 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Accessing a Flex Model via JavaScript 
(FABridge)
> 
> I've got the following model in my MXML app (bound to a column 
chart
> control):
> 
> 
> 
> 
> 
> 
> 
> 
> 
> January
> 
> 1000
> 
> 3
> 
> 
> 
> 
> 
> February
> 
> 1200
> 
> 5
> 
> 
> 
> 
> 
> 
> 
> 
> 
> and by using the FABridge I want to change the data within 
JavaScript:
> 
> 
> 
> flexApp.getMyLabel().setText("Updated via JavaScript!");
> 
> var sampleData = flexApp.getSampleData();
> 
> sampleData[1].Sales=50;
> 
> 
> 
> however the last line seems to not work. How do I make it work?
> 
> 
> 
> Your help is greatly appreciated.
> 
> 
> 
> R.
>



 


RE: [flexcoders] Negative plane in Column Chart

2007-02-22 Thread Ely Greenfield
 
 
Hi Mikhail.  Can you be more specific about what you're looking for?  In
general, the charts support negative values with no problems, so maybe
I'm not understanding your question.
 
Ely.
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mikhail Shevchuk
Sent: Thursday, February 22, 2007 3:18 AM
To: Flex
Subject: [flexcoders] Negative plane in Column Chart



How to implement such a thing?
Simple defining negative values doesn't help. These columns just not
displayed.

If this is impossible within Column Chart, could you please advise me
where should I look for?

Thanks.

-- 
A vivid and creative mind characterizes you. 

 


RE: [flexcoders] alternating row color in bar chart

2007-02-22 Thread Ely Greenfield
 
 
Mark -- the gridlines class, which defines the background gridlines for
the chart, supports alternating row colors.  Look at the documentation
for GridLines for more information.
 
off the top of my head, it would look something like:
 

  
 
  

 
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark
Sent: Thursday, February 22, 2007 8:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] alternating row color in bar chart



I'm using a bar chart that can get pretty long so I'd like to 
alternate the background row color. Is this something I can do, and 
if so, is there an example or maybe point me in the right direction on 
how to go about doing it?



 


RE: [flexcoders] Chart Series - formatDataTip inconsistent visibility

2007-02-22 Thread Ely Greenfield
 
 
In general, they're prive because we provide an alternate method for
changing the datatip that doesn't require subclassing (setting the
dataTipFunction on the chart).
 
Depending on the scenario, it feels a little bit like overkill. If I
were writing this myself, I would write my own dataTipFunction for the
chart, which just cased on the type of the series generating the
datatip, and took appropriate action. The only reason I would bother
with subclassing the series is if I were trying to wrap up new or
modified series types for use in other apps or by other developers.  
 
If you really want to keep the datatip functionality encapsulated in the
series...The way datatips work is that the series stuffs a reference to
its datatip function into the HitData structure before it returns it
from the findDataPoints() function.  So I would subclass the series,
override findDataPoints, call the super() version, and then right before
returning the hitData structures generated by the super version, stuff
my own altenrate data tip function into the hitData structures.
 
Ely.
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of parkerwhirlow
Sent: Thursday, February 22, 2007 12:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Chart Series - formatDataTip inconsistent
visibility




I started making some application specific tweaks to the chart series
dataTips, and it worked beautifully for ColumnSet (override the
protected function formatDataTip), but then I soon realized that only
the SET series (subclasses of StackedSeries) have that function as
protected. It's actually private on all the standard series.

Is there a reason that it's private on the normal series, but
protected on the series sets?

I am thinking as a workaround, I'll have to do something like this.
what do you think?

Use the chart's dataTipFunction, and call back into the series (via
hitData.element) to a slightly differently named function
(myFormatDataTip) defined on the series subclass. I don't like this
because then I have to make sure the myFormatDataTip function exists
before calling it, and I make assumption about the signature, but I
think that would work...

comments?
thanks,
PW



 


RE: [flexcoders] Re: Chart Series - formatDataTip inconsistent visibility

2007-02-22 Thread Ely Greenfield
 
 
In this scenario, I would suggest subclassing the Stacked series
(ColumnSet, or whichever you need), and exposing the percent values.
i.e., add a get function that looks something like:
 
public function
getTotalsValuesBecauseElyWasStupidAndMadeThemProtected():Array
{
  return stackTotals;
}
 
then do the rest of it from external datatip functions.  We'll make the
stackTotals publicly accessible in the next release.
 
Regarding the general question of public/protected/private:  Writing
frameworks is a tricky business. Every public or protected method gets
locked in stone, restricting our ability to innovate with each
release...i.e., if the behavior is defined, accessible, overridable,
then it ties our hands in our ability to refactor code and functionality
because someone might be relying on it. Given that we're trying to do
our best about maintaining compatibility in future releases,   We have
to be very careful about what we make public.  Clearly we have got some
of them wrong (and will continue to), and we want to hear what those are
so we can fix them. But erring to far on the other side...making
everything public...probably would be the wrong answer for everyone.
 
Ely.
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of parkerwhirlow
Sent: Thursday, February 22, 2007 2:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Chart Series - formatDataTip inconsistent
visibility



Ely,

Thanks for the info.

The reason I was going with subclasses, is because the Stacked type
series stacking information (stackTotals) is protected, so I needed a
subclass.

This whole thing started with the Stacked type series, the simple
series could possibly be handled in a single case statement. However,
since I have to use a subclass/override dataTipFunction for that, I am
kinda stuck going the subclass route right? Is there some way to do
the chart dataTipFunction and also in some cases use the series
supplied function?

In general, It seems like I find a lot of cases where it seems
completely unnecessary to make a function or variable protected or
private. I mean in the case of formatDataTip, that function does not
modify anything, simply formats a string. That could have been public
even. no danger of calling, and useful for calling or overriding.

If it were public, it would be easy to use the case statement, supply
the default formatDataTip function in the default case, and override
just the ones I wanted to. And if I could have gotten to the stack
totals that would have been just as good or even better.

thanks,
PW

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
> 
> 
> In general, they're prive because we provide an alternate method for
> changing the datatip that doesn't require subclassing (setting the
> dataTipFunction on the chart).
> 
> Depending on the scenario, it feels a little bit like overkill. If I
> were writing this myself, I would write my own dataTipFunction for the
> chart, which just cased on the type of the series generating the
> datatip, and took appropriate action. The only reason I would bother
> with subclassing the series is if I were trying to wrap up new or
> modified series types for use in other apps or by other developers. 
> 
> If you really want to keep the datatip functionality encapsulated in
the
> series...The way datatips work is that the series stuffs a reference
to
> its datatip function into the HitData structure before it returns it
> from the findDataPoints() function. So I would subclass the series,
> override findDataPoints, call the super() version, and then right
before
> returning the hitData structures generated by the super version, stuff
> my own altenrate data tip function into the hitData structures.
> 
> Ely.
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of parkerwhirlow
> Sent: Thursday, February 22, 2007 12:59 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Chart Series - formatDataTip inconsistent
> visibility
> 
> 
> 
> 
> I started making some application specific tweaks to the chart series
> dataTips, and it worked beautifully for ColumnSet (override the
> protected function formatDataTip), but then I soon realized that only
> the SET series (subclasses of StackedSeries) have that function as
> protected. It's actually private on all the standard series.
> 
> Is there a reason that it's private on the normal series, but
> protected on the series sets?
> 
> I am thinking as a workaround, I'll have to

RE: [flexcoders] Zooming out of a list ?!

2007-02-23 Thread Ely Greenfield
 
 
Hi Jamie. That's pretty much exactly how I would reccomend doing it.  
 
as for #2:  all displayobjects have a property called localToGlobal(),
which converts coordinates from the component's coordinate system to the
global coordinate system.  So you could do:
 
 
var topLeft:Point =
systemManager.globalToLocal(myItemRenderer.localToGlobal(new
Point(0,0)));
var bottomRight:Point =
systemManager.globalToLocal(myItemRenderer.localToGlobal(new
Point(myItemRenderer.width,myItemRenderer.height)));
 
and there you've got the bounding box for your component in
popup-coordinate-space.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jamiebadman
Sent: Friday, February 23, 2007 2:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Zooming out of a list ?!



Hi,

I've been exploring the wonderful world of effects and transitions 
recently... there's something I would *love* to be able to do - but 
I suspect this is not possible. Could someone confirm or deny 
accordingly ?!

Here's the idea...

I have a horizontal list which consists of a set of charts. This 
list is quite small - acting really, like a row of thumbnails for 
the charts.

If the user clicks on a chart, it appears in a nice big readable 
size in a popup window.

Now... what I'd like to do is apply a 'zoom' style transition from 
the clicked list element to the popup window so that the popup 
appears to zoom out of the list itself.

Actually, as I write this, a *possible* solution has occurred to 
me...

(1) The user clicks on an element on the list
(2) This causes a totall borderless popup window to be created, 
exactly over the chart in the list that the user clicked on. This 
would appear 'invisble' to the user since visually it should look 
the same.
(3) A sequence (consisting of a zoom effect and move) is applied to 
the popup to expand it and bring it into the centre of the screen.

If this is possible, I *think* it would look ok ?

Question then is, how to achieve (2)...

Or am I barking up the wrong tree ?!

Jamie.



 


RE: [flexcoders] Quadrant chart

2007-02-23 Thread Ely Greenfield
 
 
See my post:
 
http://www.quietlyscheming.com/blog/charts/easy-custom-charts/
 
Ely.
 
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mehul Doshi
Sent: Friday, February 23, 2007 11:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Quadrant chart



Hi,

I'm trying to develop a chart that looks similar to the following:

http://www.adaptivepath.com/images/publications/essays/prioritization
 
_chart.gif

Essentially, have a set of 'A' values and a set of 'B' values, then 
calculate the average of 'A' values and show that as a vertical 
line, calculate the average of 'B' values and show that as a 
horizontal line, and then display each combination of [A,B] value as 
a point on the chart. I've looked at a couple of other posts on this 
forum to see how I can use the gridline to create the average 
horizontal and vertical lines...but haven't been able to really do 
it. Can someone please post a really small example of how I can plot 
those lines?

Also, (and this is optional) how can I place those label annotations 
on the chart at specific data points?

Thanks,
Mehul.



 


RE: [flexcoders] Re: Quadrant chart

2007-02-23 Thread Ely Greenfield
 
 
 

For both. It's really not very complex...just a moveTo, lineTo,
and you're done. This is the easiest way to draw a line at a specific
location.
 
Ely.
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mehul Doshi
Sent: Friday, February 23, 2007 11:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Quadrant chart



Yeah, I've looked at it, but it seems a bit complex (for a beginner) 
to do something as simple as creating a single vertical or 
horizontal line for a specified value. Can that not be done using 
just a single horizontal and vertical gridline?

Or, did you refer me to your custom charts example for the label 
annotations on the chart?

Thanks,
Mehul.

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> 
wrote:
>
> 
> 
> See my post:
> 
> http://www.quietlyscheming.com/blog/charts/easy-custom-charts/
<http://www.quietlyscheming.com/blog/charts/easy-custom-charts/> 
> 
> Ely.
> 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Mehul Doshi
> Sent: Friday, February 23, 2007 11:11 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Quadrant chart
> 
> 
> 
> Hi,
> 
> I'm trying to develop a chart that looks similar to the following:
> 
> 
http://www.adaptivepath.com/images/publications/essays/prioritization
<http://www.adaptivepath.com/images/publications/essays/prioritization> 
> 
<http://www.adaptivepath.com/images/publications/essays/prioritizatio
<http://www.adaptivepath.com/images/publications/essays/prioritizatio> 
n> 
> _chart.gif
> 
> Essentially, have a set of 'A' values and a set of 'B' values, 
then 
> calculate the average of 'A' values and show that as a vertical 
> line, calculate the average of 'B' values and show that as a 
> horizontal line, and then display each combination of [A,B] value 
as 
> a point on the chart. I've looked at a couple of other posts on 
this 
> forum to see how I can use the gridline to create the average 
> horizontal and vertical lines...but haven't been able to really do 
> it. Can someone please post a really small example of how I can 
plot 
> those lines?
> 
> Also, (and this is optional) how can I place those label 
annotations 
> on the chart at specific data points?
> 
> Thanks,
> Mehul.
>



 


RE: [flexcoders] CurrencyFormatter applied to LineSeries

2007-02-26 Thread Ely Greenfield
 
 
Marc -- what exactly are you trying to do?  Format the labels on the
axis?  On the datatips? elsewhere? For the chart to work, it needs to be
able to run calculations on the y values -- pre-formatting them prevents
that.  If you're looking to format datatips, try a data tip function on
the chart.  If you're looking to format the axis, try a label function
on the vertical axis.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of marc_rossi
Sent: Sunday, February 25, 2007 7:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CurrencyFormatter applied to LineSeries



Hi all -

I'm trying to use a LineSeries with stock prices. When I format the
yField with the CurrencyFormatter the chart no longer works. It looks
as though I need to create my own itemRenderer but have been
unsuccessful thus far in my attempts. Is this the correct route? If
so, are there any examples available online?

TIA,
Marc 



 


RE: [flexcoders] Chart annotationElements based on series data

2007-02-27 Thread Ely Greenfield
 
 
 
There's no obvious way to do what you're doing.  The annotation element
has access to the chart, so you could iterate over the series of the
chart, and ask for their data. To get access to what is currently
visible on screen, you could ask for their renderData, then look at the
filteredCache inside of that.  Of course, now you're tying your
annotation element pretty tightly to the details and implementation of
the individual series.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of durnelln
Sent: Monday, February 26, 2007 7:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Chart annotationElements based on series data



Hi all - and hopefully Ely ;-)

I have a LineChart containing a LineSeries which updates 
automagically from an arrayCollection - works great. I have also 
created a simple annotationElements element which renders a 
horizontal line across the chart at a configured value.

What I'm trying to do now is to create a more complex 
annotationElement which draws a nice curve across the chart based on 
the data point values. So this time I need to access the data values 
themselves to perform some calculations.

How do I get hold of the lineseries data values from my 
annotationElement? Similarly, is there a way to retrieve only the 
data points that are currently visible on the chart? I've had a 
quick poke around the charting help files and source code but I'm 
only getting more confused...

Thanks,

Nick.



 


RE: [flexcoders] How to align identical CategoryAxis as HorizontalAxis and SecondHorizontalAxis

2007-02-27 Thread Ely Greenfield
 
 
Are you trying to align the gridlines, or align the axes?
 
The short answer is no.  There's no general way to force the chart to
align a horizontal and secondary horizontal axis (with the asumption,
perhaps wrong, being that the reason you're using secodary axes in the
first place is because the data is unrelated).  If you have the same
number of values in the horizontal and second horizontal axes, you could
explicitly set the gutterLeft and gutterRight on the chart, which would
make the two axes line up, at the expense of some auto-layout
functionality.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mgrayfmr
Sent: Monday, February 26, 2007 8:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to align identical CategoryAxis as
HorizontalAxis and SecondHorizontalAxis



Help Ely (or anyone who knows) !!!

I'm having trouble with the data being displayed in a LineChart.
I have same data in a horizontal and secondhorizontal category axis. 
I am also displaying vertical gridlines using the backgroundElements 
property. What is happening is that the spacing is different for the 
bottom and top axis. The bottom axis is fine but the top is spacing 
the interval differently than the bottom axis. The gridlines are 
aligne with the top axis interval. Basically, I end up with data in 
each series that don't match up because they align to two different 
axises. Is there a way to control how Flex sets the divlines ? I have 
tried creating a sub-class of Category axis, but nothing seems to be 
of help.
I have managed to get the top axis labels to display in the correct 
spacing, but this does not change the actual plot points on the 
gridlines.

Any help would be appreciated !!!



 


RE: [flexcoders] Re: broken: stacked AreaChart when using horizontal DateTimeAxis

2007-02-27 Thread Ely Greenfield
 
 
The DateTimeAxis uses the built in ECMAScript Date parsing function to
convert strings to dates. So if your dates are in a different format,
you need to provide your own parsing function.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of munkydung
Sent: Monday, February 26, 2007 10:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: broken: stacked AreaChart when using
horizontal DateTimeAxis



wow, that was totally it. thanks!
I was under the impression that Flex was interpreting my date values
just fine as it rendered appropriate values in my third example, but I
guess we have to be explicit about it.

Mike

--- In flexcoders@yahoogroups.com 
, "Mark" <[EMAIL PROTECTED]> wrote:
>
> I was having the same problem and found from the help files I needed 
> to make sure my dates were coming in as dates, so there's a 
> parseFunction I needed to add, like this:
> 
> 
>  displayLocalTime="true" parseFunction="myParseFunction" />
> 
> 
> //function
> public function myParseFunction(s:String):Date { 
> // Get an array of Strings from the comma-separated String passed in.
> var a:Array = s.split(",");
> // Create the new Date object.
> var newDate:Date = new Date(a[0],a[1],a[2]);
> return newDate;
> }
> 
> Hope it helps
>



 


RE: [flexcoders] pie chart: group small values together

2007-02-27 Thread Ely Greenfield
 
 
Hi Bruno. You could apply a sort to the data on the client before
assigning it to the chart.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bruno.navert
Sent: Monday, February 26, 2007 8:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] pie chart: group small values together



I'm quite new to Flex, so please forgive me if this is a no-brainer.

I have a Pie Chart control that shows a lot of wedges, and I would
like it to automatically group together smaller wedges (say all those
whose percentage value is lower than 1-2%) and display something like
"Others - x%", x being the sum of all the grouped wedges.

Is there some quick & painless way to get this to work ?

Obviously the data comes from an external data provider, which sources
the data from a database, so I don't have direct control over it (i.e.
the grouping has to be done at run time)

thanks,
Bruno



 


RE: [flexcoders] Re: Fisheye component

2007-03-01 Thread Ely Greenfield
 
 
Attached.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fsawitzki
Sent: Tuesday, February 27, 2007 5:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Fisheye component



I have also the problem to find the missing CachedLabel file. On Elys
page is only one FisheyeProject.zip file stored, dated 12-13-06. And
there is no CachedLabel file inside. Also not in the srcview folder.

Can you or anyone else post a link, where i can find it?

thanks in advance,
Frank

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, Mitch Grasso <[EMAIL PROTECTED]> wrote:
>
> Download the full source code zip file and you'll find it there.
> 
> - Original Message 
> From: leo0401flick <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Sent: Wednesday, February 21, 2007 12:16:00 PM
> Subject: [flexcoders] Fisheye component
> 
> > 
> I want to use the fisheye component from Ely Greenfield.
> 
> But the compiler ask for a missing "qs.controls. CachedLabel"
> 
> Does anybody know's where to get it.
> 
> thanx



 


CachedLabel.as
Description: CachedLabel.as


RE: [flexcoders] Re: Fisheye component

2007-03-01 Thread Ely Greenfield
 
 
Yeah, I'll fix it. Just being lazy ;)
 
Look for it later today.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fsawitzki
Sent: Thursday, March 01, 2007 7:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Fisheye component



Thanks to Ely and Softwarecat for sending the as file.

@Softwarecat: I tried your CachedLabel cod, and received an url error.
It is the same problem that you got?

@Ely: It is possible to insert the missing file into the zip container
on your website? The online yahoogroups reader shows me only a
"Attachment(not stored)" and a fixed container would be great for all
those, who try to test your code via the fisheye side.

> Attached.
> 
> Ely.
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of fsawitzki
> Sent: Tuesday, February 27, 2007 5:08 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: Fisheye component
> 
> 
> 
> I have also the problem to find the missing CachedLabel file. On Elys
> page is only one FisheyeProject.zip file stored, dated 12-13-06. And
> there is no CachedLabel file inside. Also not in the srcview folder.
> 
> Can you or anyone else post a link, where i can find it?
> 
> thanks in advance,
> Frank
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> , Mitch Grasso  wrote:
> >
> > Download the full source code zip file and you'll find it there.
> > 
> > - Original Message 
> > From: leo0401flick 
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com> 
> > Sent: Wednesday, February 21, 2007 12:16:00 PM
> > Subject: [flexcoders] Fisheye component
> > 
> > > 
> > I want to use the fisheye component from Ely Greenfield.
> > 
> > But the compiler ask for a missing "qs.controls. CachedLabel"
> > 
> > Does anybody know's where to get it.
> > 
> > thanx
>



 


RE: [flexcoders] Re: Fisheye component

2007-03-01 Thread Ely Greenfield
 
the source links should be updated now to have everything you need to
run the fisheye.  Please let me know if they still don't work.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Wednesday, February 28, 2007 8:12 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Fisheye component



 
 
Attached.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fsawitzki
Sent: Tuesday, February 27, 2007 5:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Fisheye component



I have also the problem to find the missing CachedLabel file. On Elys
page is only one FisheyeProject.zip file stored, dated 12-13-06. And
there is no CachedLabel file inside. Also not in the srcview folder.

Can you or anyone else post a link, where i can find it?

thanks in advance,
Frank

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, Mitch Grasso <[EMAIL PROTECTED]> wrote:
>
> Download the full source code zip file and you'll find it there.
> 
> - Original Message 
> From: leo0401flick <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Sent: Wednesday, February 21, 2007 12:16:00 PM
> Subject: [flexcoders] Fisheye component
> 
> > 
> I want to use the fisheye component from Ely Greenfield.
> 
> But the compiler ask for a missing "qs.controls. CachedLabel"
> 
> Does anybody know's where to get it.
> 
> thanx



 


RE: [flexcoders] How to align chart items in two charts?

2007-03-02 Thread Ely Greenfield
 
 
by default charts compute their gutterLeft and gutterRight dynamically,
but if you need to get two charts to align, you can set them to explicit
values. You lose a little bit of flexibility in axis/label layout...it
will fit the axes to the space available rather than choosing the best
space available for the labels, but if you choose appropriate values it
should work fine.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mikhail Shevchuk
Sent: Friday, March 02, 2007 1:44 AM
To: Flex
Subject: [flexcoders] How to align chart items in two charts?



Hello, Flexcoders.

I have two charts one below another. They are quite similar and use the
same horizontal axeses. But the problem is that I can't get the correct
chart view. The problem is that they have different positions of start
and end points on the canvas. How to align those vertical axes
vertically? I've attached two small pictures to show you what I mean. 

Saying another words, I need to align the chart points vertically, as
axes.

Thanks.
-- 
A vivid and creative mind characterizes you. 

 


RE: [flexcoders] How to align chart items in two charts?

2007-03-04 Thread Ely Greenfield
 
 
 
That's just what we like to hear ;)
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mikhail Shevchuk
Sent: Saturday, March 03, 2007 12:39 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to align chart items in two charts?



Wow. Its amazing how simple the solution is. Thanks, Ely.


2007/3/2, Ely Greenfield <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>: 



 
 
by default charts compute their gutterLeft and gutterRight
dynamically, but if you need to get two charts to align, you can set
them to explicit values. You lose a little bit of flexibility in
axis/label layout...it will fit the axes to the space available rather
than choosing the best space available for the labels, but if you choose
appropriate values it should work fine.
 
Ely.
 



From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com <http://yahoogroups.com> ] On Behalf
Of Mikhail Shevchuk
Sent: Friday, March 02, 2007 1:44 AM
To: Flex
Subject: [flexcoders] How to align chart items in two charts?




Hello, Flexcoders.

I have two charts one below another. They are quite similar and
use the same horizontal axeses. But the problem is that I can't get the
correct chart view. The problem is that they have different positions of
start and end points on the canvas. How to align those vertical axes
vertically? I've attached two small pictures to show you what I mean. 

Saying another words, I need to align the chart points
vertically, as axes.

Thanks.
-- 
A vivid and creative mind characterizes you. 








-- 
A vivid and creative mind characterizes you. 

 


RE: [flexcoders] legend on top of chart

2007-03-04 Thread Ely Greenfield
 
 
Hi Marc.  The easiest way is to just put your chart in a canvas, and put
the legend on top of it.  I've been meaning to make a simple annotation
that just owns a legend, but haven't gotten around to it.  It shouldn't
be too much work, so if you want to take it on, the community would
appreaciate it ;)
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mr19
Sent: Saturday, March 03, 2007 2:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] legend on top of chart




Hi all -

Is there anyway to put the Legend component ON the chart? I'd like to
move
my legend to the upper left hand corner of my chart but can't seem to
pull
it off.

TIA,
Marc
-- 
View this message in context:
http://www.nabble.com/legend-on-top-of-chart-tf3340394.html#a9290337
 
Sent from the FlexCoders mailing list archive at Nabble.com.



 


Re: [flexcoders] small problem with Bar Chart showing days

2007-03-07 Thread Ely Greenfield

I don't think there's any way to do this theokgh configuration alone. But you 
could override the bar series update function to always layout an item with a 
min width. Easier would be to provide a custom item renderer that, below some 
minimum width, ignored what the chart was telling it and adjusted its own 
rendering size and location accordingly. 

(note that I wouldn't bother having your renderer mess with its actual x y 
width height- just adjust how it actually renders itself.)


- Original Message -
From: flexcoders@yahoogroups.com 
To: flexcoders@yahoogroups.com 
Sent: Wed Mar 07 07:06:22 2007
Subject: [flexcoders] small problem with Bar Chart showing days

I'm using a bar chart to show the start and end of a product roll-out. 
I'm using the xField as the start date and the minField as the end 
date, it works and looks real nice. The one problem I've run into 
though is the product(s) that roll out in one day. So if the start 
and end dates are the same I don't get a rendering of a bar... not 
even a little.

Does anyone one have any advice on how to force those bars to render? 
Maybe there's a way to set a min width to it that I can't find? Or 
maybe someone else has run into this kind of thing?

Thanks, Mark --



 


RE: [flexcoders] Chart Axis Labels as Link

2007-03-07 Thread Ely Greenfield
 
 
Brian -- are your labels set at an angle?  If they are, it would explain
why you are having problems.  The Flash Player can't render device text
at an angle. You'll have to use embedded fonts, or set the axis to not
render the labels at an angle.
 
Regarding the performance...Are you seeing actual performance issues, or
just lots of updateDisplayList calls?  It's hard to tell without more
information, but it's totally reasonable to expect that your labels will
be rendering alot. Every time anything in the chart changes, it needs to
verify that its displaying the right ranges, the right labels, in the
right location.  All of that would require updating every one of your
labels.
 
But it's also possible that something you're doing is causing excessive
updates. It's also possible that custom label renderers don't perform
well ;)
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of brianhegeman
Sent: Wednesday, March 07, 2007 6:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Chart Axis Labels as Link



I've searched the list and can't find anything quite touching on this
issue. I have a bar chart (with custom item renderer) with two
vertical Category axes and a horizontal Linear axis. For each of the
Category axes I'd like the label to be a link to an URL. I can get the
*text* as I want it using labelFunction on the mx:AxisRenderer without
trouble but I'm baffled as to how I'd get the label to be a link. I'm
guessing I need to write a custom label renderer (or two) but I just
can't get it to work. The LabelRenderer I created (extends UIComponent
implements IDataRenderer) performs horribly -- updateDisplayList is
called constantly according to trace statements -- and displays no
label.

Could anyone at least verify that it's possible to have a web link as
an axis label and that I'm heading down the right path creating a
label renderer? If so, any pointers on how to get the label to be a
link?

Thanks,
Brian



 


RE: [flexcoders] Access PIE CHART Call Outs

2007-03-07 Thread Ely Greenfield
 
 
You can style all of them through the PieSereis' css styles, but there's
no easy way to style them on a per callout basis. If you want to modify
them, you're going to have to roll up your sleves, and get elbow deep in
the PieSeries implementation.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of leds usop
Sent: Wednesday, March 07, 2007 9:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Access PIE CHART Call Outs



hi all,

Anyone got easy solutions to access pie chart call
outs? Id like to be able to change the colors, font
size etc. Or does this call for subclassing or data
canvas drawing solution?

__
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
 


 


RE: [flexcoders] Displaying single bar/column (Type: 100%)

2007-03-11 Thread Ely Greenfield
 
 
More detail would be helpful to understand exactly what you want, vs.
what you're seeing. Please be as specific and pedantic as possible.
 
If you want to get rid of the surrounding chart graphics, you can:
 
1) zero out the backgroundElements array
2) assign axisRenderers that hide all of their elements.  I don't
remember exactly which set of styles/properties you need, but if you
look at the APIs for AxisRenderer it should be apparent. something like:
 

   
  
   
   

   
   

  

 
Ely.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ichgehe
Sent: Saturday, March 10, 2007 7:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Displaying single bar/column (Type: 100%)



You certainly know the charting components BarSeries or
ColumnSeries They are great, if you need exactly this kind of
view. But I am currently in a bit of a problem, because I need a
column-/bar component which only is able to show ONE bar or column for
a series of data.
You probably say: 'Easy thing!' - just use bar-/columnseries with type
set to 100% and you will get only one bar with all data... but in
fact, you also get the cartesian chart around it, which annoys me. I
just want to have one simple Bar/Column which is able to show me
different values (Type 100%) without anything. I tried already to use
the "IBar" Interface, but no luck. 
Someone told me I have to have a look in the samples.zip of FDS (1.0)?
for an example 'Sector' but have not found it

Any help or hint is really appreciated...



 


RE: [flexcoders] custom charting component question

2007-03-12 Thread Ely Greenfield
 
 
 
Wow, really nice work Brendan.  I built something like this a while back
that I've been meaning to clean up and post, but...yours puts it to
shame.   Well done.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Friday, March 09, 2007 4:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] custom charting component question



booyah! good work Brendan. If you grab the newest version of the slider
from flexlib you can have both those datatips show up at once (and both
thumbs get highlighted). 

awesome example. I love it when someone asks a question and a day or two
later someone else just goes ahead and does it. 

Doug


On 09 Mar 2007 16:19:11 -0800, Brendan Meutzner <[EMAIL PROTECTED]
 > wrote: 

Voila...
http://www.stretchmedia.ca/blog/index.cfm/2007/3/9/Flex-Chart-Range-Sele
ctor--Google-Financeish
 







On 08 Mar 2007 01:54:19 -0800, Tom Chiverton <
[EMAIL PROTECTED]  >
wrote: 

On Wednesday 07 Mar 2007, Adam Royle wrote:
> Eg. Should I use composition of a few charts and a
draggable invisible 
> button placed inside a canvas? I had an idea of having
two AreaCharts, one
> that is greyed out and the other that is coloured, and
have a mask to only
> display the portion that is required?

Use a two-button horizontal slider, and draw a
transparent rectangle over the 
chart based on the sliders values.

--
Tom Chiverton
Helping to enormously industrialize cross-platform
e-tailers
On: http://thefalken.livejournal.com
 



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership
registered in England and Wales under registered number OC307980 whose
registered office address is at St James's Court Brown Street Manchester
M2 2JF.  A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means a
member of Halliwells LLP. Regulated by the Law Society. 

CONFIDENTIALITY

This email is intended only for the use of the addressee
named above and may be confidential or legally privileged.  If you are
not the addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells LLP
or the addressee of its existence or contents.  If you have received
this email in error please delete it and notify Halliwells LLP IT
Department on 0870 365 8008. 

For more information about Halliwells LLP visit
www.halliwells.com  .



--
Flexcoders Mailing List 
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
Yahoo! Groups Links 


(Yahoo! ID required)

mailto: [EMAIL PROTECTED]
 








-- 
Brendan Meutzner 
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
 
http://www.stretchmedia.ca   






 


Re: [flexcoders] Candlestick Charting Help

2007-03-12 Thread Ely Greenfield


You probably need to set the padding on your horizontal axis to .5
Ely


- Original Message -
From: flexcoders@yahoogroups.com 
To: flexcoders@yahoogroups.com 
Sent: Sun Mar 11 23:59:48 2007
Subject: [flexcoders] Candlestick Charting Help

I create simple charting using flex in my website,

I have a problem regarding candlestick chart , 
its seems that first and end value of the drawing cut in half.


this is the sample,still a lot to do with this site.

www.indofxonline.com, look for the chart section , choose the currency code ( I 
forgot to remove the css , the font color is white, so its look like there is 
no value, but its there)

as you can see , at the first and last data , I can't see the whole 
chandlestick.





thanks

teddy




Discover the new Windows Vista Learn more! 
  

 


RE: [flexcoders] Charts - Rotated labels not visible on horizontal axis

2007-03-12 Thread Ely Greenfield
 
 
normally I would suggest its an embedded font problem, but the loss of
other formatting on the horizontal axis is very suspicious.  I can't
think of anything in the chart code that could be causing that...i.e.,
my first suspicion is that some code of yours is resetting things.  But
it's entirely possible that I'm wrong. Can you give more details?  A
simple test case that repros the problem?
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of deepbits
Sent: Sunday, March 11, 2007 11:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Charts - Rotated labels not visible on horizontal
axis



Hi there,

I am trying to use labelRotation (45) on a Horizontal Axis but it 
does not work.
Background:
I get data for the charts through an HTTPService, so there is a few 
seconds lag between the graph (the axis & legend etc.) appearing and 
it getting populated with data. My horizontal axis is a datetime 
axis.

I see the following strange behavior.
When the graph appears without any data, the horizontal axis label 
is rotated to 45. At this time there is just one label at the right 
end point of the axis "2 jan 1970". I assume this is some default 
value which Flex is assuming. But when I do get the data and the 
chart gets drawn, the labels are no longer visible(!!!) and also the 
formatting that I had done on the horizontal axis is lost. The 
standard formatting with the thick gray line takes effect. The 
expected output would be to see all the labels rotated to an angle 
of 45.

Can someone help me to understand why this is happening and set this 
right?

Thanks
Deepa.



 


RE: [flexcoders] Separating layout from intent - As cited by Ely Greenfield on the FishEye post

2007-03-12 Thread Ely Greenfield
 
 
Hi Joao (sorry, can't find the right accent on the keyboard).   It's not a 
written up design pattern that I know of.  But I did take a crack at pulling 
the code out into a separate utility class, that I use repeatedly in many of 
the posts on my blog.Download the source for any one of:  Landscape Zoomer, 
RandomWalk, DisplayShelf, Interactive Calendar, or DragTile, and take a look at 
the LayoutAnimator and LayoutTarget classes, and how these components use them.
 
Ely.
 
 
 
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João
Sent: Monday, March 12, 2007 3:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Separating layout from intent - As cited by Ely 
Greenfield on the FishEye post



I was reading this blog post from Ely:
http://www.quietlyscheming.com/blog/components/fisheye-component/ 
<http://www.quietlyscheming.com/blog/components/fisheye-component/> 

and he refers to "a pattern that's coming up a lot lately where the
intended layout of the component is not the same as the actual layout". 

I am interested on learning more about this. Is this a design pattern?
Where can i find more information about it?

Thanks, 

João Saleiro



 


RE: [flexcoders] custom charting component question

2007-03-13 Thread Ely Greenfield
 
 
Brendan -- and anyone else implementing drag functionality --
 
  as a general rule, the way you should implement drag functionality is:
 
- add a mousedown handler to the thing you want to drag.
   - on mouse down, add a mouse move and mouse listener handler _to the
systemManager_, _in the capture phase_.
   - on mouse move, update your data.  Keep in mind that the mouse event
x/y for mouse move will be in systemManager coordinates, so either use
mouseX/mouseY off of the original target, or convert all coordinates to
global before doing any computations.
  - on mouse up, remove your move/up handlers _from the system manager_
during _capture phase_.
 
That will fix the problem with your current example where the drag
breaks when you move the mouse too quickly.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brendan Meutzner
Sent: Monday, March 12, 2007 5:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] custom charting component question



Hey,

I've added in some drag functionality, and an updated version of Doug's
slider.  Have had some great feedback from this, so by all means, keep
the suggestions coming!

http://www.stretchmedia.ca/code_examples/chart_range_selection/main.html
 

Brendan




On 3/12/07, Brendan Meutzner < [EMAIL PROTECTED]
 > wrote: 

Hey Adam,

So dragging the bottom part would be pretty straightforward,
just need to add the appropriate methods to the inner canvas.  If your
drag updates your slider, then you can use the properties in the Slider
class for snapping to values.  Changing the horizontalGap,
dividerAffordance, etc... in the HDividedBox on the bottom chart should
get the visual appearance you want. 

The one thing I was pondering over was dragging the main chart
(like google finance does).  Ely, can you shed some light on the best
way to accomplish this?


Brendan 




On 12 Mar 2007 05:03:33 -0700, Adam Royle <[EMAIL PROTECTED]
 > wrote: 



Thanks for the example Brendan! I am wondering, is it
possible with the current structure to skin your component to look
exactly like this?

 
http://sleekgeek.com.au/daterange_example.gif
 
 
And also a few extra features such as click and drag of
the main section (not the slider), and even snap-to certain data points
when dragging?
 
I need to know whether I should attempt modification of
what you've made, or use another combination of components.
 
Thanks,
Adam
 


- Original Message - 
From: Brendan Meutzner
  
To: flexcoders@yahoogroups.com
  
Sent: Saturday, March 10, 2007 10:19 AM
Subject: Re: [flexcoders] custom charting
component question



Voila...
http://www.stretchmedia.ca/blog/index.cfm/2007/3/9/Flex-Chart-Range-Sele
ctor--Google-Financeish
 






On 08 Mar 2007 01:54:19 -0800, Tom Chiverton <
[EMAIL PROTECTED]  >
wrote: 

On Wednesday 07 Mar 2007, Adam Royle
wrote:
> Eg. Should I use composition of a few
charts and a draggable invisible 
> button placed inside a canvas? I had
an idea of having two AreaCharts, one
> that is greyed out and the other that
is coloured, and have a mask to only
> display the portion that is required?

Use a two-button horizontal slider, and
draw a transparent rectangle over the 
chart based on the sliders values.

--
Tom Chiverton
Helping to enormously industrialize
cross-platform e-tailers
On: http://thefalken.livejournal.com
 


 


RE: [flexcoders] custom charting component question

2007-03-13 Thread Ely Greenfield
 
 
 
Hmm...
 
- add a mouse down handler to the series.
- on mouse down, add mouse move/up handlers
- on mouse move, figure out how much the mouse has moved
- do a localToData on the left side of the chart plus the delta, and the
right side of the chart plus the delta.
- those are your new min/max data values.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brendan Meutzner
Sent: Monday, March 12, 2007 9:41 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] custom charting component question



Hey Adam,

So dragging the bottom part would be pretty straightforward, just need
to add the appropriate methods to the inner canvas.  If your drag
updates your slider, then you can use the properties in the Slider class
for snapping to values.  Changing the horizontalGap, dividerAffordance,
etc... in the HDividedBox on the bottom chart should get the visual
appearance you want. 

The one thing I was pondering over was dragging the main chart (like
google finance does).  Ely, can you shed some light on the best way to
accomplish this?


Brendan



On 12 Mar 2007 05:03:33 -0700, Adam Royle <[EMAIL PROTECTED]
 > wrote: 



Thanks for the example Brendan! I am wondering, is it possible
with the current structure to skin your component to look exactly like
this?

 
http://sleekgeek.com.au/daterange_example.gif
 
 
And also a few extra features such as click and drag of the main
section (not the slider), and even snap-to certain data points when
dragging?
 
I need to know whether I should attempt modification of what
you've made, or use another combination of components.
 
Thanks,
Adam
 


- Original Message - 
From: Brendan Meutzner   
To: flexcoders@yahoogroups.com
  
Sent: Saturday, March 10, 2007 10:19 AM
Subject: Re: [flexcoders] custom charting component
question



Voila...
http://www.stretchmedia.ca/blog/index.cfm/2007/3/9/Flex-Chart-Range-Sele
ctor--Google-Financeish
 






On 08 Mar 2007 01:54:19 -0800, Tom Chiverton <
[EMAIL PROTECTED]  >
wrote: 

On Wednesday 07 Mar 2007, Adam Royle wrote:
> Eg. Should I use composition of a few charts
and a draggable invisible 
> button placed inside a canvas? I had an idea
of having two AreaCharts, one
> that is greyed out and the other that is
coloured, and have a mask to only
> display the portion that is required?

Use a two-button horizontal slider, and draw a
transparent rectangle over the 
chart based on the sliders values.

--
Tom Chiverton
Helping to enormously industrialize
cross-platform e-tailers
On: http://thefalken.livejournal.com
 


 

This email is sent for and on behalf of
Halliwells LLP.

Halliwells LLP is a limited liability
partnership registered in England and Wales under registered number
OC307980 whose registered office address is at St James's Court Brown
Street Manchester M2 2JF.  A list of members is available for inspection
at the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP. Regulated by the Law
Society. 

CONFIDENTIALITY

This email is intended only for the use of the
addressee named above and may be confidential or legally privileged.  If
you are not the addressee you must not read it and must not use any
information contained in nor copy it nor inform any person other than
Halliwells LLP or the addressee of its existence or contents.  If you
have received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008. 

For more information about Halliwells LLP visit
www.halliwells.com  .



--
  

Re: [flexcoders] Re: Charts - Rotated labels not visible on horizontal axis

2007-03-13 Thread Ely Greenfield


Deepa:  chandes are good that the axis was creating lots of labels so they 
ended up being very small. 

- Original Message -
From: flexcoders@yahoogroups.com 
To: flexcoders@yahoogroups.com 
Sent: Tue Mar 13 00:21:14 2007
Subject: [flexcoders] Re: Charts - Rotated labels not visible on horizontal axis

Hi Ely & all, 

I think I got it working. I am actually dealing with a lot of data 
i.e. day-wise data for 3 years (365 * 3 records). We use this to 
draw our chart.

I was initially setting autoAdjust=true on the DateTimeAxis hoping 
that Flex would decide how many labels to display based on available 
space. But the labels werent visible & hotizontal axis was losing 
formatting.

To solve this, I set autoAdjust="false" and gave my custom 
interval=100. The labels appear now.

Thanks
Deepa.

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
"deepbits" <[EMAIL PROTECTED]> wrote:
>
> Hi there, 
> 
> The chart and the axis + labels come up fine when I do not use 
> labelRotation. The formatting if the axis is also fine.
> 
> But when I use the labelRotation property along with specifying 
the 
> font as the embedded font, the labels no longer appear and the 
> horizontal axis loses its formatting.
> 
> Ely, I will try to post some code by today end.
> 
> Thanks
> Deepa.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> "Ely Greenfield"  
> wrote:
> >
> > 
> > 
> > normally I would suggest its an embedded font problem, but the 
> loss of
> > other formatting on the horizontal axis is very suspicious. I 
> can't
> > think of anything in the chart code that could be causing 
> that...i.e.,
> > my first suspicion is that some code of yours is resetting 
> things. But
> > it's entirely possible that I'm wrong. Can you give more 
details? 
> A
> > simple test case that repros the problem?
> > 
> > Ely.
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On
> > Behalf Of deepbits
> > Sent: Sunday, March 11, 2007 11:44 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Charts - Rotated labels not visible on 
> horizontal
> > axis
> > 
> > 
> > 
> > Hi there,
> > 
> > I am trying to use labelRotation (45) on a Horizontal Axis but 
it 
> > does not work.
> > Background:
> > I get data for the charts through an HTTPService, so there is a 
> few 
> > seconds lag between the graph (the axis & legend etc.) appearing 
> and 
> > it getting populated with data. My horizontal axis is a datetime 
> > axis.
> > 
> > I see the following strange behavior.
> > When the graph appears without any data, the horizontal axis 
label 
> > is rotated to 45. At this time there is just one label at the 
> right 
> > end point of the axis "2 jan 1970". I assume this is some 
default 
> > value which Flex is assuming. But when I do get the data and the 
> > chart gets drawn, the labels are no longer visible(!!!) and also 
> the 
> > formatting that I had done on the horizontal axis is lost. The 
> > standard formatting with the thick gray line takes effect. The 
> > expected output would be to see all the labels rotated to an 
angle 
> > of 45.
> > 
> > Can someone help me to understand why this is happening and set 
> this 
> > right?
> > 
> > Thanks
> > Deepa.
> >
>



 


Re: [flexcoders] How to switch a single axis chart to a dual axis chart ?

2007-03-15 Thread Ely Greenfield


Series draw against their asigned axes regardless of whether or not their 
axisrenders are visible. You need to switch the second series to be the primary 
series. 

- Original Message -
From: flexcoders@yahoogroups.com 
To: flexcoders@yahoogroups.com 
Sent: Thu Mar 15 00:20:01 2007
Subject: [flexcoders] How to switch a single axis chart to a dual axis chart ?

Hi there, 

Is it possible to change a single axis chart to a dual axis chart and 
vice versa?

Upon checking a check-box, I tried making the 
secondAxisRenderer.visible to true or false, but this does not redraw 
the second series against the first axis, it just hides the second 
axis.

Does anyone how I can do this?

Thanks
Deepa.



 


RE: [flexcoders] Entire bar disappears when zooming a BarChart

2007-03-20 Thread Ely Greenfield
 
 
Set the filterData property of the BarSeries to false.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of anewgene
Sent: Tuesday, March 20, 2007 4:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Entire bar disappears when zooming a BarChart



Hi, group,
When I was playing with BarChart, I noticed that the entire bar 
will disappear when its height exceeds the range of the 
corresponding axis (e.g, do a zooming). Is it a designed behavior? 
Can I keep a bar shown on the plot even when part of it exceeds the 
range?

I attached below an example modified from BarChart document to 
demostrate this issue. When click "zoomin", you will notice that the 
tallest bar will disappear)

Thanks.

lei
--



http://www.adobe.com/2006/mxml
 " 
width="800" height="600">





 

















 


RE: [flexcoders] Re: silly question about using "src" folder

2007-03-21 Thread Ely Greenfield
 
 
 
Yes, that's the way I build all my projects.  If you specify a the root
source folder in the project properties, it can be different from the
project root. What you can't do is put an application in a sub folder
beneath the root source folder.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, March 20, 2007 7:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: silly question about using "src" folder



I was just playing with Ely's Calendar, which uses the src subfolder to
hold source.

Using Flex Builder, I was unable to make this work.  I recall reading
that runnable applications must be in the root of the FB project, and in
fact, this was the only way I could get the Calendar to work.

Is is possible to use a subfolder for source under Flex Builder?

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Thursday, March 15, 2007 12:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: silly question about using "src" folder

Other than the main application, I put all my project code in
com.mycompany.projects.ProjectName.somePackage, etc. I use the
projects package so I can easily merge project-specific code into my
overall code library if needed.

Ben

--- In flexcoders@yahoogroups.com 
, "Paul DeCoursey" <[EMAIL PROTECTED]> wrote:
>
> I use src or source, I had many issues when I dumped sources in the
> root. Mostly issues with recursive copies and subversion. I use
> "source" for library and flex only projects. If the project is mixed
> with server side logic then I use src/flex then all my source files
> are in one location, but split out by language.
> 
> --- In flexcoders@yahoogroups.com
 , "Manuel Saint-Victor" 
>  wrote:
> >
> > Are mpost people using a separate "src" folder instead of just
> dumping src
> > code into the main project folder?
> >
>

 


RE: [flexcoders] copying bitmap data

2007-03-21 Thread Ely Greenfield
 
 
 
[DefaultProperty("content")]
class RawContainer extends UIComponent
{
   private var _content:Array = [];
   public function set content(value:Array):void
   {
  _content = value;
  for(var i:int = 0;i<_content.length;i++)
  {
  addChildAt(_content[i],i);
  }
  while(numChildren > _content.length)
  removeChildAt(_content.length);
   }
   public function get content():Array { return _content }
}
 
Ely.

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Wednesday, March 21, 2007 9:42 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] copying bitmap data



Yeah, the problem is that the Canvas container only allows children that
implement IUIComponent. It would have been real nice if Adobe had
provided a "raw" container that did no layout of its children (but
implemented IUIComponent itself), but they didn't. 

Fortunately, Grant Skinner has provided just such a container...
DisplayObjectWrapper. Check out his blog or Google for it.

If you wrap your Bitmap with the DisplayObjectWrapper first you'll then
be able to add it (or rather, the DisplayObjectWrapper) to the canvas. 

Troy.



On 21 Mar 2007 08:18:46 -0700, tosadavemgr <[EMAIL PROTECTED]
 > wrote: 

I have a canvas in my layout and the application allows dragging
and
dropping items into the canvas. I need to be able to grab a
bitmap of
the canvas when the user is finished, so I can display the
drawing on
another panel, and in the FlexPrintJob function.

I've tried using this code, initiated from a button:

private function myDrawing():void{
var myBitmapData:BitmapData = new BitmapData(530, 445);
myBitmapData.draw(myWorkspace1);
var bmp:Bitmap = new Bitmap(myBitmapData);
showDrawing.addChild(bmp); //this isn't working

}

myWorkspace1 is the ID of the canvas where everything is
dropped.
I have a canvas with the ID=showDrawing that I'd like the bitmap
to
appear in. 
Anyone know what I need to add to the above function to get that
done?

Dave






 


RE: [flexcoders] ColumnChart x-axis

2007-03-21 Thread Ely Greenfield
 
 
 
You can manually set the minimum of the horizontal axis to whatever you
want.
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lieven Cardoen
Sent: Wednesday, March 21, 2007 3:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ColumnChart x-axis



Hi guys, 

Is following possible : 
Let's say I have a columnChart with two columns. One with value 700 and 
one with value 800. Now, the x-axis is value 0 (projected on y-axis), 
and the columns are 700 and 800 high. Now I would like to have the x-
axis represent 600 (projected on y-axis), so it would seem you have one 
column of 200 and one of 100. The labels on the y-axis need to start at 
600 (where it used to be 0).

thx Lieven Cardoen



 


RE: [flexcoders] Re: small problem with Bar Chart showing days

2007-03-21 Thread Ely Greenfield
 
 
 
Hi Mark. Try using the mx.graphics.LinearGradientFill class. It will
proably make your life much easier than trying to use the graphics
begingradientFill function.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark
Sent: Wednesday, March 21, 2007 1:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: small problem with Bar Chart showing days



OK, I got the size working, but now I have a new problem. I used a 
custom itemRenderer to change the size if the dates are the same. 
The code is redrawing the bars with a fill color of red (for now). 
I want that solid color to be a gradientFill, but I can't seem to 
get it to work at all. When I use the "beginGradientFill" like the 
code below all I get is 2 colors without an actual gradiant between 
them (and I'm trying for four colors). I tried using the Matrix but 
that just confused me more. 

Can someone lend a hand with that part?

Here's what I have with the solid color --

package
{

import flash.display.Graphics;
import flash.geom.Rectangle;
import mx.charts.ChartItem;
import mx.core.IDataRenderer;
import mx.core.UIComponent;
import mx.charts.chartClasses.LegendData;
//import flash.display.GradientType;
import flash.display.*;
import flash.geom.Matrix;

public class SetItemLength extends UIComponent implements 
IDataRenderer {
//
private var colors:Array = [0xFF9900,0xFFCC00, 
0xA35901, 0x2B1500];
private var alphas:Array = [1, 1, 1, 1];
private var ratios:Array = [0, .20, .40, .85];
//
//
public function SetItemLength ():void {
super();
}
private var _chartItem:Object;

public function get data():Object {
return _chartItem;
}
public function set data(value:Object):void {
if (_chartItem == value)
return;
//
if(value is LegendData)
return;
_chartItem = ChartItem(value);
}
override protected function updateDisplayList
(unscaledWidth:Number,unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
var rc:Rectangle = new Rectangle(0, 0, width , height );
var columnColor:uint;
var g:Graphics = graphics;
//
//
g.clear();
g.moveTo(rc.left,rc.top);
// Only if the _chartItem has data 
if (_chartItem == null) 
return; 
// Only if the _chartItem has the attributes 
if(_chartItem.item.hasOwnProperty("startDate") && 
_chartItem.item.hasOwnProperty("endDate")){
// 
if (String(_chartItem.item.startDate) == String
(_chartItem.item.endDate)){
rc.width = 2;
g.beginGradientFill(GradientType.LINEAR, 
colors, alphas, ratios);
} else
g.beginGradientFill(GradientType.LINEAR, 
colors, alphas, ratios);
} 
g.lineTo(rc.right,rc.top);
g.lineTo(rc.right,rc.bottom);
g.lineTo(rc.left,rc.bottom);
g.lineTo(rc.left,rc.top);
g.endFill();
}
}
}



 


RE: [flexcoders] Re: copying bitmap data

2007-03-21 Thread Ely Greenfield
 
 
The code I posted was just a simple little example of how you could
create a 'raw' container that has no layout capabilities, and can accept
any DisplayObject. You could do it either like this:
 
 




 
Or...
 

 
var bmp:Bitmap = new Bitmap();
// get some content into the bitmap.
 
rc.content = [bmp];
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tosadavemgr
Sent: Wednesday, March 21, 2007 11:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: copying bitmap data



It is interesting that I would get 4 replies, 4 completely different
answers. My entire week is going this way. As is my Flex project.
So my choices were:

1. Try the Grant Skinner blog and his DisplayObjectWrapper. Not
exactly sure how this works or how to use it within my code. 
2. Add .clone to my existing syntax, which I tried without luck
3. Have an image load an image and then copy that - interesting, yet I
have a canvas loaded with many bitmaps and need to make a bitmap of
the canvas ??
4. And finally, from Ely, and extension of the UIComponent class. I'm
sure this is something, but I'm not sure how to use it. 

I really appreciate the helpful spirit on this message board. My own
green-ness with Flex is part of the problem, but I thought for sure my
original direction would work since I pulled it almost directly from
the Flex docs. 

Here's the code from Flex Docs:

import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.text.TextField;

var tf:TextField = new TextField();
tf.text = "bitmap text";

var myBitmapData:BitmapData = new BitmapData(80, 20);
myBitmapData.draw(tf);
var bmp:Bitmap = new Bitmap(myBitmapData);
this.addChild(bmp);

They are copying a TextField rather than a canvas. Is that the issue? 
OK to turn a TextField into a bitmap, but not a canvas?

Dave

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
> 
> 
> 
> [DefaultProperty("content")]
> class RawContainer extends UIComponent
> {
> private var _content:Array = [];
> public function set content(value:Array):void
> {
> _content = value;
> for(var i:int = 0;i<_content.length;i++)
> {
> addChildAt(_content[i],i);
> }
> while(numChildren > _content.length)
> removeChildAt(_content.length);
> }
> public function get content():Array { return _content }
> }
> 
> Ely.
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Troy Gilbert
> Sent: Wednesday, March 21, 2007 9:42 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: Re: [flexcoders] copying bitmap data
> 
> 
> 
> Yeah, the problem is that the Canvas container only allows children
that
> implement IUIComponent. It would have been real nice if Adobe had
> provided a "raw" container that did no layout of its children (but
> implemented IUIComponent itself), but they didn't. 
> 
> Fortunately, Grant Skinner has provided just such a container...
> DisplayObjectWrapper. Check out his blog or Google for it.
> 
> If you wrap your Bitmap with the DisplayObjectWrapper first you'll
then
> be able to add it (or rather, the DisplayObjectWrapper) to the canvas.

> 
> Troy.
> 
> 
> 
> On 21 Mar 2007 08:18:46 -0700, tosadavemgr <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> > wrote: 
> 
> I have a canvas in my layout and the application allows dragging
> and
> dropping items into the canvas. I need to be able to grab a
> bitmap of
> the canvas when the user is finished, so I can display the
> drawing on
> another panel, and in the FlexPrintJob function.
> 
> I've tried using this code, initiated from a button:
> 
> private function myDrawing():void{
> var myBitmapData:BitmapData = new BitmapData(530, 445);
> myBitmapData.draw(myWorkspace1);
> var bmp:Bitmap = new Bitmap(myBitmapData);
> showDrawing.addChild(bmp); //this isn't working
> 
> }
> 
> myWorkspace1 is the ID of the canvas where everything is
> dropped.
> I have a canvas with the ID=showDrawing that I'd like the bitmap
> to
> appear in. 
> Anyone know what I need to add to the above function to get that
> done?
> 
> Dave
>



 


RE: [flexcoders] Re: small problem with Bar Chart showing days

2007-03-22 Thread Ely Greenfield
 
 
 
Just as a coding suggestion...you can put expressions inside [] array
initializers. So instead of this:
 
var g1:GradientEntry = new GradientEntry
(0xFF9900, 0, 1);
var g2:GradientEntry = new GradientEntry
(0xFFCC00, .20, 1);
var g3:GradientEntry = new GradientEntry
(0xA35901, .50, 1);
var g4:GradientEntry = new GradientEntry
(0x2B1500, .85, 1);
var g5:GradientEntry = new GradientEntry
(0xFFCC00, .95, 1);
fill.entries=[g1, g2, g3, g4, g5];

 
You can do this:
 
fill.entries = [
new GradientEntry(0xFF9900, 0, 1),
new GradientEntry(0xFFCC00, .20, 1),
new GradientEntry(0xA35901, .50, 1),
etc.
];





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark
Sent: Thursday, March 22, 2007 5:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: small problem with Bar Chart showing days



When you're right, you're right! 5 minutes later and I now have a 
nice gradient fill in my bars. Half a day of "beginGradientFill" 
and all I had to show for it was well, nothing. Thanks Ely!

Here's the code if anyone runs into this need ( and please post back 
if anyone see places for improvements ):

package
{
//
import flash.display.Graphics;
import flash.geom.Rectangle;
import mx.charts.ChartItem;
import mx.core.IDataRenderer;
import mx.core.UIComponent;
import mx.charts.chartClasses.LegendData;
import flash.geom.Rectangle;
import mx.graphics.GradientEntry;
import mx.graphics.LinearGradient;
//
public class SetItemLength extends UIComponent implements 
IDataRenderer {
//
public function SetItemLength ():void {
super();
}
private var _chartItem:Object;
//
public function get data():Object {
return _chartItem;
}
public function set data(value:Object):void {
if (_chartItem == value)
return;
//
if(value is LegendData)
return;
_chartItem = ChartItem(value);
}
override protected function updateDisplayList
(unscaledWidth:Number,unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, 
unscaledHeight);
var rc:Rectangle = new Rectangle(0, 0, 
width , height );
//var columnColor:uint;
var g:Graphics = graphics;
var fill:LinearGradient = new LinearGradient
();
var g1:GradientEntry = new GradientEntry
(0xFF9900, 0, 1);
var g2:GradientEntry = new GradientEntry
(0xFFCC00, .20, 1);
var g3:GradientEntry = new GradientEntry
(0xA35901, .50, 1);
var g4:GradientEntry = new GradientEntry
(0x2B1500, .85, 1);
var g5:GradientEntry = new GradientEntry
(0xFFCC00, .95, 1);
fill.entries=[g1, g2, g3, g4, g5];
fill.angle = 90;
//
g.clear();
g.moveTo(rc.left,rc.top);
// Only if the _chartItem has data 
if (_chartItem == null) 
return; 
// Only if the _chartItem has the 
attributes 
if(_chartItem.item.hasOwnProperty
("startDate") && _chartItem.item.hasOwnProperty("endDate")){
// 
if (String
(_chartItem.item.startDate) == String(_chartItem.item.endDate)){
//trace("MATCH " + 
rc.width);
rc.width = 2;
fill.begin(g, new Rectangle
(0, 0, rc.width, rc.height));
} else
fill.begin(g, new Rectangle
(0, 0, rc.width, rc.height));
} 
g.lineTo(rc.right,rc.top);
g.lineTo(rc.right,rc.bottom);
g.lineTo(rc.left,rc.bottom);
g.lineTo(rc.left,rc.top);
fill.end(g);
}
}
}

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> 
wrote:
>
> 
> 
> 
> Hi Mark. Try using the mx.graphics.LinearGradientFill class. It 
will
> proably make your life much easier than trying to use the graphics
> begingradientFill function.
> 
> Ely.
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Mark
> Sent: Wednesday, March 21, 2007 1:08 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: small problem with Bar Chart showing days
> 
> 
> 
> OK, I got the size working, but now I have a new problem. I used a 
> custom itemRenderer to change the size if the dates are the same. 
> The code is redrawing the bars with a fill color of red (for now). 
> I want that solid color to be a gradientFill, but I can't seem to 
> get it to work at all. When I use the "beginGradientFill" like the 
> code below all I get is 2 colors without an actual gradiant 
between 
> them (and I'm trying for four colors). I tried using the Matrix 
but 
> that just confused me more. 
> 
> Can someone lend a hand with that part?
> 
> Here's what I have with the solid color --
> 
> package
> {
> 
> import flash.display.Graphics;
> import flash.geom.Rectangle;
> import mx.charts.ChartItem;
> import mx.core.IDataRenderer;
> import mx.core.UIComponent;
> import mx.charts.chartClasses.LegendData;
> //import flash.display

RE: [flexcoders] ColumnSeries NumberFormatting

2007-03-22 Thread Ely Greenfield
 
 
labelFunctions on the Axes for the axis labels, dataTipFunction on the
chart for the data tips.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lieven Cardoen
Sent: Thursday, March 22, 2007 5:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ColumnSeries NumberFormatting



I would like the columnSeries to format their data before showing. Now
sometimes I have values in my chart like 55,9.

How do I do this?

In DataGridColumn I did it like this : 



In the precisionOneNumberFormat the data is formatted with a
numberFormatter.

Thx, Lieven Cardoen

 


RE: [flexcoders] Re: ColumnChart x-axis

2007-03-22 Thread Ely Greenfield
 
 
LinearAxis(myChart.horizontalAxis).minimum = 20;
 
Ely.
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lieven Cardoen
Sent: Thursday, March 22, 2007 1:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ColumnChart x-axis



And how do you do that?

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> 
wrote:
>
> 
> 
> 
> You can manually set the minimum of the horizontal axis to whatever 
you
> want.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Lieven Cardoen
> Sent: Wednesday, March 21, 2007 3:45 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] ColumnChart x-axis
> 
> 
> 
> Hi guys, 
> 
> Is following possible : 
> Let's say I have a columnChart with two columns. One with value 700 
and 
> one with value 800. Now, the x-axis is value 0 (projected on y-
axis), 
> and the columns are 700 and 800 high. Now I would like to have the 
x-
> axis represent 600 (projected on y-axis), so it would seem you have 
one 
> column of 200 and one of 100. The labels on the y-axis need to 
start at 
> 600 (where it used to be 0).
> 
> thx Lieven Cardoen
>



 


RE: [flexcoders] Can Ely's Flexbook open by default on a given page?

2007-03-26 Thread Ely Greenfield
 
 
Set currentPageIndex instead.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João
Sent: Thursday, March 22, 2007 7:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can Ely's Flexbook open by default on a given page?



I am trying the impressive Flexbook that Ely made, and i wasn't able
to make it open by default on a given page (3, for example). I can
make the component to go to page 3 using the book.turnToPage(3), but
it shows up the animation. I tried

book.animatePagesOnTurn=false;
book.animateCurrentPageIndex=false; 
book.turnToPage(3);

without success, the animation is shown anyway. 

I just need to start the FlexBook automatically on page 3. Any ideas?

Thanks, 

João Saleiro



 


RE: [flexcoders] Default ColumnSeries type in CartesianChart

2007-03-26 Thread Ely Greenfield
 
 
Put them in a ColumnSet (this is what ColumnChart does implicitly for
you):
 

   
 
  
  
  
  

  

 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin Makeig
Sent: Monday, March 26, 2007 9:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Default ColumnSeries type in CartesianChart



When I add multiple ColumnSeries to a ColumnChart they default to
displaying as clustered. 
However, when I change ColumnChart to the more general CartesianChart,
my ColumnSeries 
are stacked. I'm trying to create a generic charting component based
around CartesianChart. 
How do I tell a column series that it should render as clustered without
using a ColumnChart 
explicitly? Any help would be much appreciated.

Justin



 


RE: [flexcoders] How to create and apply an easing funtion to a chart using ActionScript

2007-03-26 Thread Ely Greenfield
 
 
 
chart.series[0].setStyle("showDataEffect",seriesEffect);
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claude Hussenet
Sent: Sunday, March 25, 2007 10:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to create and apply an easing funtion to a
chart using ActionScript



 It's pretty straightforward and well documented to apply an easing
function to a chart using MXML.

What about in ActionScript ? I am currently stock here :

var serieEffect:SeriesInterpolate = new
SeriesInterpolate(lineSerie);
serieEffect.duration=2000;
serieEffect.easingFunction=mx.effects.easing.Bounce.easeOut;

Which ActionScript API should I use to get the same functionalities
as  showDataEffect or hideDataEffect in MXML ?

Thank you for your help.

Claude Hussenet.



Regards
Claude Hussenet 



Get your own web address.
 
Have a HUGE year through Yahoo! Small Business.
  

 


RE: [flexcoders] LineChart gridlines & labels with daily data

2007-03-29 Thread Ely Greenfield
 
 
Use a DateTimeAxis, and set the labelInterval to months.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mr19
Sent: Thursday, March 29, 2007 9:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LineChart gridlines & labels with daily data




I have a linechart that contains daily price data. I'd like the
gridlines to
ONLY appear on the 1st day of the month and the labels to only display
under
the gridlines. I still want all datapoints on the chart, just want to
eliminate some of the clutter on the screen. Thanks in advance. 

As of right now I have something like this:






















-- 
View this message in context:
http://www.nabble.com/LineChart-gridlines---labels-with-daily-data-tf348
7290.html#a9736750
 
Sent from the FlexCoders mailing list archive at Nabble.com.



 


RE: [flexcoders] Re: How to disable the default drop shadow for a chartseries?

2007-04-03 Thread Ely Greenfield
 
 
 
set the seriesFilters property on the chart.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of anewgene
Sent: Monday, April 02, 2007 2:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to disable the default drop shadow for a
chartseries?



Thanks for the reply. But what is the appropriate style to set for a 
series. From the reference, I known I can set for "fill" 
and "stroke". What else I can set to disable the drop shadow?

Lei

--- In flexcoders@yahoogroups.com 
, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Saturday 31 Mar 2007, anewgene wrote:
> > want to disable the drop shadow for the better appearance. 
However,
> 
> Have you tried setting the apropiate style ?
> 
> -- 
> Tom Chiverton
> Helping to greatly evolve guinine communities
> on: http://thefalken.livejournal.com
 
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF. A list of members is available for inspection at the 
registered office. Any reference to a partner in relation to 
Halliwells LLP means a member of Halliwells LLP. Regulated by the 
Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged. If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents. If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>



 


RE: [flexcoders] Labelling the bubbles of a bubble chart

2007-04-03 Thread Ely Greenfield
 
 
three ways, in order of difficulty:
 
1) custom bubble renderer.  easy to do, but hard to do anything smart so
the labels don't overlap.
2) custom annotation using the post from my blog.  Easy to do, but not
the most efficient approach.
3) custom bubble series. Requires rolling up your sleves and getting
into the series code, but most performant, and reusable.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Sunday, April 01, 2007 3:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Labelling the bubbles of a bubble chart



I want to put a data value alongside the bubbles on my bubble chart. 
Anyone know how? Ideally I would have something that was a cross
between a tooltip and the flyout labels on a pie chart.

Any clues?



 


RE: [flexcoders] can i add custom labels to my chart's x-axis?

2007-04-03 Thread Ely Greenfield
 
 
 
Hi Tushar.  What you're trying to do sounds like the default beahvior
for charts, so I'm not sure I'm understanding the request. Can you
provide more details?
 
Thanks.
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dd.shah
Sent: Monday, April 02, 2007 4:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] can i add custom labels to my chart's x-axis?



hello group,

i want to customize my chart's x-axis labels.

i customized chart's vertical grid lines and i want to add labels
according to that vertical lines.

the labels should be outside x-axis. 

how can i accomplish that?

can anyone help me? please.

thanks in advance.

tushar



 


RE: [flexcoders] charting stacked areas and unstacked lines on datetime x axis

2007-04-04 Thread Ely Greenfield
 
 
 
An image of what you're trying to achieve would be helpful.
 
Ely.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mcoulten
Sent: Wednesday, April 04, 2007 5:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] charting stacked areas and unstacked lines on
datetime x axis



Hello Flex Coders!!

I have just joined the group as I've got stuck on this Flex charting
problem. 

I need to plot a line that ends with a wedge shaped area - looking
like a broom on its side, brush to the right, and then plot some
dashed lines across the same chart.

The minField property doesnt seem to work on a DateTimeAxis (requires
a category) so that was no good.

Using a stacked area chart did work and by setting the series I wanted
to appear as a just a line with an area but no fill and then setting
the y axis minimum to >0 so the line didnt plot from the last non zero
data point to the x axis worked OK (its an interesting feature that
lines are only rendered when both ends are within the xy ordinates of
the axes).

But then when I tried to add a non stacked line the compiler could not
resolve the stacked and unstacked series together. I tried defining
them as a secondseries group tag on a 2y axis as well. No joy.

On looking into stacking classes these are all topped with warnings
that they are not for normal use.

Anyone got a good idea on how to get my lines plotting unstacked but
over the top of some stacked areas?

Thanks

Mike



 


RE: [flexcoders] Re: Labelling the bubbles of a bubble chart

2007-04-04 Thread Ely Greenfield
 
 
 
Well...you'll have to look at BubbleSeries.as.  The three bits of
functionality you'd have to add are:
 
1) label management.  you'd want to create one label for every item.
The series do that with renderers by using a class called InstanceCache.
You'd probably just want to create another instanceCache that generates
Labels (or UITextFields, if you want to go low level).  All the series
allocate their renderer instances in udpateDisplayList
 
2) size reporting.  Series report how much space they need in the axis
ranges (when axes are generating axes automatically) in their
describeData method.  In that method, a series can describe a) what data
values need to be displayed, and b) how much space (in pixels) is needed
around those data values. You'll need to measure the sizes of your
labels, and make sure the chart allows for enough space around each data
point to make sure the labels are visible.
 
3) positioning.  In your updateDisplayLIst, that's where you'll actually
position each label.
 
 
Ely.
 
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Wednesday, April 04, 2007 9:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Labelling the bubbles of a bubble chart



Thanks Ely,

for now I think I am stuck with option 1, just because of time.

If I were to embark on 3, which sounds like the right solution, can
you give me some pointers on where to start looking before I dive off
into the jungle and get hopelessly lost.

Thanks
Simon

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
> 
> 
> three ways, in order of difficulty:
> 
> 1) custom bubble renderer. easy to do, but hard to do anything smart
so
> the labels don't overlap.
> 2) custom annotation using the post from my blog. Easy to do, but not
> the most efficient approach.
> 3) custom bubble series. Requires rolling up your sleves and getting
> into the series code, but most performant, and reusable.
> 
> Ely.
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of simonjpalmer
> Sent: Sunday, April 01, 2007 3:35 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Labelling the bubbles of a bubble chart
> 
> 
> 
> I want to put a data value alongside the bubbles on my bubble chart. 
> Anyone know how? Ideally I would have something that was a cross
> between a tooltip and the flyout labels on a pie chart.
> 
> Any clues?
>



 


RE: [flexcoders] charting and predefined axis styles

2007-04-04 Thread Ely Greenfield
 
 
No, they're there.  
 
blockNumericAxis
linedNumericAxis
dashedNumericAxis
blockCategoryAxis
hangingCategoryAxis
dashedCategoryAxis
 
(You can look in AxisRenderer.initStyles to see where they're set up).
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of myasandy2
Sent: Wednesday, April 04, 2007 12:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] charting and predefined axis styles



I have been working through the Flex 1.5 charting tutorial 
(http://www.adobe.com/devnet/flex/articles/charting.html
 ).

Page 5 (Using CSS to Style Subcomponents - 2) says: "Flex ships with a 
number of predefined axis styles; for this tutorial, use the 
linedNumericAxis and hangingCategoryAxis styles."

I have not been able to find any information about predefined axis 
styles for the current version. Can anyone point me in the right 
direction, or did these die in Flex 2?

TIA
Sandy



 


RE: [flexcoders] Any way to set a chart renderer from action script?

2007-04-05 Thread Ely Greenfield
 
 
 
mySeries.setStyle("itemRenderer",new
ClassFactory(MyCustomRendererClass));
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pekka Kola
Sent: Thursday, April 05, 2007 3:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Any way to set a chart renderer from action
script?



Hi!

Is there any way to set the renderer for a chart from Action Script? I
have implemented a special bar graph component (added a time cursor and
shadowing for the future time etc.) as mxml component with embedded
action script and would like to provide the renderer to component as a
parameter from calling component. But I have not found any way to set
the renderer there.

BR, Pekka

 


RE: [BULK] RE: [flexcoders] charting and predefined axis styles

2007-04-05 Thread Ely Greenfield
 
 
No, its part of the implementation of AxisRenderer, so you'll have to
look directly in the source (ctrl-shift-T).
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sandy Saline
Sent: Thursday, April 05, 2007 10:16 AM
To: flexcoders@yahoogroups.com
Subject: RE: [BULK] RE: [flexcoders] charting and predefined axis styles



Thanks, Ely. 

Where do I find AxisRenderer.initStyles? Nothing comes up in the Help
which has been my primary source of information. Is there other
documentation that I am missing?

Sandy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Wednesday, April 04, 2007 5:58 PM
To: flexcoders@yahoogroups.com
Subject: [BULK] RE: [flexcoders] charting and predefined axis styles
Importance: Low

No, they're there.  

blockNumericAxis

linedNumericAxis

dashedNumericAxis

blockCategoryAxis

hangingCategoryAxis

dashedCategoryAxis

(You can look in AxisRenderer.initStyles to see where they're set up).

Ely.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of myasandy2
Sent: Wednesday, April 04, 2007 12:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] charting and predefined axis styles

I have been working through the Flex 1.5 charting tutorial 
(http://www.adobe.com/devnet/flex/articles/charting.html
<http://www.adobe.com/devnet/flex/articles/charting.html> ).

Page 5 (Using CSS to Style Subcomponents - 2) says: "Flex ships with a 
number of predefined axis styles; for this tutorial, use the 
linedNumericAxis and hangingCategoryAxis styles."

I have not been able to find any information about predefined axis 
styles for the current version. Can anyone point me in the right 
direction, or did these die in Flex 2?

TIA
Sandy

 


RE: [flexcoders] Charts: Computed gutters makes text unreadable

2007-04-06 Thread Ely Greenfield
 

 

Hi Dana. Unfortunately, there's no way to tell charts to adjust their
size to accommodate labels.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dana Gutride
Sent: Friday, April 06, 2007 11:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Charts: Computed gutters makes text unreadable

 

Hi,

I haven't seen this question anywhere yet, so hopefully I can get some
help here.  

I know the gutters for a chart are computed if they aren't explicitly
set.  We are showing 8 small line charts in a tile list (2 rows of 4).
Because the data shown can have values anywhere from 0 to well over
100,000, I don't know what the correct size for the gutter should be.
I'd like to let Flex automatically calculate the gutters for me, but the
font is sometimes scaled too small for it to be readable.  Any ideas on
how to overcome this?  I'd prefer to specify a minimum width and let it
grow if necessary.  I'd rather not specify the leftGutter because then
there can be too much white space left over. 

Thanks,
Dana

 

<>
<>


RE: [flexcoders] Filtered data in Plot Series

2007-04-06 Thread Ely Greenfield
 

 

 

Hi Paul. Off the top of my head, I don't see any reason why that should
be happening. Can you share a simple test case?

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Wright
Sent: Thursday, April 05, 2007 3:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Filtered data in Plot Series

 

I'm using an HTTPService to retrieve XML to use as a dataProvider on a
PlotSeries of a CartesianChart.  My horizontal axis is a DateAxis.  I
have written a custom item renderer to overlay a text value from the
item (XML) on the circle.  In one particular instance so far, the data
contains two values.  The scoreListXML contains the following XML:

 

scoreListXML contains the following XML 

 

 



 

My PlotSeries is defined as:



 

I've observed in the debugger that the RenderData for the PlotSeries
contains these two distinct items. 

However, the filteredData in the RenderData contains only the second
item.

 

If filterData="false" is added to the PlotSeries, both items render with
the proper text values.  If the filterData setting is not specified,
both items render with the same text value "23".  With
filterData="true", both items render with the same text value "23".  

 

Why would the filteredData remove one of these two different items?  Any
ideas? 

 

Paul 

 

 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.26/746 - Release Date:
4/4/2007 1:09 PM

 

<>
<>


RE: [flexcoders] Repeater and Chart Legend issue

2007-04-09 Thread Ely Greenfield
 

 

 

Since your linechart is inside a repeater, the member referenced by its
id (lineChart) is an array of line charts, not just a single reference
to a line chart. Since you're assigning an array as the dataProvider to
the repeater, it's trying to interpret that array as an array of legend
items, and failing.

 

It should be something like:

 

dataProvider="{lineChart[tabRepeater. currentIndex]}"

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claude Hussenet
Sent: Monday, April 09, 2007 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Repeater and Chart Legend issue

 

I would to use the repeater class to create multiple instances
of a tab.Each tab displays the same chart with a different data 
provider.Everything is working when I don't include a legend.
See source code below.However ,if I uncommented out the legend
I am getting the following example :

ReferenceError: Error #1069: Property marker not found on 
mx.charts.LineChart and there is no default value.
at mx.charts::Legend/::addLegendItem()

Thank you for your help.
Regards-Claude


http://www.adobe.com/2006/mxml";>


 







 

























 








 

<>
<>


RE: [flexcoders] HyperLink on Label in PieChart

2007-04-09 Thread Ely Greenfield
 

 

 

There's no built in support for doing this.  If I were to try and make
this happen, I would probably do it like so:

 

1)  The PieSeries has a property called labelContainer.  This is a
reference to the flash.display.Sprite that contains all of the labels
being displayed by the Series.

2)  I would, early in initialization, grab a reference to this
Sprite.  Add an event listener to the sprite that will get called
whenever a child is added to the sprite.

3)  Whenever a child gets added, add a click handler to the child.

4)  When your click handler gets called, grab the text of the
currentTarget of the event. Use this to determine which item in the
dataProvider the label refers to.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Monday, April 09, 2007 4:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HyperLink on Label in PieChart

 

Hi All,

I have a pieChart in my application. I have given label postion 
labelPosition="callout" so the label is coming outside pieChart.

Let me first tell you one scenario, there are only 2 items one's 
value is 1 million and another value is 1 only. so the second value 
is a thin line which is not clearly visible but the label is coming 
out. Provided the chart items are clickables and some other window 
is coming with different values based on the itemClick Value.

Since a thin line is coming, its very hard to point and click on 
that thin line... 

Now here What I want is Can I make the label (The Item name or 
number is coming out with the pointing line) Clickable?

If its so, how can I do the same?

Request you to do the same

Thanks in Advance,
SS

 

<>
<>


RE: [flexcoders] columns does not appear in column chart with large dataset?

2007-04-09 Thread Ely Greenfield
 

 

Hmm...The best answer I could give you would be to write a custom item
renderer that draws itself at a minimum width.  i.e., even if the chart
tells the renderer to be .1 pixels wide, it should draw itself at a
minimum of .1 pixels wide (or something to that effect).

 

Ely.

 

 

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of arpan srivastava
Sent: Monday, April 09, 2007 6:52 AM
To: Flex Coders
Subject: [flexcoders] columns does not appear in column chart with large
dataset?

 

Hi All,
   
I have created a column chart, but when if my dataprovider becomes
large than at one point no columns are displayed. I tried to adjust
columnWidthRatio but didn't worked. I am sending a code snippet. Here i
am creating the dataprovider with 500 records (I have more records in
real application) and width is set to "200" but nothing is getting
displayed.






 











 



Get your own web address.
 
Have a HUGE year through Yahoo! Small Business.

 

<>
<>


RE: [flexcoders] Re: Filtered data in Plot Series

2007-04-10 Thread Ely Greenfield
 

 

 

Paul - 

 

Item renderers, in the chart (as elsewhere in the framework), get
recycled. Which means that the same item renderer may get assigned
different data items at different times.

 

My bet as to what's happening here is:  in your custom item
renderer.data property, you're not calling invalidateDisplayLIst(). The
first time your renderer gets data, it displays correctly, because it's
never been updated so it will go through an initial update pass. But
when its data property is assigned to a different value, it doesn't
automatically get updated unless you explicitly say that you need
updating, so you never see the rendering change on screen.

 

The datatip is working correctly because you actually update the data
tip in your set data function.

 

That's my first guess at the problem. If that doesn't solve it, we'll
have to dig deeper.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of paultwright
Sent: Tuesday, April 10, 2007 12:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Filtered data in Plot Series

 

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> 
wrote:
> 
> Hi Paul. Off the top of my head, I don't see any reason why that 
should
> be happening. Can you share a simple test case?
> 
> Ely.

I've tried to simplify this test case a bit. It involves "scrolling" 
of the data. I'm modifying the min & max values for the 
DateTimeAxis. 

You can view my "simplified" example @ 

http://programming.wrighthomeenterprises.com/Flex/Chart.html

The source is also available via the standard View Source mechanism.

You'll observe two PlotSeries with the same data provider, etc...
The only difference is in the value of the filterData attribute on 
the PlotSeries. 

As you scroll left to 10/8 & 10/9 entries, you'll see the disparity.
The interesting part is that the tool tips for each of the plot items 
is correct in both cases.

This may simply be a result of my limited experience in writing a 
custom item renderer here. I couldn't find an easier way to do this.

If you see a glaring error in my custom item renderer implementation, 
I would be grateful regarding any revelation. Thanks in advance for 
any assistance with this problem!

Paul

 

<>
<>


RE: [flexcoders] Re: Bubble charts with only one bubble

2007-04-16 Thread Ely Greenfield
 

 

What happens if you replace the radiusAxis with a LinearAxis with
baseAtZero =true?

 

i.e., try a BubbleChart configured like this:

 





  

   

   

 

 

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gaurav1146
Sent: Friday, April 13, 2007 12:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Bubble charts with only one bubble

 

I did face this issue in my application which I had mentioned in the
post titled "Bubble Charts (size of the bubble)". I presumed that it
was due to some error on my part in slicing the ArrayCollection with
the slider movement which was causing this to happen. I have not
investigated it completely but now that you mention I think there
might be some issue with display of a single bubble on the chart.

Regards,
Gaurav

--- In flexcoders@yahoogroups.com 
, "simonjpalmer" <[EMAIL PROTECTED]>
wrote:
>
> Has anyone experienced the problem of a bubble chart with a single
> bubble not showing that bubble? 
> 
> If I add a second bubble the pair appear, if I remove one of them they
> both disappear.
> 
> I have been inspecting the contents of the renderData on the
> BubbleSeries. When there is a single data point in the biinding the
> cache contains it as a BubbleSeriesItem and the filteredCache is
> empty. The cache value has no x, y, z or itemRenderer set up.
> 
> When a second gets added they both appear in the filteredCache and
> they have their values populated.
> 
> I have tried various hacks like moving data from one to another and
> messing around with the x, y and z values myself, all with pretty
> disastrous effects. 
> 
> It seems too much of an oversight for the bubble chart to not work
> with a single bubble, so what am I missing?
>

 

<>
<>


RE: [flexcoders] datetimeaxis problem

2007-04-17 Thread Ely Greenfield
 

 

 

Unfortunately, the current public DateTimeAxis doesn't support this.
Your options are:

 

1)  Use a category axis.

2)  2) write your own custom axis.

 

We're looking at including this functionality in a future release of
Flex charting.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of adnane_1979
Sent: Sunday, April 15, 2007 2:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] datetimeaxis problem

 

Hi

Can anyone help with a problem I have with DatetimeAxis?
I have some data which has some gaps over a time period for example,
but not limited to, weekends and public holidays.I want to show the
final chart without these gaps appearing on it.The problem is I must
use this type of axis - does anyone have any suggestions ?

Here's an example of how I used this axis:


Thanks in advance.

 

<>
<>


RE: [flexcoders] Multi-axis chart

2007-04-17 Thread Ely Greenfield


Mikhail --

Flex 2 only supports 2 axis renderers.  The underlying architecture
supports arbitrary number of independent axes, but you'll have to get
pretty deep into writing a custom chart to get access to the
functionality.  This is a feature we're considering for a future
charting release.

Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, April 16, 2007 6:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Multi-axis chart

On Monday 16 Apr 2007, Mikhail Shevchuk wrote:
> I need to display several line series, but the distribution of Y
> values can vary very much. So, I want to show these lines neatly, and
> scale each of them separately.

Err, yes ?
So scale them (client or server-side). It's only math and a for loop.

-- 
Tom Chiverton
Helping to synergistically seize cross-media content
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links





RE: [flexcoders] DateTimeAxis problem: aligning dates with their year value

2007-04-23 Thread Ely Greenfield
 

 

Peter...usually that's a problem of time zones. i.e., you're specifying
your times in local time, and the DateTimeAxis is rendering in UTC.  So
Jan 1 in local time becomes Dec 31 in UTC, for example.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Demling
Sent: Monday, April 23, 2007 10:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DateTimeAxis problem: aligning dates with their
year value

 

Experiencing an interesting problem with the DateTimeAxis. Below is
the full code for a very simple LineChart app that's charting one data
value across a DateTimeAxis (this a small variation of the
DateTimeAxis example from livedocs). The date values for the
DateTimeAxis are String values in a local ArrayCollection in the
accepted "MM/DD/" format.

The problem is, all of the dates are getting charted one month too
soon. This is especially apparent in this example, where all of the
dates are on January 1st of each year: the data points are clearly
lagging behind the year points on the x-axis (I added a verticalStroke
here to show the discrepancy more clearly). If I change all of the
data points to February-1st, they all get incorrectly drawn exactlty
on the year-line.

Any suggestions are appreciated!

Thanks,
-Peter Demling
Lexington, MA


http://www.adobe.com/2006/mxml"; width="100%"
height="100%">


















 



 

<>
<>


RE: [flexcoders] Re: Negative plane in Column Chart

2007-04-24 Thread Ely Greenfield
 

 

Charts don't support stacking negative values.  If you need this
functionality you could simulate it with individual column series with
min/max fields set. You'll need to preaggregate your values into a new
dataprovider.

 

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rmlsystem
Sent: Tuesday, April 24, 2007 8:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Negative plane in Column Chart

 

I have the same problem, i'm only using a chart with ColumnSets, it
always render fine except whith one negative value.
I wrote this example for explain:

?xml version="1.0" encoding="utf-8"?>
http://www.adobe.com/2006/mxml";
layout="vertical">




 




 







the object: {x: 3, a: 120, b: -50, c: 40} only render the "a" value...

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Mikhail Shevchuk"
<[EMAIL PROTECTED]> wrote:
>
> Thanks guys for your fast replies. I have no that code right now,
but the
> problem was that:
> I use ColumnSet as the only element in ColumnChart and it has no
yField
> property of course(but there are yFields in ColumnSeries in
ColumnSet). I
> don't understand very much how this component(ColumnChart) works
with it's
> dataProvider, because it doesn't display negative values in that
situation
> (only ColumnSet in the ColumnChart). But when I add another
(invisible)
> ColumnSeries with empty dataProvider in my ColumnChart, it began to
display
> negative values for that ColumnSet. This problem description is rather
> messy, I am sorry :) Is there are any thoughts about such a behavior?
> 
> 2007/2/22, Ely Greenfield <[EMAIL PROTECTED]>:
> >
> >
> >
> > Hi Mikhail. Can you be more specific about what you're looking
for? In
> > general, the charts support negative values with no problems, so
maybe I'm
> > not understanding your question.
> >
> > Ely.
> >
> > --
> > *From:* flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] *On
> > Behalf Of *Mikhail Shevchuk
> > *Sent:* Thursday, February 22, 2007 3:18 AM
> > *To:* Flex
> > *Subject:* [flexcoders] Negative plane in Column Chart
> >
> > How to implement such a thing?
> > Simple defining negative values doesn't help. These columns just not
> > displayed.
> >
> > If this is impossible within Column Chart, could you please advise
me
> > where should I look for?
> >
> > Thanks.
> >
> > --
> > A vivid and creative mind characterizes you.
> >
> > 
> >
> 
> 
> 
> -- 
> A vivid and creative mind characterizes you.
>

 

<>
<>


RE: [flexcoders] Re: Negative plane in Column Chart

2007-04-24 Thread Ely Greenfield




 

What would you expect this chart to look like?

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rmlsystem
Sent: Tuesday, April 24, 2007 10:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Negative plane in Column Chart

 

this works except for the only positive value:


http://www.adobe.com/2006/mxml";
layout="vertical">




 











 



/
{x: 3, a: -120, b: -50, c: 40} in this case, c is not renderer, only
if it has a negative value.. :(

Any ideas?

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
> 
> 
> 
> 
> Charts don't support stacking negative values. If you need this
> functionality you could simulate it with individual column series with
> min/max fields set. You'll need to preaggregate your values into a new
> dataprovider.
> 
> 
> 
> 
> 
> Ely.
> 
> 
> 
> 

 

<>
<>


RE: [flexcoders] Question on Ely's SuperImage Component

2007-04-26 Thread Ely Greenfield
 

 

Hi Mike. There is a _content property in the SuperImage, which is
essentially the same as the Image.content property. However, the
SuperImage actively maintains the size and position of the content, so I
don't think you can guarantee that changes you make to its position will
stick.  

 

So, two options:

 

1)  Grab the source, and make the modifications you need. An
'offset' might be a nice property to add, and something we could
integrate back into the main source.

2)  Wrap the Super Image in a Canvas. And move the SUperImage around
inside the canvas instead.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Thursday, April 26, 2007 10:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question on Ely's SuperImage Component

 

Hello All,

I know there are lots of people using this, so I wanted to ask if this
component can perform some functions that the standard Image Component
can do.

With the standard Flex Image Component, I can move the Content around
inside the container, independent of the container itself. I do this
quite often, if I have an Image that is quite large - and has a lot of
extraneous background stuff that I don't want to be displayed.

With the Flex Image, I size & place the container where I need it to be
- then I move & scale the Content around within the container - in order
to show only the parts that I want.

The SuperImage Component doesn't have a Content Property - so this leads
me to believe, that I can't perform the same functions as the Image.

Is this the right assumption to make? If so, does anybody have any
further ideas, on how I can get more control over the content when using
the SuperImage?

Thanks in advance, for any information offered on this topic.

Mike

 

<>
<>


RE: [flexcoders] How to display Chart datatip at a specific data point ?

2007-05-01 Thread Ely Greenfield
 

 

Hi Claude. We've heard the request for programmatic datatips before, and
have it on the list for consideration.

 

In the meantime, it wouldn't be too hard to roll your own using the data
graphics API:

 

http://www.quietlyscheming.com/blog/charts/easy-custom-charts/

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claude Hussenet
Sent: Tuesday, May 01, 2007 9:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to display Chart datatip at a specific data
point ?

 

Problem:
I would like to display chart datatip from a set of datapoint
without doing a mouse over.

It seems that I have to overwrite the findDataPoints method
from ChartBase and returns an array of HitData points.

I can not figure out how to create a HitData object
from a specific datapoint regardless of the position of the mouse.

Maybe a new method such as showDataTip on chartBase taking as parameter
an array of indexes defining the datapoint from the dataprovider 
object could be helpfull.

Thx for any hints.

Claude Hussenet

 

<><>

RE: [flexcoders] LinearAxis - need help with value ordering! (Repost with sample code)

2007-05-05 Thread Ely Greenfield
 

 

 

The kludgey answer  is:

 

1)  Invert all your values (5 becomes -5)

2)  Add labelFunctions to your axis (and possibly dataTip functions)
to re-invert the values before they get displayed on screen.

 

There's no functionality in the charts right now to just tell an axis to
render top to bottom.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Demling
Sent: Friday, May 04, 2007 10:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LinearAxis - need help with value ordering!
(Repost with sample code)

 

Hi All,

Any suggestions on how to get a numerical y-axis to start at the
maximum value and descend on up? For example, the sample app below
starts the y-axis at zero and goes up to 5; I want it to start at 5
and go up to zero: "VerticalAxis.reverseDefaultSortOrder()" or
something. I've tried and failed with manipulating the "baseAtZero",
"autoAdjust", minimum" and "maximum" properties.

Any ideas, kludgey or otherwise??

Many thanks!

-Peter Demling
Lexington, MA


http://www.adobe.com/2006/mxml";>















 

<><>

RE: [flexcoders] Re: Image Component Nightmare

2007-05-09 Thread Ely Greenfield
 

 

My guess is that you have an explicit width / height set on the image.
In flex, an explicitly set width height Is essentially setting the
widthAfterScale and heightAfterScale.  So setting scaleX and scaleY
won't change the on screen rendererd size of the child. You need to
manually scale the explicit width/height, _and_ set the scaleX/scaleY of
the image.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vitcheff
Sent: Tuesday, May 08, 2007 7:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Image Component Nightmare

 

Thanks for your replay. Had a look on it, maybe will take another one,
but as I was trying to do the same with a Loader component, issues
were the same. Event.INIT event is fired by the Loader and it's width
and height remain 0, and I have to use loader.content too. That's just
something I don't get. Why do width and height remain 0 after an INIT
event?

--- In flexcoders@yahoogroups.com 
, "Adam Royle" <[EMAIL PROTECTED]> wrote:
>
> Not sure if this will help, but have you looked at Ely Greenfield's
SuperImage Component?
> 
>
http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on
-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/
> 
> Adam
> 
> - Original Message - 
> From: vitcheff 
> To: flexcoders@yahoogroups.com   
> Sent: Tuesday, May 08, 2007 8:39 PM
> Subject: [flexcoders] Image Component Nightmare
> 
> 
> Hi all,
> What I'm trying is to achieve is to have a thumbnails bar with some
> images in it, which, when clicked, should display the corresponding
> large version in a Canvas.
> 
> I'm doing this through AS3 in UIComponent-based class. There is an
> Image component instance which is placed in a Canvas instance. What
> I'm trying to do is scale the image down to the canvas's size and then
> provide a slider to zoom it in/out.
> 
> What makes me crazy is that I have to scale image.content instead of
> the image itself and after that make a ton of magic when trying to
> figure what the width and height of the image is, to be able to
center it.
> 
> Although the content is scaled down, image.width remains unchanged,
> and working with the content's size still brings some unexpected
> behaviour in.
> 
> Is there something bad about my approach. Handling a simple image
> shouldn't be that freaking hard. Do I miss something?
> 
> Thanks in advance!
>

 

<><>

RE: [flexcoders] Absolutely forcing chart to redraw

2007-05-09 Thread Ely Greenfield
 

 

 

Carl - 

 

Can you share some sample code? The simpler the better.

 

 

My short answer is...the chart will only set the data property on your
renderer if the chart knows things have changed. Since the chart knows
nothing about the size or color fields, it won't trigger an update.
You'll need to have your dataprovider items dispatch change events, and
have your renderers listen to the data object (the item) for those
change events yourself.

 

Or, re-assign the dataProvider to the chart, to slam a full update.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of carl_steinhilber
Sent: Tuesday, May 08, 2007 10:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Absolutely forcing chart to redraw

 

I asked this earlier and didn't get any response... but I think maybe
I hijacked another thread, so I'll ask again as it's own topic.

I have a PlotChart that uses a custom itemRenderer. The dataProvider
bound to the chart has objects with the keys:
- xAxis:Number, which translates to the position on the xAxis of
the chart (-10 to 10), as the value moves to negative, the items color
changes from green to orange to red
- yAxis:Number, which translates to the position on the yAxis of
the chart (-10 to 10), as the value moves to negative, the items color
changes from green to orange to red
- size:Number, which translates to the size of the item (diameter
of circle)
- visible:Boolean, which determines whether the item is actually
plotted on the chart or not

At runtime, the chart initially loads exactly as expected (items the
correct size, color and position). Then if I update the values for
xAxis and/or yAxis, the item moves on the chart as expected (though if
it moves from a positive value to negative value on either axis, the
color remains green). 
But if I update the value for size it doesn't update the item on the
chart, and if I update visible to false the item remains visible.

Obviously the data setter function in my itemRenderer class is not
called when I expect.

Also, if I completely replace the dataProvider with a new object, item
1 retains the color and size of item 1 in the old data, and so on.

I've tried explicitly calling invalidateDisplayList() and
validateNow() on the chart, but it seems to just run the
updateDisplayList(). This makes some sense... I guess set data is only
run when the chart is first initialized. Seems like I really want the
bulk of the logic that's currently in the data setter to be in the
updateDisplayList() function... but I don't seem to have access to the
dataProvider data in that function.

How do I force the chart to rerun the renderer for the item(s) with
updated data? Or, conversely, how do I get at dataProvider values from
the updateDisplayList() function in the class?

Any help would be appreciated.

Thanks in advance!
-Carl

Here's the class
==
package
{
import mx.skins.ProgrammaticSkin;
import flash.geom.Rectangle;
import mx.graphics.*;
import flash.display.Graphics;
import mx.core.IDataRenderer;

import mx.charts.ChartItem;
import flash.events.MouseEvent;
import mx.core.UIComponent;
import mx.controls.Label;
import mx.charts.PlotChart;
import mx.charts.series.items.PlotSeriesItem;

public class ClientItemRenderer extends UIComponent implements
IDataRenderer
{
private var _label:Label;
private var _status:Label;
private var _itemFill:uint;
private var _itemVisible:Boolean;
private var _itemSize:int;
private var _itemXAxis:int;
private var _itemYAxis:int;

public function ClientItemRenderer()
{
super();
_label = new Label();
addChild(_label);
_label.setStyle("color",0x00); 
_status = new Label();
addChild(_status);
_status.setStyle("color",0x00); 
}
private var _chartItem:ChartItem;

public function get data():Object
{
return _chartItem;
}

public function set data(value:Object):void
{
if (_chartItem == value)
return;
_chartItem = ChartItem(value);
_itemVisible = false;

if(_chartItem != null){
_itemXAxis = _chartItem.item.xAxis;
_itemYAxis = _chartItem.item.yAxis;

var size = _chartItem.item.size;
_itemSize = 1;
if (int(size) > 25)
_itemSize = 2;
if (int(size) > 50) 
_itemSize = 3;
if (int(size) > 75) 
_itemSize = 4;
if (int(size) > 99) 
_itemSize = 5;

if (String(_chartItem.item.visible)=="True") 
_itemVisible = true;

_label.text = _chartItem.item.clientname;
_status.text = String(_itemSize);

_itemFill = 0xFFA023;
if (_itemXAxis < 0 && _itemYAxis < 0) 
_itemFill = 0xFF;
if (_itemXAxis >= 0 && _itemYAxis >= 0) 
_itemFill = 0x26B417;
}

}

private var _over:Boolean = false;

private static var rcFill:Rectangle = new Rectangle();

private function rollOver(e:MouseEvent):void
{
_over = true;
invalidateDisplayList(); 
}
private function rollOut(e:MouseEvent):void
{
_over = false;
invalidateDisplayList();
}

override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth,

RE: [flexcoders] How to assign chart series itemRenderer in AS3?

2007-05-10 Thread Ely Greenfield
 

 

This should work fine:

 

Import mx.charts.renderers.LineRenderer;

 

lineSeries.setStyle("itemRenderer",new ClassFactory(LineRenderer));

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aaron Wright
Sent: Thursday, May 10, 2007 10:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to assign chart series itemRenderer in AS3?

 

The sort of it is that I would like to set the itemRenderer of a
LineSeries in AS3.

The long of it is that I've tried numerous ways to do this, and I keep
getting:

"Can't coerce mx.charts.renderers.LineRenderer to IFactory."

(Not verbatim)

Here's what I've tried:

1.) lineSeries.setStyle("itemRenderer",
mx.charts.renderers.LineRenderer);
2.) lineSeries.setStyle("itemRenderer",
"mx.charts.renderers.LineRenderer");
3.) lineSeries.setStyle("itemRenderer", new
mx.charts.renderers.LineRenderer());
4.) lineSeries.setStyle("itemRenderer", new
ClassFactory(mx.charts.renderers.LineRenderer));
5.) lineSeries.setStyle("itemRenderer", new ClassFactory(new
mx.charts.renderers.LineRenderer()));

The last two generated:

"Can't coerce mx.charts.renderers.LineRenderer to ClassFactory."

As you can see, I have no idea how to convert:





to AS3:



What am I missing? I see people all over the internet using custom
chart itemRenderers, but every one I've seen uses MXML to assign it. I
assume I'm just missing something silly because I'm assigning the
default itemRenderer to the itemRenderer, nothing fancy.

On a side note, if series can be dynamically created in MXML I could
do this in MXML.

 

<><>

RE: [flexcoders] Re: How to assign chart series itemRenderer in AS3?

2007-05-10 Thread Ely Greenfield
 

 

Ah yeah, sorry. You're trying to change the renderer for the line, or
the points on the line?

 

lineRenderer renders the line

itemRenderer renders the points

 

the mxLineRenderer  is a LineRenderer, so should be used with the
"lineRenderer" style.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aaron Wright
Sent: Thursday, May 10, 2007 11:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to assign chart series itemRenderer in
AS3?

 

Well, trying that gives me:

ReferenceError: Error #1069: Property items not found on
mx.charts.series.items.LineSeriesItem and there is no default value.
at
mx.charts.renderers::LineRenderer/mx.charts.renderers:LineRenderer::upda
teDisplayList()
at mx.skins::ProgrammaticSkin/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()

Which is the same error I get with my forth try below. Which is
essentially the same! thing you suggested.

--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]>
wrote:
>
> 
> 
> 
> 
> This should work fine:
> 
> 
> 
> Import mx.charts.renderers.LineRenderer;
> 
> 
> 
> lineSeries.setStyle("itemRenderer",new ClassFactory(LineRenderer));
> 
> 
> 
> Ely.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Aaron Wright
> Sent: Thursday, May 10, 2007 10:16 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to assign chart series itemRenderer in AS3?
> 
> 
> 
> The sort of it is that I would like to set the itemRenderer of a
> LineSeries in AS3.
> 
> The long of it is that I've tried numerous ways to do this, and ! I
keep
> getting:
> 
> "Can't coerce mx.char! ts.rende rers.LineRenderer to IFactory."
> 
> (Not verbatim)
> 
> Here's what I've tried:
> 
> 1.) lineSeries.setStyle("itemRenderer",
> mx.charts.renderers.LineRenderer);
> 2.) lineSeries.setStyle("itemRenderer",
> "mx.charts.renderers.LineRenderer");
> 3.) lineSeries.setStyle("itemRenderer", new
> mx.charts.renderers.LineRenderer());
> 4.) lineSeries.setStyle("itemRenderer", new
> ClassFactory(mx.charts.renderers.LineRenderer));
> 5.) lineSeries.setStyle("itemRenderer", new ClassFactory(new
> mx.charts.renderers.LineRenderer()));
> 
> The last two generated:
> 
> "Can't coerce mx.charts.renderers.LineRenderer to ClassFactory."
> 
> As you can see, I have no idea how to convert:
> 
> 
> 
> 
> 
> to AS3:
> 
> 
> 
> What am I missing? I see people all over the internet using custom
> chart itemRenderers, but every one I've seen uses MXML to assign it. I
> assume I'm just missing something silly because I'm assigning the
> default itemRenderer to the itemRenderer, nothing fancy.
> 
> On a side note, if series can be dynamically created in MXML I could
> do this in MXML.
>

 

<><>

RE: [flexcoders] Re: Absolutely forcing chart to redraw

2007-05-11 Thread Ely Greenfield
 

Hi Carl. I'd like to help, but I really need to see your code.  Again, a
very simple example...of your item renderer, and the mxml, and some
actionscript that shows what kind of a change you're trying to
make...will be necessary to really help.  I don't see your item renderer
code in the post below.

 

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of carl_steinhilber
Sent: Friday, May 11, 2007 8:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Absolutely forcing chart to redraw

 

Anyone else have any ideas?
I really need to get this solved, or I'll have to throw out the entire
app and build it in something else. This is crucial functionality.

--- In flexcoders@yahoogroups.com 
, "carl_steinhilber"
<[EMAIL PROTECTED]> wrote:
>
> Thanks Ely... I was hoping to catch your attention ;-)
> 
> The (complete) code for the itemRenderer is below in my original
> posting. Was there some other sample code that would be useful? I
> can't imagine that the MXML would be all that helpful... as all that
> would show is that I'm assigning the custom itemRenderer to the
> PlotSeries of the chart. But... let me know.
> 
> Basically my app consists of two panes, one contains the chart, and
> one contains a datagrid, both bound to the same object for their
> dataProviders. The object is actually being populated via a DB query
> using Flexcubed's FlexSQL SWC (since the backend is ASP and I can't
> use CF on this project). But I don't think that plays into it since
> I've checked a number of times that the array is created as expected
> and is valid.
> 
> The query loads up a bindable object (localData). I have a button to
> save the data back to the DB, but until the user elects to do so, I
> just want to operate with the local version of the object. So I can't
> go back to the DB for a full refresh. But I tried something like:
> {
> var origDataProvider = chart.dataProvider;
> chart.dataProvider = new Object();
> chart.dataProvider = origDataProvider;
> }
> and even that didn't refresh the chart appropriately.
> 
> Can you give me some pointers to "have my dataprovider items dispatch
> change events"?
> 
> Thanks much!
> -Carl 

> At runtime, the chart initially loads exactly as expected (items the
> correct size, color and position). Then if I update the values for
> xAxis and/or yAxis, the item moves on the chart as expected (though if
> it moves from a positive value to negative value on either axis, the
> color remains green).
> But if I update the value for size it doesn't update the item on the
> chart, and if I update visible to false the item remains visible.

 

<><>

RE: [flexcoders] How to assign chart series itemRenderer in AS3?

2007-05-11 Thread Ely Greenfield
 

 

Good question.  You could think of it as a subtle but important
difference...for lists, the item renderer is often very specific to the
type of data being rendered.  For charts, it is sometime very specific
to the data schema, but just as often, purely a stylistic choice...do
you want round points on your line, or diamonds?  More importantly, do
you want round points on the first line, diamond points on the second
line, etc?  As a stylistic (and per-instance) option, we wanted people
to be able to develop style based themes for charts that just 'drop'
into place.  

 

Or, if you were less charitable, you could claim it's just a mistake on
our part, and itemRenderer should be a style everywhere J

 

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dirk Eismann
Sent: Friday, May 11, 2007 5:02 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to assign chart series itemRenderer in
AS3?

 

Btw, why there is this inconsistency that in the Charts API itemRenderer
is a Style whereas in the rest of the Flex 2 framework it is a property?

 

Dirk.

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Ely Greenfield
Sent: Thursday, May 10, 2007 8:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to assign chart series
itemRenderer in AS3?

 

 

This should work fine:

 

Import mx.charts.renderers.LineRenderer;

 

lineSeries.setStyle("itemRenderer",new
ClassFactory(LineRenderer));

 

Ely.

 

<><>

RE: [flexcoders] Re: looking for a SeriesSlide that keeps the old points on the graph

2007-05-11 Thread Ely Greenfield
 

 

I don't  believe that would be possible with the current chart effect
API.  That would require the series to create a superset of the before
and after items to display at the same time. The effects generally don't
have the ability to ask the series to create or show more items, and
they don't know how to create or show more themselves (which would
require deep knowledge of the individual series).  It's a good
enhancement request though.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aaron Wright
Sent: Friday, May 11, 2007 10:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: looking for a SeriesSlide that keeps the old
points on the graph

 

That would be great. I have a chart that graphs many variables in
realtime. I would love an effect or something that slid values on and
off the chart. The slide left/right effect right now do the entire
chart! When is that useful? If I added one value, slide one value on. If
I removed one value, slide one value off.

I suppose instead of pissing and moaning about it, I could get to work.

--- In flexcoders@yahoogroups.com 
, "Pan Troglodytes" <[EMAIL PROTECTED]>
wrote:
>
> Before I code my own, I'm just wondering if someone has already put
code up
> for what I want. I'm looking to do a SeriesSlide left/right that
slides the
> old points off while simultaneously sliding the new points on. I
don't mean
> the same thing that happens if you use a SeriesSlide for the
hideDataEffect
> and then another for the showDataEffect. What I'm looking for is for
it to
> look like a "sliding window" effect. Anything out there already?
>
> This is specifically for ColumnSeries, but any code would probably be
more
> general-purpose.
>
> --
> Jason
>

 

<><>

RE: [flexcoders] Re: looking for a SeriesSlide that keeps the old points on the graph

2007-05-11 Thread Ely Greenfield
 

 

I should add...the interpolation effects do this, but they cheat. Each
series has specific support for interpolation built in to them, and the
interpolation effect just calls to the series to set up and execute the
interpolation.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aaron Wright
Sent: Friday, May 11, 2007 10:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: looking for a SeriesSlide that keeps the old
points on the graph

 

That would be great. I have a chart that graphs many variables in
realtime. I would love an effect or something that slid values on and
off the chart. The slide left/right effect right now do the entire
chart! When is that useful? If I added one value, slide one value on. If
I removed one value, slide one value off.

I suppose instead of pissing and moaning about it, I could get to work.

--- In flexcoders@yahoogroups.com 
, "Pan Troglodytes" <[EMAIL PROTECTED]>
wrote:
>
> Before I code my own, I'm just wondering if someone has already put
code up
> for what I want. I'm looking to do a SeriesSlide left/right that
slides the
> old points off while simultaneously sliding the new points on. I
don't mean
> the same thing that happens if you use a SeriesSlide for the
hideDataEffect
> and then another for the showDataEffect. What I'm looking for is for
it to
> look like a "sliding window" effect. Anything out there already?
>
> This is specifically for ColumnSeries, but any code would probably be
more
> general-purpose.
>
> --
> Jason
>

 

<><>

RE: [flexcoders] Re: looking for a SeriesSlide that keeps the old points on the graph

2007-05-11 Thread Ely Greenfield
 

 

 

Glad to hear it J

 

You could definitely try...

 

1)  Fixing the min/max of the horizontal axis

2)  Add new items off the edge of the chart.

3)  Turn off filtering on your series

4)  Animate the min/max of the axis

5)  Remove the previous items.

 

Not sure how it would perform though.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pan Troglodytes
Sent: Friday, May 11, 2007 11:06 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: looking for a SeriesSlide that keeps the
old points on the graph

 

Thanks for the clarification, Ely.  Probably saved me some time dinking
with effects.  I was afraid this might be the case.  So I'm guessing the
best thing to do is to turn off effects and intelligently remove/add
data points. 

BTW, I'm using your DrillDown/Up effects and just love them.  Your blog
is always a great resource for Flex coding.  It's also a big part of how
I sold the boss on Flex.  I just let him play with all the pretty
examples. 



On 5/11/07, Ely Greenfield <[EMAIL PROTECTED]> wrote:

 

 

I don't  believe that would be possible with the current chart effect
API.  That would require the series to create a superset of the before
and after items to display at the same time. The effects generally don't
have the ability to ask the series to create or show more items, and
they don't know how to create or show more themselves (which would
require deep knowledge of the individual series).  It's a good
enhancement request though.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto: flexcoders@
<mailto:flexcoders@> yahoogroups.com] On Behalf Of Aaron Wright
Sent: Friday, May 11, 2007 10:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: looking for a SeriesSlide that keeps the old
points on the graph

 

That would be great. I have a chart that graphs many variables in
realtime. I would love an effect or something that slid values on and
off the chart. The slide left/right effect right now do the entire
chart! When is that useful? If I added one value, slide one value on. If
I removed one value, slide one value off.

I suppose instead of pissing and moaning about it, I could get to work.

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Pan Troglodytes" <[EMAIL PROTECTED]>
wrote:
>
> Before I code my own, I'm just wondering if someone has already put
code up
> for what I want. I'm looking to do a SeriesSlide left/right that
slides the
> old points off while simultaneously sliding the new points on. I
don't mean
> the same thing that happens if you use a SeriesSlide for the
hideDataEffect
> and then another for the showDataEffect. What I'm looking for is for
it to
> look like a "sliding window" effect. Anything out there already?
>
> This is specifically for ColumnSeries, but any code would probably be
more
> general-purpose.
>
> --
> Jason
>







-- 
Jason 

 

<><>

RE: [flexcoders] ChartBase.invalidateData()

2007-05-14 Thread Ely Greenfield
 

 

Hi Jason. Probably not a great reason why it shouldn't be exposed, other
than it wasn't designed to be.  i.e., log a bug, enhancement request,
etc. because I think it's a good idea. In the meantime, if you want, you
could subclass your chart type, and define a method:

 

Public function publicInvalidateDataBecauseElyIsStupid():void

{

This.invalidateData();

}

 

But since invalidateData wasn't designed to be a publicly visible
method, no guarantees on what bad effects this will have. None that I
can think of, just keep your cat away from the computer the first time
you run it J

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pan Troglodytes
Sent: Monday, May 14, 2007 9:18 AM
To: flexcoders
Subject: [flexcoders] ChartBase.invalidateData()

 

Is there some reason I'm missing that ChartBase.invalidateData()
shouldn't be moved from protected to public?  Or is there some other
(equivalently good) way to do the same thing?

I'm working on code to add one data point at a time to the chart.  I'm
doing this by adding them to the array of the underlying data provider.
I know there's ways around it, like reassigning the dataprovider or
using an ArrayCollection.  I'm just wondering what good it does not to
expose it.  Seems like a very important function to be marked as
protected. 

-- 
Jason 

 

<><>

RE: [flexcoders] Re: Absolutely forcing chart to redraw

2007-05-15 Thread Ely Greenfield
 

 

 

My guess would be that you've got a performance gate at the top of your
set data(...) function.  If the item renderer is being a passed a
reference to an item it already knows about, your set data(...) function
bails out. Which means that the code immediate below...which loads all
of the data out of the item into cached fields...never gets run. So if
the dataprovider hasn't changed, but the individual items have,
generally your item renderer won't update its cached  values.

 

Remove that line, and it might solve your problems? 

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Tuesday, May 15, 2007 1:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Absolutely forcing chart to redraw

 

grasping at straws, have you tried a bubble chart instead? I suspect
the series are derived from the same root.

or maybe you could subclass the plotseries and overload
updateTransform or some other suitable method.

just ideas

I managed to get my similar problem basically working by writing a
fair bit of code that made sure the bound data actually changed. In
my case (which I think was different) I was not quite binding
correctly so the data I was changing was not causing the update. I
haven't cracked it completely and I'm certain that I get situations
where item renderers are "re-used" as new data points occasionally
have the same colour properties as data points which have been removed
from the chart and are inappropriate for their data. All a bit
mysterious I'm afraid.

Is the charting code going open source?

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "carl_steinhilber"
<[EMAIL PROTECTED]> wrote:
>
> Anybody have ANY insight?
> 
> Bueller? Bueller?
> 
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "carl_steinhilber"
>  wrote:
> >
> > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "Ely Greenfield" 
wrote:
> > > Hi Carl. I'd like to help, but I really need to see your code. 
> > > Again, a very simple example...
> > 
> > Thanks Ely. I've trimmed it down as much as I think I can... I have
a
> > lot more going on, but this is it in it's basic form... and it still
> > exhibits the same issues.
> > 
> > MXML
> > ==
> > 
> > http://www.adobe.com/2006/mxml";
> > creationComplete="appInit()" layout="absolute">
> > 
> > 
> > 
> > 
> > 
> > 
> >  > dataProvider="{localData}" axisTitleStyleName="linearAxis"
> > paddingBottom="20" paddingLeft="20" paddingRight="20"
paddingTop="20"
> > showDataTips="true" >
> > 
> >  > title="< X Axis >" />
> > 
> > 
> >  > title="< Y Axis >" />
> > 
> > 
> >  > itemRenderer="ClientItemRenderer" xField="xAxis" yField="yAxis" />
> > 
> > 
> >  
> > 
> >  > editable="true" height="100%" id="gridClient" name="gridClient"
> > width="100%" >
> > 
> >  > textAlign="left" />
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > And my ClientItemRenderer AS is pretty much just a revision of the
> > samples on QuietlyScheming
> > 
> > ClientItemRenderer.as
> > ==
> > package
> > {
> > import mx.skins.ProgrammaticSkin;
> > import flash.geom.Rectangle;
> > import mx.graphics.*;
> > import flash.display.Graphics;
> > import mx.core.IDataRenderer;
> > 
> > import mx.charts.ChartItem;
> > import flash.events.MouseEvent;
> > import mx.core.UIComponent;
> > import mx.controls.Label;
> > import mx.charts.PlotChart;
> > import mx.charts.series.items.PlotSeriesItem;
> > import flash.events.Event;
> > import mx.events.FlexEvent;
> > 
> > public class ClientItemRenderer extends UIComponent implements
> > IDataRenderer
> > {
> > private var _label:Label;
> > private var _status:Label;
> > private var _itemFill:uint;
> > private var _itemVisible:Boolean;
> > private var _itemSize:int;
> > private var _itemXAxis:int;
> > private var _itemYAxis:int;
> > 
> > public function ClientItemRenderer()
> > {
> > super();
> > _label = new Label();
> > addChild(_label);

RE: [flexcoders] Re: XML data bound to a chart- this should work!

2007-05-17 Thread Ely Greenfield
 

 

If you're referring to an attribute in XML, you need to use "@id", not
"id".

 

Ely.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of barry.beattie
Sent: Thursday, May 17, 2007 8:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML data bound to a chart- this should work!

 

closer (sort of).

yes I did misunderstand what was used for the category axis.

but correcting that hasn't helped, to be honest. setting CategoryAxis
to "id" didn't improve it

however, if I leave out the horizontalAxis and CategoryAxis
completely, it'll fall back to the default of displaying an index - it
provides the correct amount of them so it *is* reading the XML.

here's a node of the proper XML: rating="5" should be the height of
the column






 

<><>

RE: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents

2007-05-17 Thread Ely Greenfield
 

 

Austin et. al. -

 

There are a number of features of MXML that simply can't be replicated
at runtime. Things like script blocks. Other features would be
prohibitively difficult (arbitrary binding expressions, @Embed,
mx:Component, among others).  You could reduce MXML to a
runtime-parsable subset, and I know various people have taken various
approaches to this.  The more you reduce it, the easier it would be to
replicate...removing repeaters, implicit arrays, default properties,
etc. would get you down to something that could be implemented in a
reasonable amount of time.

 

I'm curious...how many people would find runtime MXML to be important to
them?

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Thursday, May 17, 2007 12:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can
Create UIComponents

 

Yeah, ummm, my advice would be ignore that article. That's one of the
effects of having an article submission process that allows anyone to
submit anything. I know the cookbook is supposed to be user generated
and reviewed, but anyone from Adobe want to exercise a little editorial
control? I wouldn't mind the hand of god going in there and selectively
removing a little content... sometimes democracy needs a helping hand. 



On 5/17/07, Daniel Freiman <[EMAIL PROTECTED]> wrote:

I think they're just stating that the mx.modules package exists.  The
sentence "We also know Flex2 knows how to read MXML at runtime because
the compiler knows how to convert MXML into GUI Objects" doesn't inspire
confidence that they know what they're talking about.  Since it's
possible that they don't know what a compiler does, it's also possible
they're just writing and compiling Modules and don't understand that
they're doing it.  Then again, that wouldn't explain what they're
fighting with another company about earlier in the article. 

They claim what they're talking about is in the docs so I'd either
search them or not worry about it.  My guess is you'd be searching a
long time for something that isn't there.  It would be nice if someone
could prove my guess wrong though. 

Dan Freiman
nondocs  

 

On 5/17/07, Austin Kottke <[EMAIL PROTECTED] > wrote:

Hi,

There is an intriguing article in the flex cookbook on the adobe site
about 
reading in MXML at runtime and using the XML object to create components
at runtime. While
I don't totally get how this works as there are no code samples, but
very vague actually, but it states:

"Let's consider, for a moment, how Adobe might have chosen to leverage 
reuse within the Flex2 programming model.

"Assuming the Adobe engineers did not want to have to recreate the wheel
in terms of how to make Flex2 able to load normal non-GUI XML I would
surmise they chose to simply reuse whatever code they wrote that was 
able to read MXML into a way to read XML.

"As we know, MXML resembles XML rather closely. Heck, MXML is XML !
Yipee, now I can easily read MXML because it is essentially a form of
XML.

"We also know Flex2 knows how to read MXML at runtime because the 
compiler knows how to convert MXML into GUI Objects.

"But what if we could trick Flex2 into dynamically loading MXML at
runtime ?"


So my question, has anyone ever done this and how did they do it? I'm 
not talking about using the
modules package to load in precompiled swfs. But loading in mxml and
having it run after being loaded.

Best, Austin



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links 


 





 

 

<><>

RE: [flexcoders] Setting dataTipCalloutStroke="{null}" when dataTipMode="multiple"?

2007-05-18 Thread Ely Greenfield
 

 

Set it to a stroke with an alpha of 0.

 



   



 

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Demling
Sent: Friday, May 18, 2007 7:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Setting dataTipCalloutStroke="{null}" when
dataTipMode="multiple"?

 

Hello,

I have a CartesianChart where I don't want the calloutStroke to be
drawn (and thereby offset the positioning of the dataTips from their
data point), so I've set dataTipCalloutStroke="{null}".

This works fine when dataTipMode="single", but it does not work when I
set dataTipMode="multiple": the callout is still drawn and the
dataTips are offset. Any ideas? This is kind of a deal-breaker for
my app, since a major feature is to display my custom dataTips
directly adjacent to all (plot) data points at the same time. I
suppose I could go way-deep into concatenating the default
itemRenderer and the dataTip's custom contents into a custom
itemRenderer, but I'd rather not have to code all that internal
plumbing if I could instead do it all with this one style setting.

Thanks for any suggestions!

-Peter Demling
Lexington, MA

 

<><>

RE: [flexcoders] Setting dataTipCalloutStroke="{null}" when dataTipMode="multiple"?

2007-05-18 Thread Ely Greenfield
 

 

Peter -

 

Took a peek at the code, and that looks to be an unfortunately bug on my
part.  Use 'calloutStroke' instead of 'dataTipCalloutStroke' style.  You
might have to set it programmatically:

 

myChart.setStyle("calloutStroke",null);

 

That should solve the problem (and in a more performant way).

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Demling
Sent: Friday, May 18, 2007 7:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Setting dataTipCalloutStroke="{null}" when
dataTipMode="multiple"?

 

Hello,

I have a CartesianChart where I don't want the calloutStroke to be
drawn (and thereby offset the positioning of the dataTips from their
data point), so I've set dataTipCalloutStroke="{null}".

This works fine when dataTipMode="single", but it does not work when I
set dataTipMode="multiple": the callout is still drawn and the
dataTips are offset. Any ideas? This is kind of a deal-breaker for
my app, since a major feature is to display my custom dataTips
directly adjacent to all (plot) data points at the same time. I
suppose I could go way-deep into concatenating the default
itemRenderer and the dataTip's custom contents into a custom
itemRenderer, but I'd rather not have to code all that internal
plumbing if I could instead do it all with this one style setting.

Thanks for any suggestions!

-Peter Demling
Lexington, MA

 

<><>

RE: [flexcoders] Re: Setting dataTipCalloutStroke="{null}" when dataTipMode="multiple"?

2007-05-18 Thread Ely Greenfield
 

 

DataTips were really written to be interactive tips, while a lot of
people have asked for functionality that allows you to treat them more
like labels. We hear the request, and are considering ways to update it
for a future release.

 

If I wanted to put labels on the plot items, I'd probably, in increasing
order of difficulty: 

 

1)  Use the data graphics drawing API (see the post on my blog).
Pro: very easy.  Con:  less performant.

2)  Write a custom item renderer. Pro:  more performant, leverages
existing plot series. Con: axes won't automatically make sure there's
enough room for the labels.

3)  Write a custom series (or extension to plot series).  Pro:  best
performance option, best experience (can make the chart axes make room
for labels).  Con:  requires understanding writing custom series.

 

 

Personally, I'd suggest taking a shot at #3.  Writing a custom series
really isn't all that difficult, esp. for a plot series, which is the
simplest kind.  I'd probably try this:

 

1)  Extend PlotSeries.

2)  In the constructor for your extension, create a UIComponent and
addChild it. This will be the sprite that will contain your labels.

3)  Override the get labelLayer property, and return a reference to
that UIComponent.  This makes sure the chart adds it to your display,
above all the series, so labels don't appear under items.

4)  Override updateDisplayList.  First call the super.  Second, for
each chart item in the renderData.filteredCache array, create a Label
(or some custom component), position it where you want relative to the
x/y values in the chart item, and add it as a child to your labelLayer.

5)  Override describeData. This is the method where you tell the
axes what range your data represents.  You also have the option of
telling the series that you need a certain number of pixels on either
size of your data.  You'll want to report to the axis that you need
space to the right of your data for the label.  See the ASDoc for
describeData for more details.

6)  Optimize.  Reuse your labels in your updateDisplayList function,
etc.

7)  Deal with transitions, if you want.  Eearlier I said that in
updateDisplayList, you want to look at the renderData.filteredCache
array. With transitions, it's a little more complicated.  You might have
a transitionRenderData property, in which case you want to use that.
Your transition render data property might have an elementBounds array,
in which case you want to use that instead.  Honestly, in my experience,
it's better to hide labels during transitions, so probably you just want
to see if you have a transitionRenderData value, and hide all your
labels if you do.  See PlotSeries.updateDisplayList for an example of
how to deal with transitions and render data.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Demling
Sent: Friday, May 18, 2007 10:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Setting dataTipCalloutStroke="{null}" when
dataTipMode="multiple"?

 

Thanks for the reply, Ely! I really appreciate your input. 

> myChart.setStyle("calloutStroke",null);

This works to hide the calloutStroke... ...but the positions of the
dataTip boxes still get offset from the chartItems (in my case, far
away from the DiamondItemRenderers of my plotSeries). In other words,
when dataTipMode="multiple", I want the dataTip boxes to position
themselves like they do when dataTipMode="single": i.e., a few pixels
to the northeast of the chartItem. 

My real end goal is to show the all the items in the plotSeries, with
their corresponding dataTips right next to them (I'm using a high
mouseSensitivity to forcibly show multiple dataTips right now, but I
know I'll eventually have to explicitly dispatch MOUSE_OVER, or else
override findDataPoints and toggle all the showDataTips value to
false/true).

If I can't force the offset-positioning of these dataTips in order to
align nicely with their chartItems, do you think I need to use a
custom ItemRenderer instead? Your "StoplightItemRenderer" example at
qs* is quite helpful in this regard, but I can't figure out how I'd
also draw text values from the chartItem adjacent to the
DiamondItemRenderer (e.g., "Smith,John (age 30)" adjacent to the
diamond graphic).

Thanks again for any suggestions; believe me, little bumps in the road
like this don't take away from the enormous benefit this charting API
has already been for us.

Regards,
-Peter Demling
Lexington, MA

*is quietlyScheming.com down? I lost connection this morning...

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
> 
> 
> 
> 
> Peter -
> 
> 
> 
> Took a peek at the code, and t

RE: [flexcoders] Re: Setting dataTipCalloutStroke="{null}" when dataTipMode="multiple"?

2007-05-18 Thread Ely Greenfield
 

 

Hmmm...seems to be down right now.  I'll send you're the code directly.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Demling
Sent: Friday, May 18, 2007 11:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Setting dataTipCalloutStroke="{null}" when
dataTipMode="multiple"?

 

Thanks for the details on the options, especially #3.

> 1) Use the data graphics drawing API (see the post on my blog).

Excellent; I'll start with this (I need to demo a proof-of-concept
this weekend). QuietlyScheming is still refusing my connection,
though (it must know I want to do unsavory things with dataTips).

> 2) Write a custom item renderer

Once I'm in updateDisplayList() and I have access to the _ChartItem,
is it possible to then output the contents of a data field from the
item (e.g. _ChartItem.hitData.item.NAME in a Label to output
"Smith,John" via addChild() or something), or is it restricted to pure
Graphics drawing methods?

> 3) Write a custom series (or extension to plot series)

I like that as my eventual solution; and assuming that the answer to
the above question is "no", I assume this would be the only way to
embed data provider fields (e.g. "Smith,John" from the ChartItem) into
the ItemRenderer?

thanks again,
-Peter Demling
Lexington, MA

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
> 
> 
> 
> 
> DataTips were really written to be interactive tips, while a lot of
> people have asked for functionality that allows you to treat them more
> like labels. We hear the request, and are considering ways to update
it
> for a future release.
> 
> 
> 
> If I wanted to put labels on the plot items, I'd probably, in
increasing
> order of difficulty: 
> 
> 
> 
> 1) Use the data graphics drawing API (see the post on my blog).
> Pro: very easy. Con: less performant.
> 
> 2) Write a custom item renderer. Pro: more performant, leverages
> existing plot series. Con: axes won't automatically make sure there's
> enough room for the labels.
> 
> 3) Write a custom series (or extension to plot series). Pro: best
> performance option, best experience (can make the chart axes make room
> for labels). Con: requires understanding writing custom series.
> 
> 
> 
> 
> 
> Personally, I'd suggest taking a shot at #3. Writing a custom series
> really isn't all that difficult, esp. for a plot series, which is the
> simplest kind. I'd probably try this:
> 
> 
> 
> 1) Extend PlotSeries.
> 
> 2) In the constructor for your extension, create a UIComponent and
> addChild it. This will be the sprite that will contain your labels.
> 
> 3) Override the get labelLayer property, and return a reference to
> that UIComponent. This makes sure the chart adds it to your display,
> above all the series, so labels don't appear under items.
> 
> 4) Override updateDisplayList. First call the super. Second, for
> each chart item in the renderData.filteredCache array, create a Label
> (or some custom component), position it where you want relative to the
> x/y values in the chart item, and add it as a child to your
labelLayer.
> 
> 5) Override describeData. This is the method where you tell the
> axes what range your data represents. You also have the option of
> telling the series that you need a certain number of pixels on either
> size of your data. You'll want to report to the axis that you need
> space to the right of your data for the label. See the ASDoc for
> describeData for more details.
> 
> 6) Optimize. Reuse your labels in your updateDisplayList function,
> etc.
> 
> 7) Deal with transitions, if you want. Eearlier I said that in
> updateDisplayList, you want to look at the renderData.filteredCache
> array. With transitions, it's a little more complicated. You might
have
> a transitionRenderData property, in which case you want to use that.
> Your transition render data property might have an elementBounds
array,
> in which case you want to use that instead. Honestly, in my
experience,
> it's better to hide labels during transitions, so probably you just
want
> to see if you have a transitionRenderData value, and hide all your
> labels if you do. See PlotSeries.updateDisplayList for an example of
> how to deal with transitions and render data.
> 
> 
> 
> Ely.

 

<><>

RE: [flexcoders] Series::stripNaNs Exception in LineGraph

2007-05-24 Thread Ely Greenfield
 

 

Can you post very simple sample code? What does your MXML look like?
Etc.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flexing...
Sent: Wednesday, May 23, 2007 1:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Series::stripNaNs Exception in LineGraph

 

While I am trying to resolve it, if anyone has any clue about it that
will be great. 

 

TypeError: Error #1009: Cannot access a property or method of a null
object reference.

at
mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::stripNaNs(
)

at
mx.charts.series::LineSeries/mx.charts.series:LineSeries::updateFilter()

at
mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::validateTr
ansform()

at
mx.charts.chartClasses::Series/getRenderDataForTransition()

at
mx.charts.effects.effectClasses::SeriesInterpolateInstance/play()

at mx.effects::EffectInstance/startEffect()

 

 

the above exception only comes when I associate an effect
("SeriesInterpolate" in my case)  with the LineSeries.

I printed the values of the dataprovider associated with the LineSeries
and all the values are NOT Null. 

 

 

 

 

<><>

RE: [flexcoders] Charting dataTransform.invertTransform() on DateTimeAxis

2007-05-24 Thread Ely Greenfield
 

 

Nope.  invertTransform converts a position along the axis to a numeric data 
value.  For DTAxis, data values are dates For that matter, DTAxes don’t have a 
dataProvider, so there’s no concept of a dataprovider for them to compare 
against. It’s up to you to use the value returned to search through whatever 
collection/array you’re interested in to find a relevant item.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan 
Meutzner
Sent: Thursday, May 24, 2007 12:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Charting dataTransform.invertTransform() on DateTimeAxis

 

Hi,

When implementing the dataTransform.invertTransform() method on a DateTimeAxis 
instance, it seems the return value is the date value represented... is there 
anyway to return the index value of the dataProvider like a CategoryAxis would? 


Brendan



-- 
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca 

 

<><>

RE: [flexcoders] Custom Chart

2007-05-24 Thread Ely Greenfield
 

 

 

Sounds like a chart:

 

-  With two separate bar series, one for actual, one for plan

-  Set to 'overlaid' mode

-  The plan series has a custom renderer that just renders a
vertical line, rather than a  whole bar.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: Thursday, May 24, 2007 10:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom Chart

 

I want to compare plan vs actual cost.

On a bar chart I want a bar to show the actual cost. I also want a
thin vertical line where plan cost was.

The middle graph on the cover of this book shows what I want to do. I
don't need the different shaded backgrounds.

http://www.perceptualedge.com/images/Dashboard_Cover.gif

Any ideas?

 

<><>

  1   2   3   4   5   >