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


Similar Posts:


Flex :: Group Items In DataGrid?

Aug 12, 2009

I have a DataGrid with info like this:

Associate AmountTimeCustomer
John Doe 29amSam Smith
John Doe 210amBerry Cooper
Bill Ace 19amSandy James

Repeating the name and amount gets redundant so I would like it to look something like this:

Associate Amount
John Doe 2
Bill Ace 1

Then when you select one, it expands to show the times and customers for the selected associate. I hope this makes sense...I am currently just using a DataGrid but I can use an AdvancedDataGrid if thats needed...I am pretty sure something like this can be done, I just don't know how.My data is in xml and looks like this:

<stat associate="John Doe" date="08/12/09" amount="2" time="9 am" customer="Sam Smith"/>
<stat associate="John Doe" date="08/12/09" amount="2" time="10 am" customer="Berry Cooper"/>
<stat associate="Bill Ace" date="08/12/09" amount="1" time="9 am" customer="Sandy James"/>

View 1 Replies

Flex :: Group Flat Data In Advanced Datagrid Won't Work

May 17, 2010

i've got an ArrayCollection which is properly displayed in this Advanced Datagrid:

[Code]...

View 2 Replies

Flex :: Adobe Status - GroupSpecifier And NetStream - Use The Group Feature?

Nov 8, 2010

I started using Adobe Stratus yesterday and made a simple chat application. Today, I was to learn how to use the group feature. But when I try to instantiate a GroupSpecifier variable, I get this error: 1046: Type was not found or was not a compile-time constant: GroupSpecifier. P2P.mxml Earlier I was getting a similar error with NetStream (in place of GroupSpecifier). I have Flex 4.1 and it's set to Flash Player 10.1.

View 2 Replies

Flex :: Adobe Flash Builder DataGrid DataProvider CollectionEvent.COLLECTION_CHANGE Handler's Access To DataGrid??

Feb 14, 2010

I've added an eventListener to the COLLECTION_CHANGE event that is fired when the grid is finished resorting the items in its dataProvider, after the user clicks on a column header:MyType (myDataGrid.dataProvider).addEventListener(CollectionEvent.COLLECTION_CHANGE,onDataGridResort);

View 1 Replies

Flex :: Change The Data Of Line Chart On Datagrid Itemclick?

Jun 22, 2010

I have created a line chart and another datagrid.based on dataitem clicked nthe chart should be changed. For example I have datagrid for stocks with 3 stocks GOOGL,Yahoo and ADBE .On clicking upon the GOOGL the google data should be loaded in to line chart.

View 1 Replies

Flex :: Know If The JRE Software Is Installed On The Client Machine Using Adobe AIR?

Jun 1, 2011

I want to detect if the Java Runtime Environment (JRE) is installed on the machine using Adobe AIR.

How do I detect that the JRE has been installed on the machine?

View 1 Replies

Flash :: Line Chart Possible To Achieve Using Adobe's Built In Charting Component In Flex?

Jan 13, 2012

I'm new to Flex/AS3. I've attached an example line chart below. I want to know if this type of graph can be created using the standard line-series chart available in Flex (Flash Builder 4.6), or whether there's something drawn below that is non-standard and would therefore require some rather involved customization. The key features are:

-Different line styles and colors (dashed, dot-dash, solid, thick, thin, opacity)
-Placement of units (y-axis "seconds" and x-axis "Hz")
-x-axis zoom/pan control bar below graph (move knobs in and out to set x-axis min and max plotted values)
-Log x-axis scale, linear y-axis scale
-Data Tip (or, some call it tool tip, not shown below)
-SI units for x- and y-axis tick labels.

My guess is that everything should be pretty standard to accomplish using Adobe's built-in charting (with the possible exception of item 6, see below). Is that a good assumption?I'm particularly concerned about the x- and y-axis tick labels (item 6). For example, the x-axis tick marks as a number would be:1, 10, 100, 1000, 10000, 100000, 1000000, 10000000 but they need to be replaced with SI units, where k=1000, and M=1000000, so the corresponding marks would be (replacing the numbers above with the strings below)"1", "10", "100", "1k", "10k", "1M", "10M".The same goes for the y-axis, where p represents 1e-12, and n represents 1e-9.I can create an algorithm that accepts a number and outputs a string to do the SI unit conversion. But given that, is there a way to easily manage the tick mark labels to replace the default numbers with such strings?

View 2 Replies

Actionscript 3 :: Make A Project: XMPP Client On Adobe Flex?

Feb 25, 2011

In my university a have to make a project: XMPP client on Adobe Flex. On this occasion I've decided to learn any architectural framework and to use it in my project. Could you advise me, what framework would be the best one for the XMPP client? What are advantages and disadvantages of this or that framework?

View 7 Replies

Java :: Load A .properties File From A Client Using Adobe Flex?

Feb 28, 2011

Is it possible to load a .properties file from a client computer using adobe flex? I have a flex app that needs to access a server and multiple URLs but the URLs may change frequently. So I think modifying and loading the URLs from a .properties file would be the easiest way update the URLs

