Actionscript 3 :: Flex Chart : Horizontal Line At 0 When Having Negative Values?

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


Similar Posts:


Flex :: Add A Single Horizontal Line In A Chart/Graph?

Jun 1, 2011

Here is my question:I have a hybrid chart that uses bars and linesI want to add to the right vertical axis a horizontal line that represents a break even

<mx:ColumnChart id="cvpaOpenCloseRatio" x="79" y="107"
dataProvider="{CF_Closed_to_Opened_by_MonthResult.lastResult}"
showDataTips="true">

[code]......

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 :: Top Horizontal Grid Line On Column Chart Is Not Applying Style

Oct 21, 2010

I have a Flex Column Chart that has a range of 0 - 6 on the y-axis. I have added the following block to change the default colour of the horizontal grid lines to black.

<mx:backgroundElements>
<mx:GridLines>
<mx:horizontalStroke>

[Code]....

This works fine for all but the horizontal grid line at the top of the chart (at y=6). If I change the maximum value for the y-axis to something different then this new max doesn't have the formatting applied (but all the others do).

how do I get the top line to be black like the rest of the grid lines?

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 :: Change Style For Positive And Negative Values?

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

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

Actionscript :: Flex: Add Horizontal Axes To A Chart?

Apr 28, 2009

I have a dynamically created chart and I need to add a horizontal and vertical axis in a script. I can't put the chart into MXML because I'm dynamically changing the chart type, deleting and creating a new chart. Therefore, the variable that I use to create the chart, an instance of chartBase, doesn't have either a horizontalAxis or verticalAxis. How do I assign to them if they don't exist? Should I be using a different type? The graphs I want to use are line, bar, and HLOC and/or candlestick.

View 1 Replies

Actionscript 3 :: Flex Chart With Multiple Y Axis Shows Wrong Horizontal Origin

Jul 16, 2010

I have created a flex chart with multiple Y axis. I want that it shows origin for one of the data series. It shows the line, but on the wrong plase.

Maybe it is because I didn't tell to GridLines which axis use as a source? But, I am not sure if it is possible to do...

how to show horizontal origin on a chart with multiple axis.

Here is an examle which reproduses my problem.

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

Flex :: Changing Y Values In A Chart?

Nov 22, 2010

Here is the updated code:

