Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Actionscript :: Flex 3 Set Maximum And Minimum X Axis Value In Bar Chart

I want to set Maximum and minimum value for X axis in bar chart in flex action script 3 file.

Following line in working in MXML file but I want these code in actionscript 3.

View 2 Replies (Posted: Sep 18 09 at 5:20)

Sponsored Links:

Related Forum Messages For Flash category:
Actionscript 3 :: Flex Reset Chart Axis Minimum / Maximum
I am showing a stacked bar chart with Flex, and I am dynamically changing the data of the dataprovider. However, the minimum and maximum for the y-axis do not get reset with the new data. So if one dataset had a value of -100,000, but the next dataset has only positive values, the y-axis still starts at -100,000. How can I force the chart to redraw. I tried myChart.validateNow(), dataprovider.refresh(), etc.


Posted: Nov 11 09 at 9:41

View 3 Replies!   View Related
Actionscript 3 - Flex Chart Exceeds Axis Maximum?
I need to figure out how to get a column in a columnchart to show 100% height if it exceeds the axis maximum.For example, I am using a linear axis with a maximum of 2 but want to visually show that the column is at least 2 or greater but not show more than 2 on the axis.Currently if a value exceeds the axis maximum, flex simply doesn't show the column.

Posted: Mar 11 11 at 1:03

View 2 Replies!   View Related
Flex :: Highlight The Maximum Or Minimum Value In An Advancedatagrid?
I have an advancedatagrid that displays a table of values from an arraycollection coming from a webservice. I am wanting to highlight either the maximum or minimum value in a row or column.I'm not bothered how they are highlighted - be it the backround changed, the font colour changed or just making it bold - I just want that particular cell to be different to the others.What I'm struggling with is finding the cell with the maximum (or minimum) value and then changing it's appearance.In one grid I want to compare across the row, in another accros the columns.

Posted: Feb 10 10 at 17:12

View 1 Replies!   View Related
Flex :: Setting Minimum And Maximum Dates On A DateHSlider
I need to change the starting and ending dates, so that the earliest date that can be chosen is January 1, 2011 and the latest date that can be chosen is April 30, 2011. Also, the user should only be able to select 30 days at a time.

Posted: May 12 11 at 15:27

View 1 Replies!   View Related
Flex :: Stacked Bar Chart With Date As X-axis And Names As Y-axis?
I'm making a chart where the x-axis needs to have dates and y-axis names. The lenght of the bar is longer when the date is later. But I want to stack multiple bars on eachother. for example This is the code I have so far

import mx.collections.ArrayCollection;


Posted: Apr 13 at 7:49

View 1 Replies!   View Related
Flex :: Align Vertical Axis Zero For Multiple Vertical Axis Chart?
Based on this Adobe multiple axis chart example: [URL]

Then I changed some data values to negative and my axis became not aligned anymore.

how to align vertical axis? Is this another Adobe bug or there is some property that aligns axis?

<?xml version="1.0" encoding="utf-8"?>


Posted: Mar 22 11 at 10:43

View 1 Replies!   View Related
Flex :: How To Set X And Y Axis Name In Chart
In Flex how can I set a custom name (string) for the X axis and Y axis titles of a chart?
(Horizontal Axis and Vertical Axis)

Posted: Jun 30 11 at 11:52

View 1 Replies!   View Related
ActionScript 1/2 :: Setting Maximum And Minimum Value For Variable
How do you set a max and min value for a variable? I have defined a variable, myVar, to have a default value of 10 at run time. The user can then use buttons to increase and decrease the amount. How do I set the limits?

Posted: Jun 30, 2010 7:18 AM

View 1 Replies!   View Related
Actionscript 3 :: Flex Bar Chart With Two Y Axis?
I am trying to create a bar char in action 3 script. But for some reason I am getting 2 y-axis and no x axis.

Can some one help spot the error. I have said "placement " bottom. The chart creation method is "getBarChartData", this method when invoked creates a barchart and adds it to a canvas. This section is visible completely and can be called on a button click.


Posted: May 19 10 at 21:31

View 1 Replies!   View Related
ActionScript 3.0 :: Centered SWF With Minimum And Maximum Width/height?
I am trying to build my portfolio which is coming along fine.

I do however have a problem.. I want the site (SWF) to scale according to browser size.But, I want to implement a maximum and minimum width and height.

I dont want it to scale so that it is bigger than my stage size (1365px x 845px), and I dont want it to scale so that it can be smaller than for instance (800px x 600x). And I also want the SWF to be centered at all times.

If you need to see a working example you can see what I am trying to achieve on this site: [url]....Take a look at the slideshow when you enter the site, and try resizing your browser window. You'll notice that the pictures will shrink, but won't scale above their obvious 100% size. I tried looking at the page source, but I didnt understand much. Looks like they have used Actionscript for the resizing/aligning.

Posted: 08-06-2010, 08:58 PM

View 3 Replies!   View Related
ActionScript 2.0 :: Fluid Layout To A Maximum And Minimum Size?
I'm building a photographer's gallery website and I need it to resize to fit in browser window. So far so easy...What I would really like to achieve is a maximum and minimum size that the gallery will go to.

So, if the images I am using are 1400x1000 (for example) when this size is reached by the user expanding the browser window i don't want the gallery to expand any more, just sit in the middle of the page.

Similarly I don't want the gallery to go below say 800x600... how to set a max/min?

Posted: 08-09-2011, 11:39 AM

