Changing fill type in JFreeChart Bar chart

Does any one knows how to change the fill styles of a Bar in the Bar chart using JFreeChart ?
Currently the fill type is Plain,But I want to use the crosses (*) and dots (.) as fill type.
Thanks in advance
Sampath

Is there no answer to my question?

Similar Messages

  • How to enter 3,46 and not have it change to 4 in CS5 bar chart?

    Hi,
    I use CS5 (Win) and I want to be able to enter bar chart values less than whole numbers - like 3,46... when I write that it automatically changes to 4. How/where do I change the setting for this?
    Thanks in advance!
    Eva

    I found it! You click the cell style button up top where you enter the values. There you can select the number of decimal digits.

  • Generating JFreeChart Bar chart in jsp

    Hi Everyone,
    I have never worked with charts earlier. I created one demo for generating a bar chart using a java class. I am using awt classes here. Chart was rendered successfully on running this java class. My problem is i want to integrate this class with a JSP, by involving servlets. I tried to do it many a times now but yet not successfull.
    My requirement is, on the hit of 'generate chart' in one jsp, bar chart should be rendered.
    Can somebody plz help???
    Thanks in advance

    Has no update on the problem mentioned. However, you can try elegantj charts. It creates customized, dynamic charts in few minutes.
    Link: www.elegantjcharts.com

  • 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.

  • OBIEE: How to sort a bar chart by a measure not displayed in the chart?

    I have a table with OEM sales volume comparisons between two periods, current year and previous year. I have calculated a "VOLUME CHANGE" measure by subtracting last year's volume total column from this year's volume total column, and would like to display the resulting VOLUME CHANGE column in a horizontal bar chart.
    However, I want the bar chart sorted in descending order by the sales volume total column rather than the value of the calculated "VOLUME CHANGE" that is displayed.
    Can someone help me make this happen?
    In Answers I can make a bar chart sort according to any sort applied to a measure IF YOU INCLUDE THE SORTED MEASURE IN THE CHART, but I can't readily see how to do this if you wish to only include one measure in the chart but sort it by another measure from the same table.
    Help would be appreciated.
    Thanks.

    Well, we have some kind of disconnect.
    I see that the first value on the horizontal axis will supply the sort. The sort depends on the default, or whatever sort you have set on the column in the Criteria tab.
    But if I remove that measure from the chart, I lose the sort and it defaults back to sorting by BRAND, alphabetically.
    I can't see any options for hiding the measure in the chart itself and preserving the sort by the hidden measure. I know how to do that quite easily in Tableau, but I can't find it here. In the Criteria tab when I go to "column properties" the only option tabs I see are "Style", "Column Format", "Data Format", "Conditional Format" and "Interaction" and none of those offer any option for hiding the column.
    When you go to the results tab and then edit the layout of the resulting data table, you do get options to hide columns in the results table. But they still show up by default when you create a chart based on the table. From the editing options for the chart itself I see no option for hiding any of the measures, only the option to drop the measures down to the "Excluded" box, at which point they a cleared from the chart along with any associated sort settings.
    Is there any way to include a screen shot with the post?
    Can someone be more specific about where the menus and options are to make this happen?

  • Setting legend layer attributes for SAP Bar Chart Graphics

    Hello!
    I'm using the SAP Bar Chart for displaying a calendar which is easily printable.
    Because the chart contains lines with colored layers without text I need to show a legend at the bottom of a printed page.
    I am using the CALL FUNCTION 'BARC_SET_LEGEND_ATTRIB' for setting up the legend and CALL FUNCTION 'BARC_ADD_LEGEND_NODE' to add the nodes/layers and texts to the legend.
    The only problem is that the width of each layer displayed in the legend in very narrow. Only ten letters are shown for each legend entry and this is not enough to display the meaning of my colored bars in the chart area.
    I tried changing layer-values in the bar chart customizing ( /ocng ) but nothing helped to make the legend entries wider.
    Does anyone have an idea?

    Hi,
    Try this link  
    [http://help.sap.com/saphelp_40b/helpdata/fr/52/670cd2439b11d1896f0000e8322d00/content.htm]
    You can find sample SAP reports for graph and graphics
    [http://www.erpgenie.com/sap-technical/abap/sample-codes-for-sap-graphs-a-graphics]
    Ben.

  • 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.

  • How to change the bar chart rendering image format in SSRS

    Hello all,
    I am working with SQL Server 2008 R2 and I have a SSRS bar chart report, when the report got rendered over online or if the take Export (PDF and PPT), the image is in png format always, which is taking too much of time to execute the report in case of large
    data.
    Can, It be possible that the rendered image is in jpeg format instead of png.
    If Yes, please share the appropriate steps to follow:
    Thanks in advance
    Pankaj Kumar Yadav-

    Hi Pankaj067,
    According to your description, you want to change the bar chart rendering image format as JPEG format when previewing the report or exporting to a PDF file .
    In Reporting Services, the chart rendering image format is PNG by default. It’s a by-design behavior. And it doesn’t open any API for us to change the image type when exporting a chart to a format. So in your scenario, your requirement can’t be achieved
    in Reporting Services currently. I would recommend you submit a feature request to Microsoft at this site:
    https://connect.microsoft.com/SQLServer. So that we can try to modify and expand the product features based on your needs.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • 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

  • Chart: Changing the color of a bar

    Hello Experts,
    We would like to change the color of a particular bar in the chart. Can someone share a code snippet to achieve the same? If we use color-pallete aggregation then color change is getting reflected to all the bars.
    We are using makit library, please note that we had tried the same with viz library also.
    Snippet from XML view:
    <ma:Chart id="idChart1" height="50%" width="100%" type="Column"
      rows="{/}" showRangeSelector="true"
      showTableView="false" showTotalValue="false">
      <ma:category>
      <ma:Category column="type" displayName="Product" />
      </ma:category>
      <ma:values>
      <ma:Value expression="tickets" displayName="Gross Value"
      format="number" />
      </ma:values>
      <ma:columns>
      <ma:Column name="type" value="{BillCycle}" />
      <ma:Column name="tickets" value="{Volume}" type="number" />
      </ma:columns>
      </ma:Chart>
    Regards,
    DR

    annajus wrote:
    Hello
    I am having trouble changing the color of a line chart. I can change colors in bar charts, but it does not let me change the colors for the same data set in a line chart format.
    Do you mean that you want to have different parts of the same line to appear in different colors?
    When I move the chart to Pages it won't let me put the chart legend actually in the chart (which I need based on the APA guidelines).
    Print the Chart to PDF and import the PDF to Pages, with the Legend wherever you want it.
    Finally - any thoughts on how to adjust the X axis so that the first data point doesn't start right on the Y axis?
    Set the Axis Minimum to some other value.
    Regards,
    Jerry

  • I have my settings to not fill in the URL bar when I type. Yet, when I type something, it's giving me a drop down of sites that match as I type. Why? And how do I get it to stop? It's really annoying.

    Example: If I'm typing in www.mozilla.com, when I get to www.mo, it drops down a list of all the sites I've previously gone to that start with that.

    Quote: ''I have my settings to not fill in the URL bar when I type''<br />
    Do you have an extension to make that setting or did you change the pref [http://kb.mozillazine.org/browser.urlbar.maxRichResults browser.urlbar.maxRichResults] on the about:config page to 0 or -1?
    In the Firefox 3.0.x versions you are limited about what to do with the location bar.
    * Old Location Bar: https://addons.mozilla.org/firefox/addon/7637
    If you update to Firefox 3.5.x or 3.6.x then you have more options for the location bar behavior.<br />
    See [[Smart Location Bar]]

  • 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

  • Double-clicking a transparent vector shape pretends like it's going to let you change the fill type

    One thing that's irritating/confusing/non-intuitive about the new vector layers is that, if your vector layer has no fill, then double-clicking on the layer will bring up the controls for whatever type of fill you had before changing it to "no fill". That part is a bit confusing, but not too bad. The bigger problem is that, if you then try to change the fill from those controls, the vector shape remains unchanged after you click OK. So in other words, if my vector shape currently has no fill, and I double click it and select a new color from the color picker, obviously I want the shape to have that new color when I click OK, but instead nothing happens.
    For those who like to answer questions that were not asked , I am aware that you can (finally!) change the fill type by clicking the appropriate fill button in the Options bar. I'm not talking about that right now.
    I think the option to change the type of fill should be available in the color picker window, the gradient fill window, and the pattern fill window, so you can switch fill types on the fly.

    Thanks for the feedback.
    The best (and recommended) way to change the fill of a shape layer is to use the option bar panels for the vector tools. These are going to give you the best up-to-date shape layer controls.
    But we left in the legacy behavior of double-clicking on the layer thumbnail to change the fill options as a way of easing the transition to the new shape layers. We didn't make any changes to these dialogs or their overall behavior, which is why they don't allow you to change the fill type and why the layer appearance doesn't update if the fill is set to None in the options bar.

  • How to change the width of the bar of bar charts?

    Hi,
    I am using Crystal Reports 11.
    I created some stacked bar charts. Now, I want to change the width of the bar. Some one told me that I can't do that because it's totally controlled internally by Crystal Reports.
    Really?
    If could, how could I do?
    Thank you in advance.

    Hi,
    The only way you can set the width of the bar is by going to Chart Options (Right-click Chart in Preview Mode > Chart Options > Appearance tab > Decrease the Gap Width).
    Hope this helps!
    -Abhilash

  • 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.

Maybe you are looking for

  • VM Server 3.0.2 -Unable to add servers to new server pool

    Hello everyone, Please forgive me if I'm missing something obvious. I am new to Oracle VM, and just setting up a test platform for the first time. (used virtualbox before). I have a network environment that has 2 VM servers, 1 VM Manager (all 3 machi

  • New ipod touch does not have firmware 2.0

    I ordered my ipod touch on July 17th, after the firmware release but still have the older firmware. Am I still supposed to pay for the firmware update? I have no idea whom to pose this question to at apple. Any ideas/thoughts?

  • New features in oracle 11g over 10g

    hi forum, can you please let me know the major difference and steps for upgrading to oracle 11g from oracle 10g

  • Problem with ALV in Docking container

    Dear All, I have created an <b>editable ALV</b> in a <b>docking container</b>. In this ALV there are some custom buttons in the toolbar. In case a custom activity, in the toolbar, is executed some checks are performed which when fail an error message

  • How to make a 'printready' booklet pdf?

    InDesign CS6 Sorry in advance for any incorrect terminology :-) I have a *thick* booklet to be printed -- has about 3mm creep. No idea if printing company will be able to use the source files (or know how) to deal with this. Now... I have my print-re