Fixing legend color for charts

Is it possible to fix legend color in charts ? For e.g. I want
lengend A to have "COLOR1"
legend B to have "color2" etc
It looks like CR chooses color in random order. I need to fix the color displayed for consistency. Please help me.
Pradeep

Hi
- use condition for defining colors in your chart.
- Create a mock legend using text boxes.
Hope this helps!!!
Regards
Sourashree

Similar Messages

  • Define own colors for charts in BW 3.0b, is it possible???

    <u><i><b>Referes to BW 3.0b</b></i></u>
    I have another short question concerning graphs.
    Bex gives a fixed set of optional colors for charts, however I need some other colors in order to fit with the given style guide.
    I know that it is possible to use a picture, however I am looking for a way in order to define my own colors for charts.
    Anybody got an idea?
    Greetings,

    The problem is that I do not have a color column....
    I can choose a color in the chart designer and I also get to the same option when using the wizard. <i>I am not sure if it is the right wizard as I have never used the wizard for chart editing before. How do you open the wizard to edit an already existing chart?</i>.
    In all the menus I can't find any place where I could add RGB. I have my RGB code and everything, I just need to enter it somewhere, so no external tools needed.

  • Define own colors for charts?

    I have another short question concerning graphs.
    Bex gives a fixed set of optional colors for charts, however I need some other colors in order to fit with the given style guide.
    I know that it is possible to use a picture, however I am looking for a way in order to define my own colors for charts.
    Anybody got an idea?
    Greetings,
    Nana

    The problem is that I do not have a color column....
    I can choose a color in the chart designer and I also get to the same option when using the wizard. <i>I am not sure if it is the right wizard as I have never used the wizard for chart editing before. How do you open the wizard to edit an already existing chart?</i>.
    In all the menus I can't find any place where I could add RGB. I have my RGB code and everything, I just need to enter it somewhere, so no external tools needed.

  • 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

  • SP2010: Different colors for chart bars in Chart Web part with single data series?

    Hello,
    I've been asked to create a chart for visual display and summary of Status values within a SharePoint list of job positions. The list of positions includes a Status field with the only values being Open and Closed. I created a page that shows the list, and
    at the top I inserted a Chart Web part that displays two bars - one showing the number of Open positions and one showing the Closed positions. Because I was having difficulty getting the totals for each Status value to show up in the chart, I followed
    the instructions at
    http://highbrowse.wordpress.com/2012/07/04/chart-counts-from-sharepoint-lists/ and pointed my chart at the new "Status values" list - this worked well to display the sum counts for each of the two Status values in separate bars.
    This was all fine and good, except that because I am only using one data series for my chart, both of the bars (for Open and Closed) show up as the same color. I've been asked to make them different colors but cannot figure out how to do so. Can someone
    provide guidance on how I could make the two bars different colors? Thank you so much.
    cheers

    Hello,
    as far as I know, the chart web part does not have any settings to change the color of individual data points or plot data points of a series in different colors. If you only have two values in the series, you could use a pie chart instead of the column
    or bar chart. In a pie chart, the different slices have different colors.
    cheers, teylyn

  • 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);
    }

  • Pie Chart Legend - colors and sorting value

    <p>Hi,</p><p>I have a pie chart with around 20 &#39;segments&#39; representing names of people - so it looks like several of them have the same color.</p><p>So my first question is do the standard 12 colors repeat after 12 segments have been &#39;defined&#39; - can this be extended with custom colors?.  I know you can set colors for specific values but as the list is dynamic, I can&#39;t do that. </p><p>I also have a legend defined which shows the person&#39;s name and then the value - either a percentage or a count etc.    From top to bottom, the legend lists the entries alphabetically by the person&#39;s name - however, it&#39;s not always easy to tell which name is associated with which &#39;segment&#39; and using labels is not an option as they are too long and there are too many of them to be readable<br /></p><p>So what I would like to do is have the legend displayed in numerical size order - e.g. person with largest % is at the top, smallest % is at the bottom etc.</p><p>I&#39;ve been looking at the Chart Expert, CR Help and the forums but have not seen an answer to either question - I&#39;m hoping someone can tell me if it&#39;s possible or not (and if so, how do I do it!).</p><p>Thanks <br /></p>

    Hi,
    If you go to the Chart Expert, on the data tab, you can choose the Top N option. From within there you can get your legend sorted based on the highest or lowest percentage. You can also group information so that you only see the top 5 or lowest 10 or whatever you want.
    Also when I create a pie graph based on 20 plus pieces of data it isn't resusing the colors, but they are somewhat similar. I usually do a group of the top 10 or so, then have an others category for situations like this.Â
    Rody

  • Legend and bars colors on charts not consistent.

    Using Crystal XI, I have a report that selects a top 10 categories in the report.  For each of the 10 categories, I have 4 stacked bar charts showing "dispatched" and "not dispatched".  I also have 1 subreport that charts two trend lines(one for "dispatched" and one for "not dispatched").
    The problem is the color of bars/lines are not holding the same colors for "dispatched" and "not dispatched" from chart to chart.  I verified each chart is sorted in the same manner, but that doesn't seem to matter. 
    I need "dispatched" to be the same color bar/line on all charts for each category and the same for "not dispatched". 
    Does anyone have any idea as to why this might be happening or how I may be able to prevent this?
    I have tried to changing each chart manually, but if the category changes at the next run, the colors are randomly selected again.

    I can try... First, be sure you are in design mode, not preview.  Right click the chart and select chart expert.
    The fifth tab over should be "Color Highlight" click on new,   in the item editor section ( to the right ) you should
    be able to select a item from your database, as well as a condition...   ie   customer region is equal to auckland
    You can select a color below this section.  Since you are changing this in the design mode, it should apply to
    the chart every time it appears in the report.
    Not the best solution, but it should work for your situation.

  • Custom Color Palette for Charts

    Hi all,
    Can I define the colors of a chart by a custom color palette in Design Studio (as you can do it in Web Intelligence) or does SAP intend to implement such a function in a next release? With CSS this isn't fully possible, because it doesn't allow you to coloring the additional line like the corresponding main line.
    I've already seen and commented this post Re: Custom Color Palette for Charts / CSS, but it's still unanswered. Maybe I've with a new discussion more success.
    Thank you and kind regards
    Silvan

    Carola,
    Dirk Mayrock has a nice list here Design Studio 1.1 Full List of CSS classes (?)
    I think you have seen that already.
    Also see Styling a chart in Design Studio
    Especially see participated David Gyurasz as he has answered several CSS questions CSS-Customizing of Column-Combination chart as an example
    Tammy

  • Custom Color Palette for Charts / CSS

    Is there a way of creating a custom color palette for charts (as you can do it in WebIntelligence) and install it on the tomcat?
    Or will I have to set my custom colors in the css? And if so: where can I find a description of classes for Charts? Is there any description of css classes at all? All I could find was a list of classes for a crosstab (but no description).
    Thank you
    Carola

    Carola,
    Dirk Mayrock has a nice list here Design Studio 1.1 Full List of CSS classes (?)
    I think you have seen that already.
    Also see Styling a chart in Design Studio
    Especially see participated David Gyurasz as he has answered several CSS questions CSS-Customizing of Column-Combination chart as an example
    Tammy

  • How to change the colors for individual bubbles in a bubble chart?

    I have a report where in a bubble chart needs to be shown with different colors for bubbles available in the chart. I cant find any option to select individual bubbles and format the color options.
    Any guidance or suggestions solving this would be much appreciated.
    Thanks,
    Vinay

    Thanks JB for your reply, I see in format chart data there is are two sections:
    1. Positional
    2. Conditional
    In Positional - I have the type and color changes for the bubbles but if I change any color in that all the bubbles are simultaneously getting the same color code.
    Not sure if there is any other setting. Please share me your thoughts on this.
    Thanks again

  • Defning own color palette for Chart Items

    Hello,
    i have a requirement for several Cockpits, the values of all diagramms of actual year should have a special color, which is not defined in the color palettes Tradeshow, Streamline or Enjoy.
    I don't want to change the color for each chart, i'v already tried the Portal Theme Editor, but i was not able to change color settings for charts.
    Is it possible to create custom color palette which i can choose in the global settings in the chart item dialog?
    Best regards,
    Frank

    1. Go to the following directory on the server side Installation Directory \SAP BusinessObjects Enterprise XI 4.0\images
    2. Find the file there named as VisualizationConfig.template.xml
    3. Rename this file to VisualizationConfig.xml
    4. Then edit this file and add the color for the palette as you required (RGB colors are used)
    5. Check there are no errors in the config file, otherwise the standard palette is applied – you can define only one Corporate palette, and the palette ID must not be changed
    6. Finally, you need to reboot Tomcat after editing the config file.

  • Automatic Fill colors for Report Builder pie charts and graphs are too repetitive and hard to differentiate

    I have pie charts or other graphs that show multiple results (7-20).  I set the "fill" colors to Automatic so that the results are dynamic (I don't want to specify a color for each result because I will then be limited that those results--I
    prefer it to be dynamic).
    I noticed that once you get above 4 or 5 results, no matter which palette is used, the "automatic" colors are so closely similar that it is hard to differentiate which color pertains to which result (group).  For example, you could have a
    reports that breaks the results into age groups like 1-18, 19-21, 22-25, 26-30, 31-41, 41-50, 51-65, 66-80, and 81+.  By the time you review the results, there's likely to be 3 pairs of colors (or more) that are so closely similar that you can't
    tell them apart (2 shades of yellow, 3 shades of blue, 2 shades of orange, or green, or teal, or purple or whatever).
    Is there a way to use Automatic for the color scheme (I don't care which color pertains to which category) but also specify to not use colors that seem to bleed together (so that someone viewing the report can actually tell the difference)?  Using SSRS
    2008 Report Builder, if it makes a difference.

    Hi JNehman,
    Reporting Services provides a list of predefined, built-in palettes that you can use to define a color set for series on your chart. All built-in palettes contain between 10 and 16 color values. You cannot extend the built-in palette to include more colors,
    so if you need more than 16 colors, you must define a custom palette.
    A custom palette let you add your own colors in the order you want them to appear on the chart. A custom palette is especially helpful if the number of series in your chart is unknown at design time. For more information, see
    Define Colors on a Chart Using a Palette (Report Builder and SSRS).
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Combo chart - different colors for Bar/Line

    Hi,
    In a combo chart is it possible to have different colors for bar and lines......................In our report- combo charts the intersection of bar/line is NOT visible beacuse of same color.

    Yes, I create a formula row with a zero in the first column. The row should be hiden. This has to be at the top of the grid and include the row in your data ranges for the chart.

  • Color Highlights does not work for chart

    When I set the color coding in the chart, it works fine if I run the crystal report on the same DB that I use to design the report.
    Problem occurs if I run the report on another DB. Color Highlights does not work in that case.
    I am using JRC to run the reports.
    Thanks & Regards,
    Amrita

    Hi Jehanzeb,
    In chart expert there is a tab "Color Highlightsu201D. In this tab one can specify the condition based coloring.
    In my case I want to show "RED" color for Unauthorized events andu201D GREEN" color for Authorized Events.
    While creating a report suppose I am using a database server "DB-A".I set the color highlights in the chart as I explained. Please be noted that when we click on the color highlights tab it asks for the database login.
    To view the report we have our own server and we are using JRC APIs.
    Hence I map my report with server and try to view the Report. My Server is connected with database "DB-B" which is different from the database I used to create the report.
    This time color Highlight I have specified while creating the report does not work.
    I have tried using the "Format Series Riser" option. But the problem with this is that, it does not color the chart conditionally.
    I mean if I give GREEN for Authorized and RED for Unauthorized. It gives the green color either to Authorized or Unauthorized which so ever occur first in the chart.
    For example:-suppose there is no Authorized Event on date 15-Jan-2009 and I select the date range starting from 15-Jan.In this case Unauthorized event is the first to print on the chart hence this event get the green color though I expect this events to be in RED color.
    Regards,
    Amrita

Maybe you are looking for