Espress Chart

Hi All,
Can you please tell me how to use Espress Chart API to generate a chart in JSP.
It would be really helpfull, if you give me a sample code.
Thanks
Martin

Well, I've not used that, but I've used JFreeChart. First, you need to create the chart. Then there would have to be a method to dump the chart as an image (JPEG or GIF or whatever). So you'd want the page to have an image tag to link to a servlet to output the image. I wouldn't use JSP, I'd use a servlet. So you get the servlet output stream. In the servlet's doGet method:
          ByteArrayOutputStream outBuffer = new ByteArrayOutputStream(1024*50);
          ChartUtilities.writeChartAsPNG(outBuffer, chart, width, height);
          // get buffer's data
          byte[] buf = outBuffer.toByteArray();
          // set response information
          response.setContentType("image/png");
          response.setContentLength(buf.length);
          // write the chart data
          OutputStream out = response.getOutputStream();
          out.write(buf, 0, buf.length);
          // clean up
          outBuffer.close();
          outBuffer = null;
          buf = null;this assumes that the package has something like ChartUtilities.writeChartAs... method.

Similar Messages

  • 3-D Pie Chart Rotation.

    Can anybody please let me know how to rotate a 3-D Pie Chart created using Espress Charts API ? I looked through the API and found a method called 'setRotationAngle'. But this method only the rotates though the individual pie slices, and does not rotate the Pie Chart as such ! Wud be really great if i can get some help on this.
    Thanks,
    -Santhi.

    Does that use Java3d, then? It doesn't say so?
    I would try asking Quadbase who sell the original api.

  • Not able to view data in Aria People search Org Chart

    Hi,
    I have uploaded my data into aria_tmp_people, aria_people_a & aria_people_b.
    While doing the search from Aria poeple, the uploaded data is not displaying in org chart.
    Your help is highly appreciated.
    Thanks
    Aneesh

    Hi Aneesh,
    First be more clear about Aria Application. As Aria, is been related to an hrms part of an organization carrying the people infomation and it has some separate features too.
    But in your prespective i couldnt able to understand what do you want to do with that packeged application.
    Since you want to customize the aria application according to your organization needs means, First collect all your necessary organization information that is needed(like tables etc.). Then substitute those (i.e) your organization tables in the appropriate places in the form of query.
    Please dont use the same Aria people table, as the Oracle may framed according to their employee information. Nearly Aria application has 200 supporting objects. If you want to use the same objects means whether u r going to creating nearly 200 supporting objects..It is not worth at all.
    Please be more clear in your requirement that, what you are doing, and then raise the question. Be more prepared with your tables along with datas, and let give your reply once you were been prepared with your organization details table.
    As there are more peoples in the forums to help you other than me.
    Brgds,
    Mini
    Mark Answers Promptly

  • How can I represent more than one plot in an only one chart?

    Hello everyone,
    i got a code where I don't understand how to represent more than two plots, with different scales each, in the same waveform chart.
    As brief review:
    * 2 adquisition data wired to Bundle
    * wire from Bundle to waveform chart.
    * options of th chart: stack plots.
    I've tried to expand the Bundle but the problem is that I'm wiring a 3 element cluster to a 2element cluster chart. I don't understand how to upgrade the chart...
    (there's the two plots in each chart)
    (there's the code, where I've already tried expanding any bundle and wiring other signals, then wiring the bundle's output to the chart)
    I think if I could add more scales, it will be possible to plot three plots on the same chart.
    Thank you for your time
    Marcelo A J

    Since you are dealing with waveforms already, I think you actually want to have an array of waveforms to go into your chart.  You also need to map the plots to the scale that you want to use.  You can do that in the plot tab of the properties window.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can i display Waveform chart in a subpanel using Vi templates.

    Hi All
    I am new to Labview hence need  some help. I am trying to develop an application which reads some data from a Wireless Sensor Network (WSN). The WSN consists of base station connected to the USB port which recieves data from other sensor nodes.  The data comes in a certain format.  Node name, temperature reading, humidity reading etc. I want to read the data from the serial port and  based on the Node name, i want to display the information for each node in s separate window or subpanel etc. So if a new node is detected then a new window is created for that node. Since all the nodes have the same sensors on board i only need a one template. I can read the data using the serial port, parse the data to detect which node it is and also what the sensor readings are. I have created a template VI for the sensor node. I am having problems in displaying the template VIs in a subpanel. I can succesfully display a Waveform graph in the subpanel but i am having problems in displaying a waveform chart in the subpanel. I can see the actual waveform chart in the subpanel, but i cannot see the plot. Would be greatful if someone could point out what i am doing wrong here.
    Many Thanks
    Raza
    Solved!
    Go to Solution.
    Attachments:
    template_graph.vi ‏16 KB
    graph_template.vit ‏11 KB

    Hi All
    I think i have solved the problem. It seems like i was running the Vi in a loop. I have taken the Run Vi outside the while lopp and this works fine. Also i need to close the reference at the end.
    Raza

  • Adding a single quote in the flash chart legend

    Hi all,
    I am using a following code to create a line chart.
    SELECT null link
    ,TO_CHAR(monat, 'MON-YY')
    ,ROUND(No_of_hits/1000) "No of Clicks(''000)"
    FROM
    SELECT DISTINCT TRUNC(ref_month,'MONTH') monat
    ,SUM(no_of_hits) OVER (ORDER BY TRUNC(ref_month,'MONTH') RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) No_of_hits
    FROM goodnews_hits
    WHERE ref_month BETWEEN :p77_DATE_startline
    AND :p77_DATE_endline
    ORDER BY monat;
    I get the following legend in the top region of the chart
    No Of Stories
    No of Clicks(''000)
    I need the No of Clicks to be displayed as
    No of Clicks('000)
    i.e.
    Only one single quote before 000
    Could you please tell me , how this can be achieved?
    Thanks,
    Archana

    As I said in my earlier post, I am looking for the tooltips for the Presentation tables and columns. The tooltips for these were extracted from the RPD using the externalize Strings option and these externalized strings are stored in the database.
    So I am escaping the single using a single quote both in rpd and in the database.
    Example text I have used both in the rpd and database is something like "Shipment's start time". I tried with "Shipment''s start time", " Shipment'''s start time", but it didn't work.
    Thanks!!
    Vasantha.P

  • How can i print out the waveform chart?

      hello everybody,
    how can i print out the "waveform chart". can i do it just push the button. ( example; stop button is stop the program etc..)
    i checked the NI examples but i can't understand. i'm new to the Labview.
    pls help me.
    i added the my program
    look forward your reply
    regards from turkey...
    Message Edited by hknmkt on 05-29-2008 04:15 AM
    Attachments:
    29.05.2008_11.vi ‏37 KB

        hi jim,
    i tried the program but it's not running. When i run the program, it's print out without run the program
    i added the printed file.
    look forward your reply
    hakan
    Attachments:
    error8.JPG ‏8 KB

  • SSRS 2008 Column Chart with Calculated Series (moving average) "formula error - there are not enough data points for the period" error

    I have a simple column chart grouping on 1 value on the category axis.  For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis.  I right click on the data series and choose "Add calculated series...".  I choose moving average.  I want to move the average over at least 2 periods.
    When I run the report, I get the error "Formula error - there are not enough data points for the period".  The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5).  When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
    I don't think this is entirely acceptable for our end users.  At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart.  Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
    Thank you,
    Dan

    I was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
    If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
    <ChartFormulaParameter Name="Period">
                      <Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
    </ChartFormulaParameter>
    What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
    A side note:
    If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML.

  • SSRS show trend chart over column chart per series groups

    Need help in designing following report in SSRS, where I have a chart report with 2 category grouping fields and 1 series group field (as with category grouping, the reason being, i need to show columns in group of 4 joined together based on their grouping
    on top) .
    Below are my queries
    1. how to show my category grouping values on top of chart (showing group in different color) and series grouping values on bottom of chart (under each bar)
    2. I need to show trend line over each series group data.
    For example, First category group is over hotel name, second category group is over room type (deluxe, executive & suite) and one Series group over week number (for a month report), and the chart value is total occupancy (per hotel per room type per week
    number). Now for point 1, Hotel name and room type needs to be on top of the column (total occupancy) chart, where a week iteration number (1,2,3,4 for a month) at the bottom of the chart under every column.
    And for point 2, I need to show trend line per room per week occupancy was improved or not.
    Regards, Sujay

    Hi Sujay,
    According to your description, you want to display the two category group values at the top of the total occupancy value. Also you want to create a trend line over series values.
    For your first requirement, you can specify the Label data as a combination of two category group values and total occupancy values. Then change the location of series group value legend. Please refer to below screenshot.
    For your second requirement, you can add additional total occupancy values to the Chart Data panel, then change the chart type as Smooth Line.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • SSRS Chart group dataset by Year (series groups)/Month (category groups) force intervals to start at JAN?

    Hi all,
    trying to figure this out in REPORT BUILDER, but I guess I can go to VS if needed...
    I've got a data set that says "sales" and its basically order summarycontaining:
    id, dateplaced, and other stuff...
    I want to use this dataset to show trendline for annual qty of orders
    created line chart with "countDistinct(id)" as the series for X
    category groups = groupby "=Month(dateplaced)" and label "=MonthName(Month(dateplaced)"
    series groups = group by "=Year(dateplaced)" and label the same.
    I think this is working as intended, please correct if not.
    The PROBLEM I'm seeing is that since my dataset returns data starting around september so my "axis" starts in september... I really would prefer it starts at Jan and ends in December... I can't see any way to do this...
    The only things I could think of are;
    put fake data in dataset that returns "empty" values for jan in the first year of data...
    change the query completely to make sure tehre are "year" "month" groupings... somehow...
    but both of these approaches seem to be "hacky" and not very maintainable or clear...
    Help!

    Hi noJedi,
    According to your description, you want to you have the category group in your chart always start from January. Right?
    In Reporting Services, when we set category group, the records will sort by the sequence of data in database by default. However, we can apply expression in
    Sorting so that those records can sort by the month. We have tested your scenario in our local environment, here are steps and screenshots for your reference:
    1. Create a chart and put the corresponding expression into category and series group.
    2. Right click on category group. Go to Sorting tab. Put the expression below into sorting expression.
    3. Save and preview. The result looks like below:
    Reference:
    Sort Data in a Data Region (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Error while assigning Chart fo dep to Company code.

    Hi,
    I am getting an error "Inconsistency between FI company code PJP1 and chart of deprec. ZJCD" when i am trying to assign chart of depreciation to company code.
    The details description is below:
    Inconsistency between FI company code PJP1 and chart of deprec. ZJCD
    Message no. AC481
    Diagnosis
    You tried to assign chart of depreciation ZJCD to company code PJP1. According to its Customizing definition, this company code manages parallel currencies.
    The chart of depreciation does not contain a corresponding depreciation area for each of the currency types that are defined in the company code.
    System Response
    This assignment is not possible.
    Procedure
    1. Check the currency types of the company code.
    2. Specify a corresponding depreciation area for each currency type.
    Please let me know what should i do in this case.
    Regards,
    Dinesh Lakhotiya

    Hi Paul,
    It is already defined for my chart of depreciation.
    However, i think i am missing one step: Define depreciation areas for foriegn currencies.
    When i went into this step, i found that my company code is missing. No depreciation area currency is maintaine for my company code. There is no options of new entries also. If i want to maintain the same, how would i do that?
    Awaiting response.
    Regards,
    Dinesh Lakhotiya

  • Chart of accounts

    Hi,
    While creating PO, i'm getting following error.
    Define a chart of accounts first for company code MP00
    kindly give the menu path for the same.

    Hello,
    A chart of account is nothing but a list containing all the G/L accounts. Every company code should be assigned to a chart of account.
    ie for us to use a G/L account in a company code, it should be there in the chart of account assigned for that company code.
    Chart of account creation and assignment of it to the company code is done by FI people. It is better to consult with your FI person for the same.
    The steps are :
    SPRO - Financial accounting - G/L accounting - GL accounts - Master records - Preprations - Edit chart of accounts list  - T.Code : OB13
    SPRO - Financial accounting - G/L accounting - GL accounts - Master records - Preparations - assign company code to chart of accounts T.Code : OB62.
    Regards

  • Windows 7 and Windows 8 Driver Availability Chart for Creative's products

    Hello Everyone,
    There is a Knowledge base article that contains the Windows 7 and 8 Driver Availability Chart for Creative's products.
    Thank you.
    Mod Notes: Updated the link and include Windows 8.

    For Windows 7
    To run the Hardware and Devices troubleshooter in Windows 7, follow these steps:
    Open the Hardware and Devices troubleshooter by clicking the Start button , and then clicking Control Panel.
    In the search box, enter troubleshooter, and then click Troubleshooting.
    Under Hardware and Sound, click Configure a device.

  • Mandatory fields while using Group chart of accounts

    Hi,
    Which are the mandatory fields while maintaining GL accounts in FS00 if i am using Group chart of accounts.
    And how attached these group chart of accounts gl to the operational chart of account GL.
    raj

    Hi,
    the assignment from operational chart of accounts to group chart of accounts is done in OB13. Follow the steps in Customizing IMG FIn. Acc. (new) / Consolidation preparation (new) / General specifications / G/L and FS Charts of accounts...
    Best regards, Christian

  • Help Needed in Crystal Reports 2008 Charting - XY Scatter

    Hi,
    I need to create a XY Scatter plot using CRYSTAL 2008.i have to create 7 graphs of same XY Scatter plots in one single report.the 7 graphs i said because i have a Cost category object which will have 7 categories.so for each category i have to show one XY Scatter plot.
    However the data only changes between  each category. i have to use the same objects for all the 7 plotters.
    there will be a 1 dimension object and two measure objects in this.
    So how to develop the report for this requirement?
    Urgent help is needed.
    Regards,
    Kishore. .
    Edited by: NandaKishore A.V on Feb 23, 2012 8:30 AM

    hi Kishore,
    if you Insert another Group on Category, and then move your chart into the Category Group Header, does that solve the issue?
    jamie

Maybe you are looking for

  • How do I safely delete old entries in Time Machine?

    Hi All, I recently did my first ever Time Machine back up prior to upgrading my OSX to 10.8 from 10.6.8. A few weeks on, all is working fine with no conflicts. Yesterday I upgraded Aperture from 2 to 3.  I know that Time Machine doesn't copy the enti

  • SAML Assertion ID already in cache -- returning SC_FORBIDDEN

    We are using WLS 10.3 and getting a SAML Assertion IDI already in cache -- returning SC_FORBIDDEN. Any clue as to how or why this would happen or resolution. Also we are in a Managed Server Cluster Environemnt. thanks ft

  • Select-options ...as search pattern

    Is this construct available in 46B?  The help file mentions it but it never syntax checks.  Would anyone be able to post some code of it?  I wish to assign a specific sarch help to my select option (an elementary search help as part of a collective o

  • Custom Access Level/User groups in BOBJ XI

    Experts, We are currently implementing BOBJ XI 3.1. Up on go-live, it will be handled by the Operations team from BOBJ CMC. We do not want to give administrator group for the operations users in CMC. Instead, we want to create custom groups with cust

  • Custom fcp x project settings

    Is there a way to have Project settings conform to your clip (i.e. H.264 800kbps) and when you export to keep these settings? I have a feeling that the timeline is in ProRes and when I export using specific Compressor settings it takes a really long