Package for generating charts on the fly

Hi,
I'm looking for a java API that enable its clients to create/design chart image files.
The package should be run on server that has no GUI abilities, thus the image processing should be done in a batch manner (package that create chart and places it on a swing component is not suitable for me )
Any recommended packages ?
thanks !!

you should look into FOP apache. it uses xml and java to create printable PDF, SVG (this is the format that you could use for graphs charts ect..). It is free of charge and is fairly simple to get started with. It runs really well in batch process as well.
Good luck,
RDE

Similar Messages

  • How do I sign up for a temporary international calling package for my vacation to the BVI?

    How do I sign up for a temporary international calling package for a vacation in the BVI?

    Of course it could be MUCH cheaper to just purchase a local SIM card to use in your phone when you get there. The rates will be less than what you will be paying to Verizon, especially if you plan on using much data or making many calls.
    One drawback of this would be if anyone wanted to get in touch with you, you would have to give them the local number for the SIM card you purchase.

  • Generating images on the fly to use as backgrounds for components

    I am creating an application that has an input number slider with a background image. I would like to change the background image on the slider based on its position (as chosen by the user) using a partial trigger.
    I have successfully been able to do update the background images if I have these images inside of my "Web Content" folder within my JDeveloper project. Instead, I would like to be able to generate the images as needed. These images are color gradients where the start/stop of the gradient is based on the slider's thumb position (as well as other user-defined variables). Because there are many different images that could possibly be created, I am looking into generating the images at runtime rather than have hundreds of images stored somewhere.
    I am trying to generate these images using a BufferedImage that I can then write to a file. The path I am saving it at is as follows:
    FacesContext fc = FacesContext.getCurrentInstance();
    ServletContext sc = (ServletContext)fc.getExternalContext().getContext();
    String path = sc.getRealPath("/") + filename;
    I then create the file at the path and use ImageIO to write it:
    File f = new File(path);
    ImageIO.write(bi, "png", f);
    I am saving this file path in a variable in my backing bean that I then use on my ADF page to populate the background image field of the slider.
    Problem: when I run the page, my slider does not have a background image.
    Looking at the location where the file should be saved, it is actually "saving" it within a .war file which I don't think is appropriate (or possible, for that matter). Is there some way that I can save it either on the server side or the client side so that the client can see the background actually being updated using the generated image? I am almost positive that the path I listed above is incorrect - if this is the correct approach for this problem, where would be an appropriate location?
    Any pointers would be greatly appreciated. Thanks in advance for your help!

    Instead of saving the image to a file, why not use a Servlet to write the image to the Servlet's response stream. Then, you just point the background image to the Servlet.
    John

  • Generating SQL on the Fly

    Does anyone have some examples of putting application logic in the database tables? And read these tables to create SQL while executing the stored Procedures.

    no code changes are required.Or syntax checked or compiled until it fails at runtime and is not debuggable, because the application code does not really exist anywhere.
    It would not be a good idea in Java for example, to create an application that generates or reads external Java source code, shells to the OS, runs the Java compiler, compiles the code and executes what it just created live for the first time in a production environment. Especially a shared environment. It would not be a good idea to this in any other language like C or VB. It is not a good idea to do it in PL/SQL either.

  • Package for payroll what is the problem in this..

    Specification
    CREATE OR REPLACE package PKG_PAYROLL as
    type cur is ref cursor;
    procedure pro_getstate(p_cid number,p_cur out cur);
    procedure pro_getcountry(p_cur out cur);
    procedure pro_getdesignation(p_cur out cur);
    procedure pro_getdepartment(p_cur out cur);
    procedure pro_getempid (empid out varchar);
    procedure pro_saveregistrationinfo
    empid varchar,
    deptid number,
    desigid number,
    fname varchar,
    mname varchar,
    lname varchar,
    gender varchar,
    dob date,
    dno varchar,
    loc varchar,
    area varchar,
    country number,
    state number,
    district varchar,
    city varchar,
    zipcode number,
    stdno number,
    phno number,
    ccode number,
    mobileno number,
    email varchar
    end;
    Body
    CREATE OR REPLACE package body pkg_payroll as
    procedure pro_getstate(p_cid number,p_cur out cur) is
    begin
    open p_cur for
    select sid,sname from tb_state where cid = p_cid;
    end pro_getstate;
    procedure pro_getcountry(p_cur out cur) is
    begin
    open p_cur for
    select cid,cname from tb_country;
    end pro_getcountry;
    procedure pro_getdesignation(p_cur out cur) is
    begin
    open p_cur for
    select did,initcap(dname) as dname from TB_DESIG_IT;
    end pro_getdesignation;
    procedure pro_getdepartment(p_cur out cur) is
    begin
    open p_cur for
    select did,initcap(dname) as dname from TB_DEPARTMENT_IT;
    end pro_getdepartment;
    procedure pro_getempid (empid out varchar) is
    v_getempid varchar2(20);
    v_year varchar2(20);
    v_empnum number;
    v_check number;
    begin
    select count(*) into v_check from tb_payroll_registration;
    if(v_check = 0)
         empid:='10KG1';
    else
         select empid into v_getempid from tb_payroll_registration where rownum = (select max(rownum) from tb_payroll_registration) order by empid;
         select to_char(sysdate,'yy') into v_year from sys.dual;
         v_empnum := to_number(substr(v_getempid,5));
         v_empnum := v_empnum+1;
         empid:=v_year||'KG'||v_empnum;
    end if;
    end;
    procedure pro_saveregistrationinfo
    empid varchar,
    deptid number,
    desigid number,
    fname varchar,
    mname varchar,
    lname varchar,
    gender varchar,
    dob date,
    dno varchar,
    loc varchar,
    area varchar,
    country number,
    state number,
    district varchar,
    city varchar,
    zipcode number,
    stdno number,
    phno number,
    ccode number,
    mobileno number,
    email varchar
    ) is
    begin
    insert into tb_payroll_registration values(
    empid,
    deptid,
    desigid,
    fname,
    mname,
    lname,
    gender,
    dob,
    dno,
    loc,
    area,
    country,
    state,
    district,
    city,
    zipcode,
    stdno,
    phno,
    ccode,
    mobileno,
    email);
    commit;
    end pro_saveregistrationinfo;
    end;

    Not a (Java) question. Locking.

  • How do I display on-the-fly generated XML on a web page using DW CS4 Spry regions?

    On a main web page I'm trying to display formatted data from an ASP page that generates XML on-the-fly from a query.
    When I run the ASP page from the browser, the XML formatting of the data works. But when I run the main web page, the data doesn't display.
    I'm using  DW CS4 Spry regionsto display the data on the main page from the XML data generated by the ASP page. Here's the main page code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache" >
    <html>
    <head>
    <script type="text/javascript" src="SpryAssets/xpath.js"></script>
    <script type="text/javascript" src="SpryAssets/SpryData.js"></script>
    <script type="text/javascript" src="SpryAssets/SpryUtils.js"> </script>
    <script type="text/javascript">var A1D1xml = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.asp", "tests/test");</script>
    <title>Test XML Main</title>  
    </head>
    <body>
          <div id="A1D1xml" spry:region="A1D1xml">
                                    <table id="A1D1">
                <tr>
                <th>ID</th>
                <th>Last Name</th>
                <th>Final Status</th>
                </tr>
                <tr spry:repeat="A1D1xml">
                       <td>{acr_id}</td>
                    <td>{acr_lastName}</td>
                    <td>{acr_final_status}</td>
                </tr>
                  </table>
             </div>
    </body>
    </html>
    Here's the code for the page that generates the XML: A1D1ACRs_testWxmlCode.asp
    <html>
    <%
    set objConn=server.CreateObject("ADODB.Connection")
    objConn.Open application("web_test")
    set rs = objConn.Execute( "SELECT acr_id, acr_lastName, acr_final_status from acr_records_grid_view where acr_changeOption = 'A1D1'")
    Response.ContentType = "text/xml"
    Response.AddHeader "Pragma", "public"
    Response.AddHeader "Cache-control", "private"
    Response.AddHeader "Expires", "-1"
    %>
    <?xml version="1.0" encoding="utf-8"?>
    <tests>
      <%While (NOT rs.EOF)%>
                    <test>
                                    <ID><%=(rs.Fields.Item("acr_id").Value)%></ID>
                                    <acr_lastName><![CDATA[<%=(rs.Fields.Item("acr_lastName").Value)%>]]></acr_lastName>
                                    <acr_final_status><![CDATA[<%=(rs.Fields.Item("acr_final_status").Value)%>]]></acr_final_s tatus>
                    </test>
        <%
                    rs.MoveNext()
                    Wend
      %>
    </tests>
    <%
    rs.Close()
    Set rs = Nothing
    %>
    </html>
    Thanks.

    Thanks, but no; I'm using the correct case and folder.
    With this code on the main page, The region flashes the table column header names
    and the code as written for the spry repeat; then instantly disappears from the screen.
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="SpryAssets/xpath.js"></script>
    <script type="text/javascript" src="SpryAssets/SpryData.js"></script
    <script type="text/javascript">var A1D1x = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.xml", "tests/test");</script>
    <title>Test XML Main</title>  
    </head>
    <body>
          <div id="A1D1" spry:region="A1D1x">
                   <table id="A1D1a">
                <tr>
                <th>ID</th>
                <th>Last Name</th>
                <th>Final Status</th>
                </tr>
                <tr spry:repeat="A1D1x">
                    <td>{acr_id}</td>
                    <td>{acr_lastName}</td>
                    <td>{acr_final_status}</td>
                </tr>
                  </table>
             </div>
    </body>
    </html>

  • Generating JSP/HTML on the fly

    Hi all,
    The requirement is to be able to generate HTML files (for UI display) on the fly depending on the database table structure. (Consider an EMPLOYEE table for example, an output HTML file needs to be generated based on the fields present in this table).
    To store data (config data) regarding this HTML file (in terms of field names, field types, attributes, etc.) what is suggested is to use an XML file which would have these, then a java file would read these from the XML and give out an other XML which would contain the actual data that will go in to the HTML (such as if the original XML conf. file contained a select statement for a LOV field, then the java file would fetch these and put them inthe final XML file) and so on.. and then have an other XSLT file with the appropriate layout to generate the final HTML.
    Could any one else suggest an alternative technique?
    Thanks and much appreciated.

    read your XML file to a "org.w3c.dom.Document" structure (see the example: http://www.developerfusion.com/show/2064/), then use an XSLT to show the Document in HTML frormat.
    // doc is an instance object of org.w3c.dom.Document
    File stylesheet = new File("style.xsl");
    StreamSource stylesource = new StreamSource(stylesheet);
    File datafile = new File("results.html");
    try {
    // Use a Transformer for output
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer(stylesource);
    DOMSource source = new DOMSource(doc);
    StreamResult result = new StreamResult(datafile);
    transformer.transform(source, result);
    catch (TransformerConfigurationException tce) {
    // Error generated by the parser
    System.out.println ("\n** Transformer Factory error");
    System.out.println(" " + tce.getMessage() );
    // Use the contained exception, if any
    Throwable x = tce;
    if (tce.getException() != null)
    x = tce.getException();
    x.printStackTrace();
    catch (TransformerException te) {
    // Error generated by the parser
    System.out.println ("\n** Transformation error");
    System.out.println(" " + te.getMessage() );
    // Use the contained exception, if any
    Throwable x = te;
    if (te.getException() != null)
    x = te.getException();
    x.printStackTrace();

  • Inbound IDOC error (Name MARA is not in the namespace for generated BW Metaobjects)

    Hi everybody,
    we are currently having some issues with importing idocs into our ERP DEV System and i cannot figure out what the problem could be.
    I am trying to import an IDOC Type ARTMAS (5) but i keep getting the following error "Name MARA is not in the namespace for generated BW Metaobjects"
    The system is a ERP only system with no BI content activated at all.
    I don´t find any more errors nor any dumps or SLG1 entries related to this issue.
    Did someone already experienced that kind of problem, or do some of you maybe have an idea where to have a deeper look.
    thanks & best regards
    Peter
    EDIT:
    Running on ERP 6.0 EHP 7 SPS 4

    Hi Ganesh,
    I guess there is something wrong with the data in the ODS.
    Check this post:
    Re: error 18 in the update!
    Bye
    Dinesh

  • "manage nuget packages for solution" is missing in the drop down for NuGet Package Manager

    Hi,
    I have VS2013 Ultimate on windows 7 PC and that Nuget Option does show in the dropdown.  Today, I setup a vm in Azure, from image I select VS2013 Ultimate, just like the one on my PC.  However, when I click on the Tools, Nuget, there is only 2
    drop down option, "package manager console" and "package manager settings" are the only 2 available.  How can I get the ""manage nuget packages for solution"?
    I want to install the xamarin.forms extension and I need this.
    thank you
    Thank you

    Hi laJasmine,
    Based on your issue, generally, I know that there have two ways to see the "manage nuget packages for solution" option after we install the VS2013 Ultimate.
    One way is that it is default that we can see the "manage nuget packages for solution" option by right click this Solution->Manage NuGet Packages for Solution option like the following screen shot.
    Another way is that we can see the "manage nuget packages for solution" option by clicking the Tools->Library Package Manager-> manage nuget packages for solution like the following screen shot.
    So please check if you can get the "manage nuget packages for solution" option from this above two way again.
    If you still could not the "manage nuget packages for solution" option in this VS2013 Ultimate, to check if this issue is related to the VS2013 Ultimate set up file. I suggest you could try to copy this setup file and then install it on other machine
    and then check if you still get the issue.
    If you have any updated message about this issue, please tell me.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Generating charts in batch

    Hi!
    I have the requirement to generate charts/graphs as image files in batch (hundreds of them in one batch). This chart images should be stored in table's blob column or in files on server's file system and later used for viewing on "static" web pages. This batch will be triggerd by cliking on button by a user or without user interaction from scheduler.
    How can ADF charts can be used for this purpose?
    So, is there any Java API for generating charts without GUI (like ChartDirector for JSP/Java http://www.advsofteng.com/cdjava.html)?
    Regards,
    Sašo Celarc
    Edited by: Sašo Celarc on Jun 22, 2011 2:37 AM

    I found the oracle.dss.graph.Graph (http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e12063/oracle/dss/graph/Graph.html). As understood this package exists behind ADF Charts? Am I right?
    Are there any useful examples how to use methods from this package?
    Sašo

  • Defining class on the fly

    Hi,
    Is it possible to have a java program read in a new class from a text file while the program is running and then compile that class file and use it?
    thanks

    inabind wrote:
    thanks. First of all I just wanted to know if it was possible. What I really want to do is define a whole bunch of methods which will act on data depending on the format of that data. So, when the web-app is deployed and running I want a user to be able to dynamically define a class/method to act on their own data. i.e.:
    data = "The brown fox is very cunning"
    method = replace every third letter with capital equivalent.
    now, this is dead easy to do in the 'solid' code but i would like to do it on the fly...Well, how did you, as a person, make that decision? The rules so far aren't clear, but you're probably looking for the Strategy design pattern
    Generating classes on the fly isn't going to be much use. You want to reuse components, not endlessly recreate them

  • XML authoring on the fly, best practices

    I understand the basics of XML.
    The technologies: XML itstelf, DTDs, XSL. I also understand a bit about implementations. It appears to me that the majority of the technologies is for handling XML. (Not surprising!)
    My question pertains to generating XML on the fly programatically.
    Specifically, what is the best method to do it? I'm not looking for any introspective generation methods. Just something along the lines of the startDocument, startElement type of stuff with some error detection if I try to write some bogus XML.
    I see that I can use org.apache.crimson.tree.XmlDocumentBuilder (below) to generate a document, but that has the drawback of generating an in-memory DOM, which I'm just goung to write to a stream anyways.
    import org.apache.crimson.tree.XmlDocumentBuilder;
    public class Main {
        public static void main(String[] args) throws Exception
            XmlDocumentBuilder documentBuilder = new XmlDocumentBuilder();
            documentBuilder.startDocument();
            documentBuilder.startElement(...
            documentBuilder.endElement(...
            documentBuilder.endDocument();
            // ***I don't need this intermediate document ***
            documentBuilder.getDocument().write(System.out);
    }

    This pretty much sums it up:
    I'll post it here in case anyone is interested.
    http://www.javazoom.net/services/newsletter/xmlgeneration.html
    The last case is the one I was interested in.

  • Adobe Creative Cloud Packager for macintosh fails

    Adobe Creative Cloud Packager for macintosh fails.
    The error log says "[ERROR] AdobePackageBuilder -  AdobePackageBuilder : SendPacket returned error : -1".
    I tried 4-5 times.
    Everything is downloaded (took about 14 Gb).
    I now have only 12Gb free space on my disk. Can that be the reason (will the packager need to make a copy of the downloaded stuff?).
    When I am done, how do I reclaim the space eaten by the packager?
    Seems like it is caching it at ~/Library/Application Support/Adobe/CCP, but will I manually have to delete that cache?
    I cannot find a menu entrance for doing so.
    Would be nice if the packager could use a mounted network disk as destination, but it seems not to discover these.
    /Peter Andersen

    Wanted to join in and say this has been happening to me too. I wiped every adobe file I could find, and used the cleaner too. Started over from scratch in a brand new user account.
    It's been about 7 days and I cannot get CCP to actually build a package. I've gotten a variety of messages but everything single time something fails. The new thing is that it says it fails on individual applications. So I disable them, and the error jumps to a new app. I can see that the .dmg's are fine and intact in ~/Library/Application Support/Adobe/CCP/
    Given the amount of time this has cost me I really wish I had purchased CS6 Master Collection for every workstation. From my perspective, Creative Cloud has been nothing more then a giant waste of time and effort. It's genuinely bad product from an IT management perspective. Why push off the job of building and installer onto the customer? I should just be able to download the full Master Collection dmg, and then turn on and off the apps I want. Instead I am stuck with a workstation down, and everyone using CC trials to work.

  • Business Package for Internal Sales Representative 1.0

    I'm trying to install the Business Package for Internal Sales Representative 1.0 to explore the options of using Business Packages in our portal.  I have the SAP Library Link for this BP ( http://help.sap.com/saphelp_erp60_sp/helpdata/EN/b7/036b4060a1181ce10000000a1550b0/frameset.htm ), and I've looked at the configuration information on the page. 
    So far I've imported the business package for common parts and the business package for internal sales representative, I assigned the alias "SAP_ECC_SalesService" to our ECC connection (does it need to be the default alias?).  We also have an ITS installed for the connected system.  We don't currently have our BI system connected to this portal, but it said that was optional.  I have also assigned the role from each business package to my user, but when I open the iviews, they give me errors.
    I am not sure what I am supposed to do to make the settings for the launchpad.  Also, what other steps do I need to complete?  Do I need to do something in the source system to set up the connection?
    Any help appreciated.
    Thanks,
    Owen

    One of the errors gives this long text:
    Content pass of Application Integrator failed.
    Component Name:       'com.sap.portal.appintegrator.sap.Transaction',
    Context Name (iView): 'pcd:portal_content/com.sap.pct/specialist/com.sap.pct.erp.salesrep.bp_folder/com.sap.pct.erp.salesrep.roles/com.sap.pct.erp.salesrep.salesrep/com.sap.pct.erp.salesrep.sales_process/overview_folder/com.sap.pct.erp.salesrep.order_fulfill/order_fulfill_info/com.sap.pct.erp.salesrep.disp_shipm_page/com.sap.pct.erp.salesrep.display_shipm',
    Top Layer:            'Transaction/DragAndRelateLayer',
    Producer ID (FPN):    'null',
    System Alias:         'SAP_ECC_SalesService',
    Another one gives me this:
    Application URL ':///sap(ZT00WUJNSGtTb1A2QmdJWUY1N2xybU5RLS1FbFVMRHh6SkRab0x3SDkwQmRfeGt3LS0=)/bc/gui/sap/its/webgui' is not valid! Please check the protocol and host entries for system 'SAP_ECC_SalesService'.
    One of the errors is as follows, but it is because BI is not connected to this portal, as the documentation says the connection is optional for this business package:
    Content pass of Application Integrator failed.
    Component Name:       'com.sap.portal.appintegrator.sap.BWReport',
    Context Name (iView): 'pcd:portal_content/com.sap.pct/specialist/com.sap.pct.erp.salesrep.bp_folder/com.sap.pct.erp.salesrep.roles/com.sap.pct.erp.salesrep.salesrep/com.sap.pct.erp.salesrep.sales_process/overview_folder/com.sap.pct.erp.salesrep.order_fulfill/com.sap.pct.erp.salesrep.Fulfillment/com.sap.pct.erp.salesrep.OrderFulfillmentAnalyses',
    Top Layer:            'BWReport/TopLayer',
    Producer ID (FPN):    'null',
    System Alias:         'SAP_BW',
    Thanks,
    Owen

  • Business packages for SRM to implement EP

    Hi All,
    We are implementing SRM 5.5 in our company. Also, EP 7.0 we are implementing for SRM. Can anyone help me how to get the business packages for SRM and supplier collaboration, as i cant download it from sdn, as it is unrestricted shipment.
    Also, how to import these business packages into EP.
    Thanks in advance,
    Sailesh K

    Hiya,
    Yann already pointed out where to find the BP for SRM. The Business Package for Supplier Collaboration is also available from the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/developerareas/contentportfolio">Portal Content Portfolio</a> in the Specialist section. You want to go for the 2.0 release.
    Installation:
    In SAP NetWeaver 2004s, the portal is installed as a usage type via SAPINST. For installing the Business Package for SRM 5.0, the installation process also goes via SAPINST. Please follow SAP note 883948. 
    Best regards
    Dagmar

Maybe you are looking for

  • How can I format cells in numbers to display swim times?

    I need to list swim times in a numbers spread sheet.  Swim times are listed as 2:17.75, meaning 2 minutes, 17 seconds and 75 hundreths of a second.  Numbers automatically changes this to 2 m 17s and 750mm, or 2 h 18m 15s.  I have tried to make a cust

  • Adobe Web Premium CS4 setup.exe not working (upgrade)

    Just bought and downloaded Web Premium upgrade, extracted with no issue, ran setup.exe and the mouse flickered but nothing happened. No service listed in taskmanager, nothing. After googling a while, I used msconfig to turn off everything possible on

  • How do I make groups?

    For example, like in the iTunes store, where you see collections like Led Zeppelin or Metallica, and those both have drop down menus where you can see the contents of the group. Is there any way to make these same little drop-down menus in your iTune

  • Replicating to a different schema

    Some questions regarding Oracle 9i Lite: 1. Using the WebToGo Application Packager (or Consolidator API), is it possible to specify the target schema in the Oracle Lite DB for a snapshot definition? Everything, no matter what the source schema (SYSTE

  • Air Tunes and Multi-Pass

    I just started getting the Daily Show and I have AirTunes. When I play it, I wanted it to come over the spearks in the house so that everyone could hear. When I have iTunes switched from "computer" to the wireless AirTunes router, nothing happens. I