Problem set fill color in an ItemRenderer

Hello
I am currently viewing data, using a histogram with a horizontal DateTimeAxis as a sort of time online. In a custom converter - I put for example a label and a fill color for the bar / segment. If you copy and start the next-sample application you can use the two buttons for "scroll" through the data. You can see that the labels remain in the order (A - L), but the sequence of background colors get messed up after a few "movements" at left and right.
I tried to replace the control of the visible "window" on the time line with a filter function (on collection coll ArrayCollection) instead of control through the attributes minimum and maximum of the DateTimeAxis - everything, but strange behavior has not changed. Defining the color of filling in updateDisplayList() had no effect either.

I guess there is something wrong in the way I use the ItemRenderer, but I don't know where.

I would be really happy if someone can help on this problem.

TIA

Uwe

Files:



FillProblemMinExample.mxml:

<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >
< mx:Script >
<! [CDATA]
Import mx.collections.ArrayCollection;
[Bindable] private var coll:ArrayCollection = new ArrayCollection([)
{fromD: new Date ("1 August 2007 00:00:00"), TOD: new Date ("1 August 2007 00:59:00"), col: 0x0000FF, label: 'A', val: 1},.
{fromD: new Date ("1 August 2007 01:00"), TOD: new Date ("August 1, 2007 01:59"), col: 0x00FF00, label: 'B', val: 1},.
{fromD: new Date ("1 August 2007 02:00"), TOD: new Date ("August 1, 2007 02:59"), col: 0xFF0000, label: 'C', val: 1},.
{fromD: new Date ("August 1st, 2007 03:00"), TOD: new Date ("August 1, 2007 03:59"), col: 0x0000FF, label: "D", val: 1},.
{fromD: new Date ("August 1, 2007 04:00"), TOD: new Date ("August 1, 2007 04:59"), col: 0x00FF00, label: 'E', val: 1},.
{fromD: new Date ("1 August 2007 05:00"), TOD: new Date ("1 August 2007 05:59"), col: 0xFF0000, label: 'F', val: 1},.
{fromD: new Date ("1 August 2007 06:00"), TOD: new Date ("1 August 2007 06:59"), col: 0x0000FF, label: 'G', val: 1},.
{fromD: new Date ("1 August 2007 07:00"), TOD: new Date ("1 August 2007 07:59"), col: 0x00FF00, label: 'H', val: 1},.
{fromD: new Date ("August 1, 2007 08:00"), TOD: new Date ("August 1, 2007 08:59"), col: 0xFF0000, label: 'I', val: 1},.
{fromD: new Date ("1 August 2007 09:00"), TOD: new Date ("1 August 2007 09:59"), col: 0x0000FF, label: 'J', val: 1},.
{fromD: new Date ("August 1, 2007 10:00"), TOD: new Date ("August 1, 2007 10:59"), col: 0x00FF00, label: 'K', val: 1},.
{fromD: new Date ("August 1, 2007 11:00"), TOD: new Date ("August 1, 2007 11:59"), col: 0xFF0000, label: "L", val: 1}
]);
[Bindable] private var minDate:Date = new Date ("August 1, 2007 04:00");
[Bindable] private var maxDate:Date = new Date ("August 1, 2007 10:00");
private void prevClicked(): void {}
If (minDate.getHours () > 0) {}
minDate = new Date (minDate.getTime () - 3600 * 1000);
maxDate = new Date (maxDate.getTime () - 3600 * 1000);
}
}
private void nextClicked(): void {}
If (minDate.getHours (< 6)) {}
minDate = new Date (minDate.getTime () + 3600 * 1000);
maxDate = new Date (maxDate.getTime () + 3600 * 1000);
}
}
[]] >
< / mx:Script >
< mx:Panel layout = "absolute" low "10" top = "10" left = "10" right = "10" title = "something is wrong in... this user interface" >
< mx:BarChart id = "histogram" dataProvider = "{coll}" height = "130" top = "10" left = "10" right = "10" >
< mx:horizontalAxis >
< mx:DateTimeAxis dataUnits = 'hours' maximum = minimum '{maxDate}"="{minDate}"displayLocalTime ="true"/ >
< / mx:horizontalAxis >
< mx:verticalAxis >
< mx:LinearAxis interval minimum = "1" = "0.5" maximum = "1.5" / >
< / mx:verticalAxis >
< mx:series >
< mx:BarSeries displayName = "series 1".
itemRenderer = "ColoredBarChartRenderer."
yField = "val" xField = 'TSD' minField = "fromD" / >
< / mx:series >
< / mx:BarChart >
< mx:Button x = "10" y = "148" label = "prev" click = "prevClicked ()" / >
< mx:Button = "148" label = "next" click = "nextClicked ()" right = "10" / > "
< / mx:Panel >
< / mx:Application >