I was able to use florians suggestion and I've added the code below if anyone else is interested. I used the example here URLLoader.

public function URLLoaderDataFormatExample(event:Event):void
{
var request:URLRequest = new URLRequest("file:///c:/temp/prop.properties");
var variables:URLLoader = new URLLoader();

[Code]...

View 3 Replies

Flex :: Add Datagrid Column Name In Adobe?

Sep 27, 2010

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]....

View 2 Replies

Actionscript 3 :: Add Column To Adobe Flex Mx:DataGrid In Mxml?

Jan 29, 2010

I 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=( )

View 3 Replies

Flex :: Merge Cells In DataGrid/AdvancedDataGrid In Adobe?

Aug 2, 2011

I need to merge the cells as shown in the picture:

View 2 Replies

Flex :: Get Selected Date On DateField Adobe Datagrid ItemRenderer

Jul 23, 2010

I am trying to get the selected date on the datagrid. I used the itemrenderer to display the datefield on my datagrid.

<mxataGridColumn dataField="dt" headerText="Date of Transaction" itemRenderer="mx.controls.DateField" rendererIsEditor="true" editorDataField="selectedDate"/>

View 1 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

Flex :: Adobe Client-side Or Server-side?

May 17, 2011

I am writing a thesis and have been able to place all my frameworks under two categories (client-side frameworks and server-side frameworks), but I can't seem to finf where to place Adobe Flex...In which category should I place this or should I place it in some separate catgeory?

View 3 Replies

Flex :: Dynamically Create Axis Via ActionScript In Adobe Flex Charting Library; Adobe Bug?

Mar 21, 2011

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].....

View 2 Replies

Flex :: Show Data At Group Level In Flex Advanced Grid?

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

Flex :: Toggle A Mask To A Group In Flex (works For BorderContainer)?

Oct 6, 2011

Here's my test application:

<?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]....

I would expect the mask to be applied when the checkbox is selected, and removed when it issin't. But it doesn't seem to work.However, when you change to , it works like a charm. Can anyone explain to me why?

Note: In my actual application, i'm applying this in a skin to a component that is extending SkinnableComponent which can't use BorderContainer so a solution to this would be great.

View 1 Replies

Flex :: Datagridview - Array Objects And Datagrid With Link Button (Clear Button) In Adobe?

Jun 21, 2009

I have an an array of objects. I populate the datagrid from the array. The nmber of columns in the datagrid is fix i.e.5 and the first column always shows serial number (0,1,2,3,4). I have a link button called 'CLEAR' in the last column of the datagrid.

1> How do I make the clear button visible only when the row is particularly clicked 2> When the clear button is clicked, how do I make the contents of that particular row cleared. Not deleted, only cleared to insert data again. Also, the serial number (0,1,2,3,4) should not be cleared, nor deleted. How to do this ?

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 :: Restrict Flex Bar Chart Y-axis Count?

Apr 30, 2010

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.

View 1 Replies

Flex - Datatipfunction - Flex Chart Hide A Datatip?

Oct 6, 2010

We get data from multiple feeds and data may or may not exist for a certain date. o, for points that have no data we send NaN.

[Code]...

View 2 Replies

Flex :: Debugging - Running A Webapp Base Flex Client In IntelliJ?

May 10, 2011

Is it possible to run a Flex client in IntelliJ internally and have it talk to a separately deployed server instance? The server's a java webapp. This will make developing, especially debugging, much easier. What I'm trying to avoid is having to rebuild and redeploy the webapp to get the updated Flex code in it. I want to just build flex and run it against the server.

The flex client is embedded in an HTML page on the server, so in production the users access the client by going to a web page. We're using GraniteDS if that's important.

Update

I'm managed to cobble something together, but it's ugly.I made a copy of our wrapper HTML page and fixed the links to refer to the SWF in target.I setup the IntelliJ run config to point to that HTML page.I set the 'Place SWF file in a local-trusted sandbox' to true

Hardcoded the {server.name}, {server.port}, and {context.root} values in the service-config.xml GraniteDS config file to localhost, etc.

I can mavenize #1, but #3's isn't really a permanent solution. That part is still a problem because I can't check this in.

View 1 Replies

Flex :: Set Y-axis Width On A Flex Chart?

Jun 28, 2011

When using a Flex chart, the y-axis is drawn as a thick (about 8px) grey line. Is it possible to change this to be just a thin line like the x-axis?

View 1 Replies

Actionscript 3 :: Flex - Drawing On Flex Chart

Aug 4, 2011

I've created a line chart in flex and it works like expected. Now, I would like to add shading to the background for specific information. For example, this chart - [URL], shows a shaded background for recessions. How would I mimic this shading in a Flex linechart?

View 2 Replies

Flex :: Recover The HttpHeader Information From A Flex Client?

Aug 11, 2009

Is it possible to recover the HttpHeader information from a flex Client? I want to do the following:

User download the flex client from a web site

In each communication flex client catch the HttpHeader information in order to change (If it is necessary) the host information to be connected (For example in a HA configuration)

View 2 Replies







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