Dvt:line graph

Hi ,
I am developing dvt line graph for two object AX and BY .Graph is designed in such a way that at particular point of time it will intersect .
Whenever it will intersect i want to identify point of intersection and draw a vertical dotted line .
Can anyone help me how can i approach for this design .
Thanks ,
Arun.

Hi Frank ,
As per your opinion i cant get vertical dotted line for point of intersection ?
Thanks ,
Arun.

Similar Messages

  • Marker shape not showing up in DVT line graph

    Hi,
    I am facing an issue where the Marker Shape is not getting displayed in DVT Line graph. In the graph there is only one series, in which diamond markers should appear at the data points.
    I am using Jdev 11.1.1.7.0.
    Below is the expected result and the result which i am actually getting. Although the data set is different, the diamonds which we see in the first graph are not appearing in the second one(my output).
    My code snippet for the line graph is as below:
    <dvt:lineGraph id="lineGraph1"
                           value="#{bindings.VarianceGraphVO1.graphModel}"
                           subType="LINE_VERT_ABS" shortDesc="Variance Graph">
              <dvt:graphTitle text="Schedule Variance"/>
              <dvt:y1Title id="y1Title1" text="Variance % Days"/>
              <dvt:o1Title id="o1Title1" text="Cemli"/>
              <dvt:background>
                <dvt:specialEffects/>
              </dvt:background>
              <dvt:graphPlotArea/>
              <dvt:seriesSet defaultLineWidth="3">
                <dvt:series markerShape="MS_DIAMOND" markerType="MT_MARKER"
                            lineWidth="2"/>
                <dvt:series/>
              </dvt:seriesSet>
              <dvt:o1Axis rendered="false"/>
              <dvt:y1Axis/>
              <dvt:legendArea automaticPlacement="AP_NEVER"/>
            </dvt:lineGraph>
    Even though the marker shape property is mentioned it is some how not reflecting in my result. Even other types of marker shapes like square, circle, up/down arrow are not working.
    Request you to help me fix this issue.
    Thanks a lot.
    Regards,
    Tejas

    Try to set seriesSet  defaultMarkerShape="MS_CIRCLE" and markerDisplayed="true" like:
    <dvt:seriesSet defaultMarkerShape="MS_CIRCLE" markerDisplayed="true">
           <dvt:series/>
    </dvt:seriesSet>

  • Click event on DVT Line Graph

    Hi,
    Is it possible to attach a javascript click event on a DVT Line graph component?
    I know ADF DVT has clickListener but what happens is that it is triggered only when you click any of the series data but clicking the the column label or row label does not raised any event where I could add logic.
    What I want is that whatever part of the DVT Line graph is component it would call a managed bean method.
    Here's my use case:
    I am showing a list of DVT line graph and user needs to select at least one DVT Line Graph in the list. Clicking one of the Line Graph will highlight the background of that Line Graph.
    Obviously, I will just PPR the surrounding parent component of the selected Line Graph.
    As I have mentioned, the click listener is triggered only when clicking particular series in the graph.
    I am thinking if I could attach a javascript event for this and then fire up a server listener but I could find any information on how to do this.
    Is this possible?
    JDEV 11G PS5

    Bump....any hints? Please?

  • ADF11g: dvt, line graph x-axis (o1 axis) display issue

    Hi,
    In our application we are generating line graphs for a set of data.
    This graph is plotted in between 2 sets of numeric values. (one plotted on x-axis and other on y-axis).
    For better accuracy of plotted graph we are using these numeric values upto 7 decimal places. (for example 8.1234567)
    Now when graph is plotted, then on x-axis (that is o1- axis in case of Line Graph) the tick labels are showing upto 7 decimal places.
    Is there any way so that I could control the display of these tick labels to 1 decimal place instead of 7 decimal places?
    More Info:
    ++The tick labels for x and y axis are generated at runtime by some calculation logic.++
    ++If we set the tick labels for x axis to 1 decimal place instead of 7 decimal places when they are generated , then this will lead to build in accurate graphs.++
    ++So we can't control the decimal format of tick labels when they are generated. We need to control it when they are displayed.++
    Please help...
    Thanks and Regards
    Manav Ratra

    Hi Frank,
    this is not working :( . It holds good for the case where one has to display markers (tick labels) on the lines of line graph and not the tick labels on the axis.
    Moreover here i find out tag as *<dvt:x1Format>*
    where as line graphs does not support x1axis they have o1axis .
    In my case I need to control display of tick labels on the o1axis.
    Regards
    Manav Ratra

  • DVT:  Line Graph O1TickLabels do not rotate and are misaligned

    Hi,
    I have been trying to get the O1TickLabels aligned correctly when using the line graphs, but I am still not having any luck.
    It seems that when I have enough data points and the labels are sufficiently long in length, the labels for the O1 Axis start to the left of the Y1 axis.
    I would have assumed that the auto layout would have rotated the labels, but that is not the case. I have tried changing the chart type to a bar chart and that seems to know to rotate the labels.
    Is this a limitation of the line graph or is there something else I need to set for a line graph.
    I have also tried to set the following attribute: tickLabel.setAutomaticRotation(BaseGraphComponent.AR_NO_ROTATE), but this does not solve the issue.
    Thanks,
    Will

    Try to set seriesSet  defaultMarkerShape="MS_CIRCLE" and markerDisplayed="true" like:
    <dvt:seriesSet defaultMarkerShape="MS_CIRCLE" markerDisplayed="true">
           <dvt:series/>
    </dvt:seriesSet>

  • Line graph with single values as dots

    Dear Apex experts,
    I have the requirement to create a graph in Apex which displays technical values as dots or candles and limit values and average values as lines in one graph.
    Is there a way to create two types of graphs in one image ?
    Best regards,
    Daniel

    Hi,
    as far as I know, you can't have interruptes series in the DVT line graph
    Frank

  • Markers on the line Graph.

    Hello,
    I am wondering, if it is possible to display line graph with the markers (dots, squares, …) on the line. It looks like markerDisplayed="true" is the parameter to set, but it changes marker Display in the legend, not on the graph.
    Thank you,
    Irina.

    Hi,
    is this a question for JDeveloper 10.1.3 or 11? If it sis for 11, please post this to the JDeveloper 11 forum, which is montitored by the DVT developers as well:
    JDeveloper and OC4J 11g Technology Preview
    Frank

  • Multi line graph values issue

    Hi,
    I am using JDev 11.1.2.2.0
    I made a standard line graph which I populate with data through a backing bean.
    I read a post on how to put points to the graph:
    ArrayList <Object[]> data;
    Object[0] -> x axis data, here I have dates
    Object[1] -> name of the serie, a new serie is created for each different name
    Object[2] -> y axis data, here I have values
    Then I put the list to the graph and it works fine, only for one serie.
    When I display 2 or more series, the graph shows the different series in different colors as it is suposed to do.
    But, the values (Y axis) are not displayed at the correct place. I mean for instance the point with value 4K is displayed below the 3K Y axis marker...
    And sometimes the point is displayed above as its real value...
    So my graph is false, but my values are correct (I tested it)
    Then what can I do? The graph can draw several lines as I managed to put more than one serie. The only problem is that they are not displayed properly...
    (if you need the code I can show it)
    Edited by: Jikai on 20 sept. 2012 16:51

    Ok, I found what was wrong.
    In the graph properties the subType field was set to LINE_VERT_STACK, then I changed it to default (LINE_VERT_ABS) and it worked.
    <dvt:lineGraph id="lineGraph" subType="*LINE_VERT_ABS*"
    binding="#{backingBeanScope.backing_ReportingPopUp.lineGraph}" shortDesc="Graph that shows metrics"
    inlineStyle="height:100%; width:100%;" imageFormat="FLASH">
    <dvt:background>
    <dvt:specialEffects/>
    </dvt:background>
    <dvt:graphPlotArea/>
    <dvt:seriesSet>
    <dvt:series/>
    </dvt:seriesSet>
    <dvt:o1Axis/>
    <dvt:y1Axis/>
    <dvt:legendArea automaticPlacement="AP_NEVER"/>
    <dvt:graphTitle text="Metrics for Hosts by Date" horizontalAlignment="CENTER"/>
    </dvt:lineGraph>

  • How to change marker size in line graphs

    Hello,
    I'm using line graph and i show markers for the user know where to see a tooltip. I observed that the line markers are very big and clutter my graph when points are very close one anothers. I would like to make them smaller, but I don't know how to do it.
    Any help is appreciated.
    Thanks,
    Plan.
    <dvt:lineGraph ...>
    <dvt:seriesSet markerDisplayed="true">
    </dvt:seriesSet>
    </dvt:lineGraph>

    >System Preference>General
    this will change text size and associated icon size.

  • Line Graph

    Hi ,
    Jdev version : 11.1.1.5
    How to create a line graph  based on   x- axis is  Date  and  y-axis  is String ( hours and minutes i.e  02:30)  .
    when i click any  line /legend the line should be gray out.
    Any idea?
    Thanks in advance
    Regards
    Sathish.k

    Refer
    <dvt:lineGraph>
    &amp;lt;dvt:lineGraph&amp;gt;
    https://blogs.oracle.com/adffun/entry/using_oracle_adf_data_visualization_tools_dvt_line_graphs_to_display_weather_information

  • ClickListener in ADF Line graph

    Hello,
    Is it possible to get the x-axis and y-axis values (i.e.coordinates) of the line graph if user clicks in a line area between points (not the point itself)?
    I can get the x-axis and y-axis values if I click on point in a line as follows:
        public void graphClickListener(ClickEvent clickEvent)
            ComponentHandle handle = clickEvent.getComponentHandle();
            if (handle instanceof DataComponentHandle)
                DataComponentHandle dhandle = (DataComponentHandle)handle;
                Object val = dhandle.getValue(DataComponentHandle.UNFORMATTED_VALUE);
                Date timeVal = null;
               Attributes[] seriesInfo = dhandle.getSeriesAttributes();
                if (seriesInfo != null && seriesInfo.length > 0)
                    Object seriesName = seriesInfo[0].getValue(Attributes.LABEL_VALUE);
                       Attributes[] groupInfo = dhandle.getGroupAttributes();
                        if (groupInfo != null && groupInfo.length > 0)
                            Object timeObj = groupInfo[0].getValue(Attributes.LABEL_VALUE);
                            if (timeObj != null)
                                timeVal = new Date(((Date)timeObj).getTime());
    //However when I click on a line area between the points (not the point itself) then I can get only the series name information, not the x-axis and y axis value:
            else if (handle instanceof SeriesComponentHandle)
                // Get the series attributes
                Attributes[] seriesInfo = ((SeriesComponentHandle)handle).getSeriesAttributes();
                String data = "";
                if (seriesInfo != null)
                    for (Attributes attrs : seriesInfo)
                        data += "\nSeries value: " + attrs.getValue(Attributes.LABEL_VALUE);
                        data += "\nSeries name: " + attrs.getValue(Attributes.LABEL_ATTRIBUTE);
                        data += "\nSeries value id: " + attrs.getValue(Attributes.ID_VALUE);
                        data += "\nSeries name id: " + attrs.getValue(Attributes.ID_ATTRIBUTE);
                System.out.println(data);
    Following is the source of the jsf file:
              <dvt:graph id="lineGraph1" animationOnDisplay="auto"
                         tabularData="#{pageFlowScope.gaphPageStateBean_backing.graphTabularData}"
                         customToolTipCallback="#{pageFlowScopegraphPageStateBean_backing.callback}"
                         graphType="LINE_VERT_ABS"
                         seriesObjectCount="#{pageFlowScope.graphPageStateBean_backing.seriesCount}"
                         timeRangeStart="#{pageFlowScope.graphPageStateBean_backing.graphStartDate}"
                         timeRangeEnd="#{pageFlowScope.graphPageStateBean_backing.graphEndDate}"
                         timeAxisInterval="CTAI_MINUTE" timeRangeMode="TRM_EXPLICIT"
                         partialTriggers="::commandLink1 ::t1:cb7"
                         binding="#{backingBeanScope.graphPageBean_backing.graphBinding}"
                         clickListener="#{backingBeanScope.graphPageBean_backing.graphClickListener}"
                         timeAxisType="TAT_IRREGULAR" textAntialiasing="true"
                         scrollListener="#{backingBeanScope.graphPageBean_backing.scrollListener}"
                         zoomListener="#{backingBeanScope.graphPageBean_backing.zoomListener}"
                         markerTooltipType="MTT_VALUES_TEXT">
                <dvt:background/>
                <dvt:graphPlotArea/>
                <dvt:seriesSet defaultLineWidth="3" defaultMarkerColor="#ffffff"
                               seriesMap="#{pageFlowScope.graphPageStateBean_backing.lineGraphSeriesMap}"
                               markerDisplayed="true"
                               defaultMarkerShape="MS_CIRCLE"/>
                <dvt:o1Axis id="rhrhtr6" scrolling="on"/>
                <dvt:y1Axis id="fwef43" lineWidth="1" axisMaxValue="1.0"
                            axisMinValue="0.0" logarithmicBase="10"/>
                <dvt:legendArea automaticPlacement="AP_NEVER" rendered="false"/>
                <dvt:o1TickLabel id="o1TickLabel1" tickLabelSkipCount="50"
                                 tickLabelSkipMode="TLS_MANUAL"
                                 tickLabelSkipFirst="0"/>
                <dvt:y1MajorTick id="y1MajorTick1"
                                 tickStyle="#{pageFlowScope.gaphPageStateBean_backing.YAxisTickLine}"/>
                <dvt:y1TickLabel rendered="false"/>
                <dvt:shapeAttributesSet id="shapeAttribSet1">
                  <dvt:shapeAttributes component="GRAPH_AREAMARKER" clickable="true"
                                       id="shapeAttrib1"/>
                </dvt:shapeAttributesSet>
                <dvt:timeAxisDateFormat timeFormat="HOUR24_MINUTE"
                                        yearFormat="YEAR_LONG"
                                        monthFormat="MONTH_SHORT"
                                        quarterFormat="NONE"/>
                <dvt:o1Title text="Time:" horizontalAlignment="LEFT">
                  <dvt:graphFont id="graphFont1" underline="true" color="#002173"/>
                </dvt:o1Title>
                <dvt:annotationSet annotationMap="#{pageFlowScope.graphPageStateBean_backing.graphAnnotationMap}"/>
              </dvt:graph>
    Thank you.
    Valon
    Jdeveloper 11.1.1.5.0
    af:graph

    I use af:graph instead of af:lineGraph because the tooltip needs some special customization which af:lineGraph doesn't support.
    Just for the sake of the question, I converted the graph to af:lineGraph and I set clickListener in dvt:shapeAttributes as well. It didn't make any difference.
    When I click in a line area outside of a point the clickListener gets invoked, however it is not useful since I cannot obtain x and y coordinates.
    It goes in the else if section of the code i provided on top of this page. I.e. else if (handle instanceof SeriesComponentHandle) {............}.
    My question remains un-answered yet.
    Thank you,

  • Line Graph repeats the starting data point at the end also

    Hi,
    We have a Line Graph as below. This graph is used to show the Salary changes of a person, over time.
    But this graph shows an additional non existing data point. Basically it shows the starting data point once again at the end of the other data points.
    The model VO for this graph, does not contain this additional data point record. But the graph repeats the starting data point at the end also.
    In the screen-shot you can see that, the graph has three data points. But the table has only two. The first data point in the graph is repeated as the last data point.
    Is this a Bug..?
    Or an issue with the usage of the DVT tags?
    The code is given below.
    Please advice.
    12 <dvt:graph id="lineGraph1" value="#{bindings.SalaryHistory.graphModel}"
    13 graphType="LINE_VERT_ABS"
    14 shortDesc="#{HcmEmploymentTopGenBundle}"
    15 markerDisplayed="true"
    16 continuousTimeAxisInterval="CTAI_DAY"
    17 contentDelivery="immediate" animationOnDisplay="AUTO"
    18 imageFormat="FLASH" stylePath="April"
    19 timeSelectorListener="#{backingBeanScope.AssignmentChangesAndSalaryBean.changeTime}"
    20 timeAxisType="TAT_MIXED_FREQUENCY" dynamicResize="DYNAMIC_SIZE"
    21 inlineStyle="height:40em;"
    22 binding="#{backingBeanScope.AssignmentChangesAndSalaryBean.asgSalaryGraph}">
    23 <dvt:background>
    24 <dvt:specialEffects/>
    25 </dvt:background>
    26 <dvt:graphPlotArea/>
    27 <dvt:seriesSet>
    28 <dvt:series/>
    29 </dvt:seriesSet>
    30
    31 <dvt:o1Axis scrolling="asNeeded"/>
    32 <dvt:y1Axis/>
    33 <!-- <dvt:legendArea automaticPlacement="AP_NEVER" rendered="false"/>-->
    34 <!-- <dvt:timeSelector mode="EXPLICIT"
    35 explicitStart="#{backingBeanScope.AssignmentChangesAndSalaryBean.timeSelectorStartDate}"
    36 explicitEnd="#{backingBeanScope.AssignmentChangesAndSalaryBean.timeSelectorEndDate}"
    37 id="ts34">
    38 <dvt:specialEffects>
    39 <dvt:gradientStopStyle/>
    40 </dvt:specialEffects>
    41 </dvt:timeSelector>-->
    42 <dvt:o1MajorTick/>
    43 <dvt:o1TickLabel/>
    44 <dvt:o1Title id="o1Title1">
    45 <dvt:graphFont id="graphFont1"/>
    46 </dvt:o1Title>
    47
    48 <dvt:attributeFormat id="af1" name="DateFrom">
    49 <af:convertDateTime pattern="#{applCorePrefs.dateFormatPattern}" />
    50 </dvt:attributeFormat>
    51
    52 <dvt:markerText>
    53 <dvt:y1Format>
    54 <af:convertNumber pattern="#{applCorePrefs.numberFormatPattern}"/>
    55 </dvt:y1Format>
    56 </dvt:markerText>
    57
    58
    59 </dvt:graph>

    If I understand your question, this from the Pages online help may give the answer:
    To mark line, area, and scatter charts with data point symbols:
    Select the entire chart. You can also select the chart series (the line or area shape) that you want to mark with data point symbols.
    Click Inspector in the toolbar, and then click the Chart Inspector button.
    Click Series (except for scatter charts).
    Choose a symbol from the Data Point Symbol pop-up menu.
    Choose one of the following options from the Symbol Fill pop-up menu:
    To fill the symbol with the same color as its outline, choose Use Stroke Color.
    To fill the symbol with a solid color, choose Color Fill, click the Fill color well, and pick a color.
    To fill the symbol with a gradient, choose Gradient Fill and use the gradient controls to set the colors and change the angle of the gradient.
    To fill the symbol with an image, choose Image Fill and select the image you want. You can also resize the image by choosing an option from the pop-up menu above the Choose button.
    To fill the symbol with a tinted image, choose Tinted Image Fill and select the image you want. Click the color well to the right of the Choose button to change the tint color. You can also resize the image by choosing an option from the pop-up menu above the Choose button.

  • How to draw cumulative line graph over the stacked bar chart?(SSRS)

    Hello, 
    I need your help to draw a cumulative line graph over this bar chart. 
    I need your help to draw a cumulative line graph over this bar chart in SSRS.
    The dimension (Category Group) is "Hour" in this case. and expression is sum of two distinct values like 'Y' and 'N' in Activity column(Series Groups). The sum(Activity=Y) in green color and sum(Activity='N') in Red color.
    I require to draw a cumulative line graph in this same chart, that should give the result of cumulative Sum(Activity) for each hour?? I mean sum of (Y+N) for each hour and that should be cumulative over the hour.
    I mean sum of (Y+N) for each hour and that should be cumulative over the hour.
    SSRS Version details:
    Microsoft SQL Server Reporting Services Designers 
    Version 10.50.1600.1
    --Siva

    Hi Siva,
    It seems that you need to verify your email address to post images, etc
    Besides,  Microsoft® SQL Server™ 2008 Reporting Services: Step by Step is a good choice to you. With STEP BY STEP, you work at your own pace through hands-on, learn-by-doing exercises. A companion CD includes data sets and sample code. You can download
    it from this link http://my.safaribooksonline.com/9780735626041 Click the Extras, you can get the samples and database from Supplemental Content.
    And there are vast of valuable articles and SQL Server Reporting Services Books Online in MSDN ,you can click these link to begin your learning journey, SQL Server Reporting Services 2008 Books Online:
    http://msdn.microsoft.com/en-us/library/ms159106(v=SQL.100).aspx 
    Besides these, there are still many valuable videos in Microsoft Webcast, click this link
    https://msevents.microsoft.com/cui/SearchDisplay.aspx?culture=en-US#culture=en-US;eventType=0;sortKey=;sortOrder=;pageEvent=false;hdnInitialCount=;searchcontrol=yes;kwdAny=Reporting%20service to register with a windows live ID, then download the ones you
    want.
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Help needed in plotting Line Graph!!!!!!!!!Pls help!!

    Hi, i need help in plotting a simple line graph showing the x&y axis and has to plot 3 different lines in the same graph.I have written a program and i need to implement this graph in it.Is there any tutorial for plotting line graphs,i mean steps included.
    Please help!

    You describe your need, but not where it originates from.
    Is it a programming assignment? If so, I hope this is not your chosen major, as you will fail because you are a non-resourceful plagarist.
    Do you need to simply graph some data? Use an existing package. There are free ones somewhere.
    What do you mean "i have written a program and i need to implement this graph in it"? If you wrote the program, wouldn't you be done?
    Enjoy programming

  • Help needed in plotting line graph!

    Hi i need help in plotting a line graph complete with both axes shown,plus the legend on the side shown.
    Pls help!!!!
    rgds

    Here's a simple line graph applet I did some time backimport java.awt.*;
    public class LineGraff extends java.applet.Applet{
       double []toGraff = {6.0, -14.0, -164.0, -210.0, 108.0, 770.0,
                                1354.0, 896.0, -572.0, -1348.0, -780.0, -108.0};
       double []numsFromFile = {6.0, -14.0, -164.0, -210.0, 108.0, 770.0,
                                1354.0, 896.0, -572.0, -1348.0, -780.0, -108.0};
       int max, min, size, Hscale;
       double Vscale;
       public void init(){
          size = numsFromFile.length-1;
          java.util.Arrays.sort(numsFromFile);
          max = (int) numsFromFile[size];
          min = (int) numsFromFile[0];
          Vscale = max-min;
          Vscale = 200/Vscale;
         Hscale = Math.round(300/size);
       public void paint(Graphics g) {
          g.setFont(new Font("Arial",0,14));
          g.drawString("Example app: drawing a graph from a double array",25,18);
          g.setFont(new Font("Arial",0,10));
          g.setColor(Color.blue);
          g.fillRect(10,20,365,230);
          g.setColor(Color.cyan);
          g.drawLine(25,25,25,225);
          g.drawLine(25,140,330,140);
          g.setColor(Color.white);
          int intA = 30, intB = 0, intC = 0;
          int intD = (int) (Math.round(140 - (Vscale * toGraff[0])));
             for(int i=1; i <= size; i++) {
               intC = intA + Hscale;
               intB = intD;
               intD = (int) (Math.round(140 - (Vscale * toGraff[ i ])));
               g.drawLine(intA, intB, intC, intD);
                  if(toGraff[ i ] > 0)
                     g.drawString(Double.toString(toGraff[ i-1 ]), intA+6, intB-3);
                  else
                     g.drawString(Double.toString(toGraff[ i-1 ]), intA+6, intB+8);
               intA += Hscale;
          g.drawString(Double.toString(toGraff[size]), intA+6, intD-3);    
    }

Maybe you are looking for

  • Is there a way to open iCal with a URL

    I would like to make iCal open as my homepage in Safari.

  • I have the answer to Importing VCards into Address book

    Ok after reading all the forums etc and banging my head against the wall for a couple of hour I have found a two stage solution to Importing VCards from Outlook into Address book. As I have 978 contacts in about 14 categories I had to find an efficie

  • How do I add memory to a MacBook Pro?

    How do I add memory to my MacBook Pro?

  • Issue with lock screen language

    My OS X Lion language is set to Italian, but when I lock the screen on the locked screen the language is English. No issue once I log in, I get everything into the italian language, but when I get to the lock screen everything is in English. I have 2

  • How to GET RID of RAID and get back to IDE??

    Hi, I have a great Z800 Workstation with a 1.5TB HDD running Win7Pro-64. I've been using an 128GB SSD cache (Synapse/Dataplex) for about a year with no trouble, but stupidly thought that Intel's RST (Rapid Storage Technology) would do a better job, f