Actionscript 3 :: Flex Chart...update Date Range?

Aug 30, 2010

I am using Flex 4 & zend to create a simple areaseries chart. Currently, I am pulling 20 yrs of data from the database & displaying it by default. I then want to let the user choose the dates he wants, but without going back to the server....how can I do that?

<mx:AreaChart id="Areachart" dataProvider="{employeesResult.lastResult}">
<mx:series>
<mx:AreaSeries yField="numberOfEmployees" xField="date" id="areaSeries"/>[code]....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Shade A Date Range In The Background Of The Chart?

Mar 23, 2009

i would like to place some backgroundelements on my chart which uses a datetimeaxis. I would like to shade a date range in the background of the chart based on start and ending dates in my dataprovider. How can I take the star and end dates and get their exact point on the chart? This way if I can get the points for the start and end dates, I can then shade the area between them.

View 1 Replies

ActionScript 2.0 :: Compare A Date To Range Of Date Using Date Class In It?

Dec 2, 2009

Do you know any way to compare a date to a range of date using the Date class in as2.

For example i want to know a given day (11-12-2009) is among the start and end date of a given range (11-01-2009 to 11-20-2009).

View 5 Replies

Actionscript 3 :: Set The Date Of Second Datefield To A Specified Range - Flex

Sep 29, 2011

