Finding x and y values of a Line Chart

Hi,
For instance, I had a line chart with x and y axis. When I move mouse to the line chart how can I determine x and y axis values? With mouseMoved metod i can find the coordinates but coordinates doesn't help me to find x and y values of the line chart.
How can I find x and y values of a Line Chart?
Thanks in advance

Translate from model to view and back. Another way to do this is to create an
AffineTransform for the modelToView and use it to transform the points. Create an inverse
transform to use in the viewToModel method. Add a ComponentListener and reset the transforms
in the componentResized method to keep them updated.
import java.awt.*;
import java.awt.event.*;
import java.awt.font.*;
import java.awt.geom.*;
import java.text.NumberFormat;
import javax.swing.*;
public class Translation extends JPanel {
    JLabel xLabel;
    JLabel yLabel;
    NumberFormat nf;
    double[] data = { 16.0, 32.9, 7.4, 18.9, 12.3 };
    final int Y_GRADS = 5;
    final int PAD = 35;
    final int SPAD = 3;
    final int TICK = 2;
    double maxVal;
    public Translation() {
        nf = NumberFormat.getInstance();
        nf.setMinimumFractionDigits(1);
        nf.setMaximumFractionDigits(1);
        maxVal = getMaxValue();
        addMouseMotionListener(sweep);
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        drawAxes(g2);
        plotData(g2);
    private void plotData(Graphics2D g2) {
        for(int j = 0; j < data.length; j++) {
            Point2D.Double p = modelToView(j, data[j]);
            if(j < data.length-1) {
                Point2D.Double next = modelToView(j+1, data[j+1]);
                g2.setPaint(Color.blue);
                g2.draw(new Line2D.Double(p, next));
            g2.setPaint(Color.red);
            g2.fill(new Ellipse2D.Double(p.x-2, p.y-2, 4, 4));
    private Point2D.Double modelToView(double x, double y) {
        double h = getHeight();
        Point2D.Double p = new Point2D.Double();
        p.x = PAD + x*(getWidth() - 2*PAD)/(data.length-1);
        p.y = h-PAD - y*(h - 2*PAD)/maxVal;
        return p;
    public Point2D.Double viewToModel(double x, double y) {
        double h = getHeight();
        Point2D.Double p = new Point2D.Double();
        p.x = (x - PAD) * (data.length-1) / (getWidth() - 2*PAD);
        p.y = (h - PAD - y) * maxVal / (h - 2*PAD);
        return p;
    private void drawAxes(Graphics2D g2) {
        int w = getWidth();
        int h = getHeight();
        double xInc = (double)(w - 2*PAD)/(data.length-1);
        double yInc = (double)(h - 2*PAD)/Y_GRADS;
        // Abcissa
        g2.draw(new Line2D.Double(PAD, h-PAD, w-PAD, h-PAD));
        // Tick marks
        double y1 = h-PAD, y2 = y1+TICK;
        for(int j = 0; j <= data.length; j++) {
            double x = PAD + j*xInc;
            g2.draw(new Line2D.Double(x, y1, x, y2));
        // Labels
        Font font = g2.getFont().deriveFont(14f);
        g2.setFont(font);
        FontRenderContext frc = g2.getFontRenderContext();
        LineMetrics lm = font.getLineMetrics("0", frc);
        float sx, sy = h - PAD + SPAD + lm.getAscent();
        for(int j = 0; j < data.length; j++) {
            String s = String.valueOf(j);
            float width = (float)font.getStringBounds(s, frc).getWidth();
            sx = (float)(PAD + j*xInc - width/2);
            g2.drawString(s, sx, sy);
        // Ordinate
        g2.draw(new Line2D.Double(PAD, PAD, PAD, h-PAD));
        // Tick marks
        double x1 = PAD, x2 = PAD-TICK;
        for(int j = 0; j <= Y_GRADS; j++) {
            double y = PAD + j*yInc;
            g2.draw(new Line2D.Double(x1, y, x2, y));
        // Labels
        for(int j = 0; j <= data.length; j++) {
            String s = nf.format(maxVal*(1.0 - (double)j/data.length));
            float width = (float)font.getStringBounds(s, frc).getWidth();
            sx = (float)(PAD - SPAD - width);
            sy = (float)(PAD + j*yInc + lm.getAscent()/3);
            g2.drawString(s, sx, sy);
    private double getMaxValue() {
        double max = -Double.MAX_VALUE;
        for(int j = 0; j < data.length; j++) {
            if(data[j] > max) {
                max = data[j];
        return max;
    MouseMotionListener sweep = new MouseMotionAdapter() {
        public void mouseMoved(MouseEvent e) {
            Point2D.Double p = viewToModel(e.getX(), e.getY());
            xLabel.setText(nf.format(p.x));
            yLabel.setText(nf.format(p.y));
    private JPanel getLast() {
        xLabel = new JLabel();
        yLabel = new JLabel();
        Dimension d = new Dimension(45, 25);
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.insets = new Insets(2,2,2,2);
        addComponents(new JLabel("x ="), xLabel, panel, gbc, d, true);
        addComponents(new JLabel("y ="), yLabel, panel, gbc, d, false);
        return panel;
    private void addComponents(JComponent c1, JComponent c2, Container c,
                               GridBagConstraints gbc, Dimension d, boolean b) {
        gbc.weightx = b ? 1.0 : 0;
        gbc.anchor = GridBagConstraints.EAST;
        c.add(c1, gbc);
        c2.setPreferredSize(d);
        gbc.weightx = b ? 0 : 1.0;
        gbc.anchor = GridBagConstraints.WEST;
        c.add(c2, gbc);
    public static void main(String[] args) {
        Translation test = new Translation();
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(test);
        f.getContentPane().add(test.getLast(), "Last");
        f.setSize(500,400);
        f.setLocation(200,200);
        f.setVisible(true);
}

Similar Messages

  • Finding x and y values of a line

    When a user mouses over a line—converted to a movie
    clip—I would like to read the x and y values of the two
    points that define them. I see the Point class and the Graphics
    class, but the commands seem to require the programmer know the x
    and y values in advance. I don't see a command such as "getXAndY"
    for an element from an array of points. Can anyone tell me where to
    look for these commands?
    Thanks.

    When a user mouses over a line—converted to a movie
    clip—I would like to read the x and y values of the two
    points that define them. I see the Point class and the Graphics
    class, but the commands seem to require the programmer know the x
    and y values in advance. I don't see a command such as "getXAndY"
    for an element from an array of points. Can anyone tell me where to
    look for these commands?
    Thanks.

  • Highlighting Min and Max Values on each line

    Hello,
    Is it possible to highlight the Min and Max values on each row of a Query. For example I have sales below by product line for the last seven quarters. The user
    would like the Max value (150) for Product Line ABC Highlighted as Green and the Min value (1055) color coded as Red. Like wise for each line - DEF 200 as green and 100 as red and GHI - 400 as green and 100 as red.
    FYQ Q207 Q307 Q407 Q108 Q208 Q308 Q408
    ABC     1500     1200     1400     1050     1100     1100     1100
    DEF     1550     1000     1560     1220     1340     1640     2000
    GHI     1000     2000     3000     4000     3250     2220     3750
    Is this possible using Exceptions? or may be any other means? We are on Bex 7.0
    Best Regards,
    Sanjiv

    Hello Sanjiv,  
    I think it can be done by JavaScript, but needs more effort
    [Use of JavaScript Functions|http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a853bc623c075e10000000a114084/content.htm]
    Try the exception available in the BW[BW Stylesheets|http://help.sap.com/saphelp_nw04/helpdata/en/3f/ca453afbf37b54e10000000a11402f/content.htm]
    SAPBEXformats - Formatting cell (scaling factors)
    SAPBEXexcGood1 - Exception with priority good 1
    SAPBEXexcGood2 - Exception with priority good 2
    SAPBEXexcGood3 - Exception with priority good 3
    SAPBEXexcCritical4 - Exception with priority critical 4
    SAPBEXexcCritical5 - Exception with priority critical 5
    SAPBEXexcCritical6 - Exception with priority critical 6
    SAPBEXexcBad7 - Exception with priority bad 7
    SAPBEXexcBad8 - Exception with priority bad 8
    SAPBEXexcBad9 - Exception with priority bad 9
    See this thread,
    Change the colour of a cell text depending on the value Web Reports (NW04s)
    Thanks
    Chandran
    Edited by: Chandran Ganesan on Mar 19, 2008 4:27 PM

  • Finding Max and Min values

    Hi Gurus,
    I have a table with one column as data type NUMC of lenth 5.
    Now, I have to get the max value and minimum value from that column into two variables of same type.
    Could you please help me with the logic and code in ABAP.
    Thanks,
    Regards,
    aarthi

    select single MAX( <field> ) from table into <variable>.
    select single MIN( <field> ) from table into <variable>.
    Message was edited by:
            S B

  • How to find previous and next value of a cursor?

    Im trying to do an update to a table.
    I have a set of rows fetched in a cursor. Now i loop through the cursor and update a field in the table.
    for certain condition alone i need to fetch the previous value in the cursor and update the table with that.
    can anyone let me know if i can fetch the previous and next value of a cursor for this DML operation?
    Thanks in advance.

    You can do it via PL/SQL routine.

  • DAX formula and Legend/Series variable on line chart

    What I am trying to do is to find a DAX function that will not cumulate the 'startyear' variable (2006-2012) that is in the Legend/Series in a pivot table for a line chart I have (see below image of chart). The below functions just cause the startyear values
    to cumulate all together (2006+2007+2008....) instead of treating the years as separate values:
    =(CALCULATE(countrows(s1Perm1),FILTER(ALLSELECTED(s1Perm1),s1Perm1[ExitMonthCategory] <= MAX(s1Perm1[ExitMonthCategory]))))/(CALCULATE(COUNTROWS(s1Perm1),ALL(s1Perm1[Exit],s1Perm1[ExitMonthCategory])))
    Does anyone know how to change the above DAX formula or have another one that will allow the values in the Legend/Series variable to cumulate individually?

    Yes, it is a count, but they also must meet the criteria in the slicers chosen by the user.
    Regardless, I tried your suggestion and unfortunately, it did not work--in that the year values in the Legend/series are still aggregating together, rather than individually--ie. the numerator below for 2007 and 2007 are combined:
    StartYear
    Values
    2006
    2007
    ExitMonthCategory
    Den
    Num
    CumPercent
    Den
    Num
    CumPercent
    0.5
    243
    30
    12.3 %
    168
    30
    17.9 %
    1
    243
    37
    15.2 %
    168
    37
    22.0 %
    2
    243
    53
    21.8 %
    168
    53
    31.5 %
    3
    243
    63
    25.9 %
    168
    63
    37.5 %
    4
    243
    75
    30.9 %
    168
    75
    44.6 %
    5
    243
    92
    37.9 %
    168
    92
    54.8 %
    6
    243
    104
    42.8 %
    168
    104
    61.9 %
    12
    243
    175
    72.0 %
    168
    175
    104.2 %
    18
    243
    218
    89.7 %
    168
    218
    129.8 %
    24
    243
    262
    107.8 %
    168
    262
    156.0 %
    30
    243
    289
    118.9 %
    168
    289
    172.0 %
    36
    243
    302
    124.3 %
    168
    302
    179.8 %
    42
    243
    306
    125.9 %
    48
    243
    309
    127.2 %
    168
    309
    183.9 %
    54
    243
    318
    130.9 %
    168
    318
    189.3 %
    60
    243
    320
    131.7 %
    66
    243
    321
    132.1 %
    72
    168
    324
    192.9 %

  • JDEV 10G: how to display the value of the line chart using jChart in JSP

    I have draw the line chart in JSP using the JChart and now I wan to display the value label in the line there..
    but the value wasn't show..
    anyone can help me..
    thx..

    Hi,
    what I do understand, you want to display the value of each point in your Line Graph.
    I guess you will be having BIGraph.xml file. In this file check the "Show Data Tips When Mouse is over bars" checkbox.
    Lets try with this.
    --Abhijit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Error code -2146827284 when trying to programmatically assign X and Y values to an excel chart series

    I am trying to export data to an excel spreadsheet from Labview 6.1 using Activex Automation, then plot a chart in excel using this data. I can successfully move the data and can build the chart, but I can only assign one of the data axis (either the XValues, or the Values (ie Y values) property of the class, depending which I set first). I get a message "Exception occured in Microsoft Excel, Unable to set the Values property of the Series class." with an error code of -2146827284. See example code in case I have done anything stupid. Anyone got any ideas?
    Attachments:
    excel_activex_test.vi ‏82 KB

    Robert, thanks for responding. I was aware of the excel size limits but I don't think this is the issue here. The code I attached before tries to set first "XValues" to A2:A5 and then "Values" to c2:c5 (well within the range of excel I think ;-) ). I have attached this again and also added an image of the diagram with probes on the key places. It always succeeds on the first "set" function, and then fails on the next one. Just to confuse things it works fine if I set the "XValues" and "Values" to an array of integers. I am running Labview 6.1 on windows XP with Office XP installed as well.
    Gavin
    Attachments:
    Write_Table_and_Chart_to_XL.llb ‏226 KB
    excel_test_run.jpg ‏231 KB

  • Concatenate 2 data fields and put values in single line

    Hello,
    I am pretty new to BI Publisher. I want to concatenate 2 data fields (Product and ProductType). These concatenated values then I want to put them on a single line.
    eg.
    the values should look like
    ProductType1.Product1,ProductType2.Product2, ProductType3.Product3..........
    Thanks.

    The XML is
    - <ServiceAgreement>
    <AccountId>1-abcde</AccountId>
    <AgreementNumber>1-685</AgreementNumber>
    <AgreementStartDate>07/08/2010 13:46:18</AgreementStartDate>
    <AgreementStatus>Awaiting</AgreementStatus>
    <ContactFirstName />
    <ITIStreetAddress />
    <ITIStreetNumber />
    - <ListOfOrderEntry-Orders>
    - <OrderEntry-Orders>
    <ITIMoneyToCollect />
    <OrderDate>07/08/2010 13:46:53</OrderDate>
    <OrderNumber2>1-685579</OrderNumber2>
    <OrderStatus>Pending</OrderStatus>
    <OrderType>Sales Order</OrderType>
    - <ListOfOrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Hollywood 18m</Product>
    <ProductType />
    <PromotionId>123456</PromotionId>
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName>Hollywood 18m</ProdPromName>
    <Product>n TV</Product>
    <ProductType>Root</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>HBO + nFilmHD</Product>
    <ProductType />
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>HBO</Product>
    <ProductType>Opcje dodatkowe</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>nFilmHD</Product>
    <ProductType>Opcje dodatkowe</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>nbox HDTV</Product>
    <ProductType>Dekoder</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Cinemax</Product>
    <ProductType>Opcje dodatkowe</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Filmbox</Product>
    <ProductType>Opcje dodatkowe</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Upust za zakup 3-ego pakietu</Product>
    <ProductType>Upusty</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Pakiet Informacja i Rozrywka</Product>
    <ProductType>Pakiety</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Opłata aktywacyjna za nbox HDTV</Product>
    <ProductType />
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Pakiet Dzieci</Product>
    <ProductType>Pakiety</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Pakiet Sport i Motoryzacja</Product>
    <ProductType>Pakiety</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    </ListOfOrderEntry-LineItems>
    </OrderEntry-Orders>
    </ListOfOrderEntry-Orders>
    </ServiceAgreement>
    </ListOfBipServiceAgreement>
    As per the above XML I want to see
    Pakiet Dzieci.Pakiety , Pakiet Sport i Motoryzac ja.Pakiety.....
    Thanks

  • How to find index and minimium value in ArrayList?

    Hi,
    I got an ArrayList numbers that contains the following....
    [4,5,4,3,3,4,4,3,6,5]
    How do I go through the ArrayList numbers, such that I can get the
    minimum value and it's index number in the arrayList?
    For example, the above arrayList got three min number of 3, I will
    get either one of the 3 and also get it's index of 3, 4 or 7.
    The ArrayList number can have another number of records inside it.
    Please advice.
    Thank you.

    Please do not cross post:
    http://forum.java.sun.com/thread.jsp?thread=471261&forum=31&message=2177088
    Besides, I would not forcibly qualify this topic as an advanced one.

  • Find Upper and Lower Values Based On middle?

    I have a query...
    which gives output like.
    empcd at_date status
    SA0477 1-AUG-2007 A
    SA0477 2-AUG-2007 P
    SA0477 3-AUG-2007 P
    SA0477 4-AUG-2007 A
    SA0477 5-AUG-2007 WO
    SA0477 6-AUG-2007 A
    SA0477 7-AUG-2007 P
    SA0477 8-AUG-2007 P
    SA0477 9-AUG-2007 P
    SA0477 10-AUG-2007 A
    SA0477 11-AUG-2007 A
    SA0477 12-AUG-2007 WO
    SA0477 13-AUG-2007 A
    but i want those record, where 'WO' between two 'A'.means.
    i want
    SA0477 4-AUG-2007 A
    SA0477 5-AUG-2007 WO
    SA0477 6-AUG-2007 A
    and
    SA0477 11-AUG-2007 A
    SA0477 12-AUG-2007 WO
    SA0477 13-AUG-2007 A
    record if there r any solution plsz rply. ASAP.
    thanx wating for ur rply.

    check this..
    SQLPLUS> with test_tab as(
      2  SELECT 'SA0477' empcd,to_date('1-AUG-2007','dd-MON-yyyy') at_date, 'A' status from dual union all
      3  SELECT 'SA0477', to_date('2-AUG-2007','dd-MON-yyyy'),'P' from dual union all
      4  SELECT 'SA0477', to_date('3-AUG-2007','dd-MON-yyyy'),'P' from dual union all
      5  SELECT 'SA0477', to_date('4-AUG-2007','dd-MON-yyyy'),'A' from dual union all
      6  SELECT 'SA0477', to_date('5-AUG-2007','dd-MON-yyyy'),'WO' from dual union all
      7  SELECT 'SA0477', to_date('6-AUG-2007','dd-MON-yyyy'),'A' from dual union all
      8  SELECT 'SA0477', to_date('7-AUG-2007','dd-MON-yyyy'),'P' from dual union all
      9  SELECT 'SA0477', to_date('8-AUG-2007','dd-MON-yyyy'),'P' from dual union all
    10  SELECT 'SA0477', to_date('9-AUG-2007','dd-MON-yyyy'),'P' from dual union all
    11  SELECT 'SA0477', to_date('10-AUG-2007','dd-MON-yyyy'),'A' from dual union all
    12  SELECT 'SA0477', to_date('11-AUG-2007','dd-MON-yyyy'),'A' from dual union all
    13  SELECT 'SA0477', to_date('12-AUG-2007','dd-MON-yyyy'),'WO' from dual union all
    14  SELECT 'SA0477', to_date('13-AUG-2007','dd-MON-yyyy'),'A' from dual)
    15  , test_tab2 as(
    16  select a.*,
    17  case
    18   when status ='A' and lead( status ,1) over (partition by empcd order by at_date) = 'WO'  Then
    19       '1'
    20   when status ='A'   and lag( status ,1) over (partition by empcd order by at_date) = 'WO'  Then
    21      '1'
    22   when status='WO' then
    23     '1'
    24   else
    25      '0'
    26  end flag
    27  from test_tab a)
    28  select empcd,at_date,status from test_tab2 where flag='1';
    EMPCD  AT_DATE   ST
    SA0477 04-AUG-07 A
    SA0477 05-AUG-07 WO
    SA0477 06-AUG-07 A
    SA0477 11-AUG-07 A
    SA0477 12-AUG-07 WO
    SA0477 13-AUG-07 A
    6 rows selected.
    Elapsed: 00:00:00.00Good Luck

  • How to plot Actual and Target on the same line chart in webi

    Hi,
    We have a requirement where we need to plot a graph on webi. The data is something like:-
    Month     Regional Office     Actual      Target
    12014     Midwest               768          876
    22014     Eastern               1908          1876
    Can anyone please suggest something.
    Regards
    Shirley

    Hi Shirley Ray,
    May i know the exact requirement...
    IF you want to show the data in graph,its just simple
    you can show regional office and month on  x axis,measure on y axis like below chart.
    right click on table and convert it into column chart.
    Regards,
    Samatha B

  • Hint Values on Line Chart

    When you setup a line chart, the LABEL portion of the SQL query becomes the X axis value on the line chart. When there are multiple series on a line chart, each series is its own distinct line. If the series has a LABEL that is not yet on the chart, it adds that label to the x axis at the end of the axis. If the new series has a LABEL that is already on the chart, then it places the Value on that existing place on the x-axis. This Label is also used in the Hint portion of the chart.
    So lets compare the number of Sales per day of a Department across a length of time, say 3 months. So, on first working day on Jan dept A has 31 sales. On the second working day of January thay make 35 sales and so on until March 31. Our company doesn't work on weekends so we won't have sales on those dates. Dept B has their numbers for the same dates.
    We setup a series for each month (Jan, Feb, March). Then we place the total number of orders for each date on the graph and connect the dots! Great! But wait, the more months I add, the shorter each line gets on the graph. What if we were comparing 3 years worth of data instead of 3 months. The x-axis would have 600-700 values instead of 60-70 values. Oh my.
    What if we make each series of data its own line over the same scale? That way each month shows in the same space with the first day of the month at the left and the last day of the month near the right. Sounds good. But wait, we are now making up a scale. And when we do this, the Hints on the data points become meaningless. I want to show the actual date value in the hint but have the line over my custom X-Axis. What I need is an additional field that I can use to add to the Hint portion of the chart. Obviously, this would require using custom xml and a custom data element, but is this even possible given the constraints of the SQL syntax?
    To visualize this issue better: http://apex.oracle.com/pls/otn/f?p=28155:1
    Austin

    Andy -
    I need to thank you for the direction on the substitution variables reference. That will be a major help.
    However, i must correct a statement (underlining is mine)
    So, if you switch to Custom XML and find the <tooltip> tag and add {%SeriesName} after the existing {%Name} entry, you end up with the _"day of the month" (which is your value)_ and the Series Name value, which is January - so, "1 January"This is a common misconception that the numeric value on the x axis represent the "day of the month" , when in fact it does not. You logically cannot use the day of the month for this type of axis. Why not? It is because weekends are excluded. So, one month may begin on a Friday. If that were the case then the 2nd of the month would be a Saturday, which would work for a single series of data. But what about when you add in the next month and it begins on a Tuesday. Well then, if you use the day of the month as the value, the 2nd day of the second series actually gets plotted after all the days of the first month.
    The solution is that you have to generate a common arbitrary scale for all series of data. When you do that, you lose the date values.
    I have tried to illustrate all of this by adding to the existing examples in the link provided above. Some other odd behaviors of using the day of the month as the x-axis value can be seen as well. I have also implemented the suggestion of adding the {%SeriesName} tag to the Hint via the custom xml.
    Austin

  • How to find min and max of a field from sorted internal table

    Hi,
    I have sorted Internal Table by field f1.
    How do I find max and min value of f1.
    For min value of f1 I am using,
    READ TABLE IT1 INDEX 1.
    IT1-F1 = MIN.
    Is this correct? And how do I find the max value of f1 from this table.
    Thanks,
    CD

    Yes, that is right, and you can get the max like this.
    data: lv_lines type i.
    * get min
    READ TABLE IT1 INDEX 1.
    MIN  = IT1-F1.
    * get max
    lv_lines = lines( it1 ).
    read table it1 index lv_lines.
    MAX  = IT1-F1.
    Regards,
    Rich Heilman

  • Where do we pass tax condation type and condation value in this bapi: SD_SALESDOCUMENT_CHANGE

    Hi Experts,
    I am using this to change sales order. SD_SALESDOCUMENT_CHANGE
    I am passing condation type and condation values for each line item under table parameter CONDATION_IN.  Here in which fields do i need pass tax condation type and condation value.
    please give me suggestion it is really help ful.
    Thanks
    laxmi

    Hi ,
    Pass condition type and condition value in fields COND_TYPE and COND_VALUE under table parameter CONDATION_IN. Also pass 'X' to above fields in table parameter of CONDITIONS_INX.

Maybe you are looking for

  • PD4ML generating a PDF file with weird characters

    I am running SSM SP07 NW 7.1 with Oracle in HP-UX. If we create a PDF via "Print" or "Mail" the created PDF generates a weird character  where ever a blanck space should be. I read that it could be a problem of the string "&nbsp" being read from ISO

  • Acrobat X ActiveX Control problem

    Hello, we embed Acrobat Reader X in our application to view PDF Files. We use the Acrobat Reader Active X Control for that. Recently we started to get report about problems with the plugin and do not know what to search for. It seems that when used a

  • The payment was made TWICE by mistake

    the payment was made TWICE by mistake. What should i do then? i chose the yearly plan with a monthly payment

  • Swap file locations

    Hi, A few questions regarding an upgrade to ecc 6.0. What is the recomended swap files locations - on the server's disks or on the storage disks (connected to the server of course). and what is the recomended swap files quantity if i have 8 GB of ram

  • Help printed to windows shared printer

    I can not print to a printer hooked up to windows xp pro machine. I can add the printer without any issue. When i try to print something, i get an error. Connection failed: NTSTATUS_CONNECTIONREFUSED, then i get Unable to connect to CIFS host, will r