private function myFillFunction(element:ChartItem, index:Number, item:Object,
fieldName:String):IFill {
var c:SolidColor = new SolidColor(0x00CC00);

[code].....

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

Flex :: Chart Not Displaying Right Values Along X Axis?

May 25, 2010

If the below code is run (i know the cData sections are not visible in the preview, something causes it to be ignored).

The result does not represent the data correctly.

1. Flex ignores missing date 24 aug for DECKER.

2. It wrongly associates 42.77 to 23-Aug instead of 24-AUG.

Is there a way in flex, where the x-axis is a union of all available points ?

[Code]....

View 2 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.0 :: Line Chart Example In Flash Cs3 Or In Flex?

Nov 17, 2010

I want to do a line chart example in flash cs3 or in flex. Actually my requirement is getting the data from external file ie xml and with that i want to display a line chart with some time interval just like stock exchange charts for example.I have to do this either in flex or in flash cs3. i dont have any ideas how to proceed

View 1 Replies

Xml :: Flex - Displaying Line Chart From Data?

Jan 6, 2010

I have something like this xml data

<data>
<result month="Jan-04">
<employee id="1">

[code].....

View 1 Replies

Flex :: Draw Line On Top Of Column Chart

Aug 3, 2010

Apparently, it is not possible to have a chart with several independant horizontal axis. What I am trying to achieve is :
Display a bar chart, organized by any category
Overlay a line (actually a single horizontal line) on top of it (to display some sort of threshold)

I tried doing the following :
[Bindable] public var columnsDataProvider : ArrayCollection =
new ArrayCollection([{"Category" : "Cat1", "Value" : 10},
{"Category" : "Cat2", "Value" : 20}]);
[Code] .....

This is the closest to what I want, except that the line does not start span all the graphs vertically (it is drawn only between the two columns of my bar chart). Is it possible to define a completely independant horizontal axis? I also tried drawing directly on the canvas, but the canvas.lineTo() method only works in "data" coordinate; I would need something that works in "chart/canvas/absolute/whatever" coordinates.

View 1 Replies

Flex :: Set Background Color Of Line Series Chart?

Nov 22, 2009

I have a Line Series Chart in Flex with values from 0 to 90. I would like to set the background of the chart in such a way that, 0 - 30 is in green, 31 - 60 is in red and 61 - 90 is in blue.

View 2 Replies

Flex :: Breaking Up Line Chart For Business Data

Feb 10, 2010

I am wondering how will I proceed with the following requirement. I need to create a line chart of business data of the last 8 quarters. It is easy, but the requirement is that, there should not be a connection between last year's Q4 and this years Q1. In effect, using the same array collection i need to split the line chart so that it looks like two different lines on the same chart. How to proceed with it.

View 1 Replies

Actionscript 3 :: Custom Grid Line In A Flex Chart?

Nov 3, 2010

I am using the standard Flex 3 BubbleChart component and I would like to customize a couple of the grid lines separately from the rest.

I would like to highlight a gridline in the X-direction as well as in the Y-direction to show a quadrant.

Is there any way to customize the look and feel of a subset of gridlines within a Flex chart (i.e. bubble chart)?

View 1 Replies

Flex :: Line Chart Leaving Gaps In Data?

Dec 6, 2010

I have a Flex line chart where I allow the user to change the y axis ranges. When a data point falls outside the ranges, the chart drops the line segments on either side of the out of range point leaving a gap in the data line. I'm currently using the data function to clamp the values out of range to the y axis min/max, but this displays misleading data.

View 1 Replies

Actionscript 3 :: Show A Threshold Line In Flex Chart?

Jul 26, 2011

I am stuck with a requirement to display a horizontal line on a ColumnChart to indicate a threshold level. I have the data to the Chart as an ArrayCollection.

Is it possible to get the location of a value that is shown on the y axis? I think I will be able to place a line or 1px high canvas on top of the Chart to achieve this. Or better, is there any built in functionality that i may have overlooked or is there some open library that can achieve something like this?

View 1 Replies

ActionScript 3.0 :: Flex Line Chart - Changing ItemRenderer Dynamically

Mar 8, 2011

I am using FlashBuilder 4 and doing a simple application in flex. I am displaying a graph with 10 random values and based on the values I am trying to change the itemrenderer dynamically like CandlestickItemRenderer and BoxItemRenderer. Now my requirement was, if the values are > 10. I want to show my chart with CandlestickItemRenderer else i want to show the remaining spots as BoxItemRenderer. I am failing to do this. Either I am getting all the shapes as BoxItemRenderer or CandlestickItemRenderer. I am sending the code as a text file along with this.

View 1 Replies

Flex :: Draw A Line On Specific Data Value On Cartesian Chart In It?

Aug 25, 2009

Is there a way to draw a line on a graph (or at least get the position) on specific date?

I have a graph where X is Date data, I want to draw a line with a text on each Year and each 3 months as reference, not part of the graph series.

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 :: Multiple Line Series On Single Chart Control

Apr 10, 2011

I want to show the second line series underneath the first one, however with this code they are appearing sequentially. Not sure how to make sure they are overlayed! I followed some code I saw for combining charts.. not sure what to do.

<mx:LineChart showDataTips="true" x="10" y="77" id="GlucoseChart" width="1009" height="219">
<mx:horizontalAxis>
<mx:DateTimeAxis dataUnits="hours" parseFunction="parseDateString" displayLocalTime="true" />
</mx:horizontalAxis>
<mx:series>
[Code] .....

View 2 Replies

Flex :: Remove HSlider Horizontal Control Line?

Mar 31, 2010

Does anyone know how can the horizontal control line be removed or made invisible. What am trying to say is, I just want to show the drag-thumb and not the horizontal line.Is there a way to do so, with out using skins?

View 1 Replies

Flex :: Wrap Elements To A New Line In A Horizontal Group?

Feb 18, 2012

I have a Spark horizontal group (s:HGroup) in Flex with a specified width.But all labels outside the group are hidden (after the 100 pixels).

<s:HGroup width="100">
<s:Label text="Hello" />
<s:Label text="Hi" />[code].....

(this is an example, I'm adding elements to the HGroup in Actionscript, not knowing how many) So how could I wrap the elements inside a HGroup to a new line when there is an overflow?

View 2 Replies

Flex3 :: Drawing A Dashed Line Across Tops Of Flex Column Chart

Mar 15, 2010

[code]This code is drawing a colum chart with two columns and drawing a line across the top of both columns. I have two requirements: the line need to be dashed as of now the line starts from top right corner of the first column to the same corner of the second column. How can i shift the line to the left, so that it starts from center of first column to center of second column.

View 3 Replies

ActionScript 3.0 :: Flex Line Chart - Show The Remaining Spots As BoxItemRenderer

Mar 8, 2011

I need a small help on Flex Line Chart. I am using FlashBuilder 4 and doing a simple application in flex. I am displaying a graph with 10 random values and based on the values i am trying to change the itemrenderer values like CandlestickItemRenderer and BoxItemRenderer. Now my requirement was, if the values are > 10 i want to show my chart with CandlestickItemRenderer else i want to show the remaining spots as BoxItemRenderer. I am failing to do this. Either i am getting all the shapes as BoxItemRenderer or CandlestickItemRenderer. i am sending the code as a text file along with this.

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







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