Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Tom Chiverton
On Saturday 06 Sep 2008, Fernando Ghisi wrote: http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_1 2.html I can´t agree with you. Just take a look on the styles of ColumnSeries in http://livedocs.adobe.com/flex/3/langref/mx/charts/series/ColumnSeries.ht ml -

[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Amy
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Saturday 06 Sep 2008, Fernando Ghisi wrote: http://livedocs.adobe.com/flex/3/html/help.html? content=charts_formatting_1 2.html I can´t agree with you. Just take a look on the styles of ColumnSeries in

Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Fernando Ghisi
The question here is not if charts uses styles for itemRenderers or not - it´s fact, it really uses it. It´s working like this: I created my CustomItemRenderer extending BoxItemRenderer and I´m setting the series itemRenderers with setStyle method, like this: //For each columnSeries

[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Tim Hoff
Not arguing with you, but why would you use setStyle instead of: mx:ColumnSeries id=mySeries itemRenderer=mx.charts.renderers.CustomtemRenderer/ Does mySeries.items[0] not give you a reference? -TH --- In flexcoders@yahoogroups.com, Fernando Ghisi [EMAIL PROTECTED] wrote: The question

Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Fernando Ghisi
When you do this in a MXML, I almost sure that it will be transformed on a setStyle(itemRenderer, ...) in actionscript. There is no other way of doing this on actionscript. To apply a renderer to a series in ActionScript, you use the setStyle() method. In that method, you create a new

[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Tim Hoff
Great Fernando. Thanks for the info too. I learned something as well. -TH --- In flexcoders@yahoogroups.com, Fernando Ghisi [EMAIL PROTECTED] wrote: When you do this in a MXML, I almost sure that it will be transformed on a setStyle(itemRenderer, ...) in actionscript. There is no other

[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Amy
--- In flexcoders@yahoogroups.com, Fernando Ghisi [EMAIL PROTECTED] wrote: The question here is not if charts uses styles for itemRenderers or not - it´s fact, it really uses it. It´s working like this: I created my CustomItemRenderer extending BoxItemRenderer and I´m setting the series

Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Fernando Ghisi
Yeah, it´s a good link. I will use it now, for the next issues that I have to solve (legend ones). Thanks. 2008/9/8 Amy [EMAIL PROTECTED]: --- In flexcoders@yahoogroups.com, Fernando Ghisi [EMAIL PROTECTED] wrote: The question here is not if charts uses styles for itemRenderers or not -

[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-06 Thread Amy
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Assuming chart is a ColumnChart, chart.series[0].items[0] will get you a rference to the first ColumnSeriesItem. Charts don't have itemRenderers and an itemRenderer is not a style. They do, and in charting, it is.

[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-06 Thread Amy
--- In flexcoders@yahoogroups.com, Fernando Ghisi [EMAIL PROTECTED] wrote: I can´t agree with you. Just take a look on the styles of ColumnSeries in http://livedocs.adobe.com/flex/3/langref/mx/charts/series/ColumnSeries.h tml - itemRenderer=BoxItemRenderer I want a reference of the

[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-06 Thread Tim Hoff
Good link Amy. Thanks! -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Fernando Ghisi fernandoghisi@ wrote: I can´t agree with you. Just take a look on the styles of ColumnSeries in

[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-05 Thread Fernando Ghisi
So, nobody can help me? 2008/9/5 Fernando Ghisi [EMAIL PROTECTED]: How can I get a reference to a itemRenderer of a chart series? If I use getStyle method, I´ll get the reference of the ClassFactory Ex: Series(chart.series[index]).getStyle(itemRenderer) Looking for any property that I

[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-05 Thread Tim Hoff
Assuming chart is a ColumnChart, chart.series[0].items[0] will get you a rference to the first ColumnSeriesItem. Charts don't have itemRenderers and an itemRenderer is not a style. -TH --- In flexcoders@yahoogroups.com, Fernando Ghisi [EMAIL PROTECTED] wrote: So, nobody can help me?

Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-05 Thread Igor Costa
ItemRenders are not part of Style even is not the way we could get a reference into a render for Charts. Try this. http://www.flex888.com/699/the-illusive-itemrenderer.html Maybe will help you to figure out how. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 9:12 PM, Tim Hoff

Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-05 Thread Fernando Ghisi
I can´t agree with you. Just take a look on the styles of ColumnSeries in http://livedocs.adobe.com/flex/3/langref/mx/charts/series/ColumnSeries.html - itemRenderer=BoxItemRenderer I want a reference of the SERIES itemRenderer, not the charts one. 2008/9/5 Igor Costa [EMAIL PROTECTED]:

Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-05 Thread Fernando Ghisi
And if you want examples... http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_12.html And now, I´m still worng? 2008/9/6 Fernando Ghisi [EMAIL PROTECTED]: I can´t agree with you. Just take a look on the styles of ColumnSeries in