Actionscript :: Create Dynamic DateTimeAxis In Flex?

Jan 12, 2012

I have a chart with X-axis showing timeline and Y-axis showing value for an object. The time line values are in 'milliseconds'. I have give the user a way to select timeline, user can select a day/week/month/months. So, in my Chart I want to show all the data points for the selected range but want to limit the date labels displayed on the X-axis. For Ex: if user selects a week, I want to display Mon to Sun on the X-axis. And if user selects a day, want to display a label for every 3 hrs like that...

I guess it is possible if only, I look at the selected time range at run-time and based on the starting (t1) and end (t2) time, I make a decision. Is there any API available in Flex's DateTimeAxis to achieve this ? Or any other ideas on how to get this working ?

View 2 Replies


Similar Posts:


Flex :: Cover Exactly 24 Hours On DateTimeAxis?

Apr 10, 2011

I want to show a full 24 hours along the datetimeaxis wherever the values fed into it happen to fall. I thought that setting the minimum and maximum of a datetime axis on the chart would have that effect.

so I have private function loadDayComplete():void{ //called when data is reloaded. also includes reassigning the dataprovider of the chart.

[Code]...

When I load up the function though it doesn't plot any points when the min and max are set. If I take out the minimum and maximum they show up fine! I double checked in debug mode that the minChartDate and maxChartDate are what they should be.. but maybe I'm misunderstanding how minimum and maximum are supposed to function... I also tried widening the min/max to include several days and still no luck. I also tried assigning the min/max when the chart data changes like so:

View 1 Replies

Flex :: Specifying Granularity Of Labels With Datetimeaxis?

May 3, 2011

I've been trying for a while to set the number of labels being shown with a datetimeaxis being used for the y-axis. Unfortunately, I'm not able to get the desired behaviour.I'd like to have the y-axis separated into days (i.e. a tick on the axis for each day). However, it is spacing them out one week at a time. I have tried setting labelUnits and minorTickUnits to "days" but no joy.

<mx:DateTimeAxis id="vStepAxis" labelUnits="days" minorTickUnits="days" parseFunction="ParseDateForAxis" title="Date/Time"/>

View 1 Replies

Flex :: Flex - LineChart Broken Line With DateTimeAxis?

Apr 12, 2011

I have a LineChart with a DateTimeAxis as horizontalAxis and a maximum set. If a point is beyond the maximum date, the whole segment will not appear. Yet, is there a way to make it appear until it reachs the border of the chart?The code here :

<?xml version="1.0"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

[code].....

View 1 Replies

Flex :: Charts - DateTimeAxis Not Showing Labels

Sep 23, 2011

I have a chart that uses a DateTimeAxis for the x-axis and a renderer defined for it. I also have a function defined for the label on the axis but I am not able to get the labels to show.

Trying to print out a static time to test working.

private function timeAxisLabelFunction(obj1:Object, obj2:Object, axis:IAxis):String
{
return "9:30AM";
}

[Code]....

Apparently, the font family I was using doesnt support a font style that is used in the renderer. Not sure what style attribute it is yet.

View 1 Replies

Flex :: DateTimeAxis - Set Label To Display Date + Time?

Sep 22, 2009

Is there a way in flex 3 chart component to display both the date and time using horizontal DateTimeAxis?

Currently the DateTimeAxis element has an attribute dataunits which allows to set the value to any of "milliseconds|seconds|minutes|hours|days|weeks|months|years" but I want to display the label as "2009/09/15 06:00:00" which includes the day and the time too.

[Code]...

View 1 Replies

Flex :: DateTimeAxis Creates Duplicate Months On Axis

Nov 17, 2009

I am working with a Flex DateTimeAxis. I have a scenario where the DateTimeAxis sometimes creates duplicate months on the Axis. The month label unit is generated based on a min/max value that is supplied to the DateTimeAxis, it is NOT generated by the series data as far as I can tell. In other words, the duplication does not exist within the data supplied to the chart, but is part of automatic label generation process that DateTimeAxis will execute when supplying a min/max value for the axis.[code]...

View 1 Replies

Flex :: DateTimeAxis: Displaying Dates In Another Timezone (neither Local Nor UTC)?

Oct 1, 2010

I'm working with an AreaSeries + DateTimeAxis in Flex 4. The dates for the time axis originate from a server in another time zone. I'd like to see the graph (in my local time zone) displayed using the server's time zone.I know that I can set the DateTimeAxis.displayLocalTime property to true or false, to have dates displayed in the local or UTC time zone. But the time zone I want is neither of those.Is there a simple way to make DateTimeAxis work with another time zone? Or even a complicated way?

View 2 Replies

Flex DateTimeAxis Duplicate Axis Label Values?

Dec 2, 2010

This simple code results in November 7th in 2 places on the horizontal dateTimeAxis:

[Code]...

View 4 Replies

Flex :: Horizontal Label On DateTimeAxis Dissappears Sometimes After Changing Data

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

Actionscript 3 :: Flex Line Chart Zooming With A DateTimeAxis As Horizontal Axis

Jun 28, 2010

I have a problem zooming in on a line chart with a dateTimeAxis as horizontal axis. I want to zoom in and out, by setting the minimum and the maximum attribute of the dateTimeAxis with a slider. The date labels change as should, but the lines disappear as I set the minimum or the maximum. Here's a part of the code I have:

[Code]...

View 2 Replies

Flex :: Making DateTimeAxis With Weekly Labels Set Ticks On An Arbitrary Day Of The Week?

Jul 26, 2010

I'm using a CartesianChart with a DateTimeAxis to display weekly data in a Flex application.When I set dataUnits="weeks" and labelUnits="weeks" on the DateTimeAxis, it automatically places each major tick on a Sunday. However, I would like to provide users with the option of beginning the week on a Sunday or a Monday. How can I ask the DateTimeAxis to instead place the major ticks on a Monday (or some other day of week)?For example, if the user is looking at total sum of something over the week, and requests that weeks start on a Sunday, the Series data would look like:

x: Date(July 11, 2010) y: 25
x: Date(July 18, 2010) y: 30
x: Date(July 25, 2010) y: 32

[code]......

View 2 Replies

Flex :: Charts - LineChart, LineSeries, DateTimeAxis Do Not Connect Points On Specific Time Distance?

Jun 21, 2011

I have a LineChar, with one LineSeries, on which i am drawing values ( Y axis ), on specific time ( X axis ).The problem is that i don't wanna the points which is distanced on a specific distance in time ( let say 6 hours ) to be connected.Is there a way to make LineSeries with DateTimeAxis not connecting points distanted in specific time ?

View 1 Replies

Flex :: How To Create A Dynamic Flex Datagrid

Aug 31, 2009

I'm trying to create a dynamic datagrid in Flex. The data is coming back fine and I can add the column headings. I need to do it this way as the column names are dynamic and coming from a mysql database.he values from re.result.resultSet.results[j].notes into the data fields?

<mx:Script>
<![CDATA[
import mx.rpc.events.FaultEvent;

[code].....

View 2 Replies

Flex :: Create Dynamic Pie Charts?

Jul 17, 2009

Is it possible to create below type of pie charts and values create dynamically (please go through the link)?

View 3 Replies

Flex :: Create Very Dynamic Menu Like Picnik's?

Feb 2, 2010

URL...Accordion like components (but multiple items can be selected)Each stack has multiple child stacked.The whole menu resizes depending on how many stacks are selected and a scrollbar is also shown if necessary.So how Do I go about creating a menu like this? Any pointers to boot?

View 1 Replies

Flex :: How To Create Dynamic Hierarchical Charts

Apr 17, 2010

I am developing a tool to create dynamic hierarchical charts. I am able to create object i.e circles and link it dynamically. I want to set properties for those objects.

View 1 Replies

Flex :: Create Dynamic Pivots With Grouping On Fly?

Jan 17, 2012

How ever I want to be able to do this dynamically.

The usage in the project is to be able to represent any data from a database, with any number of possible groupings on the horizontal and vertical axis.

Could someone offer some guidance on the most efficient structure to get an XML return in order to build these kind's of pivots on the fly. All the examples I have seen are statically defined. What I would like to do is be able to have a structure for a return that could give any level of grouping and data return from a web service call.

The tool I'm building is a reporting tool, so users could drag any DB field into column or row potentially so the key thing is the ability to define and build "any structure" a user would want.

View 1 Replies

Java :: Create A Dynamic Datagrid In Flex?

Jan 26, 2012

I am trying to create a datagrid in FLEX. The trouble is that I want it to be 100% dynamic - i.e. columns & data.

Basically I need to populate the datagrid via a result set from a database query, this data will be gathered via a standard java spring jdbc dao layer. The query is as generic as 'select * from tablename', so the result set can change from query to query.

My plan is to convert this result set into some form of java object, my initial thought is a Map of some kind that will contain the column name and values for a row.

The bit Im struggling with is that I need to convert this result set into a ActionScript object (via graniteds) that I can then use to populate a datatable.

I have seen lots of examples on how to dynamically add columns to the datagrid, and tie in the data via the datafield object - but Im stuck as to how I do this if I dont know how many columns I will have or what the column names will be.

View 1 Replies

Flex :: Build Dynamic UI And Allow A User To Create New Roles And Set Permissions?

Dec 6, 2010

I'm changing the way I build my UI from this:

If ( role == 'Admin' ) myComp.visible = false;

...to a totally dynamic UI based on what is returned from the DB.I've read about role-based access control and understand that it's best that the server generates the UI after a user is authenticated, but apart from re-doing the entire backend to store MXML et al., is there a better approach? Is it a bad idea to have a Permissions object that has properties like:

showTabOne:Boolean = true;
allUserToEditGrids:Boolean = false;

The components visibility and includeInLayout properties will be bound to these values. The UI will also allow a user to create new roles and set permissions.The only drawback I see is that every time a new feature is added, the app will have to be recompiled to update the bindings.

View 3 Replies

Xml :: Create A Dynamic Xml Which Populates An Advanced Data Grid In Flex Air Application?

Dec 28, 2009

Is it possible to create a dynamic xml file which changes in some fields to populate an advanced data grid?I have to display continents, countries, society and its values but i want to change randomly only the value and not all toegether...The client side application call the database by an asynchronous httpservice.LCDS, Blaze or similar are not allowed.

View 1 Replies

ActionScript 3.0 :: Get Point Of Date Object On Datetimeaxis?

Sep 2, 2011

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,

View 1 Replies

ActionScript 3.0 :: Controlling The Number Of Tick Marks The DateTimeAxis Displays Along Its Axis

May 27, 2010

it was possible to control the number of tick marks the Flex DateTimeAxis displays along its axis? Currently, the datetimeaxis controls how many tick marks to display on its axis whenever I change the date range on my chart. Ideally, I would just like there to be only and always 7 tick marks no matter how many datapoints are on the chart. I went into the DateTimeAxis class and noticed that there is a public function called transformCache(), which actually handles rendering the tick marks on the axis but I am not sure what class calls this method.

View 1 Replies

ActionScript 2.0 :: Create A Dynamic Datagrid That Receives Dynamic Columns?

Jan 3, 2006

I am tryng to create a dynamic datagrid that receives dynamic columns:

PHP Code:

for (i=0; i<DadosModelos.total_produto_modelo_recebe; i++) {
var coluna:DataGridColumn = new DataGridColumn();
coluna.width = 75;

[Code].....

Now i want to add a row that receives a value for each column that i add dynamic above, i tried all but nothing..

View 13 Replies

IDE :: How To Create Create Dynamic Variables?

Feb 24, 2009

I am trying to create dynamic variables. Lets say: I read a file where I have: building, restaurant and hotel.

[Code]...

View 1 Replies

Flex :: Dynamic Child Control With Dynamic Properties And Bubble Event In 4.5

Jul 18, 2011

i have a question while reading Flex 4 Cookbook i came across the method to dynamically adding control to the container controls but nowhere i came across with how to provide them with the dynamic properties and events like they have created a button dynamically inside a group control but what good a button be if i cannot give it an event dynamically. in the same way i want to add a tree view inside a vbox but what good that be if cannot provide a data provider to it dynamically.actually i am creating an web application where i add the tree view to a vbox and i want to the data provider should also be dynamic depending upon the option i have selected in the combo box.

View 1 Replies

ActionScript 3.0 :: Create The Dynamic Variables?

Feb 11, 2009

This gives me syntax errors.

var ["Dp"+ event.target.name]:Boolean = new Boolean()

View 6 Replies

ActionScript 2.0 :: How To Create Dynamic Variables

Feb 24, 2009

I am trying to create dynamic variables.I read a file where I have this strings: building, restaurant and hotel.Then, will load them like

X = building.
Y = restaurant
Z = hotel.

Now I want to create variables like: building = 123; restaurant = "abc"; hotel = 2.5; So on how to use the value (building, restaurant, hotel) on naming or creating variables to use them later?

View 16 Replies

ActionScript 3.0 :: Create Dynamic Variables

Feb 7, 2011

This is what i want to accomplish.This gives me syntax errors.Can you do something similar to this?

var ["Dp"+ event.target.name]:Boolean = new Boolean()

View 2 Replies

ActionScript 3.0 :: Create Dynamic MovieClip?

Jun 29, 2009

What I'm trying to do is create 8 movie clips that I will load different images and dynamic text into using XML. I understand how to work with the XML but what I can't figure out is how to create different MovieClips that house the different images. This is what I have so far:

var thumbHolderArray:Array = new Array;function addThumbs():void{  for (var t:Number = 0; t < 8; t++)  var greyMC:MovieClip = new MovieClip();  this.addChild(greyMC);  greyMC.name = "greyMC" + t; 

[code].....

View 3 Replies







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