Missing lines/bars in a chart

Hi,
just another little problem.
Let's assume that i have a column chart, and a series of simples values:  3, 5, 7, 2, 9, 2, 1.
Now, let's assume that my vertical axis have a minimum value of 0 and a maximum of 6: i mean, it shows the Y values from 0 to 6.
The problem is that in this way i can see two "holes" in the chart, and it is for the column that have the 7 and 9 values.. the chart doesn't render them becouse their Y value is greater the the axis maximum.. how can i make it show them anyway? I'm developing a simple chart scrolling and i see that this happen with the column but with the lines too.. i'd need to see a bar/line drown till the end of the chart, even if it's end point is not in the visible part of the chart.
Thank you very very much,
Danilo

Thanks, but interpolateValues works if i have missing values.. i have another problem here.. i mean, i have all the values.. for example, i have this points:
A (1, 4)
B (2, 6)
C (3, 2)
D (4, 5)
Now imagine that i have my horizontal axis with the min showed value = 0 and the max = 3.. i will see the points from A to C.. but if i now drag the chart to the left, and i have min = 0.5 and max 3.5.. i can see the same points, and in the chart the line that goes from C to D is not drown, because the D point is not visible.. i can see the line from C to D only when, dragging, the X = 4 point appears in the horizontal axis.. but i want that line to be drown in any case, even if its end point is not in the graph (and the same with the bars).
I hope i've been clear, sorry for my english, and anyway thanks for the answer
Danilo

