Flex :: Why Does The LineChart Legend Stop Displaying Colors When LineSeries's LineStroke Attribute Changes

Aug 4, 2010

I am implementing a LineChart in FLEX 4. I have the chart working well except I do not like the default colors and cannot use them, as they do not relate to my data very well. For instance, Orange is not a great default color for my data column "Outdoor temperature". I would rather override it and use a green color if possible.

When I explicitly specify the SolidColorStroke, like so, this breaks the LineChart Legend:

<mx:SolidColorStroke id = "s1" color="haloGreen" weight="2"/>
<mx:LineSeries yField="v1" form="curve" displayName="Indoor Temp" lineStroke="{s1}"/>

^ With this code, The LineChart Legend stops displaying the color for that specific LineSeries, and only displays in black.

How can I override the LineSeries stroke color and persist those colors to the Legend's display?

Is this a FLEX 4 bug? I noticed in FLEX 3 examples (even on Adobe's FLEX 3 Help website) you can override the stroke colors and it persists to the Chart Legend.

View 1 Replies


Similar Posts:


Flex :: Flex - Creating Dynamic Lineseries In Linechart?

Oct 11, 2011

This is my array collection

[Bindable]private var Projects:ArrayCollection = new ArrayCollection( [
{ Department: "Software", TotalProjects: 73,Completed:30,Inprogress:30,Approved:13},
{ Department: "XML",TotalProjects: 50,Completed:20,Inprogress:20,Approved:10},
{ Department: "Publishing",TotalProjects: 25,Completed:5,Inprogress:10,Approved:10},
{ Department: "Indesign", TotalProjects: 70,Completed:30,Inprogress:30,Approved:10},
{ Department: "Imaging", TotalProjects: 42,Completed:30,Inprogress:10,Approved:2}]);

[Code]...

how can i create mx:LineSeries dynamically depending upon array collection values. Now only 4 line series is there but some times i have to show more as per the array collection values change ex: if one more status HoldProject added to array collection?

View 1 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 :: Placement Of Legend For A Chart?

Jun 22, 2009

I would like to be able to specify the placement of a legend for a linechart. Currently, it continues to appear to the right of the chart. I have tried playing with the width/height of the chart to no avail... Putting the legend before the linechart in the mxml causes it to appear to the left. I can't seem to get it appear at the bottom though. I can't seem to find any good examples for this. They don't seem to specify anything but the legend usually shows up below the chart, I can't seem to do it.

View 1 Replies

Actionscript 3 :: When To Render Legend In Flex

Nov 11, 2009

My Flex chart has code that creates a legend from each data series. Currently, I have the drawLegend function execute when a button is clicked.

I am trying to get the legend to draw automatically but I am having trouble determining when to call the drawLegend function. Users click on an 'Update' button which retrieves data. I want the legend to get created after this, without the users having to click on another button.

I have put my drawLegend function in several places (ResultHandler, afterEffectEnd(for chart animation, etc.) and nothing works.

Sometime after the series has been added to the chart and after the series animation ends, the legend can be added.

How can I trap this point in time and call my function?

Below is the code I used to create the legend. Note that even though the code processes each series, I noticed that the Fill color is null if it is called too early.

private function drawLegend(event:Event):void {
clearLegend();
// Use a counter for the series.

[Code]....

View 1 Replies

Flex :: How To Exclude Series In Legend

Mar 22, 2010

In 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 Replies

Hide Items From Legend In Flex Chart?

Apr 6, 2010

I have a LineChart continaing 6 lineseries. I should be able to pass parametrers to server using HTTPservice. But then the returned XML may contain information for a single line series or for all the lineseries. The problem, if we have a value for a single lineseries , the legend should contain also only one item and similarly for multiple items. [code]...

View 1 Replies

Flex :: Make The Legend Horizontal Or Vertical?

Apr 22, 2010

How can i make the Legend Horizontal or Vertical.

View 1 Replies

Flex :: Class - Custom Legend Using LegendItemClass?

Jun 3, 2011

I'm creating a custom legend using legendItemClass to highlight each item when the user rolls over, remove it when they roll off and highlight it a little differently when they click. That all works just fine but I also want the pie wedge to explode out when the user click. I have the piece of code but it requires a LegendMouseEvent. I'm also thinking I may be able to re-write the code if I could get the displayName but I'm a loss with that as well. Here's what I have:

Legend:

<mx:Legend id="legend" width="100%" direction="vertical"
labelPlacement="right" markerHeight="10" markerWidth="10"
legendItemClass="CustomPieLegendItem"[code]......

View 1 Replies

Flex :: Making 32.Multi-columnar Legend?

Jun 13, 2011

Instead of having legend scroll, I want to make it multi-columnar. I will fix the height of legend, and if the items exceed the legend, then it should extend one more column to display extra legend and so on.

View 1 Replies

Actionscript :: Make Flex Chart With An Interactive Legend?

Aug 30, 2010

Making a chart in Flex with multiple series and a chart legend which is an interactive legend where upon selecting an item in the legend (which corresponds with a series in the chart) that specific series in the chart will slideDown or Up depending on whether it was just de-selected from the legend or re-selected. m

View 1 Replies

Flex :: Charts - LineSeries InterpolateValues As ZERO?

Jan 22, 2010

In a LineChart in Flex you can set a LineSeries to interpolateValues="true" what this does is connect missing values so you do not have gaps in your line. But what I would like is for it to insert 0's for the missing fields instead of drawing a direct line to fill the gap.

Is there a way to set it to do that?

View 1 Replies

Flex :: Dynamically Add LineSeries To CartesianChart?

May 4, 2010

the LineSeries is not dynamically added to my CartesianChart...What's wrong in this code:

private function chartComplete():void {
var ls:LineSeries = new LineSeries();
ls.styleName = 'timeline';

[code].....

View 1 Replies

Flex :: How To Find Max Value Of Group Of LineSeries

Jan 19, 2011

I need to recalculate the max value of lineChart according to the visible lineseries. In the application I have the ability to make visible or not the lineseries of the graph and if I make not visible the lineseries with the actual top value I want to zoom in and change the top value of the graph.

View 1 Replies

Graph Flex LineSeries / Find Y-value Along Curve

Feb 27, 2010

I've created a Flex LineChart that shows high and low tide predictions over time. I'm using the LineSeries with form="curve", which produces a nice sinusoidal wave graph, representing water level over time. The X-axis represents time, and the Y-axis represents water level. The only data points I have to work with are high and low tide values, but I would like to figure out how to determine the y-values of arbitrary x-values along the line.[code]

View 2 Replies

Flex :: Animation - LineSeries AnimateColor Not Working?

Jun 1, 2011

This is a fairly simple question I would think.here is the code (I cut it down for an easy read)

<fx:Declarations>
<s:AnimateColor id="rw"
target="{targetRatioCol}"

[code]....

View 1 Replies

Actionscript 3 :: Flex - Create Custom Stroke On LineSeries?

Jan 15, 2010

You can easily set a stroke on a line series like this:

[Code]...

This will set alpha for the entire stroke to .8 But I want to be able to set a different alpha on the stoke for each plot based on something in the dataProvider. For example the yField in the lineSeries is "Apple" which is how it knows where to plot for the lineSeries. I want to be able to add something like alphaField which tells it what to set the stroke alpha for each plot.

[Code]...

View 3 Replies

Flex :: LineSeries AreaSeries On AreaChart - Get The Intersection Point?

May 4, 2010

I am plotting an AreaSeries and a LineSeries on a AreaChart using Flex 3 in built chart components. I want to code a custom item renderer for LineSeries to be shown at the intersection points where LineSeries crosses AreaSeries.

View 1 Replies

Flex :: Draw Dot On Linechart In It?

Jul 17, 2009

I have a line series in a linechart and a slider that goes from 0 to 200. When I now move the slider, I want to have a dot appearing at the chart so when I move the slider to 150, there should be a dot where the x-coordinate of the chart is 150.

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

Actionscript 3 :: Flex Uncontinuous Linechart?

Jun 1, 2010

Is there a way to break the line in a line-chart, if the gap between 2 values on the x axis is bigger then a given value? For example there are 20 values but the first 13 are close to each other on the x axis and should be connected with a line, but the other 7 are a bit far from these and should be connected with another line. The type of values are the same.

View 1 Replies

Flex :: Linechart With Labelled Plots?

Jun 21, 2010

I have a line chart with 4 line series with diamond, circle, box and triangle as item renderer for the plots for these 4 line series.Now my requirement is I want to show labels for the plots in the chart. It should be like this : I tried with some item renderes but not getting it correctly since I want to use the circles and triangles to render the plots.

View 1 Replies

Flex :: Filtering Data Shown On Linechart?

Jul 8, 2009

i am working on a line chart on flex which enable me to view the progress of data according to the year. I have tried using a slider to filter but it doesn't seemed to work.

View 4 Replies

Flex :: 3 Linechart Points Are Too Close To The Edge

Aug 12, 2009

I have a Flex3 LineChart component using an CircleItemRenderer and the datapoints are being cut off because they are too close to the edge. Here's what it looks like: [URL] As you can see, the circles on the left and right sides are being cut off. How can I make the LineSeries area, plus the horizontal labels, narrower so it fits in the chart area?

View 6 Replies

Flex LineChart With Multiple Data Providers?

Jan 15, 2010

Can I create a LineChart with multiple data providers? Since LineSeries has a dataprovider property, I'm assuming the answer is Yes

[Code]...

View 2 Replies

Flex :: Draw Segments Linechart In Different Color

Mar 19, 2010

I'm doing some line charts in my Flex application, and I need to draw segments of those line chart in different color. Does anyone have an idea how this could be achieved? For instance, if I have a code like this (actually, I have given this trivial example for simplicity (the problem is the same)):

[Code]...

View 1 Replies

Flash :: Flex - Label Along The Line LineChart

Mar 31, 2010

I'd like to put a label to each LineSeries on my Flex LineChart so it will be shown next to the line (along it). Any relatively easy way to archieve that?

View 4 Replies

Actionscript 3 :: Clearing/Emptying A LineChart In Flex?

Oct 21, 2011

I have a line chart in flex with a dateTime axis. I am setting the dataprovider to that linechart via actionscript. The graph gets drawn. The problem occurs when i assign a null to the dataprovider so that the graph becomes empty.

Actual code looks similar to the code below :

var actualValues:XMLList=flowChartDP.upFlows;
var localSeries1:LineSeries = new LineSeries();
localSeries1.dataProvider = actualValues;

[Code].....

View 1 Replies

Flex :: Flex - Display DateTime On Linechart?

Sep 8, 2009

I need to create LineChart that display datetime points, for example:

public var stockDataAC:ArrayCollection = new ArrayCollection( [
{date: "2005,7,27,22,15,30", close: 41.71},
{date: "2005,7,27,22,16,30", close: 42.21},

[code].....

View 1 Replies

Flex :: Animating A LineChart Based On Changing DataProvider

Jul 7, 2011

I need to be able to animate a LineChart based on the SeriesInterpolate data effect (I will have an Array of dataproiders). I want to have a "Play" button that will:

initialize the LineChart with the first dataprovider in the array start the animation and wait for the animation to finish before loading the second data provider repeat the process until all data providers in the Array are loaded

View 1 Replies







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