Line graph using draw2d

Hi,
Could anyone plz provide me with an application to draw line graph using draw2d?or maybe useful links if such a code is freely available..thnx in advance

Here is a rough example
http://forum.java.sun.com/thread.jsp?forum=20&thread=543227
Bamkin

Similar Messages

  • 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 multiple line graph using bi graph in  JHeastart?

    hello,
    i have a problem when displaying a multiple graph in JHeadstart.i had created a graph that represent the report of medical testing.my x-axis is "report date",my y-axis is "observation value" then my series attributes is depend on "item description" .
    One patient has many "item description",each "item description" has one "observation value" and each "item description" has many "report date".
    when the graph was displayed,it only show me in 1 line,then it is depend on the id patient but not like what i set in the graph wizard.actually,it should be display fews line accroding to the "item description".
    then,the "observation value" and "item description" are get from defferent entity object.
    i dun know what was happen.any hits are welcome.
    thanks

    yes,finally i found how to draw it.Actually the series attributes is depend on VO's primary key .
    thanks to who was view my problem.

  • Use view objects to display muti lines graph

    I need to create multiple lines on a line graph using data from view objects. I did see the demo that allows to add series but the data seems from tabular data.
    http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/index.jspx?_afrLoop=39644483771460039#%2Ffeature%2Fgraph%2Fanimation.jspx%40
    Using Jdev 11.1.1.3
    I understand that each line is a series. I was able to show multiple lines but for supporting data while in reality need to show for different data such as for the stock market lines for Dow, nasdaq, S&P. I used order_lines tables and placed creation_date as x_axis and for lines/y-axis used three columns (product_value, product_id, linesCount)
    Might need to create some complex view or is there a way bind multiple views or view objects can't be used for this case?
    Thanks

    Thanks Shay. What I did was on the right track and is similar what you suggested.
    I was somewhat trying to validate what I did to display multi lines i.e. by placing in the Line field during graph configuration the attributes for each of lines/series.
    If need to display sale total for 5 departments over a year. The view object will have attributes as: sale_date, dept1_sale, dept2_sale, dept3_sale, dept4_sale, dept5_sale
    Then can chart it with sale_date as x-axis and ALL 5 dept sales on line/y-axis.
    By this had the correct structure and was able to generate the 5 lines correctly.
    Thanks

  • Oracle reports - Line graph

    Hello,
    I have a few issues with the line graphs (using oracle 10g dev suite R1 - 9.0.4).
    1. Unable to make my y axis - a dotted line.
    2. Since I couldn't make the y axis a dotted line, I made it a thin line. This thin line looks fine when I run it from the oracle reports builder. but when I genenerate to a PDF file, this thin line becomes thicker.
    3. Thirdly, I want to place a dot or something wherever the value changes in the line graph. One option is to add the MarkerText visible="true" to the Graph settings xml file. but this puts the marker text to all the y axes.
    I want it only for 1 y axis.
    Cheers

    Assuming you mean "series" and not "axis", you can control the style, width, and markers using the lineStyle, lineWidth, and markerShape attributes of the <Series> element (in the XML shown in the Graph Settings property) for the series (set of Y values) of interest.
    For example, to use a thin, dotted line with circle markers on the first series, but leave the other series with their defaults, you might:
    1. Make sure the markerDisplayed attribute of the <Graph> element is set to ="true". Otherwise, no markers will be displayed.
    2. For the <Series> element with the id attribute equal to "0" (which identifies the first series), set the lineStyle attribute to "LS_DOTTED", the lineWidth attribute to "1" (in pixels), and the makerShape attribute to "MS_CIRCLE".
    3. If needed, set the markerShape attribute of the other <Series> elements to "MS_NONE".
    The Graph Settings property might look something like this:
    <rw:graph id="CT_1" src="G_YOUR_GROUP" groups="X" dataValues="Y1,Y2">
    <!--
    <?xml version="1.0" ?>
    <Graph version="3.2.0.22" graphType="LINE_VERT_ABS" markerDisplayed="true">
    <SeriesItems>
    <Series id="0" lineStyle="LS_DOTTED" lineWidth="1" markerShape="MS_CIRCLE"/>
    <Series id="1" markerShape="MS_NONE"/>
    </SeriesItems>
    </Graph>
    -->
    </rw:graph>For more information, see the "Graph.dtd" file in your "%ORACLE_HOME%\jlib\bigraphbean.jar".
    Hope this helps.

  • Devloping graphs using pure java without applets and swings

    Hi Guys
    i want to devlop bar graphs,pie charts,line graphs using pure java.i don't want to use applets and swings..does any body help on this asap..
    IT'S VERY URGENT
    cheers
    ANAND

    Go to
    http://java.sun.com/docs/books/tutorial/information/download.html#OLDui
    and get: Creating a User Interface (AWT Only) Archive (tut-OLDui.zip)

  • How to set the 4th Y axis color for a line graph

    Hello experts,
    I have developed a multiple y axis line graph using oracle reports 10g.
    It has got 1 x axis and 4 axes. I am able to set the color of the the first three y axes
    but the reports designer automatically assigns yellow color to the 4th axis.
    I mean there is no option in the graph wizard for changing the 4th color)
    How to change the color of this 4th y axis to a desired color?
    Cheers
    Sri

    Assuming you mean that your graph has 4 series, not 4 Y axes, you might try something like this:
    1. Save a backup copy of your current report in case the changes you are about to make don't work out and you want to revert to the backup copy.
    2. Using the Property Inspector, display the current value of the Graph Settings property for your graph. The value of the property should be something like:
    <rw:graph id...
    </rw:graph>3. Look for a <SeriesItems> tag and a matching </SeriesItems> tag in the property value. If you don't find them, add the following two lines immediately before the </Graph> tag.
    <SeriesItems>
    </SeriesItems>4. Between the <SeriesItems> tag and the matching </SeriesItems> tag, add (or update) a <Series> tag for each series that you want to specify the color for. For example, to specify the color of the fourth series as red, you would use a <Series> tag like this:
    <Series id="3" color="#ff0000"/>Note that the id numbers start at 0 for the first series, 1 for the second, and so on. The color value is a hexadecimal number specifying the RGB value of the color.
    You can also use the <Series> tag to specify other features like the marker shape.
    For more information on what you can do using the Graph Settings property, see this FAQ and Technical Note.
    Hope this helps.

  • Hide values to be displayed along Y-axis in line graph

    Hi friends,
    I need to generate a line graph using Oracle reports. But the values along y-axis should not be displayed. Can anyone help me how to hide displaying values along the y-axis
    Thanks,
    venkat

    Venkat,
    I am not sure if it can be hidden. I will update this thread if I find something. But for now, what you can do is, create a Rectangle over the y-axis values. Change the background color of the rectangle same as graphs color, and line color as 'No Line'. It will hide the values.
    Hope this helps.

  • CS2 Line Graph "Too Exteme"

    Trying to create a line graph using data from a PC Powerpoint - 55 cells. Can copy and paste into the data section of Illustrator BUT when I try to plot the graph I receive an error message "Can't create the graph. The requested transformation is too exteme".
    Deleted some cells and still received the same message. Deleted half the cells and received the same message??
    MAC OS 10.4.11 w/3.5G Ram w/InDesign, Illustrator & Powerpoint open.
    Any thoughts??
    Peter

    Thanks for the suggestions. This started after downloading and installing Microsoft's Open XML converter for Office 2004. I restarted with the Mac OS X system disc and repaired permissions, restarted again and copied the data from Powerpoint into Illustrator and it worked fine.

  • Line Graph Problem when used with Series

    I am facing a problem with Line Graph in Oracle Reports 10g.
    I have made a graph having series of three curves.
    The graph is perfect when all series have similar X-Axis values. See the link
    http://www.sysautomation.com/ask/RPT_LINE_GRAPH_OK.PDF
    But same graph does not print curves properly, gives spaces in the curves, when all the series do not have similar values on X-Axis
    http://www.sysautomation.com/ask/RPT_LINE_GRAPH_NOT_OK.PDF
    Pl. guide me what to do to make this graph working.

    Thanks for reply.
    In my case, I have to plot curves.
    and some Series have different X-axis values.
    I have no choice, but to plot them.
    The same thing was working fine with Reports 6i + Graphics 6i.
    What is Scatter Plot?
    Thanks again.
    This is a limitation in the current line graph in
    Reports 10g (9.0.4). I can't recall whether this has
    improved in 10.1.2 or it was planned for the next
    rev.
    Would trying a scatter plot be better?
    Line graphs are normally meant for regular intervals
    on x-axis, so using the example of dates, Jan, Feb
    and Dec would be placed right next to each other,
    rather than scaled with the right distance between
    Feb and Dec.

  • Line Graph - set useful baseline value automatically

    Hi all,
    for a line graph in reports I've set the axisMinAutoScaled-property of the Y1Axis-element to "false" and expect that reports find out a useful value for the baseline at its own. Unfortunately the value of the baseline is always set to 0 whether a range of 1.000 to 10.000 or a range of 1 to 10 is selected.
    Do you know a way to set the value of the baseline depending on the displayed values.
    Thanks in advance.
    Martin
    Edited by: user11939409 on 14.06.2011 08:43

    Hi Sreehari,
    I tried to set the y-axis scale for line chart by using code. But its showing the default value, not displaying the value what i gave. Adding my code for reference. 
       var axis = new sap.viz.ui5.types.Axis().setScale(
           new sap.viz.ui5.types.Axis_scale().setMinValue(20.0).setMaxValue(100.0).setFixedRange(true));
              column = new sap.viz.ui5.Line({  
                width : "100%",
                height : "400px",
                legendGroup: legendPosition,
                plotArea : {
                colorPalette : ['#F67A7A','#FEE00A','#B6C359'],
                title : {
                  visible : false,
                  text : ''
                xAxis:{
                title:{visible:false} ,          
                yAxis : axis ,
                dataset : dataset

  • SSRS Use a formula for a line graph y = mX + b

    Hi I want to show a line on a line chart using a formula in the form y = mX + b.   Can't seem to get this to work.   I inputted the formula into the "Value field" of the "Data field" but the line doesn't show up.
    X = value for X axis (it's a date);  m and b are query fields (both type real)    The data is grouped on two fields that are specified in the "series field"
    There are multiple values for X but only one value for M and B.
    So for all dates (X) for each Group 1 AND Group 2 combo: chart this line.
    Using: SSRS Visual Studio 2008

    Hi 317704,
    Linear Regression line might be what you need, you have to get the records in the database using the T-SQL for all the points on the X-Axis following the below formula. Where n is the total number of data points, and the tis and yis are the components of
    the data point tuples (ti, yi).
     I give a sample below,
    My datasource(AdventureWorksDW2008):
    DECLARE @start_month
    SMALLDATETIME
    DECLARE @end_month
    SMALLDATETIME
    SET @start_month
    = '2002-01-01'
    SET @end_month
    = '2002-12-01';
    SELECT
    CAST(CONVERT(CHAR(6),DimTime.FullDateAlternateKey,112)
    + '01'
    AS
    SMALLDATETIME)
    AS CalendarMonth
    ,SUM(SalesAmount)
    AS y
    FROM FactInternetSales
    INNER
    JOIN DimSalesTerritory
    ON FactInternetSales.SalesTerritoryKey
    = DimSalesTerritory.SalesTerritoryKey
    INNER
    JOIN DimTime
    ON FactInternetSales.OrderDateKey
    = DimTime.TimeKey
    WHERE DimSalesTerritory.SalesTerritoryKey
    = 9 --Australia
    AND
    DATEPART(YEAR,DimTime.FullDateAlternateKey)
    BETWEEN
    DATEPART(YEAR,@start_month)
    AND DATEPART(YEAR,@end_month)
    AND
    DATEPART(MONTH,DimTime.FullDateAlternateKey)
    BETWEEN
    DATEPART(MONTH,@start_month)
    AND DATEPART(MONTH,@end_month)
    GROUP
    BY CONVERT(CHAR(6),DimTime.FullDateAlternateKey,112)
    You could get some reference from top sample.
    Thanks,
    Challen Fu
    Challen Fu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • 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

  • How do I change the line color in a line graph?

    I used Illustrator to create a line graph. (Not my desired option as I normally import them from R and then edit, but the textbook wanted to show that you can create graphs and edit them in Illustrator)
    Anyway, I did all of the editing except that I can't change the color of the line. My assignment requires me to match the textbook example and the textbook does not provide instructions on how to do it. I've done just about any method I can think of and the line still stays light gray. I'm almost willing to just give up and lose the points but something as simple as color can't be this hard, right? Right?

    Whenever I try to shift+direct select it thinks I want to move the line, so as I shift + direct select and drag my mouse across the line (to highlight it all) it moves a chunk of the line and turns it into a near perpendicular line.
    I found the appearance window, it just says "Path" (the color I want it to be that it's not)
    "Stroke" 4pt
    "Fill" (the color I want it to be that it's not)
    "Opacity": Default
    And some other buttons. I think I'll try the help line tomorrow, I know I saw a customer service number somewhere and I'm only here because the chat was unavailable. This is only one of my 3 problems with my assignment so I'll search here for answers to the other two. Learning new things is rarely fun.

  • 11.1.1.5 - Measure labels are appearing in legend (line graph)

    I've created a line graph in 11.1.1.5. My legend is showing a combination of the column value and the measure name (e.g. Web Sales, Direct Sales, Retail Sales). I want my legend to simply say Web, Direct, and Retail, without the appended 'Sales' measure label.
    The Measure Labels tile is currently residing in the Vary Color By (Horizontal Axis) zone, along with the legend column, so I guess it makes sense that the legend column and the measure labels would both show up in the legend (although I don't think that was the case in 11.1.1.3). However, there doesn't appear to be any place into which I can relocate the Measure Labels tile so that the word Sales DOESN'T appear on the line graph. If I move the Measures Labels tile into Graph Prompts, Sections, or Group By (Horizontal Axis), the word Sales appears in those locations. If I attempt to move that tile into the Lines (Vertical Axis) box, or into the Excluded box, it won't allow being dropped there.
    Switching between line, bar, and area graphs reveals the same problem in all graph types.
    Is there any way to supress the display of measure labels on graphs in 11.1.1.5?

    Hi Paul,
    This is the feature in 11g obiee displaying the Measue heading and dimension value... like u said right Web Sales...and so on.
    Here in u case web is the value of dimension and Sales is heading of a measure.
    One way is if u are not using any dimension apart from 1 dim and fact u can put measure labels in the group by axis and dimension column in the show in legend section then it will give u only web.
    But if u have 2 dimension then we have to put this measure labels with either one of the dimensions in this case heading of the measure wil display.
    Thanks
    Subhash

Maybe you are looking for

  • Condition Type in Pricing Procedure Determination

    Dear All, I want some clarity in Pricing Procedure determination. As I know in IMG we determine pricing procedure by the combination of Sales Org, Dist. Channel, Division,  Cust. Pricing procedure and document Pricing procedure. There is additional t

  • ICloud calendar will not allow delegation

    I am trying to share a calendar with my wife who is on another appleid. Following the instructions on the iCalendar Help it said to go to Calendar-> Preferences & select Accounts. Then select the calendar account to share which I did. When I clicked

  • Blackcurse Virus

    Just got a new MacBook, and Microsoft Word files are infected with the "BlackCurse" virus. Installed Norton AntiVirus, which doesn't seem to help. Word files automatically have "Blackcurse" as the file name when you go to save. Any suggestions how to

  • Premier Elements 10 question

    Hi guys, can i use pemier elements 10 to edit photos?

  • Calendar synchronisation with Outlook 2013 doesn't work

    Hello, I recently installed Outlook 2013 on my new Windows 8.1 notebook and would now like to synchronize my calender and contacts with my iPhone 5. For the contacts everything works fine, but the calender just doesn't synchronize properly. The event