Tags: Flex

Similar Questions

  • Error filling color and trolling in CC host

    Since the Flash CC to CC update animate on my Mac, I'm having some problems - major

    1 fill color no longer works. It does not change color. I can drops eye of a different color, but then when I select the brush or paint bucket color back to the original color.

    2. when I draw with the Brush tool, it takes a second before it sets. This can be a serious problem when I want to quickly draw as the line can deform when she set.

    Can anyone help with any of these issues?

    Hi Nick,

    We are aware of the first question and studying in its difficulty. It seems to happen especially when you are working with a Wacom on a Mac computer. You can return to the use of Animate CC 15.1.0.210 version for now until the fix is available.

    For the second problem, you can elaborate a little more and report it here - feature request/Bug Report Form

    -Mabrouk

  • New text is always black instead of my currently selected fill color.

    Does anyone know a way to change this? So that I could choose, say, a shade of red for my fill, then click to create a new text box and have what I type be red? Now it always sets the fill color to C0M0Y0K100 now, I create a new text object. Which can be a total pain in the * if I happen to work on a black background.

    I have 'new art has basic appearance' off in the appearance palette, this isn't that.

    Some googling gives to think that I can change what the text insists on being of faffing round in panels of paragraph or character style, color, but is really not much better - I want to make it behave like the rest of the program, where my background and outline colors remain unchanged until I have change myself.

    Anyone got all solutions to this beyond "go report bug and maybe it will be fixed in five years?" I'm tired of my new items text by alt - drag an existing one in the color I want.

    What the hell no mod Forum Adobe the right answer isn't 'do my text, then set its color. The correct answer is "you can't do this because someone at Adobe thinks it is a good idea for the text tool do not walk as the rest of the program, go apply for a feature or a bug report. What I've done.

    My problem isn't that I don't know how to change the color of my text. I can do that very well. I did it several times I could even begin to estimate - almost every time that I went to bed a text object. My problem is that I have a colour that works perfectly with my image, then I click with the text tool and all of a sudden, I type in black. And when I cut and paste a few words of the text object to another, Illustrator also "useful" makes black. Even if neither the text I cut myself, or sticky, is black.

    It's especially infuriating when I get to work on a dark background and tape suddenly blind.

    As for "it could cause more problems than it solved," well, the object-> unlock all followed by select-> object-> all objects of the type, and then select black? And besides, we got fined for every year back before starting the engine of revamped type doing so a few years ago. Hell, just add the ability to assign "inherit the current settings" to the accident vascular cerebral/filling of a style in the character/paragraph publishers style both would make us happy - I could type some wacky aspect I wanted, and you have your default solemn C0M0Y0K100.

  • Over time fill color

    Hello, I am working on an audio model. I'm doing a waveform similar to that which you can see soundcloud. I managed to program an expression to generate the waveform. But I have a problem with filling the waveform with a color based on the time. For example, see you on soundcloud how the waveform fills orange along the song? This is the concept, I am working on that. Here's what I have so far:

    AEIMAGE.PNG

    I want the blue bar to move to the right over time, but I want only the white parts of the wave to turn blue it progresses (the rest of the hidden solid blue). How would I go to do this? My knowledge in After Effects is limited, so any help is GREATLY appreciated! Thank you

    Please let me know if you need more information

    So just to clarify you are trying create a representation of levels for the duration of an audio file and not an animation audio frequency analysis. If that's what you do just before compose hundreds of layers, or nest the comp in your main comp, then use the cache by approach. If it was me I would probably just import the audio layer in the comp, press the L key twice to reveal the audio waveform, press on the ~ key to make complete timeline screen, expand the waveform, take a screenshot, add the screenshot to the model, apply Keylight, then add a shape layer below the screenshot set the screenshot as a reverse alpha cache approach for the animated gradient and be done with it. This model should be nested in my main computer to complete the effect.

    If I wanted a different look for the waveform I edit the screenshot in Photoshop or use a Premiere Pro or any other program to capture a screenshot of the wave. Since you did all the work of your hundreds of layers I just would compose before them, place a layer of shape with a gradient animated below the pre-comp and put in place the track matte.

  • Fill color does not work - gray

    Hello

    I'm using Flash CS5 and I had no problem with the program before. But now when I open a new document - the fill color is grayed out in the toolbar - it almost looks like a grid. I did a rectangle and tried to fill - color picker registered the color, but will not fill the object and the fill color box remains with this gray grid looking thing. I can't fill anything. The text color will change either.

    Anyone know why or what I can do about it?

    Thank you!

    The alpha is set to 0%. It happened to me before.

  • Set the color to a table Cluster

    Is it possible to set the color, if the table, fonts, cluster, etc. on a specific column and row within a table Cluster? Looking at the properties and methods, it does not seem so. I have no other options that rethink my VI?

    Here's an example of how my data are implemented with the sample data provided.

    I would appreciate any advice.

    Interesting that you should raise this issue.  Coincidentally, a similar question was answered just in time:

    https://forums.NI.com/T5/LabVIEW/change-enum-colour-in-a-cluster-that-is-in-an-array/m-p/2918506#U29...

    Check out Jeff's response and see if maybe you can adapt to your problem.

  • CW3D chart fill color question

    Hello

    When I use CW3DGraphLib_CWPlot3DSetFillColor on a lot that I created in the IUR, everything is OK apart that the value of blue is actually red and vice versa with the red color value.

    When I add a new path using CW3DGraphLib_CWPlots3DAdd and then change color with CW3DGraphLib_CWPlot3DSetFillColor the color displayed is not the same when I put the same color value to the plot that I created in the IUR.

    Worse still, it is not possible to set the color in white or black. RED, GREEN and BLUE have the same value, the result is always gray.

    What I did wrong?

    Please find attached a test program that demonstrates this behavior.

    Bertrand

    Hi Bertrand,.

    I found the other setting, you need to change to get the fill colors to look right.  When you create a new path, the new path takes the properties of the PlotTemplate object.  In this case, the default PlotTemplate object has the property ColorMapStyle the value "1 - cwShaded" by default.  If you change this "0 - cwNone ', the behavior will be the same as your other parcel of land.  Please let me know if you have any questions!

    NickB

    National Instruments

  • Problems with changing colors

    As far as I know, I'm running Vista Basic and Aero for my color scheme.  Don't know which, it seems not switch back.  in any case, I would like to change the color of my windows, but when I go to the customization and windows color and appearance, it is just straight up with the appearance settings.  I made sure that I have all the requirements (as far as I know)... I am running Home Premium and have 2 GB.

    Can anyone give me any help on how to solve this problem?  If you could, it would be appreciated!

    Thank you!

    You click Advanced in the appearance dialog box to get the color settings.  NOTE: Depending on what theme or settings you used in appearance, the color you select may or may not apply - it explains that where you set the colors.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to set the color palette for the system colors for the visible record of all controls on the web page?

    The color scheme by default in Windows 7 (x 36, Premium family edition) offers a combination of a white background for the application windows and black text for information that are there.   But being a visually handicapped person, I find the white background rather irritating to the eyes, and I'd rather have a black background, with white text, as this combination gives me a comfortable environment to work on the computer for long periods.  When I set these colors according to my convenience, using the link ' Customize > window color > color and appearance of windows "and by changing only the colours of the just 'Windows' choice in the dialog box, I think the colors of several other controls, in particular the"Drop Down Lists","Framed"and"Buttons"are also changed, often to be the same thus making the information unreadable such controls.  As these color changes seem to be rather random and apparently 'unpredictable', I cannot set the application window, according to my convenience.  I'm not able to get any useful information from the link "Help and Support" of the STARTUP dialog, about the dependencies of the combinations of colors of controls, or the link dialog box "Customize > window color > color and appearance of windows ' lists all controls that are normally used in any typical web page.  After spending a lot of time and effort - and therefore actually "lose" my time at the computer - through several tests, with all giving them negative results, I am at a loss to get this problem is solved.  Furthermore, I can't go back to the default of origin either.  So my computer is idle for a very large part of the day.

    I would be really grateful to all users or personal assistance MS, who take the time to provide me with an answer to this problem and help me use the computer in a fruitful way.  I offer my sincerest thanks in advance to anyone who offers me a complete solution.

    Hello

    I suggest that you go through the Microsoft article and check if it helps.
  • Merge paths with the same fill color

    Hello

    I'm trying to use pathfinder to merge paths with the same colors. I have a lot of colors, so that Select > same fill color would solve my problem, it is very slow.

    My typical workflow is basically by selecting the same colorful and using pathfinder (unite) paths to combine. If the paths have different colors that he would do all the unique color of merged paths. It does not work.

    I want to combine only the paths with the same fill color with the other, but I couldn't come up with a good workflow.

    Someone had a similar problem/situation? What are my options?

    I appreciate all the help.

    Screen Shot 2016-03-23 at 11.37.03.png

    Select all, and then click 'Merge' pathfinder

  • Keeps changing between the stroke color and fill color? Help!

    Hello world! While working, I have will have to draw the outline of something and then changes to color in, and as I do, I'm changing the fill color using the eyedropper tool, or the Swatches palette. Still my color doesn't seem to change.

    I expect the colors chosen, and it's because for some reason, the program has my color trait selected automatically, even if I use the paint bucket tool, which means that me changing colors is only to change the line color and so, having no effect on the fill color - so I'm frantically clicking to color something with my newly selected color , with does not, because that I do not change the fill color as I thought I did.

    What it seems to boil down to is, SOMETIMES when I draw or change a line, he commutes to line color, and change back when I use the eyedropper and paint bucket tools, as it did in Flash, nice and convenient. Is there a way to prevent it from doing this? Is there a way to make it how it used to be? It really starts to get exasperating.

    Other than I really like the new step up to Animate - the new tools and little more pleasant little General updates do and I want to thank Adobe for him--and make it clear that I am not at all ungrateful for her.

    Thanks in advance.

    Colin thanks for the tip, I could now clearly see the video!

    As Colin described - to 0.34 video, you select the part of the circle (stroke) that modifies the active fill color to the color of the outline (you can identify the active color looking at the State of the fill/stroke button in the tools Panel or color)

    The choice of the color swatch in the swatches Panel is the color of the outline (i.e. to the active color). You can just click Fill on the stage with the selection tool to change the active color to fill and begin your selection Swatch reflects in the painting of your filling.

    The main thing is, if you select only STROKE on stage the active color is set to the race and if you select only fill then the active color is the Fill value. Swatches Panel and color Panel will work to the active color.

    I hope this helps.

    Thank you!

    Mohan

  • Change the fill color based on the range of values

    Creating a form to inspect the parts. Work on the setting up of a text field to change the fill color based on the number or the data entered. For example: If is between 0-20 fill color is red, between 20-24 fill color is green, more filling 24 is still red, and if no data is entered in the fill color is white. The script below works for me but keeps the red field when data is deleted (empty) field. Not sure if im approaching this correctly so I should be looking at differently? I have different ranges for many fields and im trying to keep the script right to the front as possible. Thanks in advance for any help.

    If (event.value > '24')

    event.target.fillColor = color.red;

    Else if (event.value < '20')

    event.target.fillColor = color.red;

    else event.target.fillColor = color.green;

    You do not have... Change this line:

    Else if (event.value > '24')

    To do this:

    Else if (event.value > 24)

    And even with "20".

  • How is it when I choose a fill color for my square layer, it comes out darker?

    Hello

    When I do my rectangle by using the rectangle tool in Photoshop CC 2014 and I try to set a fill color for it. It comes out darker? What I mean is when I try to do the color of blue neon that comes out as a "duller" blue As a very light purple.

    Specifications of the PC:

    Processor: Intel Core i5 - 3230 M CPU @ 2.60 Hz

    RAM: 6.00 GB (5.89 usable)

    Operating system 64-bit, x 64 based processor

    Photoshop 2014.2.1 released

    You are in the test color - RGB to CMYK.  Simply press Ctrl/Cmd + Y, once.

  • Symbols - how to change the fill color to a mouse event?

    I'm trying to convert HTML Flash animations.

    I have some problems with the symbols of the Edge. As a test, if I create a new symbol of circle I draw and call that the new 'Test' symbol, I then try to change the fill color in a scoring event.

    I tried this:

    Enter the code to be run when the mouse points to the object

    SYM. $("Test") .css ("background-color", "red");

    That, in fact, change the "background color", but NOT the fill color of my symbol. See the example below.hover.png

    So then how should I address the symbol 'Test' if I want to change the FILL color is an event like the hover?

    TIA!

    Use:

    sym.getSymbol("Test").$("Ellipse").css ("background-color", "red");

    where "Ellipse" is the element of circle inside the symbol

    HTH,

    Vivekuma

  • Fill color of the rectangle does not?

    I have a document where I'm trying to draw a simple rectangle with a fill color using the Rectangle tool. All of a sudden the fill color will not be displayed. I can't understand why he did this. I tried to create a new layer for the rectange but it will not always filled correctly. It is not hidden behind whatever it is, it is already 'arranged in front."  I enclose a screencap in order to explain my problem.

    As you can see from the pictures, I tried trawing a teal rectangle, but only half of it is met (note the blue frame, showing that half left of the color of the rectangle is not displayed).

    Someone at - he encountered this before? Help! I use CS4.

    Picture 3.png

    Picture 2.png

    The effects panel says there is a kind of effect applied. Maybe that's the problem...

