Draw lines in graph parallel to y axis

I want to draw lines in a graph programatically.
In the vi attached, i have displayed a histogram chart.
I need to plot two lines parallel to y axis at different x axis locations to show the bounds/ range of values.
kindly help me in this.
Thank you in advance.
Regards
Grugh Mike
Success is Everything !!
Solved!
Go to Solution.
Attachments:
trial 1.vi ‏15 KB

Or just use a second plot with a special style.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
trial 1MOD.vi ‏10 KB

Similar Messages

  • Unable to draw line touching the y-axis.

    Hi,
    Can anybody suggest how to draw a staright line from the y-axis (touching the y-axis) while drawing a combination graph of line and bar?
    While trying to do show the line is not from the y-axis. The first point is coming in a slight gap.
    Please fing the code.....
    public List getTabularData() {
    ArrayList list = new ArrayList();
    String[] rowLabels = new String[] {"Allocation", "Forecast","Booking", "Loaded"};
    String[] colLabels = new String[] {"03-Jul", "04-Jul", "05-Jul",
    "06-Jul", "07-Jul", "08-Jul",
    "09-Jul", "10-Jul", "11-Jul",
    "12-Jul", "13-Jul", "14-Jul"};
    Double [] [] values = new Double[][]{
    {140.0, 140.0, 140.0, 120.0, 120.0, 120.0, 120.0, 120.0, 120.0, 120.0, 120.0, 120.0},
    {20.0, 42.00, 82.0, 95.0, 102.0, 97.0, 114.0, 124.0, 124.0, 124.0, 124.0, 124.0},
    {0.0, 10.0, 35.0,60.0, 95.0, 110.0, 110.0, 110.0, 110.0,124.0, 124.0, 124.0},
    {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 120.0, 120.0}
    for (int c = 0; c < colLabels.length; c++)
    for (int r = 0; r < rowLabels.length; r++)
    list.add (new Object [] {colLabels[c], rowLabels[r],
    new Double (values[r][c])});
    return list;
    the jspx...
    <dvt:graph id="graph1"
    tabularData="#{backing_abf009page.tabularData}"
    graphType="COMBINATION_VERT_ABS"
    markerDisplayed="true">
    <dvt:o1Axis lineColor="#ff0084"/>
    <dvt:seriesSet defaultLineWidth="1">
    <dvt:series index="0" color="#ffff73"
    markerType="MT_CURVE_LINE" markerShape="MS_DIAMOND" />
    <dvt:series index="1" color="#ff7342"
    markerType="MT_CURVE_LINE" markerShape="MS_DIAMOND"/>
    <dvt:series index="2" color="#94b5ff"
    markerType="MT_CURVE_LINE" markerShape="MS_DIAMOND" />
    <dvt:series index="3" color="#ffff73"
    markerType="MT_BAR" markerShape="MS_DIAMOND" />
    </dvt:seriesSet>
    </dvt:graph>

    It seems it has never been implemented. I tried many different ways but no luck.
    I think it is not possible. You could open a ticket with Oracle Support to get you explained this
    either there is Doc Bug or a Product bug.
    regards
    Jorge

  • Reducing PDF-size: automatic reduction of datapoints that are used to draw lines in a 2d-axis system within report

    Creating fancy pdf-files for costumers and other purposes is great. However, if the experimental data include many datapoints (>200000) a line-2d-graph ends up in a very big pdf-file. Especially when many pages need to be used.
    Explanation:
    When I use lines to show experimental data in 2d-plots the size of my PDF-file is directly influenced by the number of datapoints used. The more datapoints are used to draw lines within the graph, the bigger the exported PDF-files of the report are.
    It would be great to limit the number of points used to draw a line as it can be done with markers without using the curve transformation option. - Hence, e.g. plotting a line with the help of 200 datapoints is usually as good as showing the same line based on 200000 datapoints but the pdf-size is significantly reduced. You can imagine that when this would be done via the transformation option a long lasting script would be needed for each line to reduce the number of datapoints shown. Hence, the plotting within the report and the actualisation of data would need very long.
     

    Since a while DIAdem optimizes the size of exported PDF-files in a related way as it is suggested here. In principle the PDF-file is exported in a very high resolution, so you can display it in a reader with a very high zoom value (e. g. 6000 %) to look into details of your data. If you have a huge dataset, this could lead in fact to a bigger file size, if data points could be displayed because the high PDF-resolution. But in general, DIAdem only saves information in a PDF-file which is really necessary - but with a high resolution.

  • Draw line in xy graph(pict​ure)

    Hi all,
    I import a picture into xy graph than i enable to annotate some indicators.
    after i put the indicator in some location in xy graph(picture) i want to draw lines between the indicators.
    can somebody help me with that? i'm using LABVIEW 8.2.1
    sorry for my english.
    Solved!
    Go to Solution.
    Attachments:
    test1.vi ‏172 KB
    test.jpg ‏14 KB

    Have a look at my example from long ago.
    Here;s a quick and diry draft modification of your VI, see if it works for you. (lines are drawn between annotations when OK is pressed).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    test1MOD.zip ‏43 KB

  • Graphs (line)- not showing timing correctly (X-Axis)

    SSRS 2012
    Hi guys
    My dataset produce a column express as HH:mm:ss. So it means several rows by hours
    The report is build up with a graph - Line.
    Unfortunately, the Y axis (the horizontal axis showing timing) displays all the records correctly, but the X axis does not display each timing record (labeling).
    Question:
    how to show each record along the x-Axis (I tried to adjust the setting in the x-Axis properties without success) 
    Thanks

    Hi Fasttrack2,
    As per my understanding, there is a line chart, the records of Y-axis display correctly, labels of X-axis are not displayed entirely. You want to show each label of X-axis.
    The axis interval defines the number of labels and accompanying tick marks on an axis. On the value axis, axis intervals provide a consistent measure of the data points on the chart. However, on the category axis, this functionality can cause categories
    to appear without axis labels. We can specify the number of intervals we want in the axis Interval property. When we show properly formatted DateTime values on an axis, a chart will automatically display these values as days. To specify a date/time interval
    for the x-axis, such as an interval of months or an interval of hours, we must format the axis labels and set the type of axis interval to a valid date or time interval. In this case, if the values displayed on the x-axis must evaluate to a DateTime data type,
    we can set x-axis labels’ interval type to seconds by following steps:
    Right-click the horizontal, or x-axis, of the chart, and open Horizontal Axis Properties.
    Click Number in left pane. From the Category list, select Date, from the Type list, select a date format to apply to the x-axis labels.
    Click Axis Options in left pane.
    In Interval, type 1. In Interval type property, select Seconds.
    For more information about Specify an Axis Interval, please refer to the following document:
    http://msdn.microsoft.com/en-us/library/dd239317(v=sql.110).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • How to draw a graph with fixed Y-axis and varying X-axis....Is it Possible?

    i am trying to draw a Line 2d graph with a dataset which contains four values like(x,y)(x1,y1)...(x4,y4)
    So when i plot the points i couldn't get the (x,y) values since they are very low when compared to other values...
    So,is there any way to scale down the graph to the max value of (x,y)
    I am using JFreeChart..

    I can draw graph with given dataset.But theScaling
    of the graph is high when a single value ishigh.So
    is there any solution to scale down the graph to a
    particular value.This sounds very much like you are using JFreeChart.
    If so, you might be better off asking in the
    JFreeChart forum
    http://www.jfree.org/phpBB2/viewforum.php?f=3 ...
    I read this as not using JFreeChart! If using JFreeChart than one can just set the range of values to be plotted!

  • Could you please give me the method to draw Line Graph in detail?

    Could you please give me the method to draw Line Graph in detail?

    Hi,
    First update your username instead of using that number.
    and also provide full information like
    Apex version
    Database version
    I am giving you one link related to charts,
    http://dgielis.blogspot.in/2011/02/apex-4-bug-series-type-bar-line-marker.html
    Hope this will helps you
    Thanks and Regards
    Jitendra

  • 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

  • How can I draw a bar graph using netbeans?

    Hello, I am quite new to java and netbeans. I have got the hang of placing controls on the forms and getting them to function.. Now I want to be able to draw a graph. Is there a way I can do this is net beans? Or is there a control that lets me draw lines into it, like the PictureBox in Visual Basic?
    Thanks

    Speedster239 wrote:
    You need to get the grapics of the frame component in order to draw on it with java.awt.Graphics.
    Use something like:
    Graphics g = frame.getGraphics();
    This is wrong. See the comment about subclassing JPanel. Demo:
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class ExamplePanel extends JPanel implements ActionListener {
        private java.util.List<Shape> shapes = new ArrayList<Shape>();
        private Random rnd = new Random();
        public ExamplePanel() {
            new javax.swing.Timer(500, this).start();
        public void actionPerformed(ActionEvent evt) {
            int x = rnd.nextInt(getWidth());
            int y = rnd.nextInt(getHeight());
            shapes.add(new Rectangle(x-5, y-5, 10, 10));
            repaint();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D) g;
            for(Shape shape : shapes) {
                g2.draw(shape);
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    ExamplePanel comp = new ExamplePanel();
                    comp.setPreferredSize(new Dimension(400, 300));
                    JFrame f = new JFrame();
                    f.getContentPane().add(comp);
                    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    f.pack();
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • ALV Graphs: How to set line type graph as default graph

    Hi All,
    I need to develop a line graph. The fields on the X-axis will change dynamically. Some times they may be 10 field and some times they may be more than 100 fields. I tried with Function Module GFW_PRES_SHOW_MULT. But I can only display maximum 32 fields. Can anyone tell me exact program which helps me to full fill my requirement. It will be a great help if you could told how do display line type graph as default graph in ALV.  In REUSE_ALV_GRID_DISPLAY there is a Exporting parameter MT_CHART_TYPES but this help you only to enter description for X-axis and Y-axis.
    Many thanks in advance.

    I would call GRAPH_MATRIX_2D with options depending on representation you wish
    look at the program GRBUSG_1 to see how to use it
    there you have some options to display bar chart, but you could use other values (complete list of options is available in documentation of function module GRAPH_MATRIX_2D - click on parameter OPTS in help display to see full explanation)
    exemple:
    P2TYPE = LN to display lines

  • Drawing a Dynamic Graph Using Java/J2EE Technology

    Dear Friends,
    I have a immediate requirement.
    I have to draw a dynamic graph based on changing statistical data(Stock market appliaction).
    Have a look at finance.yahoo.com.There we can a find a dynamic graph.The x and y axis in the graph will change according to the data it recieves without using refresh option and all ... In a periodic interval of time ,say for every 10 minutes the application have to check whether it has any changes in the statistical data it recieves (the data maybe from database or form anyother application). If it finds any changes ,automatically it should reflect those changes in the graph.
    Please help me out friends . I have been struggling with this over a period of time but am not able to resolve.
    Please provide me with any sample application and code.
    Keeping my fingers crossed.
    Thanks in Advance.

    I don't have example code, but I am sure JFree.org has lots. It's a free chart API for Java, that also works with Servlets etc.

  • How to draw line on SAP form

    Hi everyone,
    Who have a good way to draw lines on SAP form?
    I created a Wizard form, and use Rectangle (Height=0) as the two lines between title and bottom button, but I met a problem, when show another form which cover the line, after close this form, some part of lines disappear, I have tried using SAP form refresh, it still can not restore showing line completely, who have good way to workaround the problem or give me another way to draw line.
    Thanks in advance!
    Kathy

    The only way I found to get a form looking really close to a standard B1 Wizard form is to use bitmaps.  I use 3 - one each for the top, bottom and left hand side.  The bitmaps include the line drawing and appropriate pictures/background colours.  I normally define these in the XML used to create the form as in the following example:-
    <item uid="PTOP" type="117" left="0" width="566" top="0" height="80" visible="1" enabled="1" from_pane="0" to_pane="0">
            <AutoManagedAttribute/>
            <specific picture="AZU_SPC_WIZ_TOP2.bmp">
                    <databind databound="0" table="" alias=""/>
            </specific>
    </item>
    <item uid="PBOT" type="117" left="0" width="566" top="336" height="40" visible="1" enabled="1" from_pane="0" to_pane="0">
            <AutoManagedAttribute/>
            <specific picture="AZU_SPC_WIZ_BOT.bmp">
                    <databind databound="0" table="" alias=""/>
            </specific>
    </item>
    <item uid="PLEFT" type="117" left="0" width="100" top="0" height="336" visible="1" enabled="1" from_pane="1" to_pane="1">
            <AutoManagedAttribute/>
            <specific picture="AZU_SPC_WIZ9.bmp">
                    <databind databound="0" table="" alias=""/>
            </specific>
    </item>
    John.

  • SmartForms - draw line in template

    Hi!
      I am new to SF, so have a question on drawing line in a template. I use template as the data is only printed out once and is static. I have many columns in my template and I would like to draw lines on the columns so that it is tidy & looks nicer.
      I double click the template & in the "output options" tab, I checked the check box "line with..", but error prompt out to stop me, saying "Boxes/Shadings are not allowed within a table".
      Does anyone know how can I draw lines in a template?
      Kindly advise.
    best regards,
    Ginnie

    Hi,
             Click on the template under the template tab, and then click on the select pattern just under the template heading , there you use lines.
    regards,
    Santosh Thorat
    Edited by: santosh thorat on Dec 26, 2007 10:09 AM

  • Draw line in illustrator cs2

    hi,
    i am new to adobe illustrator cs2.
    is there any other method to draw line other than s
    setEntirePath().
    thanks in advance,

    Hello David,
    It sounds to me like you're witnessing the double edged sword of an incredibly sharp display. The contrast and clarity of LCD displays makes it very easy to see razor-thin lines with ultra fine definition, but this comes at a cost.
    Font smoothing (a.k.a. font aliasing) is one example of where most LCDs are so sharp that most people prefer to have their text "fuzzed" up a little bit.
    A one pixel wide diagonal line is another example that you've discovered - the display is so sharp that there is no blurring around the "steps" of the line. You can see every change in gradient, because as sharp as your CRT might've been, it was blurring the line just slightly - enough to enhance the illusion that your diagonal line was a line rather than a series of adjacent "steps". No software package that I know of has bothered to implement "line smoothing" yet, probably because you need the detail for accuracy when putting lines together.
    Sort of related to this, big screen HDTV plasma and LCD monitors look amazing in the store when tuned to an HD station, but most people would be floored if they say how grainy and pixelated a standard cable signal looks on the same display. It's literally like watching an old VHS tape, because the display is so sharp it resolves detail that is invisible on a "lesser" display.
    Neat human trick: get used to working with your LCD, and then go back to the CRT if you have a chance. How does the CRT look? I thought I needed glasses the first time I switched back!
    -Shawn

  • I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file.  How can I accomplish that task?  Is there software I can purchase?

    I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file.  How can I accomplish that task?  Is there software I can purchase?

    Hi jgallu7382,
    The latter is easily accomplished using the Drawing Markup tools, which are available in both the free Adobe Reader, and in Acrobat. Copying/pasting text into the PDF is something that you could do using the editing tools that are available only in Acrobat. Note, however, that Acrobat isn't intended to be a text-editing application, so editing there won't be as robust as in an application designed specifically for that purpose. (It's also worth mentioning that you won't be able to alter a PDF if it has document permissions applied that would prevent you from doing so.)
    I hope that answers your questions.
    Best,
    Sara

Maybe you are looking for