Flex :: Show Data Label When The Values Are Negative?
May 28, 2011
I have a bar chart where I'm trying to get the data labels to show. When the values are all positive the data labels appear fine. When I mix in some negative values, the datalabels don't show:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code].....
View 1 Replies
Similar Posts:
Jan 23, 2012
In my flex datagird i have a checkbox and a datgrid with seven columns. im populating values in first five column(remaining two column no values) of datgrid by an Arraycollection. now,By clicking the checkbox i want to show all seven column values and if i uncheck five columns has to show... how its possible?? heres my code
[Code]...
View 1 Replies
Jul 6, 2009
Is there a way to change the style of Flex Chart according to the values.For example, in column chart, set green for positive value and red for negative value?
View 1 Replies
Nov 24, 2009
I have a Flex Column Chart, which shows bars with each positive and negative values.I only want to have a horizontal line at 0 to distinguish between positive and negative values.I turned off all the axis.How could I achieve to get this line?
View 1 Replies
Dec 2, 2010
This simple code results in November 7th in 2 places on the horizontal dateTimeAxis:
[Code]...
View 4 Replies
Aug 5, 2011
I get the folder icon, never the label. I've tried numerous datasources, always the same thing. File, ajax call, text, it always fails.
In the code below I even set a custom handler and watch the XML come in, I set a static text label going out. Never anything shown. This happens without the label function and using labelField. Yes, I'm 100% sure the attribute matches. Again, tried with numerous different datasources.[code]...
View 1 Replies
Jan 26, 2012
I am trying to add an item to a list and have text display and have a different hidden value when i access selected items. I also need to do this with a loop.
Currently i am trying to add a label and set the labels id to my value. But the list just shows the ID and not the text.
var theLabel:Label = new Label();
theLabel.id = "123";
theLabel.text = "test";
lstLayerList_array.addItem(theLabel);
[code]....
View 2 Replies
Aug 6, 2010
I just would like to know how can I dynamically change a label's values while on mousedown.I basically have a mousedown event and I also have two labels in my application. What I would like to happen is to get the current x and y position of my mouse pointer as I move my mouse through the screen and changing the values of the labels into the values of the current x and y coordinates of the mouse pointer.
protected function object_mouseDownHandler(event:MouseEvent):void
{
curX = this.mouseX;[code]........
However, what this code does is that it records the coordinates of my mouse as it moves across the screen. What i want now to do is just to get the coordinates of the mouse while event is on mouseDown. What i'm thinking is to call the mouseDown event and ask it if the mouse is currently down, if it returns true, then i'll start recording.
View 2 Replies
Sep 13, 2009
i am trying to draw in flex in all four quardrants!i mean i have a 2-d plane,and i have values that i have calculated now i need to draw these in a plane! i tried the plotchart, but it only works in first quadrant,it doesnt take negative values!
View 0 Replies
Sep 7, 2010
I have a Flex Spark dropdownList in which I need to show the Provider FirstName,LastName:
<s:DropDownList id="providerList"
dataProvider="{model.practiceProviderList.practiceProviders}"
labelField="provider.providerName.firstName"/>
But the output shows only [object Object] & [object Object] as there are 2 providers in the DB and does not show the actual values.
The PracticeProviderList.as:
[Bindable]
[RemoteClass(alias="model.PracticeProviderList")]
public class PracticeProviderList extends PracticeProviderListBase {
[Code]....
The Provider has providerName:PersonName as one of it's fields & PersonName has firstName:String & lastName:String
View 1 Replies
Jan 20, 2010
I have an editable DataGrid in Flex, with data full of numbers. The columns have no special itemRenderer, but a labelFunction, which returns the number as-is if positive, but puts it in parentheses if it is negative, like so
27.3 => "27.3"
-27.3 => "(27.3)"
Now, these cells are editable. When I try to edit a cell with a positive number, nothing is wrong. But if I try to edit a negative number, it starts editing (27.3) instead of editing -27.3. Because of this, when the edit is done, the labelFunction is evaluated with the new value in parentheses(i.e.,labelFunction is called with "(30.5)"), and converting it to a Number results in NaN. So, I want to know if I can make the DataGrid edit the data in the dataProvider instead of the label that it shows.
View 1 Replies
Mar 12, 2010
I'm working for the first time with a TileList and an itemRenderer and I'm having a bit of trouble getting the information from my array collection to display Here's what I've got
private function loadData():void{
var stmt:SQLStatement = new SQLStatement();
stmt.sqlConnection = sqlConn;[code].....
how I go about pulling the information from the array and putting it into labels like username, userjob, userbio ect, Inside the TitleList and itemRenderer.
View 1 Replies
Oct 26, 2011
<mx:DataGrid id="dgAutoFill" x="11" y="234" width="934" dataProvider="{rssHln.lastResult.rss.channel.item}">
<mx:columns>
[Code]....
I'm trying to get the title from the selecteditem from this datagrid (which is filled by a rss-feed) in a label. I've searched for ways, but I can't find how I should get this done.
This is the eventhandler I've added to the datagrid, and the function:
dgAutoFill.addEventListener(ListEvent.ITEM_CLICK, showDetails);
public function showDetails(event:ListEvent):void {
lblTitle.text = ?;
}
View 1 Replies
Nov 10, 2009
I have developed a flex application using the data visualization components. I am now trying to optimize the application and one of approaches I am trying is to use Runtime Shared Libraries.I have configured Flex Builder to deploy with Runtime Shared Libraries and have added the .swz file for the framework, datavisualization and rpc share libraries. After deploying, my application loads, however my axis values within each of my charts are missing. The axes themselves are shown, however they do not have their label units displayed. The series themselves are displayed too.I have tried this using the 3.4 SDK and also the 3.2 SDK within Flex Builder. I also tried compiling flex using the mxmlc ANT tasks and got the same results.I made sure that the framework RSL is getting loaded first and I also made sure that the global flash cache has been cleared before I tested.I can see from my access logs that the .swz files are getting loaded the first time I make a request for my application, so I am confident that I properly cleared the flash player global cache.
Does anyone know why my axis values would be missing only when I deploy with RSL??? Switching back to Merged mode, my application works fine and it is only when I deploy with RSLs that I get the issue.I have also tried to compile using only the framework RSL and not the datavisualization or rpc RSLs (keeping them in merged mode) and I get the same results, no axis values.
View 1 Replies
Jan 26, 2011
My label text is not showing up after binding the arraycollection to the label text. Could I see an example of how to properly bind an arraycollection to a labels text?
View 2 Replies
Dec 5, 2011
I'm trying to extend ButtonBarButton to include an additional label that shows the number of updates for the respective box in a viewstack (which is the tabbar's dataProvider).
I can get the additional label (named indicatorLabel) to read an initial value from data, but I can't get it to update automatically like the actual "label" attribute. My understanding was that you could bind to the data object, but that doesn't appear to be the case.
[Code]...
View 1 Replies
Feb 28, 2012
is it possible to create an item renderer for the data labels of a Flex Pie Chart?i know it is possible to change the formatting of the String using the label function. But i need more control of the way the data label appears.The background of the label needs to be a a specific color based on the data.
View 1 Replies
Jul 31, 2009
I'm working with an Adobe Flex project and I have data I'm plotting against a DateTimeAxis (X-axis) but because there are a lot of points, I have to do some manipulation and remove some objects in the array (I do this by copying data to another array, removing items, then copying the new array into the original array). However, sometimes after I do this, the date labels disappear off of the x-axis! Why does this happen? I look through my array and I cannot find a reason its occurring (no objects with nothing in them, everything appears in chronological order).
View 1 Replies
Aug 6, 2009
I am working on a grid example in flex using advanced grid control. I know we can easily group data by specifying the field name. At the group node level, other than the gorup name I want to be able to show data in the rest of the cells ( calculated data ) and I am looking for some dataRowBound event or similar to be able to hook some data in it.
Example: Grid displaying list of towns grouped by state. At the group level ( for each state) I want to show the total number of towns in each state. Here how can i show the total number in the town column.
View 1 Replies
Feb 17, 2010
I would like to know how to delete(clear) the existing list data values before binding new values. I'm using the list for binding data dynamically using http services. When I make a new call to the service, I want the exiting items to be flushed and bind the newly retrieved data to the same list. How can I achieve this?
View 2 Replies
May 6, 2010
I'm using a custom component CheckBoxList DataGrid (http://blogs.adobe.com/aharui/2008/02/checkbox_selection_in_datagrid.html) and as dataProvider I have an ArrayCollection with items such this one:
name="item name" selected="true"
I would like the CheckBox list updated when the selected attribute is set to false or true in the data model.
View 1 Replies
Mar 10, 2011
How can I show data from two different elements in a single column? or if there is a way to combine two columns?
Like in following example just firstName is showing up. How can I display lastName with it too in the same column? [code]...
View 3 Replies
Apr 12, 2010
I am new beginner, is it possible the covert flex data grid to CSV file format with out use any backend (java,php ..) file?. Because I tried with out use bankend. is it convert or not?
View 1 Replies
Apr 24, 2010
It might sound like a trivial question but how can I show progress bars, when datagrids and other components that "talk" to web services, update their data providers
View 1 Replies
Oct 11, 2009
I have a data grid. How can I hide a value of a column if it's "0" ? Do I have to use item renderers? How? Is there an easier way? Second thing, if I have a boolean column whose values are actually the strings "true" and "false" how can I render it as a non editable check box?
View 3 Replies
Feb 28, 2011
I am developing with Flex + java + hibernate in one project. I am trying to add one more advanceddatagridcolumn in flex AdavanedDataGrid control. Actually it work very well but only except I added columns data. I have no idea what should I do to make it out I am telling work flow. At first call select method in DeliveryService.class through the RemoteObject and then call DeliveryMgr.class for call business work. After get return list type return value it pass to presentation class to setting all of the selected return value. I can print trace log what I added columns data in DeliveryPt.class but it cannot return to flex area.Strange thing is I can check out value of what I want to show data in DeliveryPt.class but it does not show up in AdvanedDataGridColumn of Flex.
[Code]...
View 1 Replies
Mar 19, 2012
I need a datagrid, which contains checkbox (4 no's) without multiple selection. And I also need a text area which should contain the selected checkbox's label/data. I tried using arraycollection but I am not getting.
View 2 Replies
Aug 1, 2011
I have a situation where I have a List showing a queue of Upload Objects:
[Code]...
I would like to create three different views of the List: One showing All uploads in the queue Another showing only the Upload items with Upload.type == "Update" and another showing only the items with Upload.type == "Create". Another example of this would be on an email inbox, where we could filter "All, unread, or read". I realise I could just create three different lists, one for each view of the list (maybe I'm just being picky) but I was wondering: Is there is any easy way to conditionally select the items to display from a DataProvider based on a parameter (for example type =="Upload") so I don't have to juggle three separate ArrayCollections about?
View 2 Replies
Mar 16, 2012
I have drop down list if i select the Bank draft or money order it should show the description in one of the lable. it is showing now. But i want to display the description if one of the other box value is greater than 1500, actaully there are two field one field has value for Security deposit amount and second is drop down security deposit type in this if the value is > 1500 the description should show.
Field One (Input box)
Deposit amount (entering values in the box)
Field two (dropdown)
Deposit Type (Bank Draft/ Money order/Personal check)
If the value is in the deposit amount >1500 then it show the description under one lable "Please Send your postal address proof)i have that funciton
ActionScript Code:
IncludeInfoItems = function (bool) {
if (!bool) {
[code]....
View 0 Replies
May 26, 2006
I have form in flash with input text fields with Var field set to t2_2 t3_2 t4_2... what i want to do when user enter values and press buton it should post data(values) to aspx page - how can i do that ? i saw what i did
[Code].....
then i can access t2_2 value on aspx page, so what shoul i put before getURL so it will set values from texboxes
View 2 Replies