Maybe you are looking for

  • Down load does not start in Windows 10

    I have a new desktop machine. I've updated Windows 8.1 to 10. When I go to the Firefox download page, nothing happens when I click the icon. I tried several times. I move my data files to the C: drive on the D: drive partition, including the download

  • Re: My HP spectrum XT screen has been cracked!

    Yet once I had the same problem. Just shut the laptop after completing my work, and when I opened another day, touch screen on the right side of the laptop just stopped working. Then I found a crack in the lower right part of the laptop. I was wonder

  • HP Officejet 4635: Impossible to cancel a print job

    I need to cancel a print job for other things behind it will print.  Still, it appears in the list of "pending jobs" and will not disappear.  It is said that it is "delete", but it's still there.  What can I do to get rid of him. ?  Thank you.

  • 1394 camera does not appear in MAX

    Hi, I have a new AVT Pike 1394 camera that deserves to be supported by LabView. It works fine with the software of the seller. However, it does not appear in the action and even if Automation is expected to be taken in charge. I'm under LabView 8.6 w

  • When printing some on the web pdf printing programs print a PCL XL error

    PCL XL ErrorSubsystem: KERNELError: IllegalAttributeValue operator:VendorUniquePosition: 9. I tried to reinstall several different drivers without success.  I called HP and they said MS has the fix, so now I'm trying to find it.  The printer is an HP