Generating graph from data in File

Hi ,
I have a 100000 entries inf a file of the of the form :
X Y
5 421452334
8 2547687676
3 3454676
From this data, I want to generate a graph. Would someone please suggest
how should I generate this type of graph in Java ?
Thank.
Sachin

... or if it's a different type of graph you're talking about, have a look at JGraph:
[http://www.jgraph.com/jgraph.html]

Similar Messages

  • How to Add points on graph from a text File ?

    Hello and Good Morning to all,
    I have a text file with my data and i read them by using the Read From Spreadsheet File VI,i enter the path where my file is saved,read all rows delete the first row because i don't need it and my problem is that in the text folder i have specified date and time which i want to be my X axis in my Graph and Y axis to be the Vout that means i have to use a XY Graph ,below you can see my data:
    Date        time              Vout  
    3-9-2012 7:45:37            2,35
    3-9-2012 7:45:39            2,75
    3-9-2012 7:45:41            3,15
    3-9-2012 7:45:43            3,50
    1) Is the text file format compatible with the input of the graph command?
    I do not find a LabVIEW function which convert the “date” from the text file (example:3/09/2012 07:45:37) into a compatible format for X axis for the graph.
    (Conversion from string format => into a “date and time” format)
    Can someone please provide a code solution for this problem?

    Hi gstathatos,
                             See all the threads given below:-
                             http://forums.ni.com/t5/LabVIEW/Add-points-on-XY-graph-with-time-step-not-constant/td-p/1507066
                             http://forums.ni.com/t5/LabVIEW/Add-points-on-graph-from-a-text-File-Date-and-time-include-in/td-p/1...
                             http://forums.ni.com/t5/LabVIEW/read-double-waveform-text-file-and-and-plot-graph-in-labview/td-p/10...
    Thanks as kudos only

  • How to plot graph from data in.txt format

    Hi there,
    I want to ploat graph from taking data from txt file, i was using origin and out put of it also attached, The output of Labveiw came something different, i want to compare both, how can i ploat this text file in to the labview?
    In txt file:- fist column is showing time and second column showing appropriat data at that time.
    thanking you in advance
    dipen
    Attachments:
    graph.zip ‏539 KB

    Hi raj,
    no I didn't meant to use Excel at all.
    Attached you find the solution made in LabView7.1. (I hope the conversion is right as I don't want to change my regional settings...)
    To get the columns is rather easy as your text file uses tabs as separators.
    Changed attachment: now the last 2 rows are deleted as they contain wrong values!
    Message Edited by GerdW on 01-24-2008 04:28 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Graph.vi ‏57 KB

  • Documentation generator directly from C source files

    Hello,
    Is there any tool to generate HTML documentation directly from C sources files using Documentation Tags like "/// HIFN "?
    I know we can generate documentation with function panels documentation generator but that's not what I'm looking for. I'm looking for something like doxygen or javadoc with NI documentation tags support. 
    Regards,
    Aurélien.

    Hello AReeves!
    LabWindows/CVI features a documentation generation tool able to output HTML and XML format documentation from your C source files.
    You can use the source code documentation tags (e.g. HIFN, HIPAR, etc) to document your functions in the source code, similar to doxygen.
    The option is located in Build » Target Settings » Generate source code documentation. There you can select your output format.
    Here is a useful link related to generating documentation from source files using CVI:
    http://zone.ni.com/reference/en-XX/help/370051T-01/cvi/usermanual/tagsforsourcecode/
    Regards,
    - Johannes

  • Is there any way to generate pdf from an xml file using single java class

    i m working on generating a pdf file from an xml file. i want to use only a single java class to do so. if theres any such code available please help me to find out.
    Thanks
    Gurpreet Singh

    exactly,
    here are some libraries which are open sources;
    http://java-source.net/open-source/pdf-libraries hope it's useful. :D

  • How to generate graphs from csv file and show on remote clients?

    Hi,
    I have set of csv files. Each file has 104 parameters. From these parameters different graphs have to be generated and displayed to remote clients thru tomcat.
    Can anyone tell me how to do that?
    cheers,
    its reeju

    it's very easy to load the CSV into java objects. Once you have done that why not use the Java2D API to draw your graphs and then use the Sun JPG encoder tools to write out a jpg stream back to the browser (you will need to set the content type for jpg).

  • Generate calendar from data

    Hi all, i have a problem with a query. i will make this two parts. the first part is describe below. the second part will be discuss in follow up posts. i am using oracle 9.2.0.7 enterprise
    i have two tables
    CREATE TABLE t2 (id NUMBER, dt DATE, src NUMBER);
    ALTER TABLE t2 ADD PRIMARY KEY(id,dt,src);
    CREATE TABLE year_calendar(id NUMBER, dt DATE);
    ALTER TABLE year_calendar ADD primary_key(id,dt)
    and i have data on them. you can download the files from this link and loaded using sql loader
    http://lavainita.webatu.com/files/flat/Downloads.zip
    note: t2 has 185,000 rows data looking a the file. but if you would like you can duplicate the data so that it reaches 1.5 million
    but the duplication should have different src number. i am interested in 59
    the problem is that i am trying to generate a calendar (kind of)
    year_calendar has dates on them. i am interesting on the dates for id 42
    t2 table has dates that are one week apart and sometimes month end dates.
    for example, for id 557267 and src=59 i have data such as
    557267 1/27/2009
    557267 2/3/2009
    557267 3/3/2009
    557267 3/31/2009
    and so on
    what i want to do is join t2 with year_calendar and generate some sort of calendar. so for example, the output should be something like
    557267 1/27/2009
    557267 1/28/2009 --taken from calendar table
    557267 1/29/2009 -- same as above
    ....so on
    557267 2/3/2009
    557267 2/4/2009
    ... so on
    i have the following query that does this but it is running kind of slow. takes a few minutes to complete
    WITH t1 AS (
    SELECT     id, dt
         ,     LEAD (dt, 1, dt+1) )
              OVER ( PARTITION BY id ORDER BY dt)          AS next_dt
         FROM     t2 WHERE src=59
    SELECT b.dt,
    ratings2.id
         FROM     (SELECT * FROM t1)ratings2 ,year_calendar b
    WHERE b.dt >= ratings2.dt
              AND     b.dt < ratings2.next_dt
    AND b.id=42
    does anybody know how to tune this query or create another query that does the same thing(join t2 with year_calendar and generate a calendar) please note: id in year calendar is not related to id in t2. they mean different thing
    Edited by: user12852540 on Apr 1, 2010 11:10 AM

    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('01/27/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('01/28/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('01/29/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('01/30/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('01/31/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('02/01/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('02/02/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('02/03/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('02/04/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('02/05/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('02/06/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('02/07/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into year_calendar
    (id, dt)
    Values
    (42, TO_DATE('02/08/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into t2
    (id, dt, src)
    Values
    (557267, TO_DATE('01/27/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 59);
    Insert into t2
    (id, dt, src)
    Values
    (557267, TO_DATE('02/03/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 59);
    output should be
    557267 1/27/2009
    557267 1/28/2009
    557267 1/29/2009
    557267 1/30/2009
    557267 1/31/2009
    557267 2/1/2009
    557267 2/2/2009
    557267 2/3/2009
    of course, any query will run fast with this amount of data. if you load the file i provided and run query on it, then you will see that it runs slower. query should give the output above

  • Fail 3d Graph from data of database wiew

    Hi, I did a graph whith a select from database view, and this graph don´t show any? What happend?
    It´s possible this?
    thanks.
    This is the query, to generate the graph:
    select sum(vr_ppto+mod_ppto) as valor from presupuesto.V_PPTO_VIGENTE_G

    Hello -
    What kind of graph are you attempting to build? Pie, Bar, Line, etc...
    Does the schema have SELECT access to that view?
    What is the output of the XML when you click the DEBUG button, and then click View XML (its a link next to the chart)?
    The other thing you should look at is your query. Run this query and look at the different results.
    select
           sum(vr_ppto),
           sum(mod_ppto),
           sum(vr_ppto) + sum(mod_ppto),
           sum(vr_ppto+mod_ppto) valor
    from presupuesto.V_PPTO_VIGENTE_G You may get data you don't expect from the column you have labeled as valor.
    Austin

  • CS3: How to generate PDF from multiple HTML files using CSS?

    I have a set of static HTML files. They are nicely formatted using a single style sheet. They interlink. I would like a way to generate a single PDF file from that set of HTML files that preserves the links (of course, they would all link within the single generated PDF because they would not longer be separate files as a PDF). I would also like to preserve the formatting from the CSS so it doesn't look generic. I own CS3 but don't know which tool to use for this, if any. Which tool would I use for this?

    Acrobat Pro

  • Generating "XSD" from an "XML" file

    Hi,
    I want a java program through which we can generate an "XSD" for
    the given "XML" file.
    I don't want any ready to use tools or ide's.
    Please send me links or code if exists.
    Thank You.

    http://forum.java.sun.com/thread.jspa?threadID=491512&messageID=2314233

  • Generate graphs from Oracle Reports

    How to use graphs in Oracle Reports server, the version of Oracle Application Server is 10.1.2.3
    thanks,

    You need to develope your graph in reports builder. Then deploy the rep file to the server and run it.
    You can open this post in reports forum.

  • Sample JAVA program: generate PDF from xsf:fo File

    Hi everybody,
    we already have an xsl that converts an xml into an xsl:fo file.
    I am now looking for a very simple sample that converts this xsl:fo into a PDF.
    It would be profitable if the java-sample would read the xsl:fo file as an input-stream.
    Thanks
    Regards
    Mario

    Hi,
    as I am not a JAVA expert.
    Do you know how to reuse the generated PDF in the java sample not as a fileOutputStream.
    I need to attach the generated PDF to a mail-xml-document.
    (I know haw to generate a mail structure in java-mappping)
    What kind of object is the generated PDF within the java?
    Any ideas
    Regards Mario

  • Remove spaces when generating xml from data mapped on object types

    My problem is kind of complex so I'll try to reduce it to a more manageable example:
    drop type msm force;
    drop type list_msm force;
    create type msm as object(
         nume char(20)
    create type list_msm as table of msm;
    select xmlserialize (document xmlelement("values",
         cast(multiset(
              select trim(p.den) from produse p) as list_msm
         ) as clob indent size=2
         ) as "xml"
         from dual;
    This is where it gets tricky.
    p.den is a field that contains spaces. I use trim(p.den) to remove them but because I cast this to list_msm, the values are then again mapped into msm objects, which have the "nume" field of char(20). So.. when generating the XML, the output still contains spaces.
    This is an excerpt of the result:
    <values>
    <LIST_MSM>
    <MSM>
    <NUME>Prod.1 </NUME>
    </MSM>
    <MSM>
    <NUME>Prod.2 </NUME>
    </MSM>
    <MSM>
    <NUME>Prod.3 </NUME>
    </MSM>
    <Later.. I see that the forum removes the extra spaces but I ensure you that after eg. "Prod.1" there are a lot of spaces, as the original field from the "produse" table is defined as char(20))
    So.. Is there a way to generate the XML without those extra spaces? Basically, I want to be able to trim them before I send them to the xml serializer, but the problem is that i have no control over the whole casting thing ( oracle magic happening that automatically creates all the xmlelements needed, etc.)
    Somehow, when the xml engine steps over the collection and accesses the fields, somehow, i need a trim there. Maybe some kind of accesor for the fields in the type can be declared so that the xml engine uses it instead of the field itself directly. The accesor would then return trim(field). Sorry for this mumbo jumbo gibberish but I want to be as clear as possible.
    Edited by: user9229988 on May 10, 2012 9:24 AM
    Edited by: user9229988 on May 10, 2012 9:25 AM
    Edited by: user9229988 on May 10, 2012 9:38 AM

    Hi.
    Check this:
    drop type msm force;
    drop type list_msm force;
    create type msm as object(
    nume VARchar2(20)     --VARCHAR2 NOT CHAR
    create type list_msm as table of msm;
    create table produse
    den char(20)
    INSERT INTO produse VALUES('Prod.1');
    INSERT INTO produse VALUES('Prod.2');
    INSERT INTO produse VALUES('Prod.3');
    COMMIT;
    select xmlserialize (document xmlelement("values",
    cast(multiset(
    select trim(p.den) from produse p) as list_msm
    ) as clob indent size=2
    ) as "xml"
    from dual;
    <values>
      <LIST_MSM>
        <MSM>
          <NUME>Prod.1</NUME>
        </MSM>
        <MSM>
          <NUME>Prod.2</NUME>
        </MSM>
        <MSM>
          <NUME>Prod.3</NUME>
        </MSM>
      </LIST_MSM>
    </values>Hope this helps.

  • Interactive Bar/pie chart and line graph, data from excel/text file -urgent

    Hi,
    I have a huge data in excell sheet which keeps updating every month. Data basically consists of service provider and there respective subscribers from various regions of the country over the years. The requirement is to give the viewers an interactive page where in they can make various combinations and can compare, cross examine data according to thier choice.
    We want the pie chart / bar graph or line graph to be created on the fly according to the combination made by the user.
    The site is hosted on a red hat linux server. how can a connection to the excel spreadsheet be made or is it possible to read from the text file if the entire data is exported to a text file.
    Is there any ready made tool/code available which can be customised according to the need.
    Thanx in advance
    Regards
    Prakash

    I certainly wouldn't pay for the graphing package at the previous link. check out http://www.object-refinery.com/jfreechart/ for a free, open-source, much better looking graphing package.

  • How to generate .txt file from data in internal table

    Hi I am using the program below to load .txt file into SAP table.
    I am moving the records from a .txt file into internal table final and then into ZOUT_CCFOBS table.
    How do I load records from internal table final back to another .txt file with the same layout? Pls advice.
    REPORT  ZOUP_LOAD_CCF_OBS.
    TABLES: ZOUT_CCFOBS.
    TYPES: BEGIN OF tline, "structure to store a line of each row
        line(1000) TYPE c,
    END OF tline.
    TYPES: BEGIN OF i_split, "structure to store split record of each row
          t_ZOTFACIL(100)    TYPE c,
          t_ZOTCCF(8)    TYPE c,
          t_ZOTOBSCAT(100)    TYPE c,
    END OF i_split.
    DATA: itab TYPE TABLE OF tline WITH HEADER LINE.
    DATA: idat TYPE TABLE OF i_split WITH HEADER LINE.
    DATA: final TYPE STANDARD TABLE OF ZOUT_CCFOBS WITH HEADER LINE.
    DATA: file_str TYPE string.
    DATA: c_fnh_mask TYPE dxfields-filemask VALUE '.',
          c_search_dir TYPE dxfields-longpath.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
    PARAMETERS p_file LIKE rlgrap-filename.                "file location
    SELECTION-SCREEN END OF BLOCK a1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM f4_dxfilename USING p_file.
    START-OF-SELECTION.
    Download data from application server
      PERFORM download_data.
      file_str = p_file.
      LOOP AT itab.
        CLEAR idat.
    this will split the line at every delimeter into single field
        SPLIT itab-line AT ',' INTO idat-t_ZOTFACIL
        idat-t_ZOTCCF
        idat-t_ZOTOBSCAT.
        APPEND idat.
      ENDLOOP.
    copying the internal table into final table which compatible with table tcurr
      LOOP AT idat.
        final-ZOTFACIL = idat-t_ZOTFACIL.
        final-ZOTCCF = idat-t_ZOTCCF.
        final-ZOTOBSCAT = idat-t_ZOTOBSCAT.
        APPEND final.
      ENDLOOP.
      LOOP AT final.
        MODIFY ZOUT_CCFOBS FROM final.
        IF sy-subrc EQ 0.
          MESSAGE S001(ZCURR).
        ELSE.
          MESSAGE A000(ZCURR).
        ENDIF.
      ENDLOOP.
    FORM f4_dxfilename USING p_file.
    addition TAICK 15/07/2008.
    *maintain application server default search path.
      IF sy-sysid = 'BWP'.
        c_search_dir = '//rdmsbw/prd/data/output/all'.
      ELSEIF sy-sysid = 'BWQ'.
        c_search_dir = '//rdmsbw/uat/data/output/all'.
      ELSEIF sy-sysid = 'BWD'.
        IF sy-mandt = '900'.
          c_search_dir = '//rdmsbw/sit/data/output/all'.
        ELSE.
          c_search_dir = '//rdmsbw/dev/data/output/all'.
        ENDIF.
      ENDIF.
      DATA: wa_file LIKE dxfields-longpath.
      CLEAR: wa_file.
      CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
        EXPORTING
          i_location_flag = 'A'
          i_server        = ' '
          i_path          = c_search_dir
          filemask        = c_fnh_mask
          fileoperation   = 'R'
        IMPORTING
          o_path          = wa_file
        EXCEPTIONS
          rfc_error       = 1
          error_with_gui  = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        p_file = wa_file.
      ENDIF.
    addition end TAICK 15/07/2008.
    ENDFORM. " f4_dxfilename
    FORM download_data .
      OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      DO.
        IF sy-subrc <> 0.
          exit.
        ENDIF.
        READ DATASET p_file INTO itab.
        if sy-subrc = 0.
          APPEND itab.
        clear itab.
        endif.
      ENDDO.
      CLOSE DATASET p_file.
      delete itab index 1. "remove column header
    ENDFORM.                    " download_data
    Edited by: RebekahMBB on Feb 20, 2012 12:56 PM

    Hi I am using this piece of code to download my internal table into an .xls file on my pc.
    FORM Z_CONVERT_EXCEL .
      "This part of code to add column name in the downloaded file.
      data : begin of int_head occurs 0,
      Filed1(20) type c,                     " Header Data
      end of int_head.
      int_head-Filed1 = 'ZOTOUS'.
      APPEND int_head.
      CLEAR int_head.
      int_head-Filed1 = 'ZOTOUS'.
      APPEND int_head.
      CLEAR int_head.
      int_head-Filed1 = 'ZOTOGCUR'.
      APPEND int_head.
      CLEAR int_head.
    Select ZOTOUS ZOTSYORGU ZOTOGCUR from ZOUT_ORG_CURR into CORRESPONDING FIELDS OF TABLE itab.
      v_filetype = '.xls'. "I just manipulate the file name using XLS file type.
      v_filename = 'C:\Documents and Settings\00088592\Desktop\OUs automation\development'.
      CONCATENATE v_filename v_filetype INTO lv_filename.
      CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
            filename         = lv_filename
            filetype         = 'ASC'
          APPEND           = 'X'
            write_field_separator = 'X'
          CONFIRM_OVERWRITE = 'X'
       TABLES
            data_tab         = itab
            FIELDNAMES       = int_head
       EXCEPTIONS
            file_open_error  = 1
            file_write_error = 2
            OTHERS           = 3.
      IF sy-subrc <> 0.
      ENDIF.
    ENDFORM.                    "Z_CONVERT_EXCEL
    As you can see the code specifies the header row separately and appends it in int_head.
    What if I have 76 fields or more? I cant be specifying each like that.
    Is there any other way to do this? To move the 76 field headers into int_head?
    Pls help.
    Thanks!

Maybe you are looking for

  • Safari hangs at puma and jaguar servers...

    I am behind a proxy and whenever i try to get to any page, safari will hang at http://puma or http://jaguar I know that in order to use mozilla firefox i have to configure it in the about:config screen and edit some lines there. "network.negotiate-au

  • GR document print out

    Dear All, The user does goods receipt and the print does not comes automatically. It happens only in case of non stock items. Though I am not sure if there is any link with it but they have to go to MB02, then go to messages, put output type as WE03(

  • Letterboxing when using 16:9 footage in 4:3 project...

    Hi, I have a project here that is DV-NTSC-720x480-4x3. Now when I import footage that is 720x480 / 4x3 it is displayed properly e.g. this file: Codec : MPEG-2 Video Codec profile : Main@Main Codec settings/Matri : Standard Bit rate : 9800 Kbps Bit ra

  • Connecter mac mini avec ecran 21:9

    Est-ce que quelqu'un a essaye de connecter son Mac Mini sur un ecran au format 16:9 ( 2560x1080 ). A priori le format va etre uniquement du 16:9 avec 2 bandes noires laterales.

  • How to disable SC message BBP_PD 008 and BBP_PD  882

    how to disable SC message BBP_PD 008 and BBP_PD  882