[flexcoders] Re: Bubble charts with only one bubble
Try overriding the protected function guardMinMax in NumericAxis, which is returning an array [min, max]. When min and max are equal it just returns [0, 100], so just try returning [max - 100, max + 100] in the overridden function, it should work. -Sunil --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: What happens if you replace the radiusAxis with a LinearAxis with baseAtZero =true? i.e., try a BubbleChart configured like this: BubbleChart radiusAxis LinearAxis / /radiusAxis Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gaurav1146 Sent: Friday, April 13, 2007 12:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Bubble charts with only one bubble I did face this issue in my application which I had mentioned in the post titled Bubble Charts (size of the bubble). I presumed that it was due to some error on my part in slicing the ArrayCollection with the slider movement which was causing this to happen. I have not investigated it completely but now that you mention I think there might be some issue with display of a single bubble on the chart. Regards, Gaurav --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , simonjpalmer simonjpalmer@ wrote: Has anyone experienced the problem of a bubble chart with a single bubble not showing that bubble? If I add a second bubble the pair appear, if I remove one of them they both disappear. I have been inspecting the contents of the renderData on the BubbleSeries. When there is a single data point in the biinding the cache contains it as a BubbleSeriesItem and the filteredCache is empty. The cache value has no x, y, z or itemRenderer set up. When a second gets added they both appear in the filteredCache and they have their values populated. I have tried various hacks like moving data from one to another and messing around with the x, y and z values myself, all with pretty disastrous effects. It seems too much of an oversight for the bubble chart to not work with a single bubble, so what am I missing?
RE: [flexcoders] Re: Bubble charts with only one bubble
What happens if you replace the radiusAxis with a LinearAxis with baseAtZero =true? i.e., try a BubbleChart configured like this: BubbleChart radiusAxis LinearAxis / /radiusAxis Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gaurav1146 Sent: Friday, April 13, 2007 12:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Bubble charts with only one bubble I did face this issue in my application which I had mentioned in the post titled Bubble Charts (size of the bubble). I presumed that it was due to some error on my part in slicing the ArrayCollection with the slider movement which was causing this to happen. I have not investigated it completely but now that you mention I think there might be some issue with display of a single bubble on the chart. Regards, Gaurav --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , simonjpalmer [EMAIL PROTECTED] wrote: Has anyone experienced the problem of a bubble chart with a single bubble not showing that bubble? If I add a second bubble the pair appear, if I remove one of them they both disappear. I have been inspecting the contents of the renderData on the BubbleSeries. When there is a single data point in the biinding the cache contains it as a BubbleSeriesItem and the filteredCache is empty. The cache value has no x, y, z or itemRenderer set up. When a second gets added they both appear in the filteredCache and they have their values populated. I have tried various hacks like moving data from one to another and messing around with the x, y and z values myself, all with pretty disastrous effects. It seems too much of an oversight for the bubble chart to not work with a single bubble, so what am I missing? attachment: image001.jpg attachment: image002.jpg
[flexcoders] Re: Bubble charts with only one bubble
I did face this issue in my application which I had mentioned in the post titled Bubble Charts (size of the bubble). I presumed that it was due to some error on my part in slicing the ArrayCollection with the slider movement which was causing this to happen. I have not investigated it completely but now that you mention I think there might be some issue with display of a single bubble on the chart. Regards, Gaurav --- In [EMAIL PROTECTED], simonjpalmer [EMAIL PROTECTED] wrote: Has anyone experienced the problem of a bubble chart with a single bubble not showing that bubble? If I add a second bubble the pair appear, if I remove one of them they both disappear. I have been inspecting the contents of the renderData on the BubbleSeries. When there is a single data point in the biinding the cache contains it as a BubbleSeriesItem and the filteredCache is empty. The cache value has no x, y, z or itemRenderer set up. When a second gets added they both appear in the filteredCache and they have their values populated. I have tried various hacks like moving data from one to another and messing around with the x, y and z values myself, all with pretty disastrous effects. It seems too much of an oversight for the bubble chart to not work with a single bubble, so what am I missing?