I have two Datefields .Is there a way that i can set the date of second Datefield to a specified range(say three days ...?. I tried to do it but not worked .. dont know to convert date back to string and format it .. here is the code

[Code]....

View 2 Replies

Actionscript 3 :: Select Random Date In A Date Range?

Jun 13, 2011

I'm trying to get a random date in a date range and this is what i have so far but it doesnt seem to be working ? Where I'm I Going wrong ?Gets the date difference

private function differenceBetweenDates(date1:Date, date2:Date):Number{
var MS_PER_DAY:uint = 1000 * 60 * 60 * 24;[code]..........

View 1 Replies

ActionScript 2.0 :: Comparing Date Against Range Of Date?

Dec 2, 2009

Do you know any way to compare a date to a range of date using the Date class in as2.

For example i want to know a given day (11-12-2009) is among the start and end date of a given range (11-01-2009 to 11-20-2009).

View 1 Replies

Actionscript :: Flex Date And Time Stock Chart (HOLC)

Aug 28, 2010

I am trying to show BOTH the date and the time in Flex 3.5 Stock HOLC (high, open, low, close) Chart. This data shows up but not in the correct format... Problems:

1. The time are out of whack.. they do not line up with proper time.. (is it because they are not military time)?

2. The dates (days) do not show up on the bottom labels are all, is there a way to make this happen?

3. The times show up with large gaps... in the 24 hour period... Is this always the case when the data is not there for the time? Or, can I disable specific time periods like is possible with "disable days"

[Code]...

View 1 Replies

Flex :: Servlets - Dynamically Update Date And Time From The Server?

Jan 31, 2010

I have a GUI in flex. I am getting the value of the server date from the servlet to the .mxml file. I want to show the date and time dynamically changing. How can I do that in flex?

View 1 Replies

Flex :: Stacked Bar Chart With Date As X-axis And Names As Y-axis?

Apr 13, 2012

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

<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;

[code].....

View 1 Replies

ActionScript 3.0 :: Calculate Current Weeks Date Range?

Apr 8, 2010

I have a datagrid wherein I only want to show users the data for the current week.I am pulling the data from a sql database and in my dataprovider which is a XMLList I have date attribute (for each row in my xmllist) which is of the format YYYY-MM-DDI want to check if this date attribute falls in the date range of the current week and then show this data.How can I calculate current weeks date range and do this.

View 5 Replies

Actionscript 3.0 :: How To Update Date()

Dec 9, 2009

I want to make a digital clock in AS3, but I can't get my Date() to update...Is there a way to fix this? I am the following code in an ENTER_FRAME listener:

Code: Select alltime.text = clock.getHours() + ":" + clock.getMinutes() + ":" + clock.getSeconds();

EDIT:Ok, I fixed it after some research, turns out I had to add: clock = new Date();

View 2 Replies

ActionScript 3.0 :: Update DATE Box For Website?

Nov 25, 2009

I have a box on my site with the date in it and I want it to update each day automatically. Not the time, just the date.

View 2 Replies

Flex :: Prevent A Default Chart Item Roll Over Highlight In A Spark Column Chart?

Mar 3, 2011

I'm trying to prevent a default chart item roll over highlight in a Spark column chart.If you look at any of the chart examples on this page , when you roll over any of the chart series items, they turn a darkened shade of their original colour. This is what I want to prevent.

So far I have had no luck with using the itemRollOverColor property, as this only allows you to set it to one specific colour for the whole chart (my app has several different coloured series on the chart at once). Also, trying to leverage the itemRollOver event (with preventDefault() etc) hasn't worked either.

View 1 Replies

Flex :: Make Chart Which Is Combination Of Bar And Line Chart Using Charting API

Jan 10, 2011

I'm trying to make chart which is combination of bar and line chart using Flex Charting API . Here x axis would be common and y axis would be different. note that y axis got different range of value one is % and other is amount. Any one got idea how to make this chart. Here line chart would be staked on top of bar chart . The line chart and never over laid or drawn on top of bar chart.

View 1 Replies

ActionScript 2.0 :: Update - Display The Time And Date Orderly

May 21, 2008

I mean this code works perfectly I mean display the time and date orderly...but my problem is why this time just display static when i run my swf...suppose to it will update it's minute and hour accordingly....here's the code

[Code]...

is it I have to setting setInterval in case of update the minutes every seconds.

View 1 Replies

Php :: Split Date Form Date Of String Formate Using Flex?

Nov 30, 2009

my date of string like (2009-12-03 21:05:00) date with time . so i used to store var newdate:Date=new Date(Date.parse(startdate)); but shows some errors.and also i tried to split string(date) used date function likevar datenumber:Number= (new Date(Date.parse(startdate))).getDate();

View 1 Replies

Actionscript 3 :: Flex - Date Serialization - Render A Null Date Value

Aug 24, 2010

Does anyone know how to get actionscript to render a null date value '000:00:00T00:00:00'? I am calling a web service that expects date fields in the SOAP xml. I need some of these dates to serialize as null and I can't see how to produce null. The closest value I can get is '1899-11-30T00:00:00Z'. Below is the code I am using:

[Code]...

View 3 Replies

ActionScript 3.0 :: Develop Chart In Flash (eg. Bar Chart, Pie Chart)?

Mar 2, 2011

Is it possible to develop chart in flash (eg. bar chart, pie chart)?

View 1 Replies

Flex :: Create A Timeline From Date To Date In AS3?

Aug 25, 2009

I need to create a timeline between 2 given dates, ie:2006-01-20 - 2009-02-14

The timeline must be drawn on a given width (can be altered), ie: 600px

But I need to add markers, one on year beginning, and others 4 times during the year (each 73 days aprox)

View 2 Replies

Flex :: Date Displaying Wrong Date?

Sep 29, 2009

I am experiencing a very strange behavoiour of Flex Date object. My web service is written in .Net 3.5 and all object which I am retriving or updating have Creation Date (Date Type) in .Net code.

But when I am calling .Net web service and displaying data in Flex, Flex displaying a different Date than what stored in web service. When I update my object using Flex UI, every time update time is very different than actual update time set by .Net code.

View 4 Replies

ActionScript 3.0 :: Update Time And Date With Server Time..?

Jul 13, 2010

every login ,flash get server time from php. how can i update  time and date in flash..?

View 3 Replies

Actionscript 3 :: Calculate Start Date(datefield) Is Less Than Always From End Date(datefield) In Flex?

Apr 15, 2012

I have a form in which i add two dates

Start date
End Date

I want to know how i validate that the selected start date is always less than end date(actually an expiry date).

View 3 Replies

ActionScript 2.0 :: Create An Animated Bar Chart Or Line Chart Type Of Component In Flash Programmatically?

Sep 14, 2009

How can I Create an animated Bar Chart or Line Chart type of component in flash programmatically, which should depends upon an incoming XML data, the chart should have the basic criteria like, Chart Label, Item Tooltips, background grids (without using any image). There also needs an ability to change the data which should reflect the chart as well.

View 1 Replies

Actionscript 3 :: Flex - Disable Range On Slider?

Jan 4, 2010

I have an HSlider with a minimum of 1 and a maximum of 6. Is there a way I can disable the range 3 - 6, so the user can only select from the range 1-3 on the slider.Note: Your first thought might be to tell me to set the maximum to 3. I dont want to change the maximum to 3, I want the user to know there is more, but currently not selectable.

View 2 Replies

Flex :: Why Is The 'Range' URLRequestHeader In Flash Restricted

Jan 26, 2010

I want to be able to pause and resume downloads in my flex application, but I get a RTE when trying to set the Range header.

Error #2096: The HTTP request header Range cannot be set via ActionScript.

I imagine there isn't going to be a work around client side, but expect there is a way you can get a server to change the name for the range header to something else...

View 3 Replies

Flex :: Convert An Arbitrary String To Float In Range 0 And 1?

Aug 22, 2011

I'd like to convert an arbitrary string (or for easier process a string hash) to a float number between 0 and 1. The purpose is to create a function that returns a color code for a given string so the user always sees that entity in the same color that is generated from its name.OP included this code in comments (included here for readability):

var hashed:String = MD5.hash(input); // creates a 32 long hexa
const max:Number = Number("0xffffffffffffffffffffffffffffffff");
var hashedHexa:Number = Number("0x" + hashed);

[code]....

View 1 Replies

Flex - Options To Create Line Chart In Flex For Data-intensive Web App?

Jan 13, 2012

My group is working on a Flex/AS3 scientific web application that is data intensive. Luckily the only plots involved are line charts. However, each line chart may have multiple traces (up to 24), and each trace may contain up to 2000 points. The user will need to zoom in and out and interact with the data (e.g. data tips, etc.).

The response I'm getting from developers is that's a lot of data to render in a plot in Flash. For reasons beyond the scope of this post, we can't sample the data to reduce the size (this has already been done and nature of the data prevents further sampling).

Rendering speed is critical for this app. What kind of rendering speed should I expect the Flex 4 line chart component to provide for a given number of points (e.g. 1 second to render 1000 points?)

Are there products available that handle plotting large data sets better, which can be incorporated in Flex (I've seen FusionCharts and ZingCharts online but have no idea how they compare with Flex's components)? Of those, which are easy to develop with while still providing a lot of flexibility in look and feel?

View 1 Replies

Actionscript 3 :: Flex - Possible To Have Flex DataTips On Canvas Rather Than Chart Objects

Jan 17, 2010

Flex charts, like AreaChart, have wonderful built-in support for displaying data "tool tips" when a user hovers over a point supplied in the data of a graph. You can hover over any of the bar graph examples on this page for a demonstration. I have a graph situation where I optionally draw in some dots as reference points on CartesianDataCanvases supplied to my AreaChart through it's <mx:annotationElements> and <mx:backgroundElements> tags.

I would like to have the same hover data-tip functionality that the AreaChart has, but applied to these dots. I realize that I am just drawing on canvas, and that no actual dataProvider supports these dots, but if there was a way to supply the CartesianDataCanvas with an array of data values or something to that effect,

View 1 Replies

Flex :: Build Flex Stack Bar Chart From Objects Array?

Apr 21, 2010

I have a dynamic ArrayCollection that will contain a unknown number of objects of type MyObj:

class MyObj
{
type:String

[code]........

View 1 Replies

Flex :: Adobe Flex - Doing Group By At Client End (DataGrid To Pie Chart)?

Dec 23, 2010

I am in a situation where user gets the cars data from the database based on the selection and displays it in datagrid like below ( for example)

Company Model Year No
GM Chevy 2010 10
GM Chevy 2009 5
GM Pontiac 2010 12
Honda Civic 2009 12

and there will be a link next to datagrid to get Pie chart based on the data displays in the data grid . The pie graph should display grouping by company and the count . I mean for the above example that should give with two pie items , one for GM showing the number of vehicles ( in this case 3 ) and Honda showing the number of vehicles ( in this case 1 ).

I thought of getting it from the database by querying and grouping it .But here the problem is after getting the data above in the datagrid user can able to filter at client end ( By year or model ) and can say get graph . This time that should only display the graph for the data visible in Datagrid .Grouping on database for every operation is becoming expensive. Since we have already data available at client end , is there any way to group it at client ..?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved