Re: [flexcoders] Charting Line Segments
Which LineSeries is affected? Have you isolated the line series on its own (don't add/load the others) and does it still occur? Have you tried creating a sub class from LineSeries and overriding the appropriate functions inside of it to try and trace out how each segment is loading? Brendan On Mon, Jun 28, 2010 at 3:18 PM, Jake Churchill reyna...@gmail.com wrote: I've run into an issue that for the life of me I can't seem to figure out. I've been working on this same problem for days and I keep hitting a wall. I have a Cartesian chart with several LineSeries and a PlotSeries. The vertical axis is numeric and the horizontal is a category axis. The value of the category axis is dates (category is used to avoid gaps for weekends because data is stock related and only exists on trading days). Every series has it's own dataprovider but the data is all similar. It looks similar to this: DATEVALUE: Date VALUE: numeric value PERCENTCHANGE: numeric value I have a custom line segment renderer for all line series. An example I'm looking at right now deals with several months of data. There are 105 data points in the data provider and therefore, 105 line segments passed to the set data() method in the line segment renderer. *Here's the issue:* There is one line that only gets 104 line segments. The data shows 105 data points in the same format as all the other lines but somewhere down the line a segment is being removed. I've gone over and over the data and the date values for the horizontal category axis are all the same for every line and always 105 values as I said. Can anyone think of why one line might not be giving me the last segment? FYI, this is a flex 2 app and for several reasons, I cannot change that right now. Any help anyone can give will be useful (especially since this code is not open sourced and I cannot really dig into see what is going on behind the charting scenes). Thanks! -Jake
Re: [flexcoders] Charting Line Segments
I haven't isolated just that series. I'll try that. I was however, trying to figure out which methods to override to see that. Do you know which method to override to see the line segments? I overrode updateData and that seems to set the data but it looks correct. The rendered data cache has all the elements of the data provider. -Jake On Mon, Jun 28, 2010 at 3:32 PM, Brendan Meutzner bmeutz...@gmail.comwrote: Which LineSeries is affected? Have you isolated the line series on its own (don't add/load the others) and does it still occur? Have you tried creating a sub class from LineSeries and overriding the appropriate functions inside of it to try and trace out how each segment is loading? Brendan On Mon, Jun 28, 2010 at 3:18 PM, Jake Churchill reyna...@gmail.comwrote: I've run into an issue that for the life of me I can't seem to figure out. I've been working on this same problem for days and I keep hitting a wall. I have a Cartesian chart with several LineSeries and a PlotSeries. The vertical axis is numeric and the horizontal is a category axis. The value of the category axis is dates (category is used to avoid gaps for weekends because data is stock related and only exists on trading days). Every series has it's own dataprovider but the data is all similar. It looks similar to this: DATEVALUE: Date VALUE: numeric value PERCENTCHANGE: numeric value I have a custom line segment renderer for all line series. An example I'm looking at right now deals with several months of data. There are 105 data points in the data provider and therefore, 105 line segments passed to the set data() method in the line segment renderer. *Here's the issue:* There is one line that only gets 104 line segments. The data shows 105 data points in the same format as all the other lines but somewhere down the line a segment is being removed. I've gone over and over the data and the date values for the horizontal category axis are all the same for every line and always 105 values as I said. Can anyone think of why one line might not be giving me the last segment? FYI, this is a flex 2 app and for several reasons, I cannot change that right now. Any help anyone can give will be useful (especially since this code is not open sourced and I cannot really dig into see what is going on behind the charting scenes). Thanks! -Jake
Re: [flexcoders] Charting Line Segments
Hmmm... at runtime, have you inspected getAllDataPoints? Does the first (or last) line segment simply not show up? Does the hit data point still trigger if you mouse over the approximate area where it should be rendering? I'm curious to hear your results from isolating the line series and seeing what that renders like. Brendan On Mon, Jun 28, 2010 at 3:37 PM, Jake Churchill reyna...@gmail.com wrote: I haven't isolated just that series. I'll try that. I was however, trying to figure out which methods to override to see that. Do you know which method to override to see the line segments? I overrode updateData and that seems to set the data but it looks correct. The rendered data cache has all the elements of the data provider. -Jake On Mon, Jun 28, 2010 at 3:32 PM, Brendan Meutzner bmeutz...@gmail.comwrote: Which LineSeries is affected? Have you isolated the line series on its own (don't add/load the others) and does it still occur? Have you tried creating a sub class from LineSeries and overriding the appropriate functions inside of it to try and trace out how each segment is loading? Brendan On Mon, Jun 28, 2010 at 3:18 PM, Jake Churchill reyna...@gmail.comwrote: I've run into an issue that for the life of me I can't seem to figure out. I've been working on this same problem for days and I keep hitting a wall. I have a Cartesian chart with several LineSeries and a PlotSeries. The vertical axis is numeric and the horizontal is a category axis. The value of the category axis is dates (category is used to avoid gaps for weekends because data is stock related and only exists on trading days). Every series has it's own dataprovider but the data is all similar. It looks similar to this: DATEVALUE: Date VALUE: numeric value PERCENTCHANGE: numeric value I have a custom line segment renderer for all line series. An example I'm looking at right now deals with several months of data. There are 105 data points in the data provider and therefore, 105 line segments passed to the set data() method in the line segment renderer. *Here's the issue:* There is one line that only gets 104 line segments. The data shows 105 data points in the same format as all the other lines but somewhere down the line a segment is being removed. I've gone over and over the data and the date values for the horizontal category axis are all the same for every line and always 105 values as I said. Can anyone think of why one line might not be giving me the last segment? FYI, this is a flex 2 app and for several reasons, I cannot change that right now. Any help anyone can give will be useful (especially since this code is not open sourced and I cannot really dig into see what is going on behind the charting scenes). Thanks! -Jake
Re: [flexcoders] Charting Line Segments
I can't override getAllDataPoints. I see that in Flex 3 but not 2. I assume that changed. When I isolated that series, I saw everything which made me search the data a bit more and there is a date/time generated by the server for the datevalue... The date was the same but the time was different for the last data point of this series only. This caused the category to be different and the point didn't show up. I missed it when looking over the thousands of data points. Stupid error, but thanks for the debugging tip. It's fixed now. -Jake On Mon, Jun 28, 2010 at 3:53 PM, Brendan Meutzner bmeutz...@gmail.comwrote: Hmmm... at runtime, have you inspected getAllDataPoints? Does the first (or last) line segment simply not show up? Does the hit data point still trigger if you mouse over the approximate area where it should be rendering? I'm curious to hear your results from isolating the line series and seeing what that renders like. Brendan On Mon, Jun 28, 2010 at 3:37 PM, Jake Churchill reyna...@gmail.comwrote: I haven't isolated just that series. I'll try that. I was however, trying to figure out which methods to override to see that. Do you know which method to override to see the line segments? I overrode updateData and that seems to set the data but it looks correct. The rendered data cache has all the elements of the data provider. -Jake On Mon, Jun 28, 2010 at 3:32 PM, Brendan Meutzner bmeutz...@gmail.comwrote: Which LineSeries is affected? Have you isolated the line series on its own (don't add/load the others) and does it still occur? Have you tried creating a sub class from LineSeries and overriding the appropriate functions inside of it to try and trace out how each segment is loading? Brendan On Mon, Jun 28, 2010 at 3:18 PM, Jake Churchill reyna...@gmail.comwrote: I've run into an issue that for the life of me I can't seem to figure out. I've been working on this same problem for days and I keep hitting a wall. I have a Cartesian chart with several LineSeries and a PlotSeries. The vertical axis is numeric and the horizontal is a category axis. The value of the category axis is dates (category is used to avoid gaps for weekends because data is stock related and only exists on trading days). Every series has it's own dataprovider but the data is all similar. It looks similar to this: DATEVALUE: Date VALUE: numeric value PERCENTCHANGE: numeric value I have a custom line segment renderer for all line series. An example I'm looking at right now deals with several months of data. There are 105 data points in the data provider and therefore, 105 line segments passed to the set data() method in the line segment renderer. *Here's the issue:* There is one line that only gets 104 line segments. The data shows 105 data points in the same format as all the other lines but somewhere down the line a segment is being removed. I've gone over and over the data and the date values for the horizontal category axis are all the same for every line and always 105 values as I said. Can anyone think of why one line might not be giving me the last segment? FYI, this is a flex 2 app and for several reasons, I cannot change that right now. Any help anyone can give will be useful (especially since this code is not open sourced and I cannot really dig into see what is going on behind the charting scenes). Thanks! -Jake
Re: [flexcoders] Charting Line Segments
It wouldn't be overriding getAllDataPoints, but rather just inspecting the array returned from it. Glad you got it working, Good stuff :-) On Mon, Jun 28, 2010 at 4:03 PM, Jake Churchill reyna...@gmail.com wrote: I can't override getAllDataPoints. I see that in Flex 3 but not 2. I assume that changed. When I isolated that series, I saw everything which made me search the data a bit more and there is a date/time generated by the server for the datevalue... The date was the same but the time was different for the last data point of this series only. This caused the category to be different and the point didn't show up. I missed it when looking over the thousands of data points. Stupid error, but thanks for the debugging tip. It's fixed now. -Jake On Mon, Jun 28, 2010 at 3:53 PM, Brendan Meutzner bmeutz...@gmail.comwrote: Hmmm... at runtime, have you inspected getAllDataPoints? Does the first (or last) line segment simply not show up? Does the hit data point still trigger if you mouse over the approximate area where it should be rendering? I'm curious to hear your results from isolating the line series and seeing what that renders like. Brendan On Mon, Jun 28, 2010 at 3:37 PM, Jake Churchill reyna...@gmail.comwrote: I haven't isolated just that series. I'll try that. I was however, trying to figure out which methods to override to see that. Do you know which method to override to see the line segments? I overrode updateData and that seems to set the data but it looks correct. The rendered data cache has all the elements of the data provider. -Jake On Mon, Jun 28, 2010 at 3:32 PM, Brendan Meutzner bmeutz...@gmail.comwrote: Which LineSeries is affected? Have you isolated the line series on its own (don't add/load the others) and does it still occur? Have you tried creating a sub class from LineSeries and overriding the appropriate functions inside of it to try and trace out how each segment is loading? Brendan On Mon, Jun 28, 2010 at 3:18 PM, Jake Churchill reyna...@gmail.comwrote: I've run into an issue that for the life of me I can't seem to figure out. I've been working on this same problem for days and I keep hitting a wall. I have a Cartesian chart with several LineSeries and a PlotSeries. The vertical axis is numeric and the horizontal is a category axis. The value of the category axis is dates (category is used to avoid gaps for weekends because data is stock related and only exists on trading days). Every series has it's own dataprovider but the data is all similar. It looks similar to this: DATEVALUE: Date VALUE: numeric value PERCENTCHANGE: numeric value I have a custom line segment renderer for all line series. An example I'm looking at right now deals with several months of data. There are 105 data points in the data provider and therefore, 105 line segments passed to the set data() method in the line segment renderer. *Here's the issue:* There is one line that only gets 104 line segments. The data shows 105 data points in the same format as all the other lines but somewhere down the line a segment is being removed. I've gone over and over the data and the date values for the horizontal category axis are all the same for every line and always 105 values as I said. Can anyone think of why one line might not be giving me the last segment? FYI, this is a flex 2 app and for several reasons, I cannot change that right now. Any help anyone can give will be useful (especially since this code is not open sourced and I cannot really dig into see what is going on behind the charting scenes). Thanks! -Jake
RE: [flexcoders] Charting questions
Add the following right after your code: mx:horizontalAxisRenderers mx:AxisRenderer axis= {monthLabels} labelRotation = 45 / /mx:horizontalAxisRenderers Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of inevative Sent: Friday, June 19, 2009 3:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting questions Hey peepsJust looking for some help with some charting related tasks. - Can you rotate the axis labels on a LineChart? All the examples i have used seem to work fine on BarChart but not on LineChart - Consider the following... mx:horizontalAxis mx:DateTimeAxis dataUnits=days interval=1 title=Date displayLocalTime=true parseFunction=parseDate id=monthLabels / /mx:horizontalAxis Is it possible to specify the number of axis points and labels? Using the DateTimeAxis is seems to just try and work out where to plot them but i want to specify at what intervals to put markers. - Is it possible to get the color value of a chart line or legend marker? I want to use the colors for something else and need them to match (other than specifying my own colors). Thanks for any help you can give.. Steve No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.80/2187 - Release Date: 06/19/09 06:53:00
Re: [flexcoders] Charting dataFunction issues
Can you try removing some of those series to isolate the problem? Also, can we see the console output from the trace statements in seriesDataFunction? Maybe the values are out of bounds? Some sample data would be useful too if that's possible. 2009/6/12 Jake Churchill j...@cfwebtools.com: Charting people, please help! I’m using examples right out of Adobe’s guides and several other guides I’ve found online on how to use a series dataFunction. The issue is that when I try to use the dataFunction, I get nothing. The Series doesn’t display at all. When I go back to using yField, everything is fine. Below is the MXML for the chart and series. The dataprovider is an ArrayCollection of VO’s with the following properties: public var ceiling:Number; public var costOfProd:Number; public var cropProfileID:Number; public var floor:Number; public var historyDt:Date; public var insGuarantee:Number; public var revenue:Number; Here is the dataFunction that I’m using (straight out of an example from http://flexdiary.blogspot.com/2008/08/charting-example.html) which I changed to work with my data: public function seriesDataFunction( series:Series, item:UserRevenueHistoryVO, fieldName:String ):Object { var returnValue:Object = null; switch( fieldName ) { case xValue: returnValue = item.historyDt; break; case yValue: returnValue = 25; break; case minValue: returnValue = item.ceiling; break; } trace(fieldName + + returnValue); return returnValue; } Finally, here’s the chart code. The Line Series work fine because I’m using yField. If I switch the AreaSeries to yField instead of dataFunction, they work as well but I need to do some work with the ceiling data in this case. mx:CartesianChart id = chart width = 100% height = 100% showDataTips = true dataProvider = {Model.instance.acUserRevenueHistory} mx:series mx:AreaSeries id = floorSeries showDataEffect = {seriesEffect} displayName = Floor form = step dataFunction = dataFunc mx:areaStroke mx:Stroke weight = 1 alpha = 100 color = 0x00 / /mx:areaStroke mx:areaFill mx:SolidColor color=0xE9E4C7 alpha=1 / /mx:areaFill /mx:AreaSeries mx:LineSeries id = revenueSeries showDataEffect = {seriesEffect} displayName = Actual Revenue form = curve yField = revenue mx:lineStroke mx:Stroke weight = 2 alpha = 100 color = 0x00 / /mx:lineStroke /mx:LineSeries mx:LineSeries id = costOfProductionSeries showDataEffect = {seriesEffect} displayName = Cost of Production yField = costOfProd mx:lineStroke mx:Stroke weight = 1 alpha = 100 color = 0x00 / /mx:lineStroke /mx:LineSeries mx:LineSeries id = insuranceGuaranteeSeries showDataEffect = {seriesEffect} displayName = Insurance Guarantee yField = insGuarantee
RE: [flexcoders] Charting dataFunction issues
Sorry, I meant to follow up on this yesterday. Thanks for your reply but I figured it out. I had the wrong type of horizontal axis applied so when I was returning an xField value it was actually drawing the chart off to the right somewhere. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sam Lai Sent: Friday, June 12, 2009 9:27 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting dataFunction issues Can you try removing some of those series to isolate the problem? Also, can we see the console output from the trace statements in seriesDataFunction? Maybe the values are out of bounds? Some sample data would be useful too if that's possible. 2009/6/12 Jake Churchill j...@cfwebtools.com: Charting people, please help! Im using examples right out of Adobes guides and several other guides Ive found online on how to use a series dataFunction. The issue is that when I try to use the dataFunction, I get nothing. The Series doesnt display at all. When I go back to using yField, everything is fine. Below is the MXML for the chart and series. The dataprovider is an ArrayCollection of VOs with the following properties: public var ceiling:Number; public var costOfProd:Number; public var cropProfileID:Number; public var floor:Number; public var historyDt:Date; public var insGuarantee:Number; public var revenue:Number; Here is the dataFunction that Im using (straight out of an example from http://flexdiary.blogspot.com/2008/08/charting-example.html) which I changed to work with my data: public function seriesDataFunction( series:Series, item:UserRevenueHistoryVO, fieldName:String ):Object { var returnValue:Object = null; switch( fieldName ) { case xValue: returnValue = item.historyDt; break; case yValue: returnValue = 25; break; case minValue: returnValue = item.ceiling; break; } trace(fieldName + + returnValue); return returnValue; } Finally, heres the chart code. The Line Series work fine because Im using yField. If I switch the AreaSeries to yField instead of dataFunction, they work as well but I need to do some work with the ceiling data in this case. mx:CartesianChart id = chart width = 100% height = 100% showDataTips = true dataProvider = {Model.instance.acUserRevenueHistory} mx:series mx:AreaSeries id = floorSeries showDataEffect = {seriesEffect} displayName = Floor form = step dataFunction = dataFunc mx:areaStroke mx:Stroke weight = 1 alpha = 100 color = 0x00 / /mx:areaStroke mx:areaFill mx:SolidColor color=0xE9E4C7 alpha=1 / /mx:areaFill /mx:AreaSeries mx:LineSeries id = revenueSeries showDataEffect = {seriesEffect} displayName = Actual Revenue form = curve yField = revenue mx:lineStroke mx:Stroke weight = 2 alpha = 100 color = 0x00 / /mx:lineStroke /mx:LineSeries mx:LineSeries id = costOfProductionSeries showDataEffect = {seriesEffect} displayName = Cost of Production yField = costOfProd mx:lineStroke
Re: [flexcoders] Charting: Adding a horizontal line
On Thursday 29 Jan 2009, flex_coders wrote: I'd like to add a few horizontal lines to my area chart, a solid line std devs away. is there a simple way to add a line to the chart indicating y = [some value] or rather do i need to need to Add another data set. programatically just draw the line? Have a google for 'data drawing canvas'. -- Tom Chiverton Helping to revolutionarily embrace internet eye-catching sticky technologies 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Charting 1 minute data over 1 year
Have you suggested a thumbnail slider solution à la Google Finance (say, like here: http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night )? We've implemented something similar, and it works quite well. I can't share our implementation, but the example I linked has source. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz Reply-To: flexcoders@yahoogroups.com To: Flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 11:04:42 +1300 Hi, I am trying to work out how best to produce a chart which allows a user to make sense of data logged every minute for up to 12 months (ie 524160 values). To complicate matters the graphs are are presented on a dashboard where the user can display many graphs at once - so we are not just displaying the one graph and the size of the graph will change depending on how many graphs are being displayed in the dashboard window. We are logging sensor data (temperature, current, vibration, humidity, wind speed etc). Client does not like a month, week, day, hour, minute drill down scenario - I tried that and it was rejected. He wants a line graph, but where we do have to average data would like to some idea of max and mins - maybe that can be done in point comment. Trouble is if we chart so many points then there are too many points for the mouse click to discern. Essentially the client would like to see the data always at maximum detail no matter what period is being looked at. I have read this http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large _data_sets, and am thinking that I will need to proceed in kind and to use an Image object and set BitmapData pixels directly - depending on how I decide to reimplement this thing. Of course I am limited by the number of pixels available along the x-axis for a given chart size. This is complicated as the client would like to zoom on the graph and also look at time slices. The client would also like to be able to see exceptions clearly on the graph - for example if there was a vibration spike. Also sometimes the sensor might not be operational so we need to see those breaks in the graph when no data was captured. All in all I am finding this a complicated requirement to unravel, as some of the requirements seem to be nonsensical - eg having a zoom - when the client always wants to see maximum detail??? So, I need to work out a design for this which will best meet the clients requirement and which flex can handle. Any comments and ideas are appreciated. I am working on this presently, so as I come up with ideas on how to proceed I will post them here. Cheers Mark
RE: [flexcoders] Charting 1 minute data over 1 year
Hi Maciek, Thanks for your response. Yes I have seen that example and I liked it. We still need to contend, though, with having 500,000 values to plot for the full graph. Using standard graphing that takes for ever to plot - in fact I could not get it to plot. 2000 values seems to the maximum number of points that can be plotted, or to be exact the number of pixels available on x-axis. So how can I take 500,000 points and : 1. Producre a graph that as closely as possible retains its shape? 2. Shows exceptional values If I were to massage the 500,000 points by taking sample of 250 points and averaging them, then I can miss important detail. I could use a vertical column graph with floating columns, where I plotted the line starting at min and ending at max for the plot point. Furthermore as the user used the slider to look at a smaller portion of the graph I would still want to plot at maximum pixel detail. That is if the user uses the slider to look at 1 month then that would allow me to plot points where each point was calculated from a smaller sample size. Cheers Mark -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf Of Maciek Sakrejda Sent: Friday, 30 January 2009 11:21 a.m. To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year Have you suggested a thumbnail slider solution à la Google Finance (say, like here: http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night )? We've implemented something similar, and it works quite well. I can't share our implementation, but the example I linked has source. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz Reply-To: flexcoders@yahoogroups.com To: Flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 11:04:42 +1300 Hi, I am trying to work out how best to produce a chart which allows a user to make sense of data logged every minute for up to 12 months (ie 524160 values). To complicate matters the graphs are are presented on a dashboard where the user can display many graphs at once - so we are not just displaying the one graph and the size of the graph will change depending on how many graphs are being displayed in the dashboard window. We are logging sensor data (temperature, current, vibration, humidity, wind speed etc). Client does not like a month, week, day, hour, minute drill down scenario - I tried that and it was rejected. He wants a line graph, but where we do have to average data would like to some idea of max and mins - maybe that can be done in point comment. Trouble is if we chart so many points then there are too many points for the mouse click to discern. Essentially the client would like to see the data always at maximum detail no matter what period is being looked at. I have read this http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large _data_sets, and am thinking that I will need to proceed in kind and to use an Image object and set BitmapData pixels directly - depending on how I decide to reimplement this thing. Of course I am limited by the number of pixels available along the x-axis for a given chart size. This is complicated as the client would like to zoom on the graph and also look at time slices. The client would also like to be able to see exceptions clearly on the graph - for example if there was a vibration spike. Also sometimes the sensor might not be operational so we need to see those breaks in the graph when no data was captured. All in all I am finding this a complicated requirement to unravel, as some of the requirements seem to be nonsensical - eg having a zoom - when the client always wants to see maximum detail??? So, I need to work out a design for this which will best meet the clients requirement and which flex can handle. Any comments and ideas are appreciated. I am working on this presently, so as I come up with ideas on how to proceed I will post them here. Cheers Mark
RE: [flexcoders] Charting 1 minute data over 1 year
How about, on the main graph, showing the raw data as limited by the slider, but on the slider, show points that average over some period of time, combined with a separate series for outlying points (those outside 1 or 2 standard deviations from the mean)? This gives you an overview of the general trends, a quick indication of outliers, and an ability to zoom in on any single section fairly easily. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 12:16:16 +1300 Hi Maciek, Thanks for your response. Yes I have seen that example and I liked it. We still need to contend, though, with having 500,000 values to plot for the full graph. Using standard graphing that takes for ever to plot - in fact I could not get it to plot. 2000 values seems to the maximum number of points that can be plotted, or to be exact the number of pixels available on x-axis. So how can I take 500,000 points and : 1. Producre a graph that as closely as possible retains its shape? 2. Shows exceptional values If I were to massage the 500,000 points by taking sample of 250 points and averaging them, then I can miss important detail. I could use a vertical column graph with floating columns, where I plotted the line starting at min and ending at max for the plot point. Furthermore as the user used the slider to look at a smaller portion of the graph I would still want to plot at maximum pixel detail. That is if the user uses the slider to look at 1 month then that would allow me to plot points where each point was calculated from a smaller sample size. Cheers Mark -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf Of Maciek Sakrejda Sent: Friday, 30 January 2009 11:21 a.m. To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year Have you suggested a thumbnail slider solution à la Google Finance (say, like here: http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night )? We've implemented something similar, and it works quite well. I can't share our implementation, but the example I linked has source. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz Reply-To: flexcoders@yahoogroups.com To: Flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 11:04:42 +1300 Hi, I am trying to work out how best to produce a chart which allows a user to make sense of data logged every minute for up to 12 months (ie 524160 values). To complicate matters the graphs are are presented on a dashboard where the user can display many graphs at once - so we are not just displaying the one graph and the size of the graph will change depending on how many graphs are being displayed in the dashboard window. We are logging sensor data (temperature, current, vibration, humidity, wind speed etc). Client does not like a month, week, day, hour, minute drill down scenario - I tried that and it was rejected. He wants a line graph, but where we do have to average data would like to some idea of max and mins - maybe that can be done in point comment. Trouble is if we chart so many points then there are too many points for the mouse click to discern. Essentially the client would like to see the data always at maximum detail no matter what period is being looked at. I have read this http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large _data_sets, and am thinking that I will need to proceed in kind and to use an Image object and set BitmapData pixels directly - depending on how I decide to reimplement this thing. Of course I am limited by the number of pixels available along the x-axis for a given chart size. This is complicated as the client would like to zoom on the graph and also look at time slices. The client would also like to be able to see exceptions clearly on the graph - for example if there was a vibration spike. Also sometimes the sensor might not be operational so we need to see those
Re: [flexcoders] Charting 1 minute data over 1 year
What if you aggregate your data by some amount (say the maximum resolution you can display on the x-axis), and then for each data point you plot the min, max, and average, kind of like the HLOCChart that's used to show stock data. That would let you see the average trend as well as identify any peaks or valleys that were out of the ordinary. So then the task involves being able to efficiently take 500,000 points and turn it into 2,000 aggregated points with min/max/avg. Or even just do 3 completely separate line series for the min, max, and avg. There's only so much information you can show in a single horizontal pixel, so there's simply no way to show all the data. But showing min/max/avg might get you the info you need. Doug On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda msakre...@truviso.comwrote: How about, on the main graph, showing the raw data as limited by the slider, but on the slider, show points that average over some period of time, combined with a separate series for outlying points (those outside 1 or 2 standard deviations from the mean)? This gives you an overview of the general trends, a quick indication of outliers, and an ability to zoom in on any single section fairly easily. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz mark63%40azurebell.co.nz Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 12:16:16 +1300 Hi Maciek, Thanks for your response. Yes I have seen that example and I liked it. We still need to contend, though, with having 500,000 values to plot for the full graph. Using standard graphing that takes for ever to plot - in fact I could not get it to plot. 2000 values seems to the maximum number of points that can be plotted, or to be exact the number of pixels available on x-axis. So how can I take 500,000 points and : 1. Producre a graph that as closely as possible retains its shape? 2. Shows exceptional values If I were to massage the 500,000 points by taking sample of 250 points and averaging them, then I can miss important detail. I could use a vertical column graph with floating columns, where I plotted the line starting at min and ending at max for the plot point. Furthermore as the user used the slider to look at a smaller portion of the graph I would still want to plot at maximum pixel detail. That is if the user uses the slider to look at 1 month then that would allow me to plot points where each point was calculated from a smaller sample size. Cheers Mark -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]On Behalf Of Maciek Sakrejda Sent: Friday, 30 January 2009 11:21 a.m. To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year Have you suggested a thumbnail slider solution à la Google Finance (say, like here: http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night)? We've implemented something similar, and it works quite well. I can't share our implementation, but the example I linked has source. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz mark63%40azurebell.co.nz Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: Flexcoders flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 11:04:42 +1300 Hi, I am trying to work out how best to produce a chart which allows a user to make sense of data logged every minute for up to 12 months (ie 524160 values). To complicate matters the graphs are are presented on a dashboard where the user can display many graphs at once - so we are not just displaying the one graph and the size of the graph will change depending on how many graphs are being displayed in the dashboard window. We are logging sensor data (temperature, current, vibration, humidity, wind speed etc). Client does not like a month, week, day, hour, minute drill down scenario - I tried that and it was rejected. He wants a line graph, but where we do have to average data would like to some idea of max and mins - maybe that can be done in point comment. Trouble is if we chart so many points then there are too many points for the mouse click to discern. Essentially the client would like to see the data always at maximum detail no matter what period is being looked at. I have read this http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large _data_sets, and am thinking that I will need to proceed in kind
RE: [flexcoders] Charting 1 minute data over 1 year
I like the idea of the separate series for the outlying points. With respect to the main graph showing raw data ...I am not sure that would be acceptable to the client. Depending on the range selected by the slider the main graph would still be limited by available x-axis pixels in terms of what it can display. At one extreme the user could user the slider to select the whole graph - that dataset is 500,000 points. We could limit the slider to the detail that can be displayed in the main graph. But that means that only a small slice can be viewed at any one time, and the added user problem of having to move two sliders to keep the slice small. I think if we went this way then when the slider is resposition I would need to look at the data population size for that and base on available x-axis pixels produce a new dataset to display the top graph. But I believe this would make the slider, slow and difficult to use, unless I allowed the sliders to be positioned and then the user clicked some button to generate the new graph. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf Of Maciek Sakrejda Sent: Friday, 30 January 2009 12:27 p.m. To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Charting 1 minute data over 1 year How about, on the main graph, showing the raw data as limited by the slider, but on the slider, show points that average over some period of time, combined with a separate series for outlying points (those outside 1 or 2 standard deviations from the mean)? This gives you an overview of the general trends, a quick indication of outliers, and an ability to zoom in on any single section fairly easily. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 12:16:16 +1300 Hi Maciek, Thanks for your response. Yes I have seen that example and I liked it. We still need to contend, though, with having 500,000 values to plot for the full graph. Using standard graphing that takes for ever to plot - in fact I could not get it to plot. 2000 values seems to the maximum number of points that can be plotted, or to be exact the number of pixels available on x-axis. So how can I take 500,000 points and : 1. Producre a graph that as closely as possible retains its shape? 2. Shows exceptional values If I were to massage the 500,000 points by taking sample of 250 points and averaging them, then I can miss important detail. I could use a vertical column graph with floating columns, where I plotted the line starting at min and ending at max for the plot point. Furthermore as the user used the slider to look at a smaller portion of the graph I would still want to plot at maximum pixel detail. That is if the user uses the slider to look at 1 month then that would allow me to plot points where each point was calculated from a smaller sample size. Cheers Mark -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf Of Maciek Sakrejda Sent: Friday, 30 January 2009 11:21 a.m. To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year Have you suggested a thumbnail slider solution à la Google Finance (say, like here: http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night )? We've implemented something similar, and it works quite well. I can't share our implementation, but the example I linked has source. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz Reply-To: flexcoders@yahoogroups.com To: Flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 11:04:42 +1300 Hi, I am trying to work out how best to produce a chart which allows a user to make sense of data logged every minute for up to 12 months (ie 524160 values). To complicate matters the graphs are are presented on a dashboard where the user can display many graphs at once - so we are not just displaying the one graph and the size of the graph will change depending on how many graphs are being displayed in the dashboard window. We are logging sensor data (temperature, current, vibration, humidity, wind speed etc). Client does not like a month, week, day, hour, minute drill down scenario - I tried that and it was rejected. He wants a line graph, but where we do have to average data would like to some idea of max and mins - maybe that can be done in point comment. Trouble is if we chart so many points
RE: [flexcoders] Charting 1 minute data over 1 year
Thanks Doug, Yes I have been thinking (the last hour) of using such a representation or alternatively of plotting a graph of floating columns, with each column starting at min and ending at max, combined with a line graph in a different colour showing the averages. BUT (and this is a big but) the client said he was not interested in min and max, but rather exceptional values. Although I have to take his requirements with a grain of salt sometimes it does pay to listen to him - he is the client! :) The exceptions may be a single solitary value or a series of values. So, if I were to grab the points that within each sample are 1 or 2 std deviations outside the normal then I wont always have these points - so they may just be the odd value. Hence using floating columns to display these seems to make sense. Mark -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf Of Doug McCune Sent: Friday, 30 January 2009 12:34 p.m. To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year What if you aggregate your data by some amount (say the maximum resolution you can display on the x-axis), and then for each data point you plot the min, max, and average, kind of like the HLOCChart that's used to show stock data. That would let you see the average trend as well as identify any peaks or valleys that were out of the ordinary. So then the task involves being able to efficiently take 500,000 points and turn it into 2,000 aggregated points with min/max/avg. Or even just do 3 completely separate line series for the min, max, and avg. There's only so much information you can show in a single horizontal pixel, so there's simply no way to show all the data. But showing min/max/avg might get you the info you need. Doug On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda msakre...@truviso.com wrote: How about, on the main graph, showing the raw data as limited by the slider, but on the slider, show points that average over some period of time, combined with a separate series for outlying points (those outside 1 or 2 standard deviations from the mean)? This gives you an overview of the general trends, a quick indication of outliers, and an ability to zoom in on any single section fairly easily. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 12:16:16 +1300 Hi Maciek, Thanks for your response. Yes I have seen that example and I liked it. We still need to contend, though, with having 500,000 values to plot for the full graph. Using standard graphing that takes for ever to plot - in fact I could not get it to plot. 2000 values seems to the maximum number of points that can be plotted, or to be exact the number of pixels available on x-axis. So how can I take 500,000 points and : 1. Producre a graph that as closely as possible retains its shape? 2. Shows exceptional values If I were to massage the 500,000 points by taking sample of 250 points and averaging them, then I can miss important detail. I could use a vertical column graph with floating columns, where I plotted the line starting at min and ending at max for the plot point. Furthermore as the user used the slider to look at a smaller portion of the graph I would still want to plot at maximum pixel detail. That is if the user uses the slider to look at 1 month then that would allow me to plot points where each point was calculated from a smaller sample size. Cheers Mark -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf Of Maciek Sakrejda Sent: Friday, 30 January 2009 11:21 a.m. To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year Have you suggested a thumbnail slider solution à la Google Finance (say, like here: http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night )? We've implemented something similar, and it works quite well. I can't share our implementation, but the example I linked has source. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz Reply-To: flexcoders@yahoogroups.com To: Flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 11:04:42 +1300 Hi, I am trying to work out how best to produce a chart which allows a user to make sense of data logged every minute for up
Re: [flexcoders] Charting 1 minute data over 1 year
Hey Mark, This might be out of the question due to client restrictions, but I'd be very interested in seeing a screenshot of the solution you come up with (even if you have to use some fake data to show us). It's an interesting data visualization problem and I think it would benefit many people here (or maybe just me) to see how you decided to solve it. So if after you figure out a workable solution you can share what you did and how well it worked, I'd be interested. Best of luck, Doug On Thu, Jan 29, 2009 at 4:12 PM, Mark Easton mar...@azurebell.co.nz wrote: Thanks Doug, Yes I have been thinking (the last hour) of using such a representation or alternatively of plotting a graph of floating columns, with each column starting at min and ending at max, combined with a line graph in a different colour showing the averages. BUT (and this is a big but) the client said he was not interested in min and max, but rather exceptional values. Although I have to take his requirements with a grain of salt sometimes it does pay to listen to him - he is the client! :) The exceptions may be a single solitary value or a series of values. So, if I were to grab the points that within each sample are 1 or 2 std deviations outside the normal then I wont always have these points - so they may just be the odd value. Hence using floating columns to display these seems to make sense. Mark -Original Message- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]*on Behalf Of *Doug McCune *Sent:* Friday, 30 January 2009 12:34 p.m. *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Charting 1 minute data over 1 year What if you aggregate your data by some amount (say the maximum resolution you can display on the x-axis), and then for each data point you plot the min, max, and average, kind of like the HLOCChart that's used to show stock data. That would let you see the average trend as well as identify any peaks or valleys that were out of the ordinary. So then the task involves being able to efficiently take 500,000 points and turn it into 2,000 aggregated points with min/max/avg. Or even just do 3 completely separate line series for the min, max, and avg. There's only so much information you can show in a single horizontal pixel, so there's simply no way to show all the data. But showing min/max/avg might get you the info you need. Doug On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda msakre...@truviso.comwrote: How about, on the main graph, showing the raw data as limited by the slider, but on the slider, show points that average over some period of time, combined with a separate series for outlying points (those outside 1 or 2 standard deviations from the mean)? This gives you an overview of the general trends, a quick indication of outliers, and an ability to zoom in on any single section fairly easily. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz mark63%40azurebell.co.nz Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 12:16:16 +1300 Hi Maciek, Thanks for your response. Yes I have seen that example and I liked it. We still need to contend, though, with having 500,000 values to plot for the full graph. Using standard graphing that takes for ever to plot - in fact I could not get it to plot. 2000 values seems to the maximum number of points that can be plotted, or to be exact the number of pixels available on x-axis. So how can I take 500,000 points and : 1. Producre a graph that as closely as possible retains its shape? 2. Shows exceptional values If I were to massage the 500,000 points by taking sample of 250 points and averaging them, then I can miss important detail. I could use a vertical column graph with floating columns, where I plotted the line starting at min and ending at max for the plot point. Furthermore as the user used the slider to look at a smaller portion of the graph I would still want to plot at maximum pixel detail. That is if the user uses the slider to look at 1 month then that would allow me to plot points where each point was calculated from a smaller sample size. Cheers Mark -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]On Behalf Of Maciek Sakrejda Sent: Friday, 30 January 2009 11:21 a.m. To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year Have you suggested a thumbnail slider solution à la Google Finance (say, like here: http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night)? We've implemented
RE: [flexcoders] Charting 1 minute data over 1 year
Definitely will do Doug. Its going to test my flex skills, but I hope to have done it by the end of next week. It is complicated in that we have a dashboard that allows the users to see many graphs for all the different sensors, contact inputs and actuators at the same time - and move them in to display groups (each display group has its own tab). I am taking the approach that these display group graphs will all be displayed for the last 24 hours or the last hour (switchable by the user). Then if the user wants to do further analysis he/she can select the graph to analyse it further and we will do that in a full size window. That is where we will apply what is discussed below. Graphing actuators and contact inputs is also interesting as they only have three values - Nan, 0 and 1. I will used a stepped line for those, but will still need to be massaging data depending on the sample size required to fit the data into the available x-axis pixels. In this case the client does not want the sampling to miss any state change activity. Obviously we cant average the sample data, so for this I am thinking I will plot the sample entry point and exit point. Then, in another series I will also plot the number of state changes in the sample. Then the user can slice using the slider to look at parts of the graph in more detail and thus be able to see exactly what the activity was. Thanks! -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf Of Doug McCune Sent: Friday, 30 January 2009 1:43 p.m. To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year Hey Mark, This might be out of the question due to client restrictions, but I'd be very interested in seeing a screenshot of the solution you come up with (even if you have to use some fake data to show us). It's an interesting data visualization problem and I think it would benefit many people here (or maybe just me) to see how you decided to solve it. So if after you figure out a workable solution you can share what you did and how well it worked, I'd be interested. Best of luck, Doug On Thu, Jan 29, 2009 at 4:12 PM, Mark Easton mar...@azurebell.co.nz wrote: Thanks Doug, Yes I have been thinking (the last hour) of using such a representation or alternatively of plotting a graph of floating columns, with each column starting at min and ending at max, combined with a line graph in a different colour showing the averages. BUT (and this is a big but) the client said he was not interested in min and max, but rather exceptional values. Although I have to take his requirements with a grain of salt sometimes it does pay to listen to him - he is the client! :) The exceptions may be a single solitary value or a series of values. So, if I were to grab the points that within each sample are 1 or 2 std deviations outside the normal then I wont always have these points - so they may just be the odd value. Hence using floating columns to display these seems to make sense. Mark -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf Of Doug McCune Sent: Friday, 30 January 2009 12:34 p.m. To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year What if you aggregate your data by some amount (say the maximum resolution you can display on the x-axis), and then for each data point you plot the min, max, and average, kind of like the HLOCChart that's used to show stock data. That would let you see the average trend as well as identify any peaks or valleys that were out of the ordinary. So then the task involves being able to efficiently take 500,000 points and turn it into 2,000 aggregated points with min/max/avg. Or even just do 3 completely separate line series for the min, max, and avg. There's only so much information you can show in a single horizontal pixel, so there's simply no way to show all the data. But showing min/max/avg might get you the info you need. Doug On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda msakre...@truviso.com wrote: How about, on the main graph, showing the raw data as limited by the slider, but on the slider, show points that average over some period of time, combined with a separate series for outlying points (those outside 1 or 2 standard deviations from the mean)? This gives you an overview of the general trends, a quick indication of outliers, and an ability to zoom in on any single section fairly easily. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com
RE: [flexcoders] Charting 1 minute data over 1 year
Greg, I really like that idea. Will factor it in to our design discussions here. Many thanks, Mark -Original Message- From: Gregory Kelley [mailto:flexcod...@yahoogroups.com]on Behalf Of Gregory Kelley Sent: Friday, 30 January 2009 5:47 p.m. To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Charting 1 minute data over 1 year Just a thought but if you are limited by pixels maybe you can make pixel represent a subset of data. Then if you can use that subset to test for outliers at certain deviations you color it differently then a red dot needs further review yellow dots are not that bad and blue dots are inconsequential. (hot - cold colors). Each dot would represent a plotable set of data. Greg From: flexcoders@yahoogroups.com on behalf of Mark Easton Sent: Thu 1/29/2009 7:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Charting 1 minute data over 1 year ? Definitely will do Doug. Its going to test my flex skills, but I hope to have done it by the end of next week. It is complicated in that we have a dashboard that allows the users to see many graphs for all the different sensors, contact inputs and actuators at the same time - and move them in to display groups (each display group has its own tab). I am taking the approach that these display group graphs will all be displayed for the last 24 hours or the last hour (switchable by the user). Then if the user wants to do further analysis he/she can select the graph to analyse it further and we will do that in a full size window. That is where we will apply what is discussed below. Graphing actuators and contact inputs is also interesting as they only have three values - Nan, 0 and 1. I will used a stepped line for those, but will still need to be massaging data depending on the sample size required to fit the data into the available x-axis pixels. In this case the client does not want the sampling to miss any state change activity. Obviously we cant average the sample data, so for this I am thinking I will plot the sample entry point and exit point. Then, in another series I will also plot the number of state changes in the sample. Then the user can slice using the slider to look at parts of the graph in more detail and thus be able to see exactly what the activity was. Thanks! -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf Of Doug McCune Sent: Friday, 30 January 2009 1:43 p.m. To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year Hey Mark, This might be out of the question due to client restrictions, but I'd be very interested in seeing a screenshot of the solution you come up with (even if you have to use some fake data to show us). It's an interesting data visualization problem and I think it would benefit many people here (or maybe just me) to see how you decided to solve it. So if after you figure out a workable solution you can share what you did and how well it worked, I'd be interested. Best of luck, Doug On Thu, Jan 29, 2009 at 4:12 PM, Mark Easton mar...@azurebell.co.nz mailto:mar...@azurebell.co.nz wrote: ? Thanks Doug, Yes I have been thinking (the last hour) of using such a representation or alternatively of plotting a graph of floating columns, with each column starting at min and ending at max, combined with a line graph in a different colour showing the averages. BUT (and this is a big but) the client said he was not interested in min and max, but rather exceptional values. Although I have to take his requirements with a grain of salt sometimes it does pay to listen to him - he is the client! :) The exceptions may be a single solitary value or a series of values. So, if I were to grab the points that within each sample are 1 or 2 std deviations outside the normal then I wont always have these points - so they may just be the odd value. Hence using floating columns to display these seems to make sense. Mark -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]On Behalf Of Doug McCune Sent: Friday, 30 January 2009 12:34 p.m. To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year What if you aggregate your data by some amount (say the maximum resolution you can display on the x-axis), and then for each data point you plot the min, max, and average, kind of like the HLOCChart that's used to show stock data. That would let you see the average trend as well as identify any peaks or valleys that were out of the ordinary. So then the task involves being able to efficiently take 500,000 points and turn it into 2,000 aggregated points with min/max/avg. Or even just do 3 completely separate line series
RE: [flexcoders] Charting puzzle?
In LD_minutes, you have a data point with used: 48060 ( 6000). When you set a max, values larger than that are not plotted (questionable, and a decision that makes issues like this really hard to diagnose, but not entirely crazy). -Maciek -Original Message- From: flexcoders@yahoogroups.com on behalf of Eric Dunn Sent: Wed 1/28/2009 9:21 AM To: flexcoders Subject: [flexcoders] Charting puzzle? I am trying to build a chart to display the Long Distance used out of total allocated minutes. I have a Bar Chart and an array. If I want to display the minutes used without showing the total minutes, everything is fine and dandy. But when I add the mx:LinearAxis maximum = 6000 line, the chart does not populate. What am I missing? Here is the code: [Bindable] public var LD_minutes:ArrayCollection = new ArrayCollection([ {longDistance:minutes Used, used:48060} ]); mx:Panel title=Bar Chart y=567 x=29 height=368 width=901 mx:BarChart id=myChart dataProvider={LD_minutes} showDataTips=true height=245 width=799 mx:verticalAxis mx:CategoryAxis dataProvider={LD_minutes} categoryField=longDistance / /mx:verticalAxis mx:horizontalAxis mx:LinearAxis maximum=6000/ /mx:horizontalAxis mx:series mx:BarSeries yField=longDistance xField=used displayName=minutes used/ /mx:series /mx:BarChart /mx:Panel Eric W Dunn Adaption Technologies 281-465-3326 ed...@adpt-tech.com winmail.dat
Re: [flexcoders] Charting puzzle?
you got to be frinkin kindding me... and extra zero .. I've been looking at this for almost 2 hours... one little fat finger.. an extra zero and nutso ... Thanks for the good eye... Eric W Dunn Adaption Technologies 281-465-3326 ed...@adpt-tech.com - Original Message - From: Maciek Sakrejda msakre...@truviso.com To: flexcoders@yahoogroups.com Sent: Wednesday, January 28, 2009 11:52:42 AM GMT -06:00 US/Canada Central Subject: RE: [flexcoders] Charting puzzle? In LD_minutes, you have a data point with used: 48060 ( 6000). When you set a max, values larger than that are not plotted (questionable, and a decision that makes issues like this really hard to diagnose, but not entirely crazy). -Maciek -Original Message- From: flexcoders@yahoogroups.com on behalf of Eric Dunn Sent: Wed 1/28/2009 9:21 AM To: flexcoders Subject: [flexcoders] Charting puzzle? I am trying to build a chart to display the Long Distance used out of total allocated minutes. I have a Bar Chart and an array. If I want to display the minutes used without showing the total minutes, everything is fine and dandy. But when I add the mx:LinearAxis maximum = 6000 line, the chart does not populate. What am I missing? Here is the code: [Bindable] public var LD_minutes:ArrayCollection = new ArrayCollection([ {longDistance:minutes Used, used:48060} ]); mx:Panel title=Bar Chart y=567 x=29 height=368 width=901 mx:BarChart id=myChart dataProvider={LD_minutes} showDataTips=true height=245 width=799 mx:verticalAxis mx:CategoryAxis dataProvider={LD_minutes} categoryField=longDistance / /mx:verticalAxis mx:horizontalAxis mx:LinearAxis maximum=6000/ /mx:horizontalAxis mx:series mx:BarSeries yField=longDistance xField=used displayName=minutes used/ /mx:series /mx:BarChart /mx:Panel Eric W Dunn Adaption Technologies 281-465-3326 ed...@adpt-tech.com
RE: [flexcoders] Charting - setting yField property for a PlotSeries when dataProvider is XML
I'm not sure how you're going to stipulate a yField that doesn't exist in the dataprovider. If you have control over the XML format, add the additional attribute to each datapoint item. If you don't, then you'll need to take what you're given and add the yVal attribute to each item. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wreedijk Sent: Friday, June 27, 2008 2:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting - setting yField property for a PlotSeries when dataProvider is XML I am trying to create a PlotChart with series (y is constant) from an XML object that is defined as follows: series yVal='Weight' dataPoint date='12/01/2004'/ dataPoint date='12/25/2004'/ dataPoint date='1/1/2005'/ dataPoint date='1/22/2005'/ /series I want the xField to be derived from the date attribute in the dataPoint - no problem. I want the yField to be based on the yVal attribute in the series (parent of the dataPoints) element. How can I do this? mx:PlotSeries dataProvider={weightSeries.dataPoint} xField=@date yField= ?? What do I put here ?? / There must be a way. Please help! Thanks THE FOLLOWING WORKS but I don't want to have to repeat the y value in every data point. series dataPoint date='12/01/2004' yVal='Weight'/ dataPoint date='12/25/2004' yVal='Weight'/ dataPoint date='1/1/2005' yVal='Weight'/ dataPoint date='1/22/2005' yVal='Weight'/ /series mx:PlotSeries dataProvider={weightSeries.dataPoint} xField=@date yField=@yVal / -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Charting: adjust y-axis range automatically when changing x-axis range
hi Iain, From my experience, i giving u a suggestion if you set the y- axis with min and max value, then there is no option to rearrange the y-axis range automatically. you need to write some action script to set the max value while scrolling if not it will automatically rearranged. Thank's Regards, Gunasekaran Sambandhan - Original Message From: imjackson84 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, 2 November, 2007 8:52:50 PM Subject: [flexcoders] Charting: adjust y-axis range automatically when changing x-axis range Hi, I have a stock market line chart with a CategoryAxis (representing dates) along the bottom and a LinearAxis up the side. My chart has the option of adjusting the date range, which is done by switching the category data provider for the x-axis, but keeping the actual line series data provider the same. However, when I change the x-axis range, the y-axis range remains unchanged, as the min and max are being determined from the entire series data provider. How can I adjust the y-axis range to match only what is currently visible on the graph? Thanks, Iain Forgot the famous last words? Access your message archive online at http://in.messenger.yahoo.com/webmessengerpromo.php
Re: [flexcoders] Charting: adjust y-axis range automatically when changing x-axis range
On Tuesday 06 Nov 2007, guna samba wrote: if you set the y- axis with min and max value, then there is no option to rearrange the y-axis range automatically. Setting them back to NaN works, doesn't it ? -- Tom Chiverton Helping to professionally target holistic customers 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 Solicitors Regulation Authority. 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Charting: adjust y-axis range automatically when changing x-axis range
I've not done exactly what you need before, but something similar by creating a subclass of LinearAxis and overriding the dataChanged method (IIRC, may possibly be update) and using this class as the vertical axis. In the override you can get hold of the DataDescription object of your data from the dataDescriptions array. This tells you the min and max values of the data, and you can then use them to set the maximum and minimum properties of the axis. The only worry is that the data descriptions may report the min and max of the whole data series in your scenario, in which case you may have to pass the date range into your axis class and dig through the data yourself :( HTH. Stephen On 2 Nov 2007, at 15:22, imjackson84 wrote: Hi, I have a stock market line chart with a CategoryAxis (representing dates) along the bottom and a LinearAxis up the side. My chart has the option of adjusting the date range, which is done by switching the category data provider for the x-axis, but keeping the actual line series data provider the same. However, when I change the x-axis range, the y-axis range remains unchanged, as the min and max are being determined from the entire series data provider. How can I adjust the y-axis range to match only what is currently visible on the graph? Thanks, Iain
RE: [flexcoders] [CHARTING COMPONENT] Issue in combining Interpolate effect and Chart type switch
One of the workarounds is to specify an hideDataEffect as well for each series. Thanks -Sunli From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent: Friday, June 15, 2007 7:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] [CHARTING COMPONENT] Issue in combining Interpolate effect and Chart type switch I am getting an actionscript error when I switch from clustered type to stacked type when an interpolate effect is defined as a showdataeffect. If I don't have any effect defined,the chart type switch works as a charm. See below the stack-trace and the source code. Any pointer or workaround is welcomed. TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::NumericAxis/filterCache()[C:\dev\flex_201_gmc\sd k\frameworks;mx\charts\chartClasses;NumericAxis.as:576] at mx.charts.series::ColumnSeries/mx.charts.series:ColumnSeries::updateFilt er() at mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::validateTr ansform()[C:\dev\flex_201_gmc\sdk\frameworks;mx\charts\chartClasses;Seri es.as:962] at mx.charts.chartClasses::Series/getRenderDataForTransition()[C:\dev\flex_ 201_gmc\sdk\frameworks;mx\charts\chartClasses;Series.as:1013] at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play() at mx.effects::EffectInstance/startEffect()[C:\dev\flex_201_borneo\sdk\fram eworks;mx\effects;EffectInstance.as:502] at mx.effects.effectClasses::ParallelInstance/play()[C:\dev\flex_201_borneo \sdk\frameworks;mx\effects\effectClasses;ParallelInstance.as:197] at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::adva nceEffectState()[C:\dev\flex_201_gmc\sdk\frameworks;mx\charts\chartClass es;ChartBase.as:1588] at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::upda teDisplayList()[C:\dev\flex_201_gmc\sdk\frameworks;mx\charts\chartClasse s;ChartBase.as:1294] at mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianC hart::updateDisplayList()[C:\dev\flex_201_gmc\sdk\frameworks;mx\charts\c hartClasses;CartesianChart.as:960] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_borneo\sdk\fr ameworks;mx\core;UIComponent.as:5823] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayLis t()[C:\dev\flex_201_borneo\sdk\frameworks;mx\managers;LayoutManager.as:6 00] ?xml version=1.0? !-- Simple example to demonstrate the ColumnChart and BarChart controls. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var medalsAC:ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Silver:39, Bronze: 29 }, { Country: China, Gold: 32, Silver:17, Bronze: 14 }, { Country: Russia, Gold: 27, Silver:27, Bronze: 38 } ]); private var medalsAC2:ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 15, Silver:29, Bronze: 19 }, { Country: China, Gold: 12, Silver:27, Bronze: 24 }, { Country: Russia, Gold: 17, Silver:17, Bronze: 18 } ]); ]] /mx:Script mx:SeriesInterpolate id=interpolateIn duration=1000/ mx:Panel title=ColumnChart and BarChart Controls Example height=100% width=100% layout=horizontal mx:VBox height=100% width=100% mx:HBox width=100% mx:Spacer width=100% / mx:RadioButton groupName=results label=Result 1 selected=true click=column.dataProvider=medalsAC;/ mx:RadioButton groupName=results label=Result 2 click=column.dataProvider=medalsAC2;/ mx:Spacer width=200 / mx:RadioButton groupName=chartType label=Stacked click=column.type='stacked'/ mx:RadioButton groupName=chartType label=Clustered selected=true click=column.type='clustered'/ mx:Spacer width=100% / /mx:HBox mx:HBox height=100% width=100% mx:ColumnChart id=column height=100% width=100% type=clustered paddingLeft=5 paddingRight=5 showDataTips=true dataProvider={medalsAC} mx:horizontalAxis mx:CategoryAxis categoryField=Country/ /mx:horizontalAxis mx:series mx:ColumnSeries xField=Country yField=Gold displayName=Gold showDataEffect={interpolateIn} / mx:ColumnSeries xField=Country yField=Silver displayName=Silver showDataEffect={interpolateIn} / mx:ColumnSeries xField=Country yField=Bronze displayName=Bronze showDataEffect={interpolateIn} / /mx:series /mx:ColumnChart mx:Legend dataProvider={column}/ /mx:HBox /mx:VBox /mx:Panel /mx:Application
Re: [flexcoders] Charting dataTransform.invertTransform() on DateTimeAxis
Thanks Sunil/Ely. That's what I ended up doing... Brendan On 5/24/07, Ely Greenfield [EMAIL PROTECTED] wrote: 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 -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] http://www.stretchmedia.ca
RE: [flexcoders] Charting dataTransform.invertTransform() on DateTimeAxis
Brendan, DateTimeAxis is a NumericAxis and unlike CategoryAxis will not return the index value; you could do something like this from the return value of invertTransform var d:Date = new Date; d.setTime(Number(obj)); //obj is the return value from invertTransform var str:String = d.toDateString(); -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: Thursday, May 24, 2007 12:52 PM 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] mailto:[EMAIL PROTECTED] http://www.stretchmedia.ca http://www.stretchmedia.ca
RE: [flexcoders] Charting dataTransform.invertTransform() on DateTimeAxis
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 image001.jpgimage002.jpg
Re: [flexcoders] Charting Wildly Varying Numbers in Flex
I find that charts aren't always the best way to express information. Why not provide a table with property values, at risk values, and percentage of property values at risk instead? Great site, btw. On 5/14/07, charlie.szymanski [EMAIL PROTECTED] wrote: I have an interesting issue with a mini charting application I am trying to create. You can see my current attempt here: http://ibiseye.com/?stormID=AT200403active=1season=2004wind=145name=Charleyzoom=5lat=26.3lng=-71.050001 and click Charley Synopsis Basically, we are using hurricane wind-fields and a giant database of all the property parcels in the state of Florida to calculate how much property value was at risk during a given hurricane (this is live during the season if a storm is forecasted or does go over Florida). The problem is that the numbers are exceptionally varying in range. If you look at the bars on that Flex Chart you'll notice we are using the Logarithmic scale . The reason we had to do this is that the all data (or even the data within the different categories if the 'all' data is removed) is usually hugely different in value. This difference is exasperated by differences in property types. What happens is you end up with a chart where the bars are barely visible for a number of the property types (which are even less visible if the chart is not scaled logarithmically for the all category). If you mouse over the current chart values, you'll get the actual dollar value of each bar. It's easy to see (especially in the Residential type) just how misleading the chart could be. They look almost the same, but the blue bar is actually 5x greater than the red one. Has anyone run into this issue before and do you all have any good ideas of how to get around it? Right now I'm not really even looking for code, but more of any creative solutions to displaying that information in a way that isn't misleading (which the current scale may be -- you have to remember how many old people live in Florida). Thanks for any insight, Charlie
Re: [flexcoders] Charting Wildly Varying Numbers in Flex
Adam Simon, Adam, thanks for the kind words about the site -- it's been a lot of work. Hopefully it'll do some good if a hurricane approaches us. As to your table idea, we may end up going that route. Last year we had a list of dollar values broken down by type (not quite as you suggested, but similar). The issue was that it was overwhelming to users. I suspect taking Simon's advice and rounding the numbers (You're right Simon, it is just spitting those numbers out of a calculation, and there is certainly a margin of error) may alleviate this issue. We were just hoping to do something graphical with the data this time around. The biggest problem I have with doing a pie chart is that some of the slices end up very, very tiny due to the huge difference in the Residential and other values. Also, the I'm reticent to remove the Total information (or hide it) because we'd love to provide a quick picture of what is actually at risk. Ideally it would be a percentage, but as mentioned above, those slices get very tiny. Thanks for both of your thoughts on the matter, I have a lot of thinking to do (and a lot of smarter people than I looking at the problem), so hopefully we'll come up with something graceful. Charlie - Original Message From: Adam Dorritie [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 15, 2007 9:00:14 AM Subject: Re: [flexcoders] Charting Wildly Varying Numbers in Flex I find that charts aren't always the best way to express information. Why not provide a table with property values, at risk values, and percentage of property values at risk instead? Great site, btw. On 5/14/07, charlie.szymanski charlie.szymanski@ yahoo.com wrote: I have an interesting issue with a mini charting application I am trying to create. You can see my current attempt here: http://ibiseye. com/?stormID= AT200403active=1season=2004wind=145name=Charleyzoom=5lat=26.3lng=-71.050 001 and click Charley Synopsis Basically, we are using hurricane wind-fields and a giant database of all the property parcels in the state of Florida to calculate how much property value was at risk during a given hurricane (this is live during the season if a storm is forecasted or does go over Florida). The problem is that the numbers are exceptionally varying in range. If you look at the bars on that Flex Chart you'll notice we are using the Logarithmic scale . The reason we had to do this is that the all data (or even the data within the different categories if the 'all' data is removed) is usually hugely different in value. This difference is exasperated by differences in property types. What happens is you end up with a chart where the bars are barely visible for a number of the property types (which are even less visible if the chart is not scaled logarithmically for the all category). If you mouse over the current chart values, you'll get the actual dollar value of each bar. It's easy to see (especially in the Residential type) just how misleading the chart could be. They look almost the same, but the blue bar is actually 5x greater than the red one. Has anyone run into this issue before and do you all have any good ideas of how to get around it? Right now I'm not really even looking for code, but more of any creative solutions to displaying that information in a way that isn't misleading (which the current scale may be -- you have to remember how many old people live in Florida). Thanks for any insight, Charlie !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li
Re: [flexcoders] Charting Wildly Varying Numbers in Flex
You could add up small items in a others item and drill down when clicking on it. See Eli's blog about drill down piecharts at www. quietlyscheming.com Cheers, Ralf. On 5/15/07, Charlie Szymanski [EMAIL PROTECTED] wrote: Adam Simon, Adam, thanks for the kind words about the site -- it's been a lot of work. Hopefully it'll do some good if a hurricane approaches us. As to your table idea, we may end up going that route. Last year we had a list of dollar values broken down by type (not quite as you suggested, but similar). The issue was that it was overwhelming to users. I suspect taking Simon's advice and rounding the numbers (You're right Simon, it is just spitting those numbers out of a calculation, and there is certainly a margin of error) may alleviate this issue. We were just hoping to do something graphical with the data this time around. The biggest problem I have with doing a pie chart is that some of the slices end up very, very tiny due to the huge difference in the Residential and other values. Also, the I'm reticent to remove the Total information (or hide it) because we'd love to provide a quick picture of what is actually at risk. Ideally it would be a percentage, but as mentioned above, those slices get very tiny. Thanks for both of your thoughts on the matter, I have a lot of thinking to do (and a lot of smarter people than I looking at the problem), so hopefully we'll come up with something graceful. Charlie - Original Message From: Adam Dorritie [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 15, 2007 9:00:14 AM Subject: Re: [flexcoders] Charting Wildly Varying Numbers in Flex I find that charts aren't always the best way to express information. Why not provide a table with property values, at risk values, and percentage of property values at risk instead? Great site, btw. On 5/14/07, charlie.szymanski charlie.szymanski@ yahoo.com[EMAIL PROTECTED] wrote: I have an interesting issue with a mini charting application I am trying to create. You can see my current attempt here: http://ibiseye. com/?stormID= AT200403active=1season=2004wind=145name=Charleyzoom=5lat=26.3lng=-71.050 001http://ibiseye.com/?stormID=AT200403active=1season=2004wind=145name=Charleyzoom=5lat=26.3lng=-71.050001 and click Charley Synopsis Basically, we are using hurricane wind-fields and a giant database of all the property parcels in the state of Florida to calculate how much property value was at risk during a given hurricane (this is live during the season if a storm is forecasted or does go over Florida). The problem is that the numbers are exceptionally varying in range. If you look at the bars on that Flex Chart you'll notice we are using the Logarithmic scale . The reason we had to do this is that the all data (or even the data within the different categories if the 'all' data is removed) is usually hugely different in value. This difference is exasperated by differences in property types. What happens is you end up with a chart where the bars are barely visible for a number of the property types (which are even less visible if the chart is not scaled logarithmically for the all category). If you mouse over the current chart values, you'll get the actual dollar value of each bar. It's easy to see (especially in the Residential type) just how misleading the chart could be. They look almost the same, but the blue bar is actually 5x greater than the red one. Has anyone run into this issue before and do you all have any good ideas of how to get around it? Right now I'm not really even looking for code, but more of any creative solutions to displaying that information in a way that isn't misleading (which the current scale may be -- you have to remember how many old people live in Florida). Thanks for any insight, Charlie -- Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.http://us.rd.yahoo.com/evt=48251/*http://smallbusiness.yahoo.com/webhosting/?p=PASSPORTPLUS -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
Re: [flexcoders] Charting Wildly Varying Numbers in Flex
Ralph, That may actually work. I'll give it a whirl sometime this week and see how it looks. Can't believe I didn't think of it before -- I guess that's what happens when you're buried deep in code for a month. Thanks, CS - Original Message From: Ralf Bokelberg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 15, 2007 2:54:57 PM Subject: Re: [flexcoders] Charting Wildly Varying Numbers in Flex You could add up small items in a others item and drill down when clicking on it. See Eli's blog about drill down piecharts at www. quietlyscheming. com Cheers, Ralf. On 5/15/07, Charlie Szymanski charlie.szymanski@ yahoo.com wrote: Adam Simon, Adam, thanks for the kind words about the site -- it's been a lot of work. Hopefully it'll do some good if a hurricane approaches us. As to your table idea, we may end up going that route. Last year we had a list of dollar values broken down by type (not quite as you suggested, but similar). The issue was that it was overwhelming to users. I suspect taking Simon's advice and rounding the numbers (You're right Simon, it is just spitting those numbers out of a calculation, and there is certainly a margin of error) may alleviate this issue. We were just hoping to do something graphical with the data this time around. The biggest problem I have with doing a pie chart is that some of the slices end up very, very tiny due to the huge difference in the Residential and other values. Also, the I'm reticent to remove the Total information (or hide it) because we'd love to provide a quick picture of what is actually at risk. Ideally it would be a percentage, but as mentioned above, those slices get very tiny. Thanks for both of your thoughts on the matter, I have a lot of thinking to do (and a lot of smarter people than I looking at the problem), so hopefully we'll come up with something graceful. Charlie - Original Message From: Adam Dorritie [EMAIL PROTECTED] com To: flexcoders@yahoogroups.com Sent: Tuesday, May 15, 2007 9:00:14 AM Subject: Re: [flexcoders] Charting Wildly Varying Numbers in Flex I find that charts aren't always the best way to express information. Why not provide a table with property values, at risk values, and percentage of property values at risk instead? Great site, btw. On 5/14/07, charlie.szymanski charlie.szymanski@ yahoo.com wrote: I have an interesting issue with a mini charting application I am trying to create. You can see my current attempt here: http://ibiseye. com/?stormID= AT200403active=1season=2004wind=145name=Charleyzoom=5lat=26.3lng=-71.050 001 and click Charley Synopsis Basically, we are using hurricane wind-fields and a giant database of all the property parcels in the state of Florida to calculate how much property value was at risk during a given hurricane (this is live during the season if a storm is forecasted or does go over Florida). The problem is that the numbers are exceptionally varying in range. If you look at the bars on that Flex Chart you'll notice we are using the Logarithmic scale . The reason we had to do this is that the all data (or even the data within the different categories if the 'all' data is removed) is usually hugely different in value. This difference is exasperated by differences in property types. What happens is you end up with a chart where the bars are barely visible for a number of the property types (which are even less visible if the chart is not scaled logarithmically for the all category). If you mouse over the current chart values, you'll get the actual dollar value of each bar. It's easy to see (especially in the Residential type) just how misleading the chart could be. They look almost the same, but the blue bar is actually 5x greater than the red one. Has anyone run into this issue before and do you all have any good ideas of how to get around it? Right now I'm not really even looking for code, but more of any creative solutions to displaying that information in a way that isn't misleading (which the current scale may be -- you have to remember how many old people live in Florida). Thanks for any insight, Charlie Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. -- Ralf Bokelberg ralf.bokelberg@ gmail.com Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35 !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height
RE: [flexcoders] Charting Components | Any Licensing Restrictions?
If it's a packaged application there's no licensing restriction. They cannot redistribute the charts.swc which would be used to compile new SWFs. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of greg h Sent: Monday, May 14, 2007 5:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Components | Any Licensing Restrictions? I have a question about whether any special licensing with Adobe is required for selling applications built with Flex Charting. I am asking on behalf of a client who is using Flex Builder with Charting Components. They are building a solution that they will be selling to customers as a packaged application. They have asked me if they will need a licensing agreement in order to distribute charts developed in Flex Builder. The application that the resulting charts will be packaged in will be deployed by their customers on the customers' networks. Any insights would be appreciated. g
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: [BULK] RE: [flexcoders] charting and predefined axis styles
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] charting stacked areas and unstacked lines on datetime x axis
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] charting and predefined axis styles
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] Charting - create a secondSeries with Actionscript 3.0 ???
a code post will help :) --- mgrayfmr [EMAIL PROTECTED] wrote: Hey Gang - Has anyone had any experience with dynamically adding a second series to a chart using actionscript 3.0 ? Using a LineChart object I have been dynamically creating new LineSeries under the linechart's series with no problem. I am not having luck adding a second series though. The data is fine, it just won't display a second series. To test, I added my secondSeries data to the primary series, and it displays (but realtive to the wrong Y axis, obviously). If anyone has any ideas, I would appreciate it. If I find a solution, I'll post it here as well. Thanks, Mike Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html
Re: [flexcoders] Charting - create a secondSeries with Actionscript 3.0 ???
Hey Mike, mx:CartesianChart id=chart dataProvider={_localChartData} secondDataProvider={_localChartData} series={_firstSeriesArray} secondSeries={_secondSeriesArray} mx:Script ![CDATA[ [Bindable] private var _firstSeriesArray:Array; [Bindable] private var _secondSeriesArray:Array; private function createSeries():void { _firstSeriesArray = new Array(); //LEFT AXIS var leftSeriesItem:ColumnSeries = new ColumnSeries(); leftSeriesItem.yField = yFieldName; leftSeriesItem.displayName = yFieldName; _firstSeriesArray[0] = leftSeriesItem; _secondSeriesArray = new Array(); var rightSeriesItem:LineSeries = new LineSeries(); rightSeriesItem.yField = yFieldName; rightSeriesItem.displayName = yFieldDisplayName; _secondSeriesArray[0] = rightSeriesItem; } ]] /mx:Script Perhaps you're missing the secondDataProvider property? Brendan On 2/23/07, leds usop [EMAIL PROTECTED] wrote: a code post will help :) --- mgrayfmr [EMAIL PROTECTED] mgrayfmr%40yahoo.com wrote: Hey Gang - Has anyone had any experience with dynamically adding a second series to a chart using actionscript 3.0 ? Using a LineChart object I have been dynamically creating new LineSeries under the linechart's series with no problem. I am not having luck adding a second series though. The data is fine, it just won't display a second series. To test, I added my secondSeries data to the primary series, and it displays (but realtive to the wrong Y axis, obviously). If anyone has any ideas, I would appreciate it. If I find a solution, I'll post it here as well. Thanks, Mike __ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] http://www.stretchmedia.ca
Re: [flexcoders] Charting Tooltips do not show ColumnSeries name
If I'm reading this correctly, looks like you need a custom function that will display the datatip. Look at this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute styleName=plain mx:Script ![CDATA[ import mx.charts.HitData; [Bindable] private var sampleData:Array = [{Month: Jan, CallsAnswered: 100, CallsAccepted: 120}, {Month: Feb, CallsAnswered: 90, CallsAccepted: 94}, {Month: Mar, CallsAnswered: 120, CallsAccepted: 124}, {Month: Apr, CallsAnswered: 80, CallsAccepted: 80}, {Month: Mai, CallsAnswered: 80, CallsAccepted: 81}, {Month: Jun, CallsAnswered: 90, CallsAccepted: 100}, {Month: Jul, CallsAnswered: 150, CallsAccepted: 160}, {Month: Aug, CallsAnswered: 170, CallsAccepted: 180}, {Month: Sep, CallsAnswered: 50, CallsAccepted: 50}, {Month: Oct, CallsAnswered: 120, CallsAccepted: 130}, {Month: Nov, CallsAnswered: 110, CallsAccepted: 110}, {Month: Dez, CallsAnswered: 100, CallsAccepted: 105}]; private function dataTipDetail(e:HitData): String { var s:String; var answered:String = e.item.CallsAnwered; var accepted:String = e.item.CallsAccepted; s = Month: + e.item.Month + \n + Calls Answered: + e.item.CallsAnswered + \n + Calls Accepted: + e.item.CallsAccepted; return s; } ]] /mx:Script mx:ColumnChart id=columnChart1 dataProvider={sampleData} showDataTips=true dataTipFunction=dataTipDetail mx:horizontalAxis mx:CategoryAxis dataProvider={sampleData} categoryField=Month / /mx:horizontalAxis mx:verticalAxis mx:LinearAxis title=Calls/ /mx:verticalAxis mx:series mx:Array mx:ColumnSeries yField=CallsAnswered name=Calls Answered/ mx:ColumnSeries yField=CallsAccepted name=Calls Accepted/ /mx:Array /mx:series /mx:ColumnChart /mx:Application Ralf Rottmann wrote: I have the following simple charting app: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute styleName=plain mx:Script ![CDATA[ [Bindable] var sampleData = [ {Month: Jan, CallsAnswered: 100, CallsAccepted: 120}, {Month: Feb, CallsAnswered: 90, CallsAccepted: 94}, {Month: Mar, CallsAnswered: 120, CallsAccepted: 124}, {Month: Apr, CallsAnswered: 80, CallsAccepted: 80}, {Month: Mai, CallsAnswered: 80, CallsAccepted: 81}, {Month: Jun, CallsAnswered: 90, CallsAccepted: 100}, {Month: Jul, CallsAnswered: 150, CallsAccepted: 160}, {Month: Aug, CallsAnswered: 170, CallsAccepted: 180}, {Month: Sep, CallsAnswered: 50, CallsAccepted: 50}, {Month: Oct, CallsAnswered: 120, CallsAccepted: 130}, {Month: Nov, CallsAnswered: 110, CallsAccepted: 110}, {Month: Dez, CallsAnswered: 100, CallsAccepted: 105} ] ]] /mx:Script mx:ColumnChart id=columnChart1 dataProvider={sampleData} showDataTips=true mx:horizontalAxis mx:CategoryAxis dataProvider={sampleData} categoryField=Month / /mx:horizontalAxis
RE: [flexcoders] Charting Tooltips do not show ColumnSeries name
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: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute styleName=plain mx:Script ![CDATA[ [Bindable] var sampleData = [ {Month: Jan, CallsAnswered: 100, CallsAccepted: 120}, {Month: Feb, CallsAnswered: 90, CallsAccepted: 94}, {Month: Mar, CallsAnswered: 120, CallsAccepted: 124}, {Month: Apr, CallsAnswered: 80, CallsAccepted: 80}, {Month: Mai, CallsAnswered: 80, CallsAccepted: 81}, {Month: Jun, CallsAnswered: 90, CallsAccepted: 100}, {Month: Jul, CallsAnswered: 150, CallsAccepted: 160}, {Month: Aug, CallsAnswered: 170, CallsAccepted: 180}, {Month: Sep, CallsAnswered: 50, CallsAccepted: 50}, {Month: Oct, CallsAnswered: 120, CallsAccepted: 130}, {Month: Nov, CallsAnswered: 110, CallsAccepted: 110}, {Month: Dez, CallsAnswered: 100, CallsAccepted: 105} ] ]] /mx:Script mx:ColumnChart id=columnChart1 dataProvider={sampleData} showDataTips=true mx:horizontalAxis mx:CategoryAxis dataProvider={sampleData} categoryField=Month / /mx:horizontalAxis mx:verticalAxis mx:LinearAxis title=Calls/ /mx:verticalAxis mx:series mx:Array mx:ColumnSeries yField=CallsAnswered name=Calls Answered /mx:ColumnSeries mx:ColumnSeries yField=CallsAccepted name=Calls Accepted /mx:ColumnSeries /mx:Array /mx:series /mx:ColumnChart /mx:Application However the names of the ColumnSeries (Calls Answered and Calls Accepted) are not shown in the data tips. Any hint?
Re: [flexcoders] charting trial banner
Doh. It has it right here at http://www.adobe.com/support/documentation/en/flex/2/install.html? /Modify flex-webapp-root//WEB-INF/flex/license.properties Restart server. Tom Sammons wrote: Related question: I bought FB with charting, and developing using fb I don't get the banner. And I know that if you compile flex on the fly on CF you are supposed to get the banner. But what about the people who don't want to use FB and want to generate code from CF, and have bought charting? Is there no way to rid yourself of the banner then? I haven't seen anything on entering the serial number at the server level. just wondering... Tom -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Charting Questions
To draw into the data area of the chart, you'll need to wite a custom chart element. See my numerous posts on the subject to this list, or some of the examples at http://www.quietlyscheming.com/ For the region of the chart...By default, a chart takes the space given to it by its parent, subtracts out the space needed for the optimal layout and size for the axis labels, and uses the remaining space for the data area. If you're seeing fluctuations in the space used by the data, it's most likely due to fluctuations in the range of your data...i.e., if it starts at 0-80, then goes to 0-120, it's going to take a little more space for the extra digit on the labels. The area used by the axes is called the 'gutter' in chart terminology. While the chart calculates these on its own by default, you can assign explicit values for some or all of the chart gutters. When you do that, the chart will do its best to fit the labels in the gutter sizes specified. Specify all four gutter size, and you've effectively locked in a size for the data area (given a fixed size for the whole chart). So checkout the gutterLeft, gutterTop, etc. styles. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of polonycjunk Sent: Thursday, November 30, 2006 7:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Questions Hi, I would like to add borders to the inside rectangular region of the charts. Would anyone know how to accomplish this task? I am able to modify the gridLines inside the chart, modify the thickness of the horizontal and vertical axis, but can't seem to find a way to put borders along the 4 axes. Also, how can you specify a fixed length of the rectangular region in the chart? It looks the size of this area fluctuates a tiny bit when working with real-time charts. Thanks for any input provided.
Re: [flexcoders] charting trial banner
On Wednesday 29 November 2006 17:51, Tom Sammons wrote: seen anything on entering the serial number at the server level. licence.properties :-) -- Tom Chiverton Helping to autoschediastically envisioneer proactive users 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] charting trial banner
On Monday 27 November 2006 21:17, Yiðit Boyar wrote: how can i get rid of the charting trial banner over my charts ? (my FB is not trial anymore) Did you purchase FB with charting, or just FB ? -- Tom Chiverton Helping to confidentially industrialize error-free schemas 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] charting trial banner
Related question: I bought FB with charting, and developing using fb I don't get the banner. And I know that if you compile flex on the fly on CF you are supposed to get the banner. But what about the people who don't want to use FB and want to generate code from CF, and have bought charting? Is there no way to rid yourself of the banner then? I haven't seen anything on entering the serial number at the server level. just wondering... Tom Tom Chiverton wrote: On Monday 27 November 2006 21:17, Yiðit Boyar wrote: how can i get rid of the charting trial banner over my charts ? (my FB is not trial anymore) Did you purchase FB with charting, or just FB ? -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Charting Trial stamp is stubborn
I think I fixed it by changing the source file (type a blank, or something), then hit Run and it should recompile.. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sönke Rohde Sent: Tuesday, November 14, 2006 6:23 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Charting Trial stamp is stubborn Hi, I think you should only clean the project (Menu-Project-clean) and rebuild it. Perhaps also a restart after cleaning. Cheers, Sönke _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Yiðit Boyar Sent: Monday, November 13, 2006 11:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting Trial stamp is stubborn i have the same problem but can not fix, but how can i recompile default mxml components? - Original Message From: Iko Knyphausen [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, October 17, 2006 11:20:16 PM Subject: RE: [flexcoders] Charting Trial stamp is stubborn Arghh...That was the right hint. I did hit the RUN button but because I hadnt changed the code, there was no recompile, ... ;-) Thanks Iko _ From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of Rachel Maxim Sent: Tuesday, October 17, 2006 11:37 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Charting Trial stamp is stubborn I got the same thing when I entered my license in the demo, but I think recompiling those MXML documents fixed it. R On 10/17/06, iko_knyphausen [EMAIL PROTECTED] net mailto:[EMAIL PROTECTED] wrote: Hi, just got and entered my license keys for Builder and Charting, but charts still display Charting Trial stamp. Manage Licenses shows both modules as valid commercial licenses. I did restart the IDE but still the same. What else do I need to get rid of the trial stamp? Thanks -Iko -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt sFAQ.txt Search Archives: http://www.mail- http://www.mail-archive.com/flexcoders%40yahoogroups.com archive.com/ flexcoders% 40yahoogroups. com Yahoo! Groups Links (Yahoo! ID required) mailto:flexcoders-fullfeat mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] .com
Re: [flexcoders] Charting Trial stamp is stubborn
I got the same thing when I entered my license in the demo, but I think recompiling those MXML documents fixed it. ROn 10/17/06, iko_knyphausen [EMAIL PROTECTED] wrote:Hi,just got and entered my license keys for Builder and Charting, but charts still display Charting Trial stamp. Manage Licenses showsboth modules as valid commercial licenses. I did restart the IDE butstill the same. What else do I need to get rid of the trial stamp? Thanks-Iko--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Charting Trial stamp is stubborn
Arghh...That was the right hint. I did hit the RUN button but because I hadnt changed the code, there was no recompile, ... ;-) Thanks Iko From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rachel Maxim Sent: Tuesday, October 17, 2006 11:37 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting Trial stamp is stubborn I got the same thing when I entered my license in the demo, but I think recompiling those MXML documents fixed it. R On 10/17/06, iko_knyphausen [EMAIL PROTECTED]net wrote: Hi, just got and entered my license keys for Builder and Charting, but charts still display Charting Trial stamp. Manage Licenses shows both modules as valid commercial licenses. I did restart the IDE but still the same. What else do I need to get rid of the trial stamp? Thanks -Iko -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto: flexcoders-digest@yahoogroups.com mailto:flexcoders-fullfeat[EMAIL PROTECTED].com * To unsubscribe from this group, send an email to: flexcoders-unsubscr[EMAIL PROTECTED]com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Charting Components w/in Repeater
Your (a) thought looks like a likely candidate. CategoryAxis objects don't inherit their dataprovider from the chart...you need to assign them explicitly. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Saturday, August 27, 2005 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Components w/in Repeater Importance: High I am unable to get the Charting Component to Work within a Repeater. Here is what I am doing: -- 1) The information being returned from Coldfusion is returned as a struct Result (object #2) .AUTHORCOUNT: 13 .RATEDCOUNT: 1 .GETRATINGSFEEDBACK (object #3) ...[0] (object #4) ...DELIVERY: 5 ...PAYMENT: 2 ...QUALITY: 4 ...R_ID: 14337 ...[1] (object #6) ...DELIVERY: 3 ...PAYMENT: 0 ...QUALITY: 4 ...R_ID: 2732 -- 2) I take this struct/object and convert it to an array of named objects: arrChart = []; for ( var i in event.result.GETRATINGSFEEDBACK ){ arrChart.push( {delivery:event.result.GETRATINGSFEEDBACK[i].DELIVERY , payment:event.result.GETRATINGSFEEDBACK[i].PAYMENT , quality:event.result.GETRATINGSFEEDBACK[i].QUALITY} ); } -- 3) Then, I populate the repeater's forms within the repeater: view.rptRatings.dataProvider = event.result.GETRATINGSFEEDBACK; -- 4) When the repeater fires each (creationComplete event), I pass the repeater's index to a function that attempts to set the current chart being created with the object (delivery, payment, quality) in the X position of the array initalized earlier. public function setChart ( index : Number ) : Void { var i = index view.rptRatings[i].idChart.dataProvider = arrChart[i]; // is is showing the right index. // arrChart[i].delivery is showing the right value } -- 5) Then, I rub Buddah's belly and attempt to create the chart, but nothing happens. ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:ratings=com.mydomain.source.view.profiles.ratings.*/ ratings:RatingsViewHelper id=ratingsViewHelper / mx:Repeater id=rptRatings !-- CHART -- mx:BarChart id=idChart width=100% height=100% type=stacked creationComplete=ratingsViewHelper.setChart( event.target.repeaterIndices[0] ) mx:verticalAxis mx:CategoryAxis name=Project Ratings categoryField=arrChart / /mx:verticalAxis mx:series mx:Array mx:BarSeries xField=delivery name=Delivery/ mx:BarSeries xField=payment name=Payment/ mx:BarSeries xField=quality name=Quality/ /mx:Array /mx:series /mx:BarChart /mx:Repeater /mx:VBox -- My only thoughts as to possible problems would center on: a) the categoryField has no object (strings or array of objects) being assigned to it. b) I am failing to reference the dataProvider(s) correctly. The categoryAxis throws an error when compiled if I assign it an ID, so I see no way to reference it programatically. Any assistance is welcome. Dave Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- 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! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~-
RE: [flexcoders] Charting Components w/in Repeater
OK, here's what I see from your code. Your vertical Axis is a CategoryAxis, with a categoryField but no dataProvider. That means it has no source for its categories, and thus won't show any categories. Which means your BarSeries won't show any bars, because there's no categories to map the bars too. Can you describe in a little more details what you want the final chart to look like? Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Monday, August 29, 2005 11:15 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting Components w/in Repeater Importance: High Hi Ely, I made some progress talking to the chart. It now shows a range up to number 2, so now I know I can work with it: But it still doesn't populate. Here are my code changes: ViewHelper: //-- --- public function setChart ( event : Object ) : Void { arrChart = []; arrChart.push( [ {y:5,delivery:2}, {y:5,payment:5}, {y:5,quality:5} ]) view.idChart[event.target.instanceIndex].dataProvider = arrChart; } MXML !-- CHART -- mx:BarChart id=idChart width=100% height=100% marginTop=10 type=stacked creationComplete=ratingsViewHelper.setChart( event ) mx:verticalAxis mx:CategoryAxis categoryField=y / /mx:verticalAxis mx:series mx:Array mx:BarSeries xField=delivery name=delivery/ mx:BarSeries xField=payment name=payment/ mx:BarSeries xField=quality name=quality/ /mx:Array /mx:series /mx:BarChart On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote: Your (a) thought looks like a likely candidate. CategoryAxis objects don't inherit their dataprovider from the chart...you need to assign them explicitly. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Saturday, August 27, 2005 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Components w/in Repeater Importance: High I am unable to get the Charting Component to Work within a Repeater. Here is what I am doing: -- -- -- 1) The information being returned from Coldfusion is returned as a struct Result (object #2) .AUTHORCOUNT: 13 .RATEDCOUNT: 1 .GETRATINGSFEEDBACK (object #3) ...[0] (object #4) ...DELIVERY: 5 ...PAYMENT: 2 ...QUALITY: 4 ...R_ID: 14337 ...[1] (object #6) ...DELIVERY: 3 ...PAYMENT: 0 ...QUALITY: 4 ...R_ID: 2732 -- -- -- 2) I take this struct/object and convert it to an array of named objects: arrChart = []; for ( var i in event.result.GETRATINGSFEEDBACK ){ arrChart.push( {delivery:event.result.GETRATINGSFEEDBACK[i].DELIVERY , payment:event.result.GETRATINGSFEEDBACK[i].PAYMENT , quality:event.result.GETRATINGSFEEDBACK[i].QUALITY} ); } -- -- -- 3) Then, I populate the repeater's forms within the repeater: view.rptRatings.dataProvider = event.result.GETRATINGSFEEDBACK; -- -- -- 4) When the repeater fires each (creationComplete event), I pass the repeater's index to a function that attempts to set the current chart being created with the object (delivery, payment, quality) in the X position of the array initalized earlier. public function setChart ( index : Number ) : Void { var i = index view.rptRatings[i].idChart.dataProvider = arrChart[i]; // is is showing the right index. // arrChart[i].delivery is showing the right value } -- -- -- 5) Then, I rub
Re: [flexcoders] Charting Components w/in Repeater
Hi Ely, I made some progress talking to the chart. It now shows a range up to number 2, so now I know I can work with it: But it still doesn't populate. Here are my code changes: ViewHelper: //- public function setChart ( event : Object ) : Void { arrChart = []; arrChart.push( [ {y:5,delivery:2}, {y:5,payment:5}, {y:5,quality:5} ]) view.idChart[event.target.instanceIndex].dataProvider = arrChart; } MXML !-- CHART -- mx:BarChart id=idChart width=100% height=100% marginTop=10 type=stacked creationComplete=ratingsViewHelper.setChart( event ) mx:verticalAxis mx:CategoryAxis categoryField=y / /mx:verticalAxis mx:series mx:Array mx:BarSeries xField=delivery name=delivery/ mx:BarSeries xField=payment name=payment/ mx:BarSeries xField=quality name=quality/ /mx:Array /mx:series /mx:BarChart On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote: Your (a) thought looks like a likely candidate. CategoryAxis objects don't inherit their dataprovider from the chart...you need to assign them explicitly. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Saturday, August 27, 2005 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Components w/in Repeater Importance: High I am unable to get the Charting Component to Work within a Repeater. Here is what I am doing: -- 1) The information being returned from Coldfusion is returned as a struct Result (object #2) .AUTHORCOUNT: 13 .RATEDCOUNT: 1 .GETRATINGSFEEDBACK (object #3) ...[0] (object #4) ...DELIVERY: 5 ...PAYMENT: 2 ...QUALITY: 4 ...R_ID: 14337 ...[1] (object #6) ...DELIVERY: 3 ...PAYMENT: 0 ...QUALITY: 4 ...R_ID: 2732 -- 2) I take this struct/object and convert it to an array of named objects: arrChart = []; for ( var i in event.result.GETRATINGSFEEDBACK ){ arrChart.push( {delivery:event.result.GETRATINGSFEEDBACK[i].DELIVERY , payment:event.result.GETRATINGSFEEDBACK[i].PAYMENT , quality:event.result.GETRATINGSFEEDBACK[i].QUALITY} ); } -- 3) Then, I populate the repeater's forms within the repeater: view.rptRatings.dataProvider = event.result.GETRATINGSFEEDBACK; -- 4) When the repeater fires each (creationComplete event), I pass the repeater's index to a function that attempts to set the current chart being created with the object (delivery, payment, quality) in the X position of the array initalized earlier. public function setChart ( index : Number ) : Void { var i = index view.rptRatings[i].idChart.dataProvider = arrChart[i]; // is is showing the right index. // arrChart[i].delivery is showing the right value } -- 5) Then, I rub Buddah's belly and attempt to create the chart, but nothing happens. ?xml version=1.0 encoding=utf-8?
Re: [flexcoders] Charting Components w/in Repeater
Hi Ely, The final bar chart should be a comparison of a customer's Ratings. Customers are rated 1-5. 1 being poor. 5 being the best. So the chart should be something like: x: RATING FOR CATEGORY (delivery, quality, payment) y: RATING BY VALUE (1-5) Since I am using a repeater, I am clueless about how to access the dataProvider of the CatagoryAxis as well as the dataProivder of the chart. I can see how I would communiate with the chart, but not the axis. On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote: OK, here's what I see from your code. Your vertical Axis is a CategoryAxis, with a categoryField but no dataProvider. That means it has no source for its categories, and thus won't show any categories. Which means your BarSeries won't show any bars, because there's no categories to map the bars too. Can you describe in a little more details what you want the final chart to look like? Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Monday, August 29, 2005 11:15 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting Components w/in Repeater Importance: High Hi Ely, I made some progress talking to the chart. It now shows a range up to number 2, so now I know I can work with it: But it still doesn't populate. Here are my code changes: ViewHelper: //-- --- public function setChart ( event : Object ) : Void { arrChart = []; arrChart.push( [ {y:5,delivery:2}, {y:5,payment:5}, {y:5,quality:5} ]) view.idChart[event.target.instanceIndex].dataProvider = arrChart; } MXML !-- CHART -- mx:BarChart id=idChart width=100% height=100% marginTop=10 type=stacked creationComplete=ratingsViewHelper.setChart( event ) mx:verticalAxis mx:CategoryAxis categoryField=y / /mx:verticalAxis mx:series mx:Array mx:BarSeries xField=delivery name=delivery/ mx:BarSeries xField=payment name=payment/ mx:BarSeries xField=quality name=quality/ /mx:Array /mx:series /mx:BarChart On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote: Your (a) thought looks like a likely candidate. CategoryAxis objects don't inherit their dataprovider from the chart...you need to assign them explicitly. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Saturday, August 27, 2005 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Components w/in Repeater Importance: High I am unable to get the Charting Component to Work within a Repeater. Here is what I am doing: -- -- -- 1) The information being returned from Coldfusion is returned as a struct Result (object #2) .AUTHORCOUNT: 13 .RATEDCOUNT: 1 .GETRATINGSFEEDBACK (object #3) ...[0] (object #4) ...DELIVERY: 5 ...PAYMENT: 2 ...QUALITY: 4 ...R_ID: 14337 ...[1] (object #6) ...DELIVERY: 3 ...PAYMENT: 0 ...QUALITY: 4 ...R_ID: 2732 -- -- -- 2) I take this struct/object and convert it to an array of named objects: arrChart = []; for ( var i in event.result.GETRATINGSFEEDBACK ){ arrChart.push( {delivery:event.result.GETRATINGSFEEDBACK[i].DELIVERY , payment:event.result.GETRATINGSFEEDBACK[i].PAYMENT , quality:event.result.GETRATINGSFEEDBACK[i].QUALITY} ); } -- -- -- 3) Then, I populate the repeater's forms within the repeater: view.rptRatings.dataProvider = event.result.GETRATINGSFEEDBACK; -- -- -- 4) When the repeater fires each (creationComplete event), I pass the repeater's index to a function that attempts to set the current chart
RE: [flexcoders] Charting Components w/in Repeater
Hmmm...based on that description... 1) if your horizontal axis is the category, and your vertical axis is the value, It sounds like you want vertical bars, not horizontal ones. I imagine you want a ColumnChart, not a BarChart. 2) To access an axis (hehe), you would do something like: view.idChart[event.target.instanceIndex].horizontalAxis.dataProvider = ; Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Monday, August 29, 2005 12:09 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting Components w/in Repeater Importance: High Hi Ely, The final bar chart should be a comparison of a customer's Ratings. Customers are rated 1-5. 1 being poor. 5 being the best. So the chart should be something like: x: RATING FOR CATEGORY (delivery, quality, payment) y: RATING BY VALUE (1-5) Since I am using a repeater, I am clueless about how to access the dataProvider of the CatagoryAxis as well as the dataProivder of the chart. I can see how I would communiate with the chart, but not the axis. On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote: OK, here's what I see from your code. Your vertical Axis is a CategoryAxis, with a categoryField but no dataProvider. That means it has no source for its categories, and thus won't show any categories. Which means your BarSeries won't show any bars, because there's no categories to map the bars too. Can you describe in a little more details what you want the final chart to look like? Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Monday, August 29, 2005 11:15 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting Components w/in Repeater Importance: High Hi Ely, I made some progress talking to the chart. It now shows a range up to number 2, so now I know I can work with it: But it still doesn't populate. Here are my code changes: ViewHelper: // -- --- public function setChart ( event : Object ) : Void { arrChart = []; arrChart.push( [ {y:5,delivery:2}, {y:5,payment:5}, {y:5,quality:5} ]) view.idChart[event.target.instanceIndex].dataProvider = arrChart; } MXML !-- CHART -- mx:BarChart id=idChart width=100% height=100% marginTop=10 type=stacked creationComplete=ratingsViewHelper.setChart( event ) mx:verticalAxis mx:CategoryAxis categoryField=y / /mx:verticalAxis mx:series mx:Array mx:BarSeries xField=delivery name=delivery/ mx:BarSeries xField=payment name=payment/ mx:BarSeries xField=quality name=quality/ /mx:Array /mx:series /mx:BarChart On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote: Your (a) thought looks like a likely candidate. CategoryAxis objects don't inherit their dataprovider from the chart...you need to assign them explicitly. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Saturday, August 27, 2005 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Components w/in Repeater Importance: High I am unable to get the Charting Component to Work within a Repeater. Here is what I am doing: -- -- -- 1) The information being returned from Coldfusion is returned as a struct Result (object #2) .AUTHORCOUNT: 13 .RATEDCOUNT: 1 .GETRATINGSFEEDBACK (object #3) ...[0] (object #4) ...DELIVERY: 5 ...PAYMENT: 2 ...QUALITY: 4 ...R_ID: 14337 ...[1] (object #6) ...DELIVERY: 3 ...PAYMENT: 0 ...QUALITY: 4 ...R_ID: 2732 -- -- -- 2) I take this struct/object and convert it to an array of named objects: arrChart = []; for ( var i in event.result.GETRATINGSFEEDBACK ){ arrChart.push( {delivery:event.result.GETRATINGSFEEDBACK[i].DELIVERY
Re: [flexcoders] Charting Components w/in Repeater
Should I reference the DataProvider of the: CategoryAxis or verticalAxis/HorizontalAxis On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote: Hmmm...based on that description... 1) if your horizontal axis is the category, and your vertical axis is the value, It sounds like you want vertical bars, not horizontal ones. I imagine you want a ColumnChart, not a BarChart. 2) To access an axis (hehe), you would do something like: view.idChart[event.target.instanceIndex].horizontalAxis.dataProvider = ; Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Monday, August 29, 2005 12:09 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting Components w/in Repeater Importance: High Hi Ely, The final bar chart should be a comparison of a customer's Ratings. Customers are rated 1-5. 1 being poor. 5 being the best. So the chart should be something like: x: RATING FOR CATEGORY (delivery, quality, payment) y: RATING BY VALUE (1-5) Since I am using a repeater, I am clueless about how to access the dataProvider of the CatagoryAxis as well as the dataProivder of the chart. I can see how I would communiate with the chart, but not the axis. On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote: OK, here's what I see from your code. Your vertical Axis is a CategoryAxis, with a categoryField but no dataProvider. That means it has no source for its categories, and thus won't show any categories. Which means your BarSeries won't show any bars, because there's no categories to map the bars too. Can you describe in a little more details what you want the final chart to look like? Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Monday, August 29, 2005 11:15 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting Components w/in Repeater Importance: High Hi Ely, I made some progress talking to the chart. It now shows a range up to number 2, so now I know I can work with it: But it still doesn't populate. Here are my code changes: ViewHelper: // -- --- public function setChart ( event : Object ) : Void { arrChart = []; arrChart.push( [ {y:5,delivery:2}, {y:5,payment:5}, {y:5,quality:5} ]) view.idChart[event.target.instanceIndex].dataProvider = arrChart; } MXML !-- CHART -- mx:BarChart id=idChart width=100% height=100% marginTop=10 type=stacked creationComplete=ratingsViewHelper.setChart( event ) mx:verticalAxis mx:CategoryAxis categoryField=y / /mx:verticalAxis mx:series mx:Array mx:BarSeries xField=delivery name=delivery/ mx:BarSeries xField=payment name=payment/ mx:BarSeries xField=quality name=quality/ /mx:Array /mx:series /mx:BarChart On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote: Your (a) thought looks like a likely candidate. CategoryAxis objects don't inherit their dataprovider from the chart...you need to assign them explicitly. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhler Sent: Saturday, August 27, 2005 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Components w/in Repeater Importance: High I am unable to get the Charting Component to Work within a Repeater. Here is what I am doing: -- -- -- 1) The information being returned from Coldfusion is returned as a struct Result (object #2) .AUTHORCOUNT: 13 .RATEDCOUNT: 1 .GETRATINGSFEEDBACK (object #3) ...[0] (object #4) ...DELIVERY: 5 ...PAYMENT: 2 ...QUALITY: 4 ...R_ID: 14337 ...[1] (object #6) ...DELIVERY: 3 ...PAYMENT: 0 ...QUALITY: 4 ...R_ID: 2732
RE: [flexcoders] Charting
What if you concatenated the quarter arrays together and then did something like xField: year yField: revenue and then your categoryField can be quarter? Sorry, not a chart expert here. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Wednesday, June 15, 2005 8:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting All of the macromedia examples are using xml for their datasource and then hard coding the node name into the column series. Example: XML: data result month=Jan-04 average=203443 apple224254/apple orange221819/orange banana164256/banana /result result month=Feb-04 average=180365 apple191012/apple orange217965/orange banana132120/banana /result /data Column Series: mx:series mx:Array mx:ColumnSeries yField=apple name=Apple/ mx:ColumnSeries yField=orange name=Orange/ mx:ColumnSeries yField=banana name=Banana/ /mx:Array /mx:series Is there anyway to use a dataprovider specific to the ColumnSeries Array or wrap the ColumnSeries tag with a repeater ? I can't seem to get either to work. My data consists of an array of year objects with a sub array of quarter objects. Object FiscalYear: year:String revenue:Number: 10 Array: quarters Object Quarter: year:String: quarter:String revenue:Number I want to have a grouped chart with a grouping for each year that has 4 columns representing each quarter. Rich Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Charting
Thank you Matt. I guess I missed your previous post. Rich On 5/11/05, Matt Chotin [EMAIL PROTECTED] wrote: I sent this out a few weeks ago I think, different subject: This was data.xml I think in drilldown: list month name=Jan-04 total=400263 average=80052 region name=APAC value=46130/ region name=Europe value=106976/ region name=Japan value=79554/ region name=Latin America value=39252/ region name=North America value=128351/ /month month name=Feb-04 total=379145 average=75829 region name=APAC value=70324/ region name=Europe value=88912/ region name=Japan value=69677/ region name=Latin America value=59428/ region name=North America value=90804/ /month month name=Mar-04 total=389687 average=77937 region name=APAC value=60431/ region name=Europe value=140982/ region name=Japan value=58196/ region name=Latin America value=33373/ region name=North America value=96705/ /month month name=Apr-04 total=460329 average=92065 region name=APAC value=78969/ region name=Europe value=85885/ region name=Japan value=78107/ region name=Latin America value=65796/ region name=North America value=151572/ /month month name=May-04 total=351014 average=70202 region name=APAC value=64069/ region name=Europe value=82415/ region name=Japan value=96397/ region name=Latin America value=44627/ region name=North America value=63506/ /month month name=Jun-04 total=384855 average=76971 region name=APAC value=55331/ region name=Europe value=113196/ region name=Japan value=55371/ region name=Latin America value=58323/ region name=North America value=102634/ /month month name=Jul-04 total=335192 average=67038 region name=APAC value=39445/ region name=Europe value=110750/ region name=Japan value=73722/ region name=Latin America value=50595/ region name=North America value=60680/ /month month name=Aug-04 total=393654 average=78730 region name=APAC value=44801/ region name=Europe value=98806/ region name=Japan value=93673/ region name=Latin America value=50636/ region name=North America value=105738/ /month month name=Sep-04 total=472554 average=94510 region name=APAC value=61134/ region name=Europe value=136467/ region name=Japan value=93624/ region name=Latin America value=32293/ region name=North America value=149036/ /month month name=Oct-04 total=324299 average=64859 region name=APAC value=32078/ region name=Europe value=85420/ region name=Japan value=80483/ region name=Latin America value=64390/ region name=North America value=61928/ /month month name=Nov-04 total=415403 average=83080 region name=APAC value=58832/ region name=Europe value=143128/ region name=Japan value=64295/ region name=Latin America value=58261/ region name=North America value=90887/ /month month name=Dec-04 total=386089 average=77217 region name=APAC value=80555/ region name=Europe value=118981/ region name=Japan value=87520/ region name=Latin America value=27154/ region name=North America value=71879/ /month /list This is statedata.xml: data month name=Jan-03 Alabama4/Alabama Alaska35000/Alaska Arizona67000/Arizona Arkansas39000/Arkansas California128000/California Colorado67000/Colorado Connecticut64000/Connecticut Delaware22000/Delaware Florida8/Florida Georgia107000/Georgia Hawaii5/Hawaii Idaho49000/Idaho Illinois47000/Illinois Indiana52000/Indiana Iowa66000/Iowa Kansas22000/Kansas Kentucky58000/Kentucky Louisiana57000/Louisiana Maine57000/Maine Maryland44000/Maryland Massachusetts39000/Massachusetts Michigan62000/Michigan Minnesota43000/Minnesota
RE: [flexcoders] Charting
I would like to see those also. let me know when they are up if you could please.. Craig Matt Chotin [EMAIL PROTECTED] wrote: I mailed Christophe to see if he can update it. Unfortunately they changed the passwords on that machine so I cant grab the data. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 6:54 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Charting Thats nice but I really want to see the structure of the xml filesused in the examples at macromedia.com. Anyone from mm have these ?Rich__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Charting
Thats nice but I really want to see the structure of the xml files used in the examples at macromedia.com. Anyone from mm have these ? Rich On 4/19/05, Dzafer [EMAIL PROTECTED] wrote: You have here a good example of dynamic charting: http://coenraets.com/viewarticle.jsp?articleId=81 Dzafer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Tuesday, April 19, 2005 2:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting I have been looking at the sample charts at http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml and noticed that the xml used for the Misc Techniques and Examples is not posted. Can anyone point me to these xml files? Rich Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Charting
Rich, I cannot answer your question, but I have a couple of charting examples and post the XML as well. Feel free to poke around http://www.flexauthority.com/samplesIndex.cfm Jeff http://www.flexauthority.com - Original Message - From: Rich Tretola [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, April 20, 2005 6:54 AM Subject: Re: [flexcoders] Charting Thats nice but I really want to see the structure of the xml files used in the examples at macromedia.com. Anyone from mm have these ? Rich On 4/19/05, Dzafer [EMAIL PROTECTED] wrote: You have here a good example of dynamic charting: http://coenraets.com/viewarticle.jsp?articleId=81 Dzafer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Tuesday, April 19, 2005 2:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting I have been looking at the sample charts at http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml and noticed that the xml used for the Misc Techniques and Examples is not posted. Can anyone point me to these xml files? Rich Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Charting
I mailed Christophe to see if he can update it. Unfortunately they changed the passwords on that machine so I cant grab the data. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 6:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting Thats nice but I really want to see the structure of the xml files used in the examples at macromedia.com. Anyone from mm have these ? Rich Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Charting
You have here a good example of dynamic charting: http://coenraets.com/viewarticle.jsp?articleId=81 Dzafer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Tuesday, April 19, 2005 2:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting I have been looking at the sample charts at http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml and noticed that the xml used for the Misc Techniques and Examples is not posted. Can anyone point me to these xml files? Rich Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.