How to draw a line on chart

Hi all,
I am working on a chart in Design studio on BI platform. The following screen
shot will depict the current state of my chart-
Now
I need to draw lines of different lengths and colors with certain distance from
X-axis, as shown below. (I drew those lines on a screen shot of my chart with
the help of MS paint
but
I need to do this with the help of design studio) . Basically I need help to
get the following output in design studio. So, question is HOW TO DRAW A LINE
IN DESIGN STUDIO?
Kindly,
help with this.
Please suggest me to get the output.
Thanks and Regards.
Rakesh.

Hi Tammy,
Thanks for ur reply.
I'm using DS 1.3. and no need of dynamic changes of line on chart.
I just now gone through with CSS, but i didnt get the solution. i think somewhere im getting stuck with CSS.
Can u please suggest me the step by step procedure to draw a line using CSS.
Kindly help on this.
Thanks and Regards,
Rakesh

Similar Messages

  • How to draw horizontal line in smartform after end of the all line items

    Hi Friends,
    I am working on the smartform. I have created TABLE node in Main window.
    i want to draw a horizontal line after end of the main window table node. i mean after printing all the line items of the table, I need to print one horizontal line.
    Could you please help me how to resolve this issue.
    FYI: I tried with the below two options. But no use.
    1. desinged footer area in the table node of the main window.
    2. tried with uline and system symbols.
    please correct me if i am wrong. please explain in detail how to draw horizontal line after end of the main window table.
    this is very urgent.
    Thanks in advance
    Regards
    Raghu

    Hello Valter Oliveira,
    Thanks for your answer. But I need some more detail about blank line text. i.e thrid point.
    Could you please tell me how to insert blank line text.
    1 - in your table, create a line type with only one column, with the same width of the table
    2 - in table painter, create a line under the line type
    3 - insert a blank line text in the footer section with the line type you have created.

  • How to draw horizontal line at the end of table for multiple line items

    Dear Experts,
                       Pls can anyone help me how to draw horizontal line at the end of table for multiple line items . kindly help me regarding this
    Thanks
    Ramesh Manoharan

    Hi
       I tried as per your logic but it is not solving my problem .  when i am gone to table painter it is showing line type 1 and line type 2
      is below format.. if u see here line type 1 bottom line and line type 2 top line both are same..  so how to avoid this ?
                              line type 1
                             line type 2

  • How to draw a line using JSP?

    Does anyone know how to draw a line using a JSP? Any help is much appreciated.
    Regards,
    Navin Pathuru.

    Graphics classes are useless in JSP files; you can only output HTML tags to the client browser.
    You should be able to give just about any presentation look that you need with HTML and CSS. Have you played with styles? Here's a simple example that works in IE 5+ and Netscape 4.7:
    <HTML>
    <HEAD>
    <STYLE>
    .box {
    border-style:solid;
    border-color:black;
    border-right-width: 1px;
    border-top-width: 1px;
    border-left-width: 1px;
    border-bottom-width: 1px;
    .line {
    border-right-width: 1px;
    border-top-width: 0px;
    border-left-width: 0px;
    border-bottom-width: 0px;
    border-style: solid;
    border-color: red;
    width:1pt;
    height:100%;
    </STYLE>
    </HEAD>
    <BODY>
    <TABLE CELLPADDING=1 CELLSPACING=0 WIDTH=100>
    <TR><TD ALIGN=CENTER><SPAN CLASS="box">Field One</SPAN></TD></TR>
    <TR HEIGHT=50><TD ALIGN=CENTER><SPAN CLASS="line">�</SPAN></TD></TR>
    <TR><TD ALIGN=CENTER><SPAN CLASS="box">Field Two</SPAN></TD></TR>
    <TR HEIGHT=50><TD ALIGN=CENTER WIDTH=50%><SPAN CLASS="line">�</SPAN></TD></TR>
    <TR><TD ALIGN=CENTER><SPAN CLASS="box">Field Three</SPAN></TD></TR>
    </TABLE>
    </BODY>
    </HTML>
    Have fun!

  • How to draw a line???

    I am a long time Photoshop user, but new to "Elements". I cannot figure out how to draw a line??? The Help says "To draw a line or arrow...... 1. In the Editor, select the Line tool." Ummm.....WHERE??? HOW??? If I knew how to select the Line tool I wouldn't have gone to the Help file.
    Where is the "Editor"?? All I see at the top in the "Rectangular Marquee Tool" and the "Elliptical Marquee Tool" .....I see no Line tool on the left (where it used to be in PhotoShop) or on the top.
    Jeff

    Jeff,
    I use PEv.3. The line tool is accessed via the shape selection tool.
    Click U. Hold the shift key as you drag and you will have a straight line.
    Editor refers to the component of Elements utilized for enhancement and manipulation. Organizer in the Win version deals with storage and structured organization, as well as special projects.
    Ken

  • How to draw a line of sin x and its area under the line?

    Hi,
    I know how to draw a line from two points. However, I do not know how to draw a line of function sin(x) and its area under the line. Anyone know where to read or how can I draw it, please help me. Thanks !!
    Calvin

    use Graphics2D:: draw(Shape)
    create a class that implements Shape, and specifically the getPathIterator methods, in these methods you should return a path iterator that follows the sin/cos curve.
    All fairly simple to do.
    rob,

  • How to draw a line(shortest distance)  between two ellipse using SWING

    how to draw a line(should be shortest distance) between two ellipse using SWING
    any help will be appreciated
    regards

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class ELine extends JPanel {
        Ellipse2D.Double red = new Ellipse2D.Double(150,110,75,165);
        Ellipse2D.Double blue = new Ellipse2D.Double(150,50,100,50);
        Line2D.Double line = new Line2D.Double();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(Color.green.darker());
            g2.draw(line);
            g2.setPaint(Color.blue);
            g2.draw(blue);
            g2.setPaint(Color.red);
            g2.draw(red);
        private void connect() {
            double flatness = 0.01;
            PathIterator pit = blue.getPathIterator(null, flatness);
            double[] coords = new double[2];
            double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
            double min = Double.MAX_VALUE;
            while(!pit.isDone()) {
                int type = pit.currentSegment(coords);
                switch(type) {
                    case PathIterator.SEG_MOVETO:
                    case PathIterator.SEG_LINETO:
                        Point2D.Double p = getClosestPoint(coords[0], coords[1]);
                        double dist = p.distance(coords[0], coords[1]);
                        if(dist < min) {
                            min = dist;
                            x1 = coords[0];
                            y1 = coords[1];
                            x2 = p.x;
                            y2 = p.y;
                        break;
                    case PathIterator.SEG_CLOSE:
                        break;
                    default:
                        System.out.println("blue type: " + type);
                pit.next();
            line.setLine(x1, y1, x2, y2);
        private Point2D.Double getClosestPoint(double x, double y) {
            double flatness = 0.01;
            PathIterator pit = red.getPathIterator(null, flatness);
            double[] coords = new double[2];
            Point2D.Double p = new Point2D.Double();
            double min = Double.MAX_VALUE;
            while(!pit.isDone()) {
                int type = pit.currentSegment(coords);
                switch(type) {
                    case PathIterator.SEG_MOVETO:
                    case PathIterator.SEG_LINETO:
                        double dist = Point2D.distance(x, y, coords[0], coords[1]);
                        if(dist < min) {
                            min = dist;
                            p.setLocation(coords[0], coords[1]);
                        break;
                    case PathIterator.SEG_CLOSE:
                        break;
                    default:
                        System.out.println("red type: " + type);
                pit.next();
            return p;
        public static void main(String[] args) {
            final ELine test = new ELine();
            test.addMouseListener(test.mia);
            test.addMouseMotionListener(test.mia);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(test);
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    Graphics g = test.getGraphics();
                    g.drawString("drag me", 175, 80);
                    g.dispose();
        private MouseInputAdapter mia = new MouseInputAdapter() {
            Point2D.Double offset = new Point2D.Double();
            boolean dragging = false;
            public void mousePressed(MouseEvent e) {
                Point p = e.getPoint();
                if(blue.contains(p)) {
                    offset.x = p.x - blue.x;
                    offset.y = p.y - blue.y;
                    dragging = true;
            public void mouseReleased(MouseEvent e) {
                dragging = false;
            public void mouseDragged(MouseEvent e) {
                if(dragging) {
                    double x = e.getX() - offset.x;
                    double y = e.getY() - offset.y;
                    blue.setFrame(x, y, blue.width, blue.height);
                    connect();
                    repaint();
    }

  • How to draw multiple lines on same panel??

    hiya
    i would like to know how can I draw multiple lines on the same panel ?? I have already use repaint(); but it just come out the lastest line (say line 3) i draw .......those previous lines(say line 1 and 2) are disappear ........
    Thanks for your help mate

    http://www.java2s.com/ExampleCode/2D-Graphics/Line.htm

  • How to draw a line in smartforms!

    Hello ABAPers,
    In smartform, I am having a table. Every 3 rows I want to draw a line. How can I do that in Smartforms?
    Thanks,

    hi Naren,
    Check these links out
    drawing line in smartforms
    Re: Smartforms - Line Height
    Re: smartforms blank line
    Regards,
    Santosh

  • How to draw vertical lines in SMART FORMS

    Hi Guys,
    Can anyone please let me know how to draw vertical and horizontal lines in smart forms, i have to do this in the secondary window.
    thanks,
    Ramesh

    Hi Ramesh,
    In the window output options you have option of check box to get lines.
    Then you need to give the spacing for vertical and horizontal.
    Another option is putting a template on window and getting the boxes, but it is quite little bit complex.
    Put the cursor on the WINDOW in which the lines you want.
    Right click on it>create>complex section.
    In that select the TEMPLATE radio button.
    Goto TAB TEMPLATE.
    Name: give some name of line.
    From: From coloumn.
    To: To coloumn
    Height: specify the height of the line.
    Next give the coloumn widths.
    Like this you can draw the vertical and horzontal lines.
    If the above option doesnot workout then u can try the below option also
    any how you can draw vertical and horizontal lines using Template and Table.
    for Template First define the Line and divide that into coloumns and goto select patterns and select the required pattern to get the vertical and horizontal lines.
    For table, you have to divide the total width of the table into required no.of columns and assign the select pattern to get the vertical and horizontal lines.
    if this helps, reward with points.
    Regards,
    Naveen

  • How to draw a line on ADF page between two nodes  for mapping.

    Hi everyone,
    Does anyone have a solution that how can I wiring two points by drawing a line on ADF pages.
    My scenario is user want to do a mapping between two xml files. We will build an ADF faces page. This page have two parts, left part contains one tree(base on the source xml), right part is the destination tree(target xml). User can drag an node from left and drop to right. Meantime, a line will be created to connect two node, it would be perfect that when user scroll down the page, or extend the tree node, the line between source and target will be remain connection two node.
    Does anyone have a solution for this, thanks in advance.
    Hongfu.

    so you want to do something like. xsl mapper in soa
    http://www.haertfelder.com/images/pSoaBPEL3.png
    i can think of using javascript.. not sure... neeed extra programming..

  • How to Draw a line Graph using x,y Cordinates in Java ?

    Hi,
    what r the easiest way to draw a line Graph using Java Code either applet.
    can u give me code sample. or any package where we can pass some parameter so that accoring to the paramter as i know jfreeChart.function() like some method is there from toold jChart.
    Is it possible.
    Regards,
    Prabhat

    There's a number of sample applications in one of the packages of freechart, one of which should do the trick.
    If you're doing applets I suggest you look at genjar from the sourceforge site. What that does is bundle classes from a set of library jars into one jar, selecting only classes that are referenced. That should simplify the transfer problem.
    To draw graphs, typically, you create a DefaultXYDataset object, add data points and then use the appropriate ChartFactory.createXXX methods to build a chart object. Then you wrap that in a ChartPanel to display.

  • How to draw Cross LIne?

    Hi All,
    in my report i need to draw a cross line i.e diagnally.
    How to draw that?
    Thanks ,
    Saravanakumar

    Hello Saravanakumar,
    You could insert an OLE Object > Create New > MS Word Document (or MS Excel Worksheet), draw your diagonal line and insert into the report. As well the OLE Object could be inserted into a section that then underlays the following sections if you require this line to appear across fields.

  • How to draw vertical lines that are visible in preview mode?

    Hi all,
    I need to draw vertical lines on a document. The lines must be same as we draw using line tool.
    I could draw the line using CreateLineSpline() method of IPathUtils.
    The problem is that these lines are not visible in preview mode. Please tell how can we make lines that are visible in preview mode.
    Please help, I'm running out of time.

    CodeSnippetRunner has the answer:
    Utils<IPathUtils>()->CreateLineSpline

  • How to draw a line after i load a frame?

    its simple to draw a line before i load the frame..
    when i try to draw a line after i load the frame, i get a error in the last line of the lauchFrame method..
    the error is "java.awt.Graphics is abstract; cannot be instantiated"
    import java.awt.*;
    class GraphArea extends Panel
        public void paint(Graphics g)
            g.setColor(Color.BLUE);
            g.drawLine(0,0,250,250);
        public void paint(Graphics g,int X1, int X2)
            g.drawLine(0,0,X1,X2);
    class Grapherv1 {
      private Frame f;
      private GraphArea drawPanel;
      public Grapherv1() {
        f = new Frame("Drawing Shapes:Lenin");
        drawPanel = new GraphArea();
      public void launchFrame() {
          f.setLayout(new FlowLayout());
          drawPanel.setSize(950,550);
          drawPanel.setBackground(new Color(220,220,220));
          drawPanel.setLayout(null);
         f.setBackground(Color.white);
          f.add(drawPanel);
        f.pack();
        f.setSize(1000, 800);
        f.setVisible(true);
        drawPanel.paint(new Graphics(),100,100);
    public static void main(String args[]) throws InterruptedException {
          Grapherv1 gui = new Grapherv1();
        gui.launchFrame();
    }please tell me how to call this method ...
    public void paint(Graphics g,int X1, int X2)
    what argument i should pass for Graphics??
    Edited by: Tall-Dude on Dec 3, 2007 4:33 PM
    Edited by: Tall-Dude on Dec 3, 2007 4:33 PM

    Tall-Dude wrote:
    please tell me how to call this method ...
    public void paint(Graphics g,int X1, int X2)just past the new x1 and x2 and repaint no need to pass the graphics.
    e.g.
    import java.awt.*;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    class Grapherv1 {
        private Frame f;
        private GraphArea drawPanel;
        public Grapherv1() {
            f = new Frame("Drawing Shapes:Lenin");
            drawPanel = new GraphArea();
        public void launchFrame() {
            f.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
            f.setLayout(new BorderLayout());
            drawPanel.setSize(950,550);
            drawPanel.setBackground(new Color(220,220,220));
            drawPanel.setLayout(null);
            f.setBackground(Color.white);
            f.add(drawPanel);
            f.pack();
            f.setSize(1000, 800);
            f.setVisible(true);
            drawPanel.redraw(300,400);
        public static void main(String args[]) throws InterruptedException {
            Grapherv1 gui = new Grapherv1();
            gui.launchFrame();
        class GraphArea extends Panel {
            int x1, x2;
            public void paint(Graphics g) {
                g.setColor(Color.BLUE);
                g.drawLine(0,0,x1,x2);
            public void redraw(int X1, int X2) {
                x1 = X1;
                x2 = X2;
                repaint();
    }

Maybe you are looking for

  • Mouse over events on alv report?

    Hello, i want to make mouse over event for rows of a alv report.When mouse is on a row there will be shown explanations. how can i do this? thanks inn advance.

  • Recently my ipod was stolen and had to replace my computer too now i can't find my music in itunes

    recently my ipod was stolen and also had to replace my computer too i can't find my itunes purchased music

  • Call log issue in nokia 5230

    Hi all, i am having an issue in call log in my nokia 5230. It is logging call details only for 15 days in spite of making selection for 30 days. I am surprise to see it , when 15 days option it not available in the list, how it is happening. I have r

  • Post Query Trigger with cursor

    Good afternoon to all of you! I need your help. I create a master detail form. I created also a post quey trigger, inside I wrote the code below. A cursor looks to another table and returns to the form some values i need! declare cursor C1 is select

  • IP Address Is Duplicate and iPhone Won't Connect

    Everything was working for last 2+ years, then my modem died yesterday. I replaced it, but can't get back to where I was. I ended up restoring network to factory settings and then doing connection. I have AT&T DSL service. When setting up the connect