Similar Messages

  • Plot line, bar and pie chart

    Anyone can let me know where can i learn or tutorial on how to plot line, bar and pie chart by using java2D... (no third-party software)....
    thanks in advance.

    Here's a pie chart app I made for an earlier question:
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class PieChart {
      public static void main(String[] args) {
        int[] data = {
          18, 95, 102, 87
        PieCharter pie = new PieCharter();
        pie.enterData(data);
        JFrame f = new JFrame("Pie Chart");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(pie);
        f.setSize(400,300);
        f.setLocation(300,300);
        f.setVisible(true);
    class PieCharter extends JPanel {
      int[] data, percents;
      int dataTotal;
      final int
        PAD = 25,
        R_PAD = 5;
      public PieCharter() {
        setBackground(Color.white);
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        Font font = new Font("lucida sans unicode", Font.PLAIN, 16);
        g2.setFont(font);
        FontRenderContext frc = g2.getFontRenderContext();
        int width = getWidth();
        int height = getHeight();
        int cx = width/2;
        int cy = height/2;
        int dia = (int)Math.min(width, height) - 2*PAD;
        g2.draw(new Ellipse2D.Double((width - dia)/2, (height - dia)/2, dia, dia));
        // draw zero datum
        double radians = 0;
        int x = cx + (int)((dia/2) * Math.cos(radians));
        int y = cy - (int)((dia/2) * Math.sin(radians));
        g2.draw(new Line2D.Double(cx, cy, x, y));
        String s;
        int dataWidth, dataHeight, deltaR, rXInc, rYInc;
        for(int i = 0; i < data.length; i++) {
          radians += 2*Math.PI * data/dataTotal;
    x = cx + (int)((dia/2) * Math.cos(radians));
    y = cy - (int)((dia/2) * Math.sin(radians));
    g2.draw(new Line2D.Double(cx, cy, x, y));
    s = String.valueOf(percents[i]) + "%";
    dataWidth = (int)font.getStringBounds(s, frc).getWidth();
    dataHeight = (int)font.getLineMetrics(s, frc).getAscent();
    deltaR = (int)Math.sqrt(dataWidth*dataWidth + dataHeight*dataHeight)/2 + R_PAD;
    rXInc = (int)(deltaR * Math.cos(radians));
    rYInc = (int)(deltaR * Math.sin(radians));
    x += rXInc;
    y -= rYInc;
    x -= dataWidth/2;
    y += dataHeight/2;
    g2.drawString(s, x, y);
    s = String.valueOf(data[i]);
    dataWidth = (int)font.getStringBounds(s, frc).getWidth();
    dataHeight = (int)font.getLineMetrics(s, frc).getAscent();
    x = cx + (int)((dia/4) * Math.cos(radians - 2*Math.PI * data[i]/(2*dataTotal)));
    y = cy - (int)((dia/4) * Math.sin(radians - 2*Math.PI * data[i]/(2*dataTotal)));
    x -= dataWidth/2;
    y += dataHeight/2;
    g2.drawString(s, x, y);
    private void prepareData() {
    for(int i = 0; i < data.length; i++)
    dataTotal += data[i];
    percents = new int[data.length];
    int dataPlus = 0;
    for(int i = 0; i < data.length; i++) {
    dataPlus += data[i];
    percents[i] = Math.round(100 * dataPlus/dataTotal);
    public void enterData(int[] data) {
    this.data = data;
    prepareData();
    repaint();

  • Need help in Line bar combo chart - line is not prominent in dashboard

    Hi All,
    I face an issue where the line in a line bar combo chart is not prominent in Dashbords.
    lets say i have 5 reports (all of them are line bar combo charts) in a dashboard. The lines in graph are not prominent or not displayed in usual thickness. But this scenario does not happen always. if i scroll down or up the browser(here i am using IE8) some of the reports displays line in the charts and some does not display the line. when i click on the report then the line will be displayed.
    please suggest whether this is a browser issue ror something to deal with OBIEE itself.
    Thanks in advance.

    Hi,
    It's a bug in obiee11g. kindly download the patch file from My Oracle Support and delpoye it
    OBIEE 11g: Line Bar Combo , With Stacked Chart , The Bar Width Gets Affected [ID 1369493.1]
    Patch 12947990: BAR CHANGES WIDTH WHEN CHART CHANGED FROM DEFAULT LINE-BAR TO STACKED LINE-BAR
    Symptoms
    When the chart type is changed from Standard or Default line-bar to Stacked line-bar chart, the bars are reducing their width.
    Line-bar should keep the width of the previous bars.
    However, when vertical Bar is changed to stacked vertical, the bar width remains the
    same. But when a regular Line-Bar is changed to stacked vertical, the width
    changes (reduces, in this case it becomes half the original width)
    Cause
    For dual Y stacked bar graph, the bar width was half of the regular bar width
    because the series assigned to Y2 was given the half of the space also. This is not needed if the marker type for Y2 is not bar.
    The following bugs have been opened to handle this issue
    Reference Bug:
    Bug 12931660 - line bar combo with stacked chart changes its width
    BUG:12931660 - LINE BAR COMBO WITH STACKED CHART CHANGES ITS WIDTH
    BUG:12947990 - BAR CHANGES WIDTH WHEN CHART CHANGED FROM DEFAULT LINE-BAR TO STACKED LINE-BAR
    Patch 12947990: BAR CHANGES WIDTH WHEN CHART CHANGED FROM DEFAULT LINE-BAR TO STACKED LINE-BAR
    Bug Ref:
    e.x: applying patch file refer the below file
    http://obieeelegant.blogspot.com/2011/11/how-to-apply-patches-using-opatch.html
    Thanks
    Deva

  • Chart Formatting Question: Line Bar Combo

    Hello -
    I have a quick question regarding the order of labels displayed in the legend on a line bar combo chart. I have figured out how to rearrange the order of bars in the chart (the order is determined by the order of fields in the criteria section), however, OBIEE seems to always put the "line" field before the "bar" fields in the legend.
    I was wondering if there is a way to set the chart to display the "line" field following the "bar" fields in the legend?
    Thanks for the help!
    Jason

    Hi Jason,
    Go for Pivot Chart rather than Chart... and
    Apply Order by s as you want inside pivot....
    Previously even i got the order by problem in chart.. but trying the pivot chart, i resolved my issue...
    So give a try..
    Hope you know about pivot chart. Select Chart Only option from drop-down available for chart position
    Thanks & Regards
    Kishore Guggilla

  • Controlling lines vs bars in a line-bar combo chart

    I created a pivot view with 3 measures, and then selected the line bar chart type.
    The first 2 measures show up as bars. The 3rd shows as a line on secondary (right hand dise) axis.
    Is there any way to make the 2nd measure also appear as a line on the secondary axis, instead of a bar on the primary axis?

    Line-Bar issue on 11g is not a bug. It’s part of the upgrade - Stacked line-bar graphs in which 2 or more measures are shown as lines on the same axis and are not stacked in 10g are stacked in 11g.
    http://docs.oracle.com/cd/E21764_01/bi.1111/e16452/apndx_ui_chngs.htm
    I have not found the workaround yet. If you find it please post on the blog.
    Thanks

  • Line-Bar Chart with multiple straight lines

    Experts,
    I have a requirement where in I have to show multiple straight lines on the Line-Bar Chart. For example if we have a graph of County Names(X) vs Population Count(Y). The bars represent the population in each county. And three straight lines across bars should represent avg. population of all counties, region and state respectively. Is it can be done ? if not line-bar any other graph ? Please let me know your valuable suggestions.
    Regards,
    Tom
    Edited by: Tom Lype on Feb 23, 2012 8:58 AM

    Hi Tom,
    I am afraid that the example that you have mentioned is possible in Line-Bar combo or any other graph. What you are asking for is 1 measure against three dimensions is not possible. How can you represent Country, Region and State on X axis on the same graph???
    Regards,
    Rituraj Kumar

  • Line Bar Combo chart with Bar-stack in OBIEE

    Hi,
    I want to create a Line Bar chart with only the Bar as stacked elements.
    The bars should be on the Y1 axis and the Lines on the Y2 axis. Different scale on Y1 and Y2.
    If I try this in OBIEE 11.1.1.5 answers, all elements (Bars and Lines) will be stacked.
    Can anybody help me?
    Thanks for response.
    M

    Line-Bar issue on 11g is not a bug. It’s part of the upgrade - Stacked line-bar graphs in which 2 or more measures are shown as lines on the same axis and are not stacked in 10g are stacked in 11g.
    http://docs.oracle.com/cd/E21764_01/bi.1111/e16452/apndx_ui_chngs.htm
    I have not found the workaround yet. If you find it please post on the blog.
    Thanks

  • How to create static line in line bar graph in obiee 11g?

    Hello,
    I have requirement where user wants to see a line in bar graph.
    Now the line is just static line, we dont have data field available to draw the line in graph.
    is there a way to create a static line in chart and show it in Line bar ombo graph??
    Thanks in advance..

    e.g. i created the static line '10' in fx and now using this column as line in line bar report , but its not displaying the line at measure of '10' in chart.
    Drag the column to measures section of graph (Line - Vertical Axis) to change this static value create an edit box prompt and pass the value to the column using Presentation Variable (as said by Fernando)
    Thanks,
    Saichand

  • Remove grid lines by default in chart view

    Hello,
    I'm working in version 10.1.3.4.1. I've been trying to remove the grid lines from the default chart view. I've read some posts on here and in the blogs about changing the default chart look, but I haven't seen anything specific to grid lines. I think I need to edit the pcxml files located in .../s_oracle10/popbin. I've been messing with these two files:
    - bar.pcxml (this seems to be for horizontal bar charts only)
    - column.pcxml (this seems to be for vertical bar charts only)
    Within <ValueScale> and <CategoryScale> I tried changing the MajorGrid and MinorGrid parameters to values like 'Disabled' and 'False' but this seemed to have no effect. I also tried changing the color from #eeeee to something else but this also seemed to have no effect at all.
    I've replicated whatever changes I've made to the corresponding file in the oc4j directory. I am restarting all services after making my changes. I have been able to get some changes to bar.pcxml and column.pcxml show up in the application. I was able to change the default BarStyle from 'Cylinder' to 'Rectangle' successfully, so I think my process of editing the file, copying it to the corresponding oc4j directory, and then bouncing the services is working.
    Can anyone point me in the right direction for getting all of the grid lines to go away by default? So far I've only tried removing them from bar charts, but ultimately I want them off by default on line charts as well.

    Are you able to acheive this.?
    PCXML script is used for chart rendering, and with that I think you can't demark the Gridlines.
    The following Xml file gives the definitions for the chart components including gridlines.
    chartviewtemplates.xml
    Which inturn refers to the following js for gridlines
    i think you have to work on the Js here demark the grid lines by default
    <Oracle_BIHome>\web\app\res\b_mozilla\views\chart
    dlggridlineseditor.js
    Before doing any changes take the backup.
    Thanks,
    Vino
    Edited by: Vinodh NK on Oct 22, 2010 3:44 AM

  • OBIEE 11g - Line-Bar Graph problem

    Hi,
    I am trying to build a Line-Bar graph where the line represents target. My data is as follows:
    Dim1 Dim2 Fact Target
    A Z 10 2
    A Y 5 2
    B X 6 3
    B W 7 3
    Please note that, the target is same across same Dim1. Like A has same target, B has same target.
    Now if I create a stack chart with stack based on Dim2 (Dim2 is in the Vary by Colour), then I get mutiple line for target with the same value for each Dim1.
    I am not sure if I could explain it clearly.
    I want to show one line for the target since its same for Dim1. How can I do that?
    Please help.
    My chart config is as follows:
    Group By (Dim1)
    Vary Coulor by (Dim2)
    Bars (Fact)
    Lines (Target)

    Not yet, and I've been too busy with some SEV 1 issues to goof around with it. I also need to open a ticket about default pivot table formatting - i.e. removing the background colors under the non-data areas, and they also seem to have some sort of gradient fill at the bottom. I'll let you know if I hear anything.
    Thx,
    Scott

  • Line bar combo with logarithmic scale

    hi, I found that
    logarithmic scale is not supported for line bar combo.
    I have checked the checkbox "Use logarithmic scale" under "Tick Marks & Scale Type" under "Axis Scaling" for the left axis.
    but the charts (both checked and unchecked) are the same, there is no difference.
    And it is unable to check the checkbox "Use logarithmic scale" for the right axis.
    is it the limitation ?

    Hi,u use enterprise Edition???
    check this blog,really helpfull
    http://obiee101.blogspot.com/search/label/CHART
    hope i helped...
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • Connect missing lines in image trace

    I am teaching myself Illustrator and I came across the image trace feature in CS6. I am able to to copy my drawing and do the image trace feature, but I am having trouble connecting missing lines to do a color fill without selecting the background area.
    Now, I may sound dumb, so please forgive me, but is there a way to connect missing lines using the image trace, or pen feature, that will allow me to select a specific area and do a color fill with selecting the background as well?

    To upload an image, click on the camera icon in the toolbar for this forum.
    The direct selection tool will select all points if you click on the object. But you can click on a single point, shift select other points or drag select. If there is another object below the object you want to edit, use the move tool and double click on the object to put in isolation mode. In that mode only that object is editable.(click the gray bar above to get out of isolation mode or press escape key)
    When using the direct selection tool make sure there is not a plus side of the cursor, if there is that's the wrong tool. (just press the lowercase a on keyboard)
    To join to end points(they must be end points and only two points are allowed at a time)
    Use the direct selection tool (lowercase a)
    Select one point
    Hold shift and select second point
    Object>Path>Join (ctrl-j on windows and cmd-j on mac) or if you have a two button mouse you can right click and choose join from the menu.

  • Missing Lines when printing, scanning or copying HP Deskjet 3055A- need to use cartidge guarantee

    I have a HP Deskjet 3055A and since I put a new HP cartidge my printing, scanning and copying miss some lines. In other words, some lines are printed and some are not. This only happens with the black cartidge and not when I print in other colours.  I read the HP guidlines for " Streaks or Missing Lines in the Patterns or Bars on the Extended Self-test Report" and I follow the whole proceeding, including the cleaning of the ink cartidge and NOTHING HAS WORKED.  As the cartidge was recently bought I want it to be replaced. That's what the garantee is for, isn't it?
    So my question is how to proceed now?

    Welcome to the forums chsl
    I saw your post about your Deskjet 3055A now showing print quality issues since changing the ink cartridges. I understand you have done some troubleshooting however, I wanted to publicly post the guide I would recommend for the problem you're having.
    If there are any steps you haven't attempted, please give them a try!
    Fixing Ink Streaks, Faded Prints, and Other Common Print Quality Problems
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions: click here.
    Have a great day
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Column & Line in a single chart. Ignore Grouping for Line

    Hi,
    Here is the scenario to show a chart for "Resource Allocation to selected Projects and capacity".
    1. Show Staked Columns for Projects<o:p></o:p>
    2. Show Capacity of Resource with Line Chart (both should be in same chart)<o:p></o:p>
    3. Group By Projects(Series Group) and Category Groups By Month.<o:p></o:p>
    Following is the desired out:
    Problem I'm facing:
        I was able to show both Columns and line by changing the chart type for capacity. But issue is that Group By (series Grouping) is applying to Line (Resource capacity) as well. So multiple resource capacity lines are appearing on the
    graph. It would be good, If charts allows to display only one line by summing all group values for resource capacity. 
    So, Can we stop considering group By for line chart(Resource capacity)?
    Below screen shows that how current report displaying.
    Thanks in advance.
    Thanks, Ram

    Hi ram,
    According to your description, I can reproduce the same issue. Since the values in the chart is always relate to Category Groups and Series Groups. The behavior is by design in SQL Server Reporting Services (SSRS).
    In SSRS, chart is similar to the matrix.
    The Columns group in the matrix is identical to the Category Groups area in the chart.
    The Rows group in the matrix is identical to the Series Groups area in the chart.
    The Data area in the matrix is identical to the Values area in the chart.
    Since we add data in the Values dialog box, it is in the Category Groups and Series Groups scope.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

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

Maybe you are looking for

  • Integration of BI 7.0 and EP7.0, problem with connection

    Hi all, I am trying to integrate Ep7.0 (located in one server) with BI 7.0 (located on another server). I have successfully created a system in EP. I clicked on connection tests and this is the report which i am getting. Kindly let me know what are t

  • Opening a Browser Window with no Address Bar

    Hello All, I am working on an application which needs to open a new browser window. I need to hide the URL from the user. Right now, I can open the window with no toolbar or address bar with the following command: String cmd = "cmd.exe /c start javas

  • SAP 2007A Fonts in PDF

    In the Print Layout Designer, I am using a font Neuzeit S LT Std Book for the sales orders and invoices. The form prints correct. When I save to PDF , select the PD icon on SAP menu, the font Neuzeit S LT Std Book does not show on PD looks like defau

  • How to make password for the printer to prevent coping paper from other s

     i have ( hp officejet pro 8600) how can i prevent others from making copies of paper  . when i am outside . i mean how can i lock the printer itself

  • Screen saver not working with iDVD

    I am having a concern with my iDVD program. When I tell the iDVD to burn a disk-image it looks like everything is working. Note it takes many hours on a 1.25 Ghz G4. For some reason the screen saver and the energy saver for the screen will not kick i