Change line graph color to red when negative?

I've got a line graph charting my budget. Anyone know if there is a way to have the line be red if it is negative, and the standard blue if it is in the positive?
I didn't see any sort of option when I briefly looked around Numbers - but I thought I'd ask.

I believe your thinking about the "color red if negative" type thing you can do in cell formatting. I couldn't find a way of doing any kind of conditional formatting in charts. I had to use a rule to do it in cell formatting.
If someone else knows a way, I hope they will tell us. I can't find it.
Jason

Similar Messages

  • CR 9 - Need HELP Setting Line Graph colors in the Chart Expert

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I created a Crystal Report (CR) based off an existing Trend Analysis report. I have created a VB6 application that calls the .RPT file I created for the report in CR.  The VB6 app sets the report recordset via code that corresponds to the .TTX file, and the parameters .  The report contains a Line graph that plots five pieces of data.  The report & graph work good.  The Problem: CR determines the color of each line on the graph.  However, I need to set the color for each line to correspond to the colors used on our existing reports.  The users are accustom to a certain color representing a certain set of data on the existing reports.   I have tried everything I can think of and from all documentation I can find, and nothing changes the line colors.   I have tried all of the following:
    1.) From the Chart Expert, Option tab, I click the Format button next to Color and setup conditional color settings per each piece of data.   However, when I run the report these conditional color settings are not reflected on the CR graph.     I am using formula fields (based off database fields in the recordset) to produce the report.  However, I only see the database fields to use in the conditional color formatting screen and not the formula fields.    I thought this would possibly be the cause why the colors wonu2019t change on the CR, but I canu2019t find a way to make the formula fields show up in the list.
    2.)Also, I tried right clicking the individual lines of the graph and change the selected item color, but this didnu2019t change the color either.  I do this in Design mode and Preview mode and neither one changes the color of the lines on the graph.
    3.)I have also looked into the CR object model to see if I can change the line colors of the graph via code and it doesn't look like I am given this flexibility.
    Do you know what I am doing wrong here?   I just want to be able to set the color of each line on the CR graph to the color I want instead of using the default colors.  Are there some Hot Fixes that I need to apply to my copy of CR?
    Thanks

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I got the problem fixed w/ the line graph not making the data lines the same color on the report as on the frmPlot graph.   Compare the two screen shots below.   The problem was as follows:  When I created the graph (in the Chart Expert) the field u201CReadingDateu201D was not one of the Report Fields, and all the other fields were Report Fields (Reading, LowAlarm, UpperAlarm, LowerLimit, & UpperLimit). See the 3rd screen shot below.  ReadingDate does show up as a Report Field now but it wasnu2019t at first.   Originally, this field was only available in the Chart Expert as a recordset field.  When I changed this field to be a Report Field, the graph then allowed me to change the data series line colors.   This was not obvious at all.   From the beginning when I setup the graph and passed in the recordset from VB it graphed all of the data series fine.   The colors that the Chart Expert chose for each line just didnu2019t match what was on the frmPlot graph.   Anyway, it is working now.     I can at least say I learned (somethingu2019s to-do and somethingu2019s not to-do) a good bit about Crystal Reports in the process.
    Thanks

  • CR XI - Problem Setting Line Graph colors in the Chart Expert

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I created a Crystal Report (CR) of an existing Trend Analysis report. I have created a VB6 application that calls the .RPT file I created for the report in CR.  The VB6 app sets the report recordset via code that corrsponds to the .TTX file, and the parameters .  The report contains a Line graph that plots five pieces of data.  The report & graph work good.  CR determines the color of each line on the graph.  However, I need to set the color for each line to correspond to the colors used on our existing reports.  The users are accustom to a certain color representing a certain set of data on the existing reports.   I have tried everything I can think of and from all documentation I can find, and nothing changes the line colors.   I have tried all of the following:
    1.) From the Chart Expert, Option tab, I click the Format button next to Color and setup conditional color settings per each piece of data.   However, when I run the report these conditional color settings are not reflected on the CR graph.     I am using formula fields (based off database fields in the recordset) to produce the report.  However, I only see the database fields to use in the conditional color formatting screen and not the formula fields.    I thought this would possibly be the cause why the colors wonu2019t change on the CR, but I canu2019t find a way to make the formula fields show up in the list.
    2.)Also, I tried right clicking the individual lines of the graph and change the selected item color, but this didnu2019t change the color either.  I do this in Design mode and Preview mode and neither one changes the color of the lines on the graph.
    3.)I have also looked into the CR object model to see if I can change the line colors of the graph via code and it doesn't look like I am given this flexibility.
    Do you know what I am doing wrong here?   I just want to be able to set the color of each line on the CR graph to the color I want instead of using the default colors.
    Thanks,Steve

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I got the problem fixed w/ the line graph not making the data lines the same color on the report as on the frmPlot graph.   Compare the two screen shots below.   The problem was as follows:  When I created the graph (in the Chart Expert) the field u201CReadingDateu201D was not one of the Report Fields, and all the other fields were Report Fields (Reading, LowAlarm, UpperAlarm, LowerLimit, & UpperLimit). See the 3rd screen shot below.  ReadingDate does show up as a Report Field now but it wasnu2019t at first.   Originally, this field was only available in the Chart Expert as a recordset field.  When I changed this field to be a Report Field, the graph then allowed me to change the data series line colors.   This was not obvious at all.   From the beginning when I setup the graph and passed in the recordset from VB it graphed all of the data series fine.   The colors that the Chart Expert chose for each line just didnu2019t match what was on the frmPlot graph.   Anyway, it is working now.     I can at least say I learned (somethingu2019s to-do and somethingu2019s not to-do) a good bit about Crystal Reports in the process.
    Thanks

  • How to change the text color to red in a combo box?

    I'm writing a java program which have a combo box which shows all the name of the member from the database. However, I would like to change the text color of those member who have now currently on-line.
    Please help, it's URGENT. Thanks in advance.
    Clark

    hi,
    as i mentioned, you would require to use a custom renderer for this, for this
    //Class subclass the JFrame and has a JList in it
    import javax.swing.*;
    import java.awt.*;
    import java.util.Vector;
    public class ListRendererTest extends JFrame
         private JList lstMenu;
         private DefaultListModel defaultListModel;
         private JScrollPane scrollPane;
         private Vector listVector;
         public ListRendererTest()
              init();
              addComponents();
              showFrame();
         public void init()
              lstMenu = new JList();
              defaultListModel= new DefaultListModel();
              lstMenu.setModel(defaultListModel);
              scrollPane      = new JScrollPane(lstMenu);
              listVector = new Vector();
              MyListData m1 = new MyListData();
              m1.setName("Rakesh");
              m1.setOnline(false);
              listVector.addElement(m1);
              m1 = new MyListData();   //represents each User instance
              m1.setName("Makesh");
              m1.setOnline(true);
              listVector.addElement(m1);
              for (int i=0;i < listVector.size(); i++)
                   defaultListModel.addElement(((MyListData)listVector.elementAt(i)));
              lstMenu.setCellRenderer(new MyListRenderer());  //set custom renderer
         public void addComponents()
              getContentPane().add(scrollPane,BorderLayout.CENTER);
         public void showFrame()
              setTitle("List renderer test");
              setSize(300,300);
              setLocation(200,200);
              setVisible(true);
         public static void main(String args[])
              new ListRendererTest();
    }The above class is the Container which houses the JList in it, it uses two other classes, MyListData which is used to represent each user instance ( username, and information about whether he is online) and MyListRenderer (custom renderer).
    // Represents each user instance //
    public class MyListData
         private String name;
         private boolean online;
         public void setName(String name)
              this.name = name;
         public String getName()
              return name;
         public void setOnline(boolean online)
              this.online = online;
         public boolean isOnline()
              return online;
    //custom list renderer
    import javax.swing.*;
    import java.awt.*;
    public class MyListRenderer extends DefaultListCellRenderer
         private MyListData myListData;
         public Component getListCellRendererComponent(JList list, Object value, int index,  boolean isSelected, boolean cellHasFocus)
               myListData = (MyListData)value;
               setText(myListData.getName());
               setBackground(myListData.isOnline() ? Color.red: Color.white);  //check if online, if so show in different color
               setForeground(isSelected ? Color.blue : Color.black);
               return this;
    }hope that helps.
    cheerz
    ynkrish

  • Change cell's color in jtable when user clicks on it

    Hi everyone,
    i've got a JTable, and would like to change the background of a cell when user selects it
    so i added a mouselistener over my jtable, the mousereleased method looks like this:
              public void mouseReleased(MouseEvent e) {
                   int row = table.rowAtPoint(e.getPoint());
                   int column = table.columnAtPoint(e.getPoint());
                            // help needed
              }as you see, i found the code to get the index of the cell selected, but i don't find any method in JTable class to get the cell component itself, and to alter its background color
    Please notice that the "setSelectionBackground()" in JTable isn't enough, since i would also like to change the color of cells which are not selected when the user select a cell
    how could i do that?
    Thanks in advance!
    edit: i tried the following but it does not work either
              public void mouseReleased(MouseEvent e) {
                   int row = table.rowAtPoint(e.getPoint());
                   int column = table.columnAtPoint(e.getPoint());
                   AbstractTableModel atm = (AbstractTableModel) table.getModel();
                   Component cell = table.getDefaultRenderer(CaseMemoire.class).
                   getTableCellRendererComponent(table, atm.getValueAt(row, column), true, true, row, column);
                   cell.setBackground(Color.MAGENTA);
                   table.updateUI();
              }

    ok i found how to do it
    i directly inserted this in the renderer code:
    if (row == table.getSelectedRow() && column == table.getSelectedColumn())
    cell.setBackground(etc);
    (curiously it does not work with "if (isSelected)")
    thanks :)

  • Cannot change internal graph color in Conky

    Hey everyone,
    I have run into a problem when configuring my Conky widget for my fresh Arch install.  I installed Conky and am using a modified configuration that I found here on the forums.  The contents of my conky.conf file are found below:
    background yes
    use_xft yes
    xftfont Sans:size=8
    xftalpha 1
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_type desktop
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 500 250
    maximum_width 200
    draw_shades yes
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color black
    default_outline_color white
    alignment top_right
    gap_x 12
    gap_y 35
    no_buffers yes
    uppercase no
    cpu_avg_samples 4
    override_utf8_locale no
    text_buffer_size 1024
    TEXT
    ${font sans-serif:bold:size=9:}${color CFCFCF}SYSTEM ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}$sysname $kernel $alignr$machine
    Host: $alignr$nodename
    Uptime: $alignr$uptime
    File System: $alignr${fs_type}
    ${font sans-serif:bold:size=9}${color CFCFCF}PROCESSORS ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}CPU (Avg): $alignr ${cpu cpu0}%
    ${cpugraph cpu0 40,200 237BEE -l}
    Core 1: ${cpu cpu1}% ${cpubar cpu1}
    Core 2: ${cpu cpu2}% ${cpubar cpu2}
    Core 3: ${cpu cpu3}% ${cpubar cpu3}
    Core 4: ${cpu cpu4}% ${cpubar cpu4}
    ${font sans-serif:bold:size=9}${color CFCFCF}MEMORY ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}RAM $alignc $mem / $memmax $alignr $memperc%
    $membar
    ${font sans-serif:bold:size=9}${color CFCFCF}DISKS ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}Root $alignc ${fs_used /} / ${fs_size /} $alignr${fs_used_perc /}%
    ${fs_bar /}
    Home $alignc ${fs_used /home/johnmichael} / ${fs_size /home/johnmichael} $alignr ${fs_used_perc /home/johnmichael}%
    ${fs_bar /home/johnmichael}
    ${font sans-serif:bold:size=9}${color CFCFCF}TOP PROCESSES ${color 818181}${hr 2}
    ${font sans-serif:bold:size=8}${color A8A8A8}${top_mem name 1}${alignr}${top mem 1} %
    ${top_mem name 2}${alignr}${top mem 2} %
    ${font sans-serif:normal:size=8}${color 818181}$font${top_mem name 3}${alignr}${top mem 3} %
    $font${top_mem name 4}${alignr}${top mem 4} %
    $font${top_mem name 5}${alignr}${top mem 5} %
    ${font sans-serif:bold:size=9}${color CFCFCF}NETWORK ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}IP address: $alignr ${addr wlan0}
    ESSID: $alignr ${wireless_essid wlan0}
    Connection Quality: $alignr ${wireless_link_qual_perc wlan0}%
    $alignr${font sans-serif:normal:size=8}Download
    ${font sans-serif:normal:size=8}${downspeedgraph wlan0}
    ${downspeed wlan0}/s $alignr ${totaldown wlan0}
    $alignr${font sans-serif:normal:size=8}Upload
    ${font sans-serif:normal:size=8}${upspeedgraph wlan0}
    ${upspeed wlan0}/s $alignr ${totalup wlan0}
    ${font sans-serif:bold:size=9}${color CFCFCF}EMAIL ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}Gmail Messages: $alignr ${execpi 300 python ~/.scripts/gmail.py}
    GA Tech Messages: $alignr ${execpi 300 ~/.scripts/imap.pl}
    The problem that I am having is in trying to specify the internal color of the cpu graph for the average cpu activity:
    ${cpugraph cpu0 40,200 237BEE -l}
    I want to keep the boarder of the graph the same darkish grey color as the rest of the widget but I want to change the color of the portion of the graph inside the boarder to a blue color, e.g. the hex color in the code above, or more specifically to match the blue that I am using in my Archey and prompt in urxvt.
    I looked up the Conky variable defintions for how to do this and apparently you specifiy gradientcolor1 and gradientcolor2 after the size definition, similar to how I have done it in my conifg (I know that I am only using one color in the above code but it is still not working even when I define two different colors).
    Here is a picture of my desktop:
    http://ompldr.org/vZzR6dw
    As you can see the internal portion of the graph is the same grey color as the majority of the widget.  I searched extensively on the forums and Google for a solution but everything that I try doesn't work. 
    Any suggestions?

    I hope this is 'fixed' by Apple in a mail.app update.
    Let them know what you want via the feedback channel:
    http://www.apple.com/feedback/macosx.html
    But Mail has never had a provision for setting the default font, size, or color in its preferences and there is no indication this will ever be changed.
    A related thread:
    http://discussions.apple.com/thread.jspa?threadID=1467587&start=0&tstart=0

  • Crystal Reports - Change Line Chart Color Dynamically

    Hello,
    I have Crystal report 14.
    I'm trying to create a line chart and need to be able to set the colors of the lines at the time the report is run.   The colors the lines need to be are specified in a database and a different color could be specified each time the report is run. 
    Can anybody suggest how I would do this?
    Thanks
    Edited by: Robert4543 on Nov 16, 2011 5:23 PM

    I've tried to use 'Color Highlight'  to change the color of the lines, but it only changed the colors of the markers on the line, not the actual line itself.  Is there a way to get it to change the color of the line? 
    I may have one line I need to display as 1 color, and a 2nd that I need to display as another.  Using color highlight changed the markers for both lines to the same color.  Is there a way to specify which line I want to change the color of in "Color Highlight"?
    Thanks.
    Edited by: Robert4543 on Nov 16, 2011 8:41 PM

  • Can you change the Graphs Colors in BEx Web Analyzer?

    Dear All,
    I have few queries I have developed via BEx Query Designer which I am opening from BEx Web Analyzer in portals. Unfortunately the colors in the Graphs are not very pleasant. I was wondering if there is a way we can customize the colors which is given by the standard.
    I am aware that we can do this is BEx Report Designer. But I would like to do this is BEx Query Designer.
    Please help..
    Cheers,
    Shanka

    Hi Shanka,
    There is no option as such in BEx Query Designer.
    You can manipulate and play with colors only in Report designer or Web Application Designer.
    In Bex Query designer, you will find only exceptions which are related to colors but chart colors cannot be manipulated in query designer.
    If you are executing the report in workbook, you can change accordingly as it is excel.
    Regards,
    KK.

  • Changing the background color of page when sending an i-photo in an e-mail

    I want to choose a different color background than white on the e-mail page that contains my i-photo image. Is this possible ?

    You are using iPhoto 9 (11)? If you are then the themes would be obvious when you select iPhoto as your mail client in iPhoto's General preference pane (upper left hand image)
    Click to view full size
    and then use the Share ➙ Email button
    Click to view full size
    to get this window:
    Click to view full size
    However, I was mistaken in that the background colors for those themes can't be changed. The same goes for the stationary themes in Mail.

  • My  iPAD 1 just changed its background color to red. The unit is 3  years old. Is something breaking? Time for a new iPAD?

    I am wondering if my iPAD (1st generation) has a major problem since the background color recently went to red?
    The unit still works, but the appearance makes me think something is wrong and can only be fixed by buying a new iPAD.
    Has anyone had this strange color change and how did you handle it?
    Thanks

    Thanks for the suggestion, since I had forgotten how to reboot the unit.
    Unfortunately, the red color persists and even beyond that there are some odd colors while the unit is in use.
    Thank again.

  • How do I change the line color in a line graph?

    I used Illustrator to create a line graph. (Not my desired option as I normally import them from R and then edit, but the textbook wanted to show that you can create graphs and edit them in Illustrator)
    Anyway, I did all of the editing except that I can't change the color of the line. My assignment requires me to match the textbook example and the textbook does not provide instructions on how to do it. I've done just about any method I can think of and the line still stays light gray. I'm almost willing to just give up and lose the points but something as simple as color can't be this hard, right? Right?

    Whenever I try to shift+direct select it thinks I want to move the line, so as I shift + direct select and drag my mouse across the line (to highlight it all) it moves a chunk of the line and turns it into a near perpendicular line.
    I found the appearance window, it just says "Path" (the color I want it to be that it's not)
    "Stroke" 4pt
    "Fill" (the color I want it to be that it's not)
    "Opacity": Default
    And some other buttons. I think I'll try the help line tomorrow, I know I saw a customer service number somewhere and I'm only here because the chat was unavailable. This is only one of my 3 problems with my assignment so I'll search here for answers to the other two. Learning new things is rarely fun.

  • How to set the 4th Y axis color for a line graph

    Hello experts,
    I have developed a multiple y axis line graph using oracle reports 10g.
    It has got 1 x axis and 4 axes. I am able to set the color of the the first three y axes
    but the reports designer automatically assigns yellow color to the 4th axis.
    I mean there is no option in the graph wizard for changing the 4th color)
    How to change the color of this 4th y axis to a desired color?
    Cheers
    Sri

    Assuming you mean that your graph has 4 series, not 4 Y axes, you might try something like this:
    1. Save a backup copy of your current report in case the changes you are about to make don't work out and you want to revert to the backup copy.
    2. Using the Property Inspector, display the current value of the Graph Settings property for your graph. The value of the property should be something like:
    <rw:graph id...
    </rw:graph>3. Look for a <SeriesItems> tag and a matching </SeriesItems> tag in the property value. If you don't find them, add the following two lines immediately before the </Graph> tag.
    <SeriesItems>
    </SeriesItems>4. Between the <SeriesItems> tag and the matching </SeriesItems> tag, add (or update) a <Series> tag for each series that you want to specify the color for. For example, to specify the color of the fourth series as red, you would use a <Series> tag like this:
    <Series id="3" color="#ff0000"/>Note that the id numbers start at 0 for the first series, 1 for the second, and so on. The color value is a hexadecimal number specifying the RGB value of the color.
    You can also use the <Series> tag to specify other features like the marker shape.
    For more information on what you can do using the Graph Settings property, see this FAQ and Technical Note.
    Hope this helps.

  • Line Chart / Graph Colors

    How come I can change the colors of a bar graph series but not a line graph series?

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I got the problem fixed w/ the line graph not making the data lines the same color on the report as on the frmPlot graph.   Compare the two screen shots below.   The problem was as follows:  When I created the graph (in the Chart Expert) the field u201CReadingDateu201D was not one of the Report Fields, and all the other fields were Report Fields (Reading, LowAlarm, UpperAlarm, LowerLimit, & UpperLimit). See the 3rd screen shot below.  ReadingDate does show up as a Report Field now but it wasnu2019t at first.   Originally, this field was only available in the Chart Expert as a recordset field.  When I changed this field to be a Report Field, the graph then allowed me to change the data series line colors.   This was not obvious at all.   From the beginning when I setup the graph and passed in the recordset from VB it graphed all of the data series fine.   The colors that the Chart Expert chose for each line just didnu2019t match what was on the frmPlot graph.   Anyway, it is working now.     I can at least say I learned (somethingu2019s to-do and somethingu2019s not to-do) a good bit about Crystal Reports in the process.
    Thanks

  • Changing graph colors

    Hello,
    I have a bar graph and i want to change the bar color in the graph based on a value or dynamically. Meaning, if i have a variable that has a value "R" then the bar color should be Red. Is this possible in BOXIr2 Deski and if so how do you do it?. Any help is much appreciated
    Thanks,

    Hello Anand,
    I don't think you can (at least I can't in BO6.5, but I don't think there has been much development done on deski since 6.5).
    Normally in a table or crosstab you would define an alerter showing rows/columns differently based on the value of a measure.
    If you want to achieve that in a graph you need to proceed differently (the alerter is not active when you are working with a graph).
    Based on the measure (eg <sales>) you want to check you create a check_variable:
    = If <sales> < 10000000 Then "R" Else "G"
    Then create 2 new variables:
    <sales red>
    =<sales> Where (<CheckVariable>="R")
    <sales green>
    =<sales> Where (<CheckVariable>="G")
    Now create a graph and put both new created variable in there. You can now control the color of each variable seperately.
    Hope this helps you further.
    Cheers,
    Harry

  • How to change marker size in line graphs

    Hello,
    I'm using line graph and i show markers for the user know where to see a tooltip. I observed that the line markers are very big and clutter my graph when points are very close one anothers. I would like to make them smaller, but I don't know how to do it.
    Any help is appreciated.
    Thanks,
    Plan.
    <dvt:lineGraph ...>
    <dvt:seriesSet markerDisplayed="true">
    </dvt:seriesSet>
    </dvt:lineGraph>

    >System Preference>General
    this will change text size and associated icon size.

Maybe you are looking for