Defaulting colors in charts

Hi,
We have a requirement that, one of the dimensions we use in chart views actually define the color of the corresponding bar (let's assume it is a bar-chart). This can be done by setting conditional formatting on the measure (e.g. if the fruit name is apple, the bar is green, if it is orange the bar is orange and so on). However, we want to make it system default so whenever I put fruit dimension and a measure in a chart, we want the colors to be determined automatically as they should be (green for apples etc) without setting the conditional formatting for each chart.
Is there a mechanism to achieve that? Or,is copying and pasting in conditional formatting possible as standard column formatting?
Thanks for your help

According to my knowledge we can’t change the color in the charts . According to legend color we will get that in Charts . and we cant change the legend colors in report level .please correct me if I am wrong

Similar Messages

  • Change default colors of charts

    Hello everyone,
    is it possible to change the default background color and fonts color of charts? I know about changing the line colors (which I have already done according to our corporate design), but I did not find anything about setting background colors by default. We have two different themes (a dark and a bright one) and I don't want to copy the charts just to apply different colors to it.
    Thank you in advance
    Chris

    Hi Chris,
    I understand that BI 11g, gives some standard colors to the chart (The first preference might be blue ;) If I remember correctly). However, say you would like to change the color of the chart to green, I think we cannot directly override its color. Instead we can take a approach of chart options based on position at http://docs.oracle.com/cd/E21764_01/bi.1111/e10544/creatingviews.htm#CHDDEFEF
    As per the above link, we can give custom color to the bars based on the order they come up. Like in a group, 1st one blue, 2nd one green, 3rd yellow etc.
    So if you have only one bar per graph, use this setting to specify the graph color using position =1
    Hope this helps.
    Thank you,
    Dhar
    Edited by: Dhar on Jan 17, 2012 5:37 AM

  • Create class in custom.css to define one's own default colors for charts

    Hi All,
    I need to create a set of default colors for bar charts instead of the default ones. I dont want to change the colors in palette.xml file because there are other charts depending on the default colors. Is there a way I can create a new class that I can define in the Custom CSS class section. I am working on obiee 10g
    Thanks,
    Kavya

    To force automatic wrapping as a function of the coordinate x (as opposed to a ctrl-enter), I modified the WrapApp( ) as follows: i) added a keyListener to the JTextPane component:
          edit.addKeyListener(new java.awt.event.KeyAdapter() {
             public void keyPressed(java.awt.event.KeyEvent evt) {
                editKeyPressed(evt);
          });and, added the following listener:
       private void editKeyPressed(KeyEvent evt) {
          try {
             int dot = edit.getCaret().getDot();
             Rectangle cc = edit.modelToView(dot);
             System.out.println("CTP: " + dot + ", (x, y): (" + cc.x + ", " + cc.y + ")");
             if (evt.getKeyCode() == 8) {
                return;
             if (cc.x > 100) {
                insertLineBreak(); // as shown in the reference provided earlier
          } catch (BadLocationException ex) {
       }The behavior is fine as it automatically wraps and it outputs:
    CTP: 0, (x, y): (3, 3)
    CTP: 1, (x, y): (10, 3)
    CTP: 2, (x, y): (17, 3)...
    However, if I add change the component orientation edit.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT), the x-coordinate is shot to its positive limit and all printed characters are no longer visible! The output now is:
    CTP: 0, (x, y): (32770, 3)
    CTP: 2, (x, y): (32763, 3)
    CTP: 4, (x, y): (32756, 3)...
    Any idea how to fix that the x-coordinate is within limits (e.g., it should be bounded by the size of the editor pane)?
    Thank you.
    -mmm

  • How do I set default colors for XY chart series (lines and legend)

    I am implementing a line chart and need to override the default (caspian style) colors for the line colors and the legend symbols. I'm not displaying the chart symbols themselves as that would make the chart look bad. I've been able to successfully set the default colors for the lines via the CSS below, but cannot find a way to do the same for the series symbols that appear in the chart legend. How do I do this? Thanks.
    .default-color0.chart-series-line {
      -fx-stroke: rgb(0, 102, 255);
    .default-color1.chart-series-line {
      -fx-stroke: rgb(0, 255, 102);
    ...Update:
    Figured it out. Need to do the following:
    .default-color0.chart-line-symbol {
      -fx-background-color: rgb(R, G, B);
    }Edited by: 998038 on May 16, 2013 4:09 PM

    Here is some css to customize the line and legend colors in a line chart.
    /** file: chart.css
        place in same directory as LineChartWithCustomColors.java */
    .default-color0.chart-series-line {
      -fx-stroke: rgb(0, 102, 255);
    .default-color1.chart-series-line {
      -fx-stroke: rgb(0, 255, 102);
    .default-color0.chart-line-symbol {
      -fx-background-color: rgb(0, 102, 255), white;
    .default-color1.chart-line-symbol {
      -fx-background-color: rgb(0, 255, 102), white;
    }And a test harness to try it:
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.Scene;
    import javafx.scene.chart.*;
    import javafx.scene.control.*;
    import javafx.scene.input.*;
    import javafx.stage.Stage;
    public class LineChartWithCustomColors extends Application {
        @Override public void start(final Stage stage) {
            stage.setTitle("Line Chart Sample");
            //defining the axes
            final NumberAxis xAxis = new NumberAxis();
            xAxis.setLabel("Number of Month");
            final NumberAxis yAxis = new NumberAxis();
            //creating the chart
            final LineChart<Number,Number> lineChart =
                    new LineChart<>(xAxis,yAxis);
            lineChart.setTitle("Stock Monitoring, 2010");
            lineChart.setCreateSymbols(false);
            //defining a series
            XYChart.Series series = new XYChart.Series();
            series.setName("My portfolio");
            //populating the series with data
            series.getData().setAll(
              new XYChart.Data(1, 23),
              new XYChart.Data(2, 14),
              new XYChart.Data(3, 15),
              new XYChart.Data(4, 24),
              new XYChart.Data(5, 34),
              new XYChart.Data(6, 36),
              new XYChart.Data(7, 22),
              new XYChart.Data(8, 45),
              new XYChart.Data(9, 43),
              new XYChart.Data(10, 17),
              new XYChart.Data(11, 29),
              new XYChart.Data(12, 25)
            lineChart.getData().add(series);
            //adding a context menu item to the chart
            final MenuItem resizeItem = new MenuItem("Resize");
            resizeItem.setOnAction(new EventHandler<ActionEvent>() {
              @Override public void handle(ActionEvent event) {
                System.out.println("Resize requested");
            final ContextMenu menu = new ContextMenu(
              resizeItem
            lineChart.setOnMouseClicked(new EventHandler<MouseEvent>() {
              @Override public void handle(MouseEvent event) {
                if (MouseButton.SECONDARY.equals(event.getButton())) {
                  menu.show(stage, event.getScreenX(), event.getScreenY());
            Scene scene =
              new Scene(
                lineChart,800,600
            stage.setScene(
              scene
            stage.show();
            scene.getStylesheets().add(
              getClass().getResource("chart.css").toExternalForm()
        public static void main(String[] args) {
            launch(args);
    }

  • Displaying specified colors on the pie chart rather than default colors

    Any ideas on how I can display my own colors on the pie charts rather than displaying default colors?

    Hi,
    You can specify your own colours by changing the default CSS styles.
    Go to the Chart Attributes for the pie chart, and in the CSS section select Yes in the "Use Custom CSS" option. You can now edit the CSS for the chart.
    At the bottom of the "Custom CSS, inline" setting, you need to add in two lines for each possible segment of the chart. Something like:
    rect.data1{stroke:#FFFFFF;stroke-width:0.5;fill:green;}
    path.data1{stroke:#FFFFFF;stroke-width:0.5;fill:green;}
    rect.data2{stroke:#FFFFFF;stroke-width:0.5;fill:yellow;}
    path.data2{stroke:#FFFFFF;stroke-width:0.5;fill:yellow;}
    rect.data3{stroke:#FFFFFF;stroke-width:0.5;fill:red;}
    path.data3{stroke:#FFFFFF;stroke-width:0.5;fill:red;}
    This will set the colours of the first three segments to green, yellow and red respectively. Add in more rect.datan and path.datan entries until you have accounted for the maximum number of segments that your chart may contain.
    Regards
    Andy

  • Default Colors of Pie Charts

    Dear all,
    we are very happy with the default colors of the pie charts in Oracle BI 10.
    After migrating the catalog to 11.1.1.5 the colors has changed to very dark color types.
    Is there an option to switch back to the old colors of a pie chart?
    Regards,
    Stefan

    Hi,
    Have a look at this blog: http://shivabizint.wordpress.com/2011/04/17/setting-default-graph-series-colors-in-obiee-11g/
    Regards

  • How to change the default color of the selected row

    hi all,
    I need to know how to change the default color(yellow) of the selected row in a table component.whether i need to change anything in the stylesheet.If so, where should i make the changes in the stylesheet.
    thanks and regards,
    rpk

    The chart colors are being referred to *'palette.cxml'* file in these directories
    BI_HOME\web\app\res\s_oracle10\chartsupport
    BI_HOME\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\chartsupport
    you can change to your custom colors.
    Restart OC4J and PS to make the new ones work..
    Regards,
    Raghu

  • How can I change the color of chart in webi report

    Hi :
      I create one Webi report including one table and chart  In BO 4.0.
    The chart  display  the relationship between sales-amount and profit amount . I do not want to use the default color but want to specify the red color for sales-amount and yellow color for profit amount . How can I do it ??
    Thanks Very Much
    Emily MA

    Hi,
    You can change the color very easily. It's simple & straight forward which I found it couple of days back. (Sometimes simple things are hard to find :-p )
    Select the area in the Chart that you want to change color, then go to Format > Style > Background color. Now select the color that you want. In the attached picture, I have selected Yellow color for a piece of pie chart.

  • Default Colors Limit for Graph in OBIEE 11g

    Hi, I'm using OBIEE 11g (11.1.1.6.6)
    When I use a graph (either bar or pie), I notice that OBIEE only has 12 default colors to use in the graph. So it starts from blue, red, and so forth, until the 12th color, then for the 13th color it will use the same blue again, and so forth.
    The problem is that my column values are more than 12 (it could be 20, it could be 30, etc). So, the repeating colors doesn't make any sense for the graphs.
    Could somebody please advise me on how to increase the default number of default colors used by OBIEE (so that it will be like 50 default colors set automatically by OBIEE, just in case)?
    Thanks so much!

    Hi,
    type HexaDecimal colors in google you will find n number of colors with the code number, just use this color codes by adding# before every code in the column format properties.
    for ex: #ccc99
    Follow this follwoing link
    http://www.google.co.in/imgres?imgurl=http://howto.websitespot.com/images/hexadecimal-color-chart.gif&imgrefurl=http://howto.websitespot.com/hexadecimal-colors/&h=706&w=498&sz=63&tbnid=9_3i-3tIMDNffM:&tbnh=91&tbnw=64&prev=/search%3Fq%3Dhexadecimal%2Bcolors%26tbm%3Disch%26tbo%3Du&zoom=1&q=hexadecimal+colors&usg=__nWfHEFVvPfjMfZyq2MxXkhJ-288=&docid=FXj6mM0pc4RQTM&hl=en&sa=X&ei=FDxJUc2cDqS8iwKetICACQ&sqi=2&ved=0CEAQ9QEwBA&dur=280
    Mark if Helpful/correct.
    revert me for any queries
    Thanks
    Edited by: 934322 on Mar 19, 2013 9:38 PM

  • 10g Graphs - How to customize the default color of a Bar Graph

    Hi,
    I've posted this thread in Reports section, have received no reply yet. Maybe no one has ever tried this before!!
    I am porting a couple of 6i OGD's to 10g graphics.
    Basically I am invoking reports from a form. The reports contains embedded Graph.
    Here comes the tricky part.
    I have a couple of Graphs in 6i that display each bar of a bar graph in different color.
    Example:
    Value       Bar Color
    Critical     Red
    Major       Orange
    Minor       Yellow
    None       GrayQ) I want to know how to set the color of each bar of a bar graph based on the value it takes. i,e If it's critical the bar should be displayed in red. If it's major, the bar should be displayed in orange.
    I added conditional formatting in 10g Graph, and this is the trigger that was created.
    function CT_1FormatTrigger return boolean is
    begin
      -- Automatically Generated from Reports Builder.
      if (:f19 > -1)
      then
        srw.set_foreground_border_color('yellow');
        srw.set_border_pattern('solid');
        srw.set_foreground_fill_color('yellow');
        srw.set_fill_pattern('solid');
      end if;
      -- Automatically Generated from Reports Builder.
      if (:f20 > -1)
      then
        srw.set_foreground_border_color('red');
        srw.set_border_pattern('solid');
        srw.set_foreground_fill_color('red');
        srw.set_fill_pattern('solid');
      end if;
      return (TRUE);
    end;When I try to invoke the above report from the form, I get the error: FRM-41214: Unable to run report.
    If I remove conditional formatting, I am able to invoke the report from the form with the default color in the embedded graph.
    Hopefully someone has ideas on this!
    Thanks

    Why don't you use the build-in charting capability of reports 10g instead? There is FormsGraph.jar implementation for forms but that might not have the flexibility of what 6i graphs has/had and not "officially" supported - not like the reports 10g charting capability (which is built in and can be customized by editing the related xml files (if necessary). Note: FormsGraph.jar has it's own limitations

  • How to remove the orange default color of the first cell in an ALV report

    Hello all,
    I have coded an ALV grid report (in ABAP object) and when I execute it, I saw that the first cell containing data, in the top left corner of the ALV grid is always colored in orange by default. This bothers me because I have colored this cell in green (if I select an other line in my grid, I can clearly see that my top left cell is colored in green).
    Does anyone knows how to "desactivate" this orange default color ?
    Thanks for your answer.
    Best regards
    Cyril S.

    Thanks Uwe and Rainer,
    Unfortunately, I tried what you mentioned both and nothing works.
    As you said, it seems mandatory that a cell must be selected by default in an ALV grid.
    That's a pity because this "ugly orange" hides my beautiful green color.
    I will answer my customer that it is not possible. That's all.
    Thank you for your help. I did appreciate.
    Best regards
    Cyril S.

  • Is there a way to change the default colors for iPad apps?

    I noticed one of my friends iPad 2 had a different color scheme for apps and I would like to change my iPad 2's default ( which is currently grey). To elaborate, the default color for the borders and tabs in Safari are grey on my iPad, my friends are blue. Would like to change from the drab grey color to blue also but I cannot find a setting for this. All applications and Setup apps have this default color scheme on my ipad. Do I have to reset the iPad and start over with setup to achieve this? Hope not, perhaps someone can shed some light on an easy way to do this. Thank You!

    You can apply  system-wise "negative" color effect under Settings > General > Accessibility, by toggling the White and Black switch - and, in iCab Mobile (and some other, better browsers / PDF readers), its own "night mode" negative color scheme.
    Otherwise, no, you can't do anything else except for asking third party app authors to add selectable back/froeground (=text) colors to their apps.
    There is an article dedicated to this question: http://www.iphonelife.com/blog/87/do-you-find-your-idevices-screen-be-too-blueis h-or-just-too-harsh-bedtime-reading

  • Can I change the default color of a calendar event?

    I have a couple calendars that will be using the overlay functionality in 2010, and chosing colors for the overlays is no problem.  However the main calendar defaults to green, and then when you open any of the overlay calendars their default color
    is green on their calendar but different on the main version.  Is there a way I can change the default so that either the main calendar doesn't show green (then each overlay owner wouldn't be confused), or to change the seperate overlay calendars to have
    their default match the selected overlay color?Denzel

    Hi Denzel,
    SharePoint 2010 calendar makes use of CALENDARV4.CSS file.  The default location of this file is [C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033\STYLES\Themable\]
    Search for .ms-acal-item element in this CSS file and make changes to
    background-color property to suit your requirement.  A trial and error method could allow you to achieve your functionality.
    CAUTION: Kindly make backup of your original CALENDARV4.CSS file, before making any changes.
    There is a good reference/sample of Calendar Styles by Heather Solomon for earlier SharePoint version 2007 here:
    http://www.heathersolomon.com/blog/archive/2007/11/20/SharePoint-Calendar-CSS--Clean-and-Condensed.aspx
    Additionally, please make use of Internet Explorer 8 Developer Tools (F12) to further explore the overlay calendar CSS.  Hope this helps.
    Thanks & Regards,
    Kamlesh | Blog |
    Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    If you get your Question answered, please come back and mark the reply as an Answer, so others can find it.
    If you get helped by an Answer to someone else's question, please vote the Post as Helpful.

  • How to get default color of a selected row in a JLIst

    I have a JList that I am changing the font color for based on a certian situation so I created my own MyCellRenderer to do this. However, when I select an item in the list the row is no longer highlighted. I used the isSelected method to determine if a row was selected and then change the background color of that row. However, I would like the color to be the default color that you get when you select a row in a default JList. I can't seem to figure out how to get that color. How do I obtain what that color is? I found an example where you can get the default color for the background of a button and use that color so I would guess it is something similar to that. My code is below so I hope someone can tell me how to get that color that I want.
    Thanks...Chris
    class MyCellRenderer extends JLabel implements ListCellRenderer {
         public MyCellRenderer() {
              setOpaque(true);
         public Component getListCellRendererComponent(
             JList list,
             Object value,
             int index,
             boolean isSelected,
             boolean cellHasFocus)
             int index1 = value.toString().indexOf("-");
               String errors = value.toString().substring(index1 + 1, index1 + 6).trim();
             int numErrors = Integer.parseInt(errors);
               if (numErrors > 0)
                      setForeground(Color.red);
                      setBackground(Color.white);          
             else
                  setBackground(Color.white);
                  setForeground(Color.black);
             if(isSelected)
                  //ColorUIResource col = (ColorUIResource)UIManager.getDefaults().get("JButton.background");
                  ColorUIResource col = (ColorUIResource)UIManager.getDefaults().get("Button.background");
                  setBackground(col);
             setText(value.toString());
             return this;
    }

    Swing related questions should be posted in the Swing forum.
    I would like the color to be the default color that you get when you select a row in a default JList. I can't seem to figure out how to get that colorlist.getSelectionBackground();

  • How do I change the default color in pages.

    How do I change the default color in pages.  Everytime I try to copy and paste a passage, I am unable to do so because it seems that the ink is always white on white.  Sometimes I am lucky and can change it using the color box in the format bar, but it's a rarity when I'm able to do it.

    What version of Pages & what version of OS X are you using?
    A problem with an early Software Update for Snow Leopard caused a lot of problems. The problem is not whether or not your system is the current version but how it got there. You must use the combo updater, not the one from Software Update unless it specifically states it is the combo. Software Update will only offer the combo if your system is two or more versions behind.
    If you're not running the latest versions of the iWork apps & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. If you installed from the downloaded trial or the retail box, they must be in the iWork '09 (or '08 if that's what you're using) folder in Applications. That iWork folder must be named iWork '09. If it doesn't have the '09 Software Update won't find them & the updaters won't work.

Maybe you are looking for

  • How do you add a signature to your images in Aperture?

    How do you add a signature (ie: jpg my name is) to your images in Aperture? I'd like to put together a look for my images and apply it to the photos. Currently it looks like I have to touch up in Aperture and go to PS3 to add the signature. Is there

  • Will macbook pro output video to a 1280x1024 native monitor well?

    My standard resolution monitor is bigger than the laptop display but has a different native resolution. Will the operating system still look good?

  • Using Serializable interface

    Hi, I have to write a program that implements the Serializable interface along with a LinkedList. It looks like this: public class Library implements Serializable{    private LinkedList<LibraryBranch> collection; }However, all of my methods after tha

  • Database creation error ucing DBCA

    Hi! When i istalled oracle 9i .the installation is suucessful but database creation is not. the database creation aborted with error invalid size entry(expected 419...1232 but found 4192...1230 ) Pls Help Hainder Kaur

  • Problems with the header

    Hello, I have followed the tutorial using my own Photos but now I have a problem. I have taken a screenshot to shot how the header "involves" with the next line. I don't know how to solve this problem? Isabella