Bar Chart colors

Hi gang,
I'm trying to use patterns on my bar chart.
For example: One bar would have zig-zags, another would have vertical lines, another would have horizontal line and so on. What type of functionality do I have with formatting these graphs.
Edited by: Mr. Okelly on Sep 16, 2010 11:20 AM

You may be able to replicate patterns by using a picture as your fill image in the bar chart. Try experimenting with code like:
<SeriesItems>
<Series id="0" color="#000000">
<SFX fillType="FT_TEXTURE" textureURL="file:d:\temp\house1.gif" textureDisplayMode="TDM_STRETCHED"/>
</Series>
(taken from http://blogs.oracle.com/xmlpublisher/2009/01/shape_charts.html )
Change the "textureURL" to point to a picture of your texture and you should be good.
For more information you can look in the Graph DTD about SFX fill types: http://www.oracle.com/technetwork/middleware/reports/graph-dtd-technote-2-094743.html#Special_effect_element .
Hope this helps.

Similar Messages

  • Bar chart color

    I have the following code snippet that uses JFreeChart to plot a bar chart and it works perfectly fine. I was wondering if there was a way to choose what color you want the bars to be? For right now, it always defaults to red and I just can't figure out how to change it to another color. Any help will be appreciated.
              DefaultCategoryDataset dataset = new DefaultCategoryDataset();
              dataset.addValue(3.0D, "Salary", "Rahul");
              dataset.addValue(3.0D, "Salary", "Prashant");
              dataset.addValue(2.0D, "Salary", "Chandan");
              dataset.addValue(2.0D, "Salary", "Vinod");
              dataset.addValue(10.0D, "Salary", "Total");
              JFreeChart chart = ChartFactory.createBarChart("Sample Category Chart", // Title
                        "Employees", // X-Axis label
                        "Salaries", // Y-Axis label
                        dataset, // Dataset
                        PlotOrientation.VERTICAL, false, // Show legend
                        true, false);
              chart.getTitle().setPaint(Color.blue);
    Thanks.
    Gabsaga

    Come on, there has to be a way doesn't there?

  • 3D bar chart, color by height of bar

    <p>I would like to create a 3D bar chart where the color of the bar depends on the height of the bar. Has anybody done this with CR?</p><p>Bob.</p>

    <p>Not sure about previous versions, but in CR XI you can set conditional colours for your graph. </p><p>Go to Chart Expert->Color Highlight and make the color conditional on the value of whatever your y-axis is.</p>

  • Stacked bar chart colors

    Post Author: mecca
    CA Forum: Charts and Graphs
    I hope someone knows the answer to this question. Can you change the color format of a stacked bar chart line individually (not the whole lines color), I need to hide the min field by using the color white, but when I set the format color to white based on the value of greater than 0, then whole stacked line turns white. I have tried both by series and by group.
    thnx in advance,
    Mecca

    Post Author: Dan3D
    CA Forum: Charts and Graphs
    Not sure I understand. Is it a Stacked BAR chart? a Stacked LINE chart? a combo bar/line stack chart?
    Take a look at www.threedgraphics.com and go to CRChart and see if any of our examples look close???
    -Dan @ 3D

  • How i can change bar chart color in runtime??

    i have a bar chart with red as a default color.
    <mx:BarSeries
    id="progressBar"
    yField="Task_Name"
    minField="Start_Date"
    xField="Progress_Date"
    displayName="Progress"
    >
    <mx:fill>
    <mx:SolidColor id="progressColor" color="red"/>
    </mx:fill>
    i want to give the user the option to change the color. i
    used the following code:
    progressColor.color = colorChooser.selectedColor;
    colorChooser is color picker components.
    but that doesn't work. it doesn't change the color. it just
    changes the tooltip border color of the bar chart.
    please help
    thanks

    hi Shafr
    beleive it or not, i got it using trial and error. i keep
    trying words in the function setStyle until the color changed. i
    dont know why it is not documented.
    var periodBarColor:SolidColor = new
    SolidColor(taskSchedColorChooser.selectedColor, 1);
    periodBar.setStyle("fill",periodBarColor);
    //where taskSchedColorChooser is colorPicker component. you
    can replace it by any color you want

  • Bar Chart colors in Keynote

    I want to highlight one bar of a bar chart series in a different color than the rest of the series. I have Keynote 5.3. Any suggestions?

    When I do this, all the bars in the series change.
    Then you have not selected Plot Columns as Series:
    single 2007 bar selected and colour changed from green to orange:

  • Stacked bar chart with single group

    Post Author: rt50896
    CA Forum: Charts and Graphs
    Dear all,   I have a question about stacked bar chart with one group value(normally more than one group value is ok)   ex. YYYYMM      PRODUCT    AMT        -
            200601          ABC            1000        200602          ABC              300        200603          ABC              500       .....   the data collection is as above,then chart display: x-axis as YYYYMM,y-axis as PRODUCT...   but why this case the bar chart color not the same for each YYYYMM? and legend not display one PRODUCT as ABC only?   the bar chart display like this:   http://tkfiles.storage.live.com/y1po30C7CH6eW9phoLAXH89MBGwFLYdEZ3kOMQXUQzDzwM-VNnffibEwqPI8TIUNBm1f7uKTjnkaOI   ps. crystal report version is 8.5Regina

    Thanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
    I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
    select
         trunc (each_day) as week_of,
         0 as effort
    from (
         select
              (to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
         from dual
         connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
    where
         to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
    Thanks for taking a look at this.
    Mike

  • I would like to change the colour of bars in a chart without losing the underlying default texture associated with my chosen theme. None of the 3D textured fills offered in "Chart Colors" match the textured fill of the theme. Any suggestions?

    I would like to change the colour of bars in a chart without losing the underlying default texture associated with my chosen theme. None of the 3D textured fills offered in "Chart Colors" match the textured fill of the theme. Any suggestions?

    Thanks Gary, but no, that does not work. First of all, I can't select each bar individually. When I click on one bar, all three bars are selected.
    When I use "inspector > graphic" I have 5 fill options: none, color, gradient, image, tinted image. The default selection for the theme I'm using is image. What I would like to use for my charts is the same image that this theme uses for table headers. It has the same texture as the chart, but a different colour. Using anything but image or tinted image removes the texture from the fill.
    I have found I can do one of two things. I can select tinted image from the fill selections in "inspector > graphic" or I can select 2D Image Fills from "inspector > chart > chart colors". The first choice does not allow me to match the table header colour because it only allows me to apply a tint to the existing colour and adjust its opacity. The existing colour has too much influence on the fill, so I can't find an RGB adjustment that will match the table header colour. The image selections from "inspector > chart > chart colors" do not quite match the colour or the texture. Again, I can try to tint the image, but I still can't get it to match and the texture is not the same anyway.
    The image I want to use obviously exists in the software as it is an attribute of the theme, but for some reason is inaccessible. The other angle I have tried is to edit the theme, but I can't figure out how to do that either.

  • CR for VS 2005 - Bar Chart - Bar colors

    Hi,
    I'm creating a report in Visual Studio 2005 and have a bar chart in it.  I've searched the forums but can't seem to find out how to change the colors of the Series bars.
    If anybody has any ideas or suggestions, they would be greatly appreciated.
    Thanks in advance.
    Ron

    Apparently, the version of CR that ships with Visual Studio doesn't allow much in the way of customization.  I have since upgraded to CR 2008 and can now change the bar colors.

  • Fine-grained control of colors in a bar chart

    Hello,
    Short version: How do I control the colors of the bars in a bar chart in Keynote, so that each bar, representing a particular entity, retains its color no matter its position relative to the other bars after updating the chart?
    Detailed version: I am using iWork '09. In Keynote I have a 3D bar chart showing an indicator for different companies (industry comparison). The companies are sorted in ascending order by revenue, so that the lowest bar (company with smallest revenue) is to the far left and the tallest - to the far right. I update the chart regularly. I have the following problem: each bar, representing a company, is in a particular color. When I update the chart, if the the order of the companies changes, the colors of the bars do not change, so that in the new chart the order of the colors is the same, although some or all of the bars now represent different companies. In other words: if in version 1 company A is in red and comes before company B which is in blue, if in the next version company A comes after company B, I want its bar to still be red. In the current situation, if company A comes after company B its bar will be blue and comapny B's will be red, i.e. red still comes before blue.

    I have to give up the beautiful colors of the automatic chart and only use the restricted number of colors from the color well.
    There is no restricion in the choice of colour, the colour depth on a Mac has over 16 million to choose from.
    Further, the fill type has options for;  colour, gradient, image and tint

  • How to change the color of bar in bar chart

    Hi I'm
    using Crystal Reports 2005 with Visual Studio 2005. How do i change the color of the bar in a bar chart, i don't see any options, someone telling in the forum that i can simply right click on the bar and choose color, but i don't get that option. all i can select is the entire chart object.
    any help is greatly appreciated.
    Thanks
    yesvee

    You have to make sure that you select the correct part of the bar.
    For Example:   When you click on the outside of the chart, the entire chart will be selected. Clicking somewhere inside the chart will also highlight the entire chart, but to highlight a specific bar or line you have to click until only that part is highlighted.
    Once you have the bar or series highlighted, right-click on the highlighted section and then select Chart Options, or "Format Series Riser" and you should be able to change the colour of the bar/line.

  • Colored bars in BAR Chart

    Hi all,
    I want to display a bar chart which is having different colored bars. For example, i am now using equipment wise bar chart, if i am having 50 equipments, all 50 equipments should be displayed in different colors in bar chart. Now i am getting output for those 50 equipments having same color. I tried by giving that equipment column in DATA MAPPING -
    > LABEL COLUMNS, I got only 32 bars which is in different colors in output. Kindly give me some solution for this.
    thanks in advance

    You may have more than 32 bars but they will be the same data series and therefore the same color.  For separate colors the limit is 32 (I think you'll see that pens 17-32 repeat the colors from pen 1-16 in the default template).
    It sounds like your best bet is using ValueColumn for your numerical field and then LabelColumn for the string name field.  This way, depending upon the results returned it will provide good coloration between bars, but it may also be decreasingly relevant beyond the first 'x' items.  A normal Pareto chart might use the notion of top 10 or top 20, which would be well within the 32 color limit.

  • Can you change color of bars in bar chart?

    I have made a chart by using the spreadsheet and converting my data to a bar chart. I would like to change the default colors of the bars in the chart but so far haven't figured out how to do it, if indeed it is possible. Is it? If so, how should I go about it? I have been able to change the labels for the bars, but I want to change the colors of the bars themselves. Also, is it possible to change the arrows in the pictogram graph to some other clipart that might better represent the thing I am graphing?
    iMac G5   Mac OS X (10.4.8)   AppleWorks 6.2.9

    "I tried what you suggested, but it didn't work. When I click on the color square in the legend, a small circle appears in the square, but I am unable to select any of the paint tools. ... (Likewise, when I open the Modify dialogue and try to select the color in the sample box there, AppleWorks won't let me change it."
    Paint tools won't work, as the bars are Draw objects, and you have only limited control over them while the chart is still connected to the spreadsheet. Click on the colour square in the Legend. The white dot indicates it's selected.
    Now click on the Fill formatting button in the bottom section of the Tools (It's the almost invisible plain white button in the stack of three. The other two are the Pen formatting button—which has a black outline—and the Text formatting button—which has a T.). Then choose a colour from the Colors palette in the stack to the right of the three buttons.
    "Similarly, when I open the Modify dialogue and try to delete the arrow symbol in the sample box, it won't go anywhere; I just get an alert sound and nothing happens. Am I doing something wrong?"
    Should work like this:
    Double click the chart.
    In the Modify dialogue, click Series.
    In the Series dialogue, click the Sample box. A black outline should appear around the box, indicating it is selected.
    Press Delete to delete the current image. You should then see only the background colour.
    Press command-V to Paste your image.
    Uncheck Repeating to get a single copy of the image, stretched to fill the bar.
    Check Repeat to get a fixed size image that repeats to fill the bar.
    Set the overlap percentage if you want the repeating image to overlap.
    Click OK to return to the chart and view the results.
    Regards,
    Barry

  • How to change the color (or fill) of a SINGLE bar in a bar chart series

    I've searched the forum and consulted the help system in Keynote '09, and I can't find the answer.
    I have a simple bar chart with 6 bars. I want to select two of the bars and turn them a different color. I only seem to be able to change the color of the series as a whole. I can only select the series as a whole, and I can't Ungroup it or even copy it to the clipboard (it beeps!). I've tried changing the color of the number represented by the bar in the underlying table; can't be done.
    Am I attempting something impossible? If so (grumble grumble), why hasn't Apple made it possible? It seems like an obvious thing to allow.

    It is unfortunately impossible -- the individual bars are not selectable. As a workaround you can a) overlay them with a rectangular object, or b) overlay them with a second chart identical to the first, with all the bars except the two set to zero.

  • SSRS- Drill down to sub report of a bar chart on click on a particular color of the bar

    Hi,
    I have a bar chart which can have many colors on each bar, Now if i click on a bar, i am getting all the data related to that particular bar. Is it possible to click only on a particular color and get related data instead of whole bar?
    To be more precise, in the below image if i click on 16/6/2013 bar, i am getting all the data related to the bar, but is it possible to click on red  and green colors of the bar separately and  get the relevant data? Any help is greatly appreciated.
    Kruthi Hegde

    Hi Kruthi,
    In your case, you can use “Go to report” property to solve the issue.
    Suppose we have a dataset (DataSet1) in main report and subreport with following fields: Months, DateTime, Amount. We can according to Months and DateTime fields to display the subreport. Please refer to the steps below:
    Subrepot:
    Add dataset (DataSet2) in the report with Months field.
    Add dataset (DataSet3) in the report with DateTime field.
    Add two parameters in the report. Please refer to the following Available Values:
    Months:
    Dataset:  DataSet2
    Value field: Months
    Label field: Months
    DateTime:
    Dataset:  DataSet2
    Value field: DateTime
    Label field: DateTime
    Add filters in the tablix.
    Main report:
    Right click the bar chart, select Series Properties.
    Click Action in the left pane, select “Go to report” option.
    Specify the corresponding report.
    Click Add icon to add parameters to run the report:
    Name: Months    Value: [Months]
    Name: DateTime    Value: [DateTime]
    (Note: If we want subreport display these data which is only relevant with color, we can delete DataTime parameter in the report.)
    If you have any questions, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

Maybe you are looking for