View 1 Replies!   View Related
Flex :: Hide The Axis Of A Chart And Have It Not Take Up Any Space?
Is it possible to tell flex to display a chart with no visible axis? I want the contents of the chart to take up all the available space. I can set the visibility on the AxisRenderer to false which will hide the axis but that leaves an empty space where the axis would usually be. How can I remove this empty space?

<mx:DateTimeAxis id="xAxis" dataUnits="hours" />


I've tried setting the height on the renderer but that has no effect, and there is no height style on the axis itself.

Posted: Jan 29 10 at 11:38

View 2 Replies!   View Related
Flex :: Chart Not Displaying Right Values Along X Axis?
If the below code is run (i know the cData sections are not visible in the preview, something causes it to be ignored).

The result does not represent the data correctly.

1. Flex ignores missing date 24 aug for DECKER.

2. It wrongly associates 42.77 to 23-Aug instead of 24-AUG.

Is there a way in flex, where the x-axis is a union of all available points ?


Posted: May 25 10 at 16:46

View 2 Replies!   View Related
Flex :: Different Or Variable Intervals On Chart Axis
I have a Flex chart and on the x-axis want to be able to have different intervals set so I can draw gridlines.For example the axis may be from 0 to 82 and I would want to have an interval at 6,8, 21, 29, 40, 49, 52, 59 and 70.

Posted: Mar 23 11 at 15:16

View 1 Replies!   View Related
Flex :: Show Only Whole Numbers On A Chart Axis?
I'm trying to show some data that's integers but the BarChart is using fractional values on the axis which makes no sense in this scenario. Is there any way to force the chart to only use integer values on the axis? I don't know the range so it could be anything from 1 to 10000000, so I can't just explicitly set up everything.

Posted: Mar 31 11 at 3:57

View 4 Replies!   View Related
Actionscript 3 :: Way Of Defining A Minimum Amount Of Characters Required But Does Have A Maximum
I've noticed that AS3 doesn't seem to contain a way of defining a minimum amount of characters required but does have a maximum.Any way to do this with a textfield?

Posted: Apr 8 at 18:08

View 2 Replies!   View Related
Actionscript 3 :: Scrollbar-Button Jitters When Reaching Maximum/minimum?
On MouseDown I start a repeating timer to position the Scrollbar-Button(Slider).When it reaches minimum/maximum it jitters (switching between min/max and stage.mouseY¦)
How can I prevent that?

private function onTime(e:TimerEvent):void
if(this._scrollBtn.y < min)

Posted: Sep 8 11 at 12:19

View 1 Replies!   View Related
Generate Random Points With Defined Minimum And Maximum Distance?
I need algorithm ideas for generating points in 2D space with defined minimum and maximum possible distances between points.

Bassicaly, i want to find a good way to insert a point in a 2D space filled with points, in such manner that the point has random location, but is also more than MINIMUM_DISTANCE_NUM and less than MAXIMUM_DISTANCE_NUM away from nearest points.

Posted: Jan 19 at 17:47

View 3 Replies!   View Related
Flex :: 3 - Chart Axis Title Blinking On Resize
I am having a chart with titles for horizontal and vertical axis. the verticalAxisTitleAlignment property of the vertical axis renderer is set to vertical. The application is a portal sort of thing and this chart is placed inside a small window. on click of the window am resizing the parent of the chart. but at that time the title of the axis is blinking and it provides a feeling that the resizing is not smooth. I dont understand why this happens? does the tile renders each time when the component is maximized? is there any way to stop that?


Posted: May 21 10 at 12:30

View 1 Replies!   View Related
Flex :: Chart Labels Way Too Small - How To Resize Axis
So I have a Flex bar chart that resizes dynamically, and if I have only a few items, the height shrinks and the horizontal axis and label shrink along with it. If the height of the chart is small enough, the label shrink down to practically nothing. How can I enforce a minimum height for the axis itself? Or even a minimum font size for the labels? I've tried setting the font size on the axis renderer and the axis label renderer and Flex still wants to resize the labels how it wants.

Posted: Apr 29 11 at 17:15

View 1 Replies!   View Related
Flex :: Show Sum Of Two Or More Columns In Y- Axis Of Column Chart?
I am taking data from SAP and displaying in column chart in a dashboard. I am using an ArrayCollection as data provider. This has 27 columns(fields). So i am using 27 columns charts. However, I also have to display the summary of these in two charts.i.e. sum of 14 columns in one chart and 13 columns into other.

Posted: Jun 8 11 at 5:40

View 2 Replies!   View Related
Flex :: Display Text With Images In Bar Chart Axis?
I am creating column chart to show friends score statistics in facebook application. My problem is how to display friend names with images in y-axis and their score in x-axis.I cant able to pass any arguments in the method 'setSource' of tag. see the sample code here.

<mx:Application xmlns:mx=""
layout="vertical" width="100%" height="100%">


Posted: Aug 29 11 at 14:24

View 1 Replies!   View Related
Flex :: Restrict Flex Bar Chart Y-axis Count?
Is it possible to restrict flex bar chart y-axis count?I have a very big name coming in my y-axis and i want to reduce or restrict it to 5 characters and on rollover i want to display it in full.

Posted: Apr 30 10 at 12:54

View 1 Replies!   View Related
ActionScript 3.0 :: Creating Two Variables To Store A Maximum And Minimum Value For A Random Number Generator
So, I'm just starting a bigger AS3 project. I'm still learning AS3, transitioning from AS2 and I keep getting caught up on dumb stuff. I'm creating two variables to store a maximum and minimum value for a random number generator. Here's my code.


Posted: December 22nd, 2010

View 2 Replies!   View Related
Copyright © 2005-08, All rights reserved