[flexcoders] Re: setting the value of axis label in line chart which is populated dynamically!
--- In flexcoders@yahoogroups.com, samata [EMAIL PROTECTED] wrote: Thanx 4 reply Amy... But i need the soln For Flex 2... V r using that 4 our project:-)) FWIW, this kind of illiterate reply is more of a slap in the face than an outright attack.
[flexcoders] Re: setting the value of axis label in line chart which is populated dynamically!
--- In flexcoders@yahoogroups.com, samata [EMAIL PROTECTED] wrote: Hi, I have line chart..The line charts has values that are populated dynamically. The values could be anything...ranging from 100 to 10 or more. i wanted 2 know if there is some way one could identify the maximum value plotted and set it to value higher than that at runtime...to avoid this prob. I have come across properties like computedMaximum and computedMinimum but they are protected properties in Flex 2 I am using flex 2... thanx in advance, Not sure about Flex 2, but in Flex 3 I use something like: private function setChartProperties(chart:LineChart):void{ //I find if you just go straight to it without casting it, //some properties will tell you they are read only var va:LinearAxis = chart.verticalAxis as LinearAxis if (myCondition) { va.maximum=800; va.minimum=200; va.title='Title for condition true'; } else { va.maximum = 100; va.minimum = -10; va.title='Title for condition false'; } } HTH; Amy
[flexcoders] Re: setting the value of axis label in line chart which is populated dynamically!
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, samata samata.rao@ wrote: Hi, I have line chart..The line charts has values that are populated dynamically. The values could be anything...ranging from 100 to 10 or more. i wanted 2 know if there is some way one could identify the maximum value plotted and set it to value higher than that at runtime...to avoid this prob. I have come across properties like computedMaximum and computedMinimum but they are protected properties in Flex 2 I am using flex 2... thanx in advance, Not sure about Flex 2, but in Flex 3 I use something like: private function setChartProperties(chart:LineChart):void{ //I find if you just go straight to it without casting it, //some properties will tell you they are read only var va:LinearAxis = chart.verticalAxis as LinearAxis if (myCondition) { va.maximum=800; va.minimum=200; va.title='Title for condition true'; } else { va.maximum = 100; va.minimum = -10; va.title='Title for condition false'; } } HTH; Amy Thanx 4 reply Amy... But i need the soln For Flex 2... V r using that 4 our project:-))