LineChart with a two color LineSeries how to?

Hello
Currently I am building a Flex Chart that shows the Stock Price of a Stock. Now my customer asked if it was possible to have a single LineChart with one horizontal Line that shows the closing price of the previous day and a two color Line that shows the stock price of the current day.
He would like the Line to be green when it is above the closing price Line and red when it is below the closing price Line.
Can someone tell me how to do this?
All help is appreciated!

Hello
And how can I do this by extending the LineChart?

Similar Messages

  • How to highlight text with a translucent color

    I have to highlight text from a JTextArea, but the color is too dark... So I'd like to highlight with a translucent color. How can I do it ?
    Here is my code :
    JTextArea jt;
    int beginSelect;
    int endSelect;
    Highlighter hl = jt.getHighlighter();
    DefaultHighlighter.DefaultHighlightPainter hld = new DefaultHighlighter.DefaultHighlightPainter(Color.BLUE);
    try {
    hl.addHighlight(beginSelect, endSelect, hld);
    catch (BadLocationException e) {}
    Thank you.

    import javax.swing.plaf.*;
            Color color = new Color(220, 200, 240, 150);
            ColorUIResource colorResource = new ColorUIResource(color);
            UIManager.put("TextArea.selectionBackground", colorResource);Default for windows is [r=49, g=106, b=197]
    and for metal is [r=204, g=204, b=255].

  • How to print a plot with two colors Without using two plots

    Hello everybody,
    Escuse my English (poor Frenchies....)
    I'm working with VB6 and I will need to print a plot with two colors (Some values greater than a trigger for example, ...)
    I was looking for some help to discover if that thing is possible without using another plot, this is what I'm already doing, and it do not satisfy me (and my boss....)..
    Thank for your Help.
    Julien

    Hi Julien,
    I have found on the different link to make that you want.
    This first link is on National Instrument site, the first is general, and second provided information about : How Can I Programmatically Print Out a ComponentWorks Graph Object?.
    http://digital.ni.com/public.nsf/websearch/81D87CB2A5BF6C11862569E4008240FE?OpenDocument
    http://digital.ni.com/public.nsf/websearch/dc3430165bc916c586256317006f8cc9
    Links below are on the web, and explain how do you can print a graph on Visual Basic. (the first is French link  )
    http://khany.developpez.com/tutoriel/mschart/
    http://www.programmersheaven.com/zone1/cat378/18546.htm
    Regards,
    Message Edité par Christophe S. le 12-27-2005 01:51 PM
    Christophe S.
    FSE East of France І Certified LabVIEW Associate Developer І National Instruments France

  • How to make true two-color image from scanned rgb image...

    hello...
    I have 50 scanned images from one book, cyan + black, offset. How to easy make new two color (C+K) from this rgb images? If possible to make action.
    sample:

    How to easy make new two color (C+K) from this rgb images?
    Not at all. They need extensive adjustments long before that - they are scanned wrongly to begin with (double-sided must be scanned against a black background), have fingerprints and whatnot. Once you have them cleaned up, converting to CMYK and cleaning up the colors is anotehr matter. Could be as easy as blanking out the yellow and magenta channels, could entail additiojnal extensive work. in any case, it won#t probably be automatic.
    Mylenium

  • I need to replace a color on my image with a specific color from another part of the image.  How?!

    I have spent over 2 hours trying to figure out how to replace a color on one part of my image with a specific color shown on another part of the image.  So far I have been able to go to "Replace Color" on my Adobe Photoshop version, but it seems that I can only change the hue and brightness of the color that it currently is.  I need to use a specific color so this does not help me.  Does anyone know how to complete the task I am referring to?
    Also, please keep in mind that I am using Adobe Photoshop 6.0, not a fancy cs version or anything.  So it's pretty old school...
    Any help/feedback is greatly appreciated!  Thank you.

    Hi brookehelene,
    You might consider making a selection the object and using a color fill layer set to the color blend mode instead of replace color.
    I used the same picture as kendallplant did and changed the color on the same flower by sampling the pink color from the flower to the right)
    (click on the screenshots below for larger views)
    1. Select>Color Range
       (i used color range because the dialog is somewhat similar to the replace color dialog, except one is making a selection instead of replacing a color)
       (there are many other ways to make the selection such as the magic wand, so if your more familar with the other selection tools you can use those instead to make your selection)
    2. Use the eyedroppers and fuzziness slider in the color range dialog to make the selection of the object.
       (in the screenshot below the white areas are selected and black areas are not)
       (your selection probably won't be perfect, but you can paint on the layer mask to refine the selection)
    3. After you press the okay in the color range dialog you'll see the selection (marching ants)
       At the bottom of the layers palette press the Create New Fill or Adjustment Layer icon
       to reveal a list and choose Solid Color.
       Then use the eyedropper to sample a color from your image and press ok.
       Change the Blend mode for the color fill layer to Color (top of the layers palette)
    4. As you can see a lot has been selected besides the flower.
        To refine the areas of color, paint on the layer mask with the paintbrush tool.
        Use white to add the color or black to subtract the color
        You can press the D key on the keyboard to get the default colors (black and white) in the toolbox
        and press the X key to switch between the two when painting on the layer mask.
    Even though the above takes longer you can easily change the color or modify the areas that you want to change the color on.
    To change the color you can double click on the color fill icon in the layers panel.
    You can also use other layer blend modes besides color such as hue, so you might try some of the others and see what they do.

  • How to set dash line color(two colors)?

    hello all:
    Does anyone know how to set dash line color in java?
    I only know how to set line color with a single color.
    g2.setColor(Color.black);
    g2.setStroke(dashed);
    g2.draw(new Rectangle2D.Double(50, 50, 200,100));
    what I need to implement is two colors interleave on the dash line.
    so that dash line looks like this:
    ==== ====
    red white red white
    thank you for any comments.
    -Daniel.

    create 2 strokes, space them appropriately, draw the rectangle twice.

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • When I log onto my macbook, my user account isn't showing up. All that shows up is a gray screen with only two boxes saying "Name" and "Password". How do I fix this?

    There was one time where my wi-fi wasn't connecting so I tried to turn it back on. A window popped up but I had alrdy clicked enter before I read it, but it said something like "...will change settings, is that okay...?" And then wi-fi still would not connect. So I tried restarting my computer, but when it turned on, my user account did not show up and all there was on the screen was two boxes that asked for name and password. I was the only person using my macbook so I never set up a password for it. Has anyone had this problem? How do I fix this?

    Since I'm not in front of your computer I can't tell what you see - I can only guess and give a hint. So once again, if the disk name on your Mac is "Macintosh HD", when you boot in Recovery Mode, and start up the Terminal in "Utilities" menu, and then type in the command:
        df -k
    you should see a list of "volumes" - one of which is named "/Volumes/Macintosh HD" (but yours could be anything) and in that folder there is another folder called "Users" and in that folder is the names of the home directories of the user accounts (and the names that you can enter into the login screen) that you are looking for. So if you are not familiar with using the Terminal you should say so and I can give more details. But assuming you're OK with typing in commands to theTerminal this is what I would try:
        ls -l /Volumes/Macintosh HD/Users
    and you should see something like the following (my disk name is "Yosemite" so I typed "ls -l /Volumes/Yosemite/Users")
    ML9Book:~ xxxx$ ls -l /Volumes/Yosemite/Users
    total 0
    drwxr-xr-x+  11 Guest      _guest   374 Oct 25 19:23 Guest
    drwxr-xr-x+  33 Jack       staff   1122 Oct 24 10:49 Jack
    drwxrwxrwt   13 root       wheel    442 Dec 27  2013 Shared
    drwxr-xr-x+  38 admin      staff   1292 Oct 25 16:59 admin
    drwxr-xr-x+  15 x13        staff    510 Oct 23 22:41 x13
    drwxr-xr-x+  12 514        staff    408 Oct 23 12:24 x14
    So now reboot your mac into normal mode - and you will see the login screen with the two empty boxes.
    So the above output tells me that there are 3 users - Jack, x13 and x14 (there is always a Shared user and there might or might not be a Guest user since it depends on how your setup was setup) - and these 3 are the names that I could try and enter into the login screen (in the top or first box). You can try no password, but I don't think you can create accounts without passwords, so this will likely fail. In that case you need to reboot in recovery mode and run the Terminal command again (from the Utilities menu) and do a resetpassword command. Another window will pop up and from there you select the Volume (in my case I selected the Yosemite volume - in your case you would select the "Macintosh HD" if that is what your volume name is). Then select the user account you want to reset the password from the drop-down list of user accounts (it will show you the long and short names, and the short name is what was in the listing above from the "ls -l" command), then enter the new password in the indicated box, and then enter it again in the next box, to make sure you didn't make a typo, and enter a password hint in the last box (optional). Then click the "Save" button and you will see another dialog box pop up telling you that the password was changed but not the Keychain password (hopefully you remember this one) - click the OK button then reboot back in normal mode (click on the Apple logo in the top left corner of the screen and click on Restart).
    Does this help?

  • I have two iphones with one apple id. How do I set up 'find a phone'?

    have two iphones with one apple id. How do I set up 'find a phone'?

    To wjosten-
    I just posted a similar question asking HOW you get into a menu for 'my devices' in order to name them? Thanks!

  • I have two Apple IDs - one associated with iPad and iPhone and the other associated with iMac and MacAir. I am going to lose the former e-mail address imminently and would like to associate all devices with just one ID. How do I do this? Thanks

    I have two Apple IDs - one associated with iPad and iPhone and the other associated with iMac and MacAir. I am going to lose the former e-mail address imminently and would like to associate all devices with just one ID. How do I do this? Thanks

    Thanks - I guess it is like there were two of me!
    I bought the iPhone first and it seemed natural to link it to the (work) e-mail address which was in constant use. The iMac for home use came next and it seemed natural to use my home e-mail address, particularly as I knew by then that I would lose the work address after my imminent retirement. The same logic went for the recent puchase of the MacAir. I am not sure what happened with the iPad (also a recent purchase) - iTunes seemed to puch me towards the same ID as the iPhone.
    It is not a huge problem - just makes my persona look schizoid! Otherwise very happy with everything Apple.

  • I have created an iTunes account on my current computer for my daughters ipod touch and tried connecting my ipod nano and it won't sync and says that it is associated with another iTunes library so how do I merge the two libraries?

    I have created an iTunes account on my current computer for my daughters ipod touch and tried connecting my ipod nano and it won't sync and says that it is associated with another iTunes library so how do I merge the two libraries?

    You do not merge libraries.
    iDevices sync to one and only one computer.
    If you want a single library, you manually move the content from one library to another... all content will still be associated with the Apple ID it was acquired with.

  • I had an Apple ID and password with my hotmail acct.  The password stopped working, so I set up a new one with my me acct.  How can I access my old acct. and merge the two of them?

    I had an Apple ID and password with my hotmail acct.  The password stopped working, so I set up a new one with my me acct.  How can I access my old acct. and merge the two of them?

    https://iforgot.apple.com/cgi-bin/WebObjects/DSiForgot.woa/wa/iforgot?language=C A-EN&app_id=2417&newWindow=true&border=false

  • LineChart and -fx-text-fill issue: how do I change the color of the labels

    Hello everyone,
    I'm currently facing an issue when I'm trying to style my LineChart with some CSS. Indeed I would like to change the color of the labels of my xAxis (CategoryAxis) and yAxis (NumberAxis) but it's not working.
    In my FXML file I tried to use the style attribute on my LineChart tag using: <LineChart style="-fx-text-fill: white"> with no result, the text remains black (even for the title of my chart). In order to know if the style attribute is well parsed I changed it to: style="-fx-background-color: red; -fx-text-fill: white;". The background is becoming red but the text still remains black.
    Finally I tried to define a stylesheet in my controller class with the same properties (red background and white text). My stylesheet is this one:
    .chart {
        -fx-text-fill: white;
        -fx-background-color: red;
    }In my controller I do the following line in order to load my CSS file:
    this.chart.getStylesheets().add(getClass().getResource("statistics-style.css").toExternalForm());Even with this option the text remains white, while the background becomes red.
    What I also tried is to put the -fx-text-file CSS property directly on my axises, but again it seems it is ignored.
    I followed the steps described in Figure 8-2 of this site: http://docs.oracle.com/javafx/2/charts/css-styles.htm
    Does anybody have an idea or encountered this issue?
    Thank you very much,
    Thierry.
    PS: I'm using JFX 2.1 on MacOS X
    Edited by: twasyl on May 8, 2012 7:57 AM
    Edited by: twasyl on May 8, 2012 7:59 AM

    Hi,
    I figured a solution out to solve my problem. Currently in the documentation it is said to redefine the .chart CSS class in order to change the color of the title and labels text. But this is not working. Strangely the following code changes the font-size of both title and labels but ignores the -fx-text-fill property:
    .chart {
      -fx-font-size: 20pt;
      -fx-text-fill: white;
    }In order to change the color of the title I override the .chart-title CSS class:
    .chart-title {
      -fx-text-fill: white;
    }And for the labels:
    .axis-label {
      -fx-text-fill: white;
    }Well I don't know if there still is a bug on the .chart CSS class or maybe that behavior is expected.

  • How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?

    How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?
    I have code that finds / marks words with a different color.  Now I want to remove that color.  I've started with the following, but cannot complete it.
        //int iLength = gRTbxInfo.Length
        int iLength = 10;
        TextRange trText = new TextRange(gRTbxInfo.Document.ContentStart, gRTbxInfo.Document.ContentEnd);
        TextPointer tpStart = trText.Start.GetInsertionPosition(LogicalDirection.Forward);
        TextPointer tpSelectionStart = tpStart.GetPositionAtOffset(0, LogicalDirection.Forward);
        TextPointer tpSelectionEnd = tpSelectionStart.GetPositionAtOffset(iLength, LogicalDirection.Forward);
        TextRange tpSelection = new TextRange(tpSelectionStart, tpSelectionEnd);
        tpSelection.ApplyPropertyValue(TextElement.BackgroundProperty, new SolidColorBrush(Colors.White));
    bhs67

    Isn't that just
    TextRange tr = new TextRange(rtb.Document.ContentStart, rtb.Document.ContentEnd);
    tr.ApplyPropertyValue(TextElement.BackgroundProperty, Brushes.White);
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    Hi Libby,
    Select all three columns of data. All three must be 'regular' columns, not Header columns, and the X values must be in the leftmost column.
    Click the Charts button and choose the Scatter chart.
    The resulting chart will initially show only the first and second columns of data, and the selection will have been reduced to show this.
    Click the gear icon at the top left of the selection and choose Share X Values.
    You should see a result similar to this:
    Notes:
    The values on my sample table contain a random element, so they have changed from thhe first image to the second.
    The chart is as created by Numbers, with two edits:
    Data points have been connected with curves, using the Chart nspector.
    The curves were selected and their stroke increased to 2pts, using the stroke formating button in the format bar.
    Regards,
    Barry

Maybe you are looking for

  • NPE 10.1.3.1 - Can you solve it?

    I get an NPE in OC4J 10.1.3.1 that I did not get in OC4J 9.0.4. The easisest way to explain it that it seems that a ResultSet that is populated in a bean, via JSP javascript invocation, is "lost" once that same JSP attempts to access it for display.

  • Got crackling audio in MainStage 2.2.2? I did, and here's how I fixed it...

    A lot of people are talking about an issue in MainStage 2.2.2. where crackling audio gradually builds in the signal and eventually becomes unbearable. I had this issue but none of the solutions I found in the support community worked for me. The obvi

  • Form with report question

    Hi, I have developed all my forms of type 'Form with report' which after entering values, displays the report page that shows the details entered. In the form page definition I have a select list for customer id which diplays 'customer name' as retur

  • Windows Update does not work

    Windows update always says that there are no new updates (for months now - obviously it's not true). When I try running manually an update file, it almost always gets stuck on "Searching for updates on this computer".  Also, usually when I run a prog

  • What is the best way to specify the color of a control or indicator?

    What is the best way to command the color of a control or indicator?  Can color be programmed within the code?  If so, which versions of LV have this feature? Thanks, Jeff Jeffrey Bledsoe Electrical Engineer