Flex :: Dynamically Add Column Series Adobe Flash
Dec 12, 2011I have a column chart that I made using Adobe Flash Builder.
I'd like to be able to dynamically add (or remove) column series.
I have a column chart that I made using Adobe Flash Builder.
I'd like to be able to dynamically add (or remove) column series.
I want to create a daily build chart with 1 column as 1 build, 1 build will have 3 series for eg feature 1, feature 2, feature 3. Now i need to fill the color of the series dynamically based on the feature is pass or fail. for eg if in a particular build feature 1: Pass, feature 2: Fail, feature 3:Fail then the color sequence of the column will be green, red, red. how to implement this logic and where? (if in fillfunction)
View 1 RepliesHow do i decrypt an aes encryted column when using flash/flex to display the table data? adobe flex connected using php connection class to mysql
for php, we would use aes_decrypt() however i am not sure how i can get flex to do this.
I have created Columnchart in Adobe Flash Builder.
Now I want to control that column chart with Slider. I want to change the column chart according to value of the slider.
I have a problem with the cartesian charts in the Adobe Flex SDK 4.5 and 4.5.1. Perhaps it's a bug, because it's not in the SDK 4.0, 4.1 and 4.6. Or it's just a problem of my code.
I made a little example project to range over series data in a CartesianChart (Line/Area/Column/Bar), a little bit like the google finance chart. When I add all series to the chart, the problem didn't occur. Only when I have multiple series and remove one or more series and than range over the data, the series data get compressed:
Chart image It seems like the horizontal axis didn't change or didn't get an update that the chart data changed, when I range over the current data.
[Code]...
Had someone the same problem or has an idea how to remove a series in another way?
I have defined the datagrid as followsmx:DataGrid id="dg" width="100%" height="100%" >n the part i am trying to get the details from the database and setting the dataProvider for the DataGrid as follows.
var arrayContent:ArrayCollection = new ArrayCollection();
for(var i:int=0;i<assetClassDetails.length;i++)
{
[code]....
What is the best way to make a multi column form in Flex?My current solution if more than one column is required is to put the form items inside an <s:HGroup> but the alignment isn't the best.
View 2 RepliesI have simple mxml code
<mx:DataGrid id="DGG"
editable="true">
<mx:dataProvider>
[Code]....
I want to add rows to my table datagrid how to do such thing?
How to add Column to Adobe flex mx:DataGrid in mxml and/or actionsctpt?
(You can put this code in Flash or AIR app - it will compile with no errors, but will not add any columns=( )
Multiple axis creation via MXML works fine:
http:[url]...
But when I'm trying dynamically create horizontal and vertical axis then I'm getting extra axes. I believe this is Adobe bug. How I can fix this behavior?
<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code].....
I have a Flex 4, mx:DataGrid with the following (pertinent) properties set:
width="100%"horizontalScrollPolicy="off"
I have the minWidth set on all of the DataGridColumns and the width set on one of them. If I simply maximize/minimize the display (in browser or stand-alone flash player) of the application, the columns scale up and down nicely. But if you grab the edge of the application and drag it to make it bigger, only one column grows really big. When you drag the size down again, the one column remains big, but all of the other columns get squished way down.
I have the follow class :
package my.controls.charts.series
{
import mx.charts.series.LineSeries;
import mx.collections.ArrayCollection;
[Code]....
The new series name appear on the chart, but the data doest, and the chart always remains blank.
Can we change the width of the datagrid column dynamically by clicking on the border of the column in order to display the complete string which is too long to be displayed and needs to be scrolled ? If so, How ?
Also, how can we ensure that the column width changes dynamically based on the number of characters / length of string; since many a times the data is too long to be displayed. Can we set the column width to take the length of data into consideration before displaying onto the datagrid ?
When using a ColumnChart created in Flex 3, how can I to change the fill color of columns that meet a certain criteria?
Example: I have 8 columns representing agreement percentages between groups of people and want to change the fill color (or otherwise highlight) of all the columns that have over 80% agreement.
I have a view component called viewBase where I defined a advanced datagrid with few item renderers for datagrid columns. Now I have a requirement where I need to use the same view viewBase component, but not required to use any item renderers.
how to override the itemrenderers which are declared in a view component?
I am using a singleton class (popup, which means it doesn't forget the last used variables) which contains a datagrid. I am making various columns visible/invisible, setting the widths and headers in accordance to data received from a database call. Everything works fine except that when I put the breakpoints before and after the point where I change width of columns, I do not see the change in width of datagrid at all! Instead I see some values totally out of sync as widths of datagrid column! However, since it is a singleton class, the next time I call this popup, I see widths which I did set up in last call.
I must be messing up in calling the setWidth() function (which is my custom function which changes the width of datagrid in action script). What should be the point where I should call this function? I tried in creationComplete, show and in the setter of dataprovider.
I want to know column index of header in AdvancedDataGrid when a user clicks on header - either left click or right click.
View 1 RepliesIn Flex, using AdvancedDataGrid, I'm trying to achieve a drag and drop of one row's column data to another row's column or the same row but different column. Is this even possible? I've been googling for hours and all I can find are drag and drop whole columns just to rearrange their view order.
View 1 RepliesScreen class in actionscript provides the latest total screen bounds and available screen bound, but doesn't allow to attach listener to listen for changes on runtime.
is there any way of detecting screen resolution changes on runtime, it is required to size the application whenever screen resolution is changed. e.g. in case when machine display is connected to projector/high resolution monitor and then switched back to normal.
I'm working on a project where I need to load a series of dynamically generated swfs. The catch is that the composition of each swf depends on the result of loading the previous swfs. For example, if I generate a swf (just writing bytes to a ByteArray), call it A, then load that swf...
loadBytes(A)
//wait for COMPLETE event
//generateBytes for B
loadBytes(B)
//wait for COMPLETE event
//generateBytes for C
loadBytes(C)
etc...
It turns out that this is very slow. It doesn't matter how simple the swfs are -- 40 or 50 of these can take several seconds. This is just too slow for my needs. How I might speed this process up? Is there some way to make the loadBytes calls finish more quickly? Or maybe an alternative, faster way to dynamically load actionscript bytecodes?
<fx:Script>
<![CDATA[
import mx.controls.*;
import mx.controls.TextInput;
import mx.events.ListEvent;
public function init():void {
[Code] .....
I have implemented this one. I am getting 5 textboxes with empty value, if I entered some value in each textbox then, I want to get specific 3rd textbox value wen some event trigger.
When i click on a userlist, the function addTab is triggered:
private var counter:int = 0;
public function addTab():void {
var new vBox:VBox = new VBox();
var textBox:RichEditableText = new RichEditableText();
[Code]....
In another function i would like to add Rich Text to the newly created TextBox but I can not access it.
I tried getChildByName(vbox) & vbox.getChildByName(textBox) but that doesn't seem to work.
Can anyone suggest an open-sourced time-series chart created using flex??(With functionalities like the one on google/yahoo finance??)Googling gives a lot of unnecessary data,
View 1 RepliesHow dynamically add column contains checkbox to datagrid?[code]...
View 1 RepliesI am a scientist who knows molecular biology well but is a neophyte to Flex/ActionScript. I created a ColumnChart representing a probability histogram. I want to allow users to select a range of values on the X-axis via 2 sliders separate from the chart itself (one for the minimum value, one for the maximum.) By default the column bars are blue. But when the user selects a range, I would like to highlight that range in the chart a different color (eg. orange). How can this be done using ActionScript?
View 0 RepliesI need to format the column with a currency formatter. I know how to do currency formatting I just need an example on how to implement it into the datagrid column.
View 2 RepliesHow to make a table in Flash and enable the column headers on the table to sort column on click?I have seen some tutorials with mySQL but I'd like to start with something basic. Is a sortable table possible using just Flash and AS 2.0?
View 1 RepliesI'm creating a table that displays information from a MySQL database, I'm using foreignkeys all over the place to cross-reference data.
Basically I have a datagrid with a column named 'system.' The system is an int that represents the id of an object in another table. I've used lableFunction to cross-reference the two and rename the column. But now sorting doesn't work, I understand that you have to create a custom sorting function. I have tried cross-referencing the two tables again, but that takes ~30sec to sort 1200 rows. Now I'm just clueless as to what I should try next.
Is there any way to access the columns field label inside the sort function?
public function order(a:Object,b:Object):int
{
var v1:String = a.sys;
[Code]....
I have some rich text created using the flex (flash builder 4) rich text input control. I want to display at least some of it in a column of an AdvancedDataGrid control.
View 2 RepliesIn flex charting, I want to draw something like "reference lines" which are related to specific series, therefore these lines are not independent series and should not be shown in legend. Is it possible to exclude some series from chart legend?
View 3 RepliesI have a Flex LineChart which contains three series:
two LineSeries
one ColumnSet
Has anyone seen or heard of a way to set the dataTipRenderer on a per-series basis? You can only override it for the entire chart and I would prefer to not have to overlay multiple charts just to achieve this effect.