Horizontal Barchart In JSP

Hi Friends,
I have the data from query, I have to draw the horizontal bar graph in applet or JSP. Suppose there are two values 10 and 9 it should show the bar at left and right hand side for 10 and 9 respectvely mean Y-axis
bisect the horizontal var. Please help me. Can anybody send me a Code for it.

deshmss wrote:
Hi Friends,
I have the data from query, I have to draw the horizontal bar graph in applet or JSP. Maybe JChart? Flex? Flash?
Can anybody send me a Code for it.Pshhh!

Similar Messages

  • Binding for "File Content Repository Path" is returning null value

    I have created a data control for file based content repository based on an existing file system path. *But when this data contol is invoked the command "#{bindings['getURI_returnURI'].inputValue}" is returning null.*+
    Please advice what are possible scenarios. I have performed the following
    #1. Create a file system folder in windows XP named "C:\CPContentRepository" and add some html pages into this folder.
    #2. Create a "content" project in the application.
    #3. Create a "Content Repository Data Control" named "CPFileContentRepository". Repository Type : "File System", Base Path : "C:\CPContentRepository". Test & Registration is successful.
    #4. Add a "panel horizontal" into jsf jsp "ContentTest" page & drap-dop data control "CPFileContentRepository--> getURI(String)--> Return--> URI". select return type as "ADF Output Text".
    #5. Edit Authorization of the "ContentTest" page definition for "View --> anyone".
    #6. Edit Authorization of the "ContentTest" page definition bindings "getURI" for "Invoke --> anyone".
    #7. Run the "ContentTest" page. The output for the page is empty.
    Regards,
    Vikki

    There're two major problems in your code. One you have used different names to get your parameters like in your first jsp they're like
    <input type="text" name="did" size="20" </p>
      <p align="center"> </p>
      <p align="center"><b>Name        </b>          
      <input type="text" name="name" size="20"></p>
      <p align="center"> </p>
      <p align="center"><b>Specialist In         
      <input type="text" name="specialist" size="20"></b></p>
      <p align="center"> </p>
      <p align="center"><b>Address                
      <input type="text" name="address" size="20"></b></p>
      <p align="center"> </p>
      <p align="center"><b>Phone no.            
      <input type="text" name="phno" size="20"></b></p>
      <p align="center"> </p>but when you're getting you're doing it like this
    String name = request.getParameter("name");
         String did = request.getString("did");
         String add = request.getParameter("add");
         String specilist = request.getParameter("specilist");
         String phno = request.getParameter("phno");First get them with same name as you have them in your first jsp. another thing in that you're not used form tag in write way... You have created submit button in some other form
    and when you're pressing submit button actully you're submitting only that form value and your form1 is not submitted that's why you're getting null values for
    those parameters you're getting with right name

  • Problem with bar chart and conditionals

    Hi Experts!
    I have a problem doing a chart
    My chart is horizontal barchart...and Axis Y there is some accounts of a dimension...
    There is two kind of accounts...when value is > 0 then green and < 0 then red and other kind is > 0 red and < 0 green... so each bar is an account but depends of each account it will be green or red. In tables I can do it with conditional format depends of other column...but I can't do it with a chart.
    Is possible to do this?
    Thanks!!!
    I add a picture with my problem: http://imageshack.us/photo/my-images/849/barchart.jpg/

    Hi,
    In 11g in graph properties in the second tab(STYLE)-->Graph Data ..Style and Conditional Formatting-->Conditional Formatting .
    You can see all the columns used.
    You can select the column and specify the filter condition and select the color for the graph.
    You can select for which column you need to have the conditional formatting.
    Regards
    MuRam

  • Slow scrollbar problem

    Hi guys, I have a problem of slow repaint with scrolling. I have a panel which contains a lot of graphical information. It's dynamically changes its size and may have a width up to 15000 - this is when it gets really slow when I scroll it.
    I was thinking that may be implementing my own ScrollBar will solve the problem, the ScrollBar which will not technically scroll the panel, but by analyzing it's position I will be able to paint only the corresponding part of graph on the screen, and won't have to repaint all of that invisible stuff beyond the screen.
    So I don't know, is it worth trying to do this? And if it is can anybody give me some hints on how to do it? If not, is there any other way to speed it up?
    Thank you, Paulina

    Feri, I'm sorry, I posted the previous message without making some other changes, so at the end the speed was actually improved!
    However, the scrolling worked fine when I applied the changes for the separate panel only. But in my main program I'll have at least 4 of these panels on the screen. I searched the forum and found a code which creates only one scrollbar that will handle the scrolling of all panels simulteniously. In this case, scrolling works fast, but the lines do not get drawn completely, only separate points are drawn. So instead of the line ____________ I see smth like this - - - - -
    Here is the code that I use to make one scrollbar to handle all panels:
    JScrollBar horscrollbar = new JScrollBar(JScrollBar.HORIZONTAL); //scrollbar that will be placed at the bottom of the main window
    JScrollPane[] jsps = new JScrollPane[4]; //creating 4 JScrollPane's , one for each graph
    //scrollbars in those JScrollPane's should not be visible
    int hn = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER;
    int vn = ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER;
    //making graphs the clients of JScrollPane
    jsps[0] = new JScrollPane(graph, vn, hn);     
    jsps[1] = new JScrollPane(graph2, vn, hn);     
    jsps[2] = new JScrollPane(graph3, vn, hn);     
    jsps[3] = new JScrollPane(graph4, vn, hn);
    //horscrollbar is registered to listen to this event
    public void adjustmentValueChanged(AdjustmentEvent e){
         JScrollBar source = (JScrollBar) e.getSource();
         if(source==horscrollbar){
    //transferring the value of horscrollbar to each invisible horizontal scrollbar in jsps[]
         int adj = e.getValue();     
         for (int x=0; x<4; x++)
              jsps[x].getHorizontalScrollBar().setValue(adj);
         }

  • Horizontal scroll bar for combo/lsit box in JSP

    hi,
    i want "Horizontal Scroll bar" for combo box to display long names.
    regards,
    krishna

    Not a JSP issue. Look up styles, CSS, and dynamic HTML. They should help.

  • Get rid of BarChart Legend and create a Horizontal Line on a specific value

    Hey,
    i'm working with BarCharts.
    1st Screen: I want to disable the Legend of my Barchart.
    http://imgur.com/wMo6Tfv,DRiNA9C
    Second Screen: I want to create a Line in my Barchart on a specific Value like 700 as seen on the screen.
    http://imgur.com/wMo6Tfv,DRiNA9C#1
    Is this Possible ? Also: For what object do i need to set the ID to change the bar's color. i've tried
    Chart barchart;
    barchart.setId("Chart");
    css:
    #barchart
    -fx-background-color: red;
    But it didn't work. Thanks!

    No, you're not missing anything; I had a temporary brain freeze. You can't add Nodes directly to an arbitrary region.
    So this makes it a bit harder. You need to add the line to the container in which your Chart is held, and of course that means you have to figure out the coordinates of the line relative to that container. To simplify it a bit, the axis has a scale property for converting from axis units to screen units, and also according to the css docs, the chart has a child with css class "chart-horizontal-zero-line". So one possible strategy is to grab that line and figure the change in coordinates needed from it. There's still work to do to figure the correct coordinates relative to the container, and if you want it to work with things moving around (such as when the user resizes the window), you need to do a bunch of binding.
    This seems to work:
    import java.util.Arrays;
    import java.util.List;
    import javafx.application.Application;
    import javafx.beans.binding.DoubleBinding;
    import javafx.beans.property.DoubleProperty;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.chart.CategoryAxis;
    import javafx.scene.chart.LineChart;
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.scene.control.Button;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.Region;
    import javafx.scene.shape.Line;
    import javafx.stage.Stage;
    import javafx.util.StringConverter;
    public class LineChartSample extends Application {
      @Override
      public void start(Stage stage) {
        stage.setTitle("Line Chart Sample");
        final CategoryAxis xAxis = new CategoryAxis();
        final NumberAxis yAxis = new NumberAxis();
        yAxis.setTickLabelFormatter(new StringConverter<Number>() {
          @Override
          public Number fromString(String string) {
            return Double.parseDouble(string);
          @Override
          public String toString(Number value) {
            return String.format("%2.2f", value);
        xAxis.setLabel("Month");
        final LineChart<String, Number> lineChart = new LineChart<String, Number>(
            xAxis, yAxis);
        lineChart.setTitle("Stock Monitoring, 2010");
        lineChart.setAnimated(false);
        final XYChart.Series<String, Number> series = new XYChart.Series<>();
        series.setName("My portfolio");
        final List<XYChart.Data<String, Number>> data = Arrays.asList(
        new XYChart.Data<String, Number>("Jan", 23),
            new XYChart.Data<String, Number>("Feb", 14),
            new XYChart.Data<String, Number>("Mar", 15),
            new XYChart.Data<String, Number>("Apr", 24),
            new XYChart.Data<String, Number>("May", 34),
            new XYChart.Data<String, Number>("Jun", 36),
            new XYChart.Data<String, Number>("Jul", 22),
            new XYChart.Data<String, Number>("Aug", 45),
            new XYChart.Data<String, Number>("Sep", 43),
            new XYChart.Data<String, Number>("Oct", 17),
            new XYChart.Data<String, Number>("Nov", 29),
            new XYChart.Data<String, Number>("Dec", 25));
        series.getData().addAll(data);
        final AnchorPane chartContainer = new AnchorPane();
        AnchorPane.setTopAnchor(lineChart, 0.0);
        AnchorPane.setBottomAnchor(lineChart, 0.0);
        AnchorPane.setLeftAnchor(lineChart, 0.0);
        AnchorPane.setRightAnchor(lineChart, 0.0);
        chartContainer.getChildren().add(lineChart);
        Button button = new Button("Show line");
        button.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            final double lineLevel = 35;
            final Region chartRegion = (Region) lineChart
                .lookup(".chart-plot-background");
            final Line zeroLine = (Line) lineChart
                .lookup(".chart-horizontal-zero-line");
            final DoubleProperty startX = new SimpleDoubleProperty(0);
            final DoubleProperty endX = new SimpleDoubleProperty(0);
            final DoubleProperty y = new SimpleDoubleProperty(0);
            startX.bind(new DoubleBinding() {
                super.bind(chartRegion.boundsInParentProperty());
              @Override
              protected double computeValue() {
                double x = chartRegion.getBoundsInParent().getMinX();
                for (Node n = zeroLine.getParent().getParent(); n != chartContainer && n.getParent() != null; n = n.getParent()) {
                  x += n.getBoundsInParent().getMinX();
                return x;
            endX.bind(new DoubleBinding() {
                super.bind(chartRegion.boundsInParentProperty());
              @Override
              protected double computeValue() {
                double x = chartRegion.getBoundsInParent().getMaxX();
                for (Node n = zeroLine.getParent().getParent(); n != chartContainer && n.getParent() != null; n = n.getParent()) {
                  x += n.getBoundsInParent().getMinX();
                return x;
            y.bind(new DoubleBinding() {
                super.bind(chartRegion.boundsInParentProperty(),
                    yAxis.scaleProperty(), zeroLine.startYProperty());
              @Override
              protected double computeValue() {
                double y = zeroLine.getStartY() + lineLevel * yAxis.getScale();
                for (Node n = zeroLine.getParent().getParent(); n != chartContainer && n.getParent() != null; n = n.getParent()) {
                  y += n.getBoundsInParent().getMinY();
                return y;
            Line line = new Line();
            line.startXProperty().bind(startX);
            line.endXProperty().bind(endX);
            line.startYProperty().bind(y);
            line.endYProperty().bind(y);
            chartContainer.getChildren().add(line);
        BorderPane root = new BorderPane();
        root.setCenter(chartContainer);
        root.setTop(button);
        Scene scene = new Scene(root, 800, 600);
        lineChart.getData().add(series);
        stage.setScene(scene);
        stage.show();
      public static void main(String[] args) {
        launch(args);
    }

  • How to show an arrow pointer to the Barchart image in JSP?

    Hi,
    I want to show an arrow pointer to the particular value on the barchart, i.e. arrow should point to the y-axis of barchart and should change the position accordingly depends on the value on y-axis. How can I implement this? I want to use this code in JSP?
    Thanks,

    I understand that you are not talking about an active mouse pointer.
    You can write HTML with two < div >s that overlap.
    The pointer image should be a .gif (or maybe a .png) with transparency.
    Something like this maybe:
    < div style="position: relative; top: -10px; background: transparent;"  >You can also generate a composed image, and use another JSP
    that acts as if it were an image, using getOutputStream() instead of out,
    and setContentType("image/gif") but that is more error prone.
    Develop a stand-alone test application first.

  • Horizontal scrol bar for combo bos in JSP

    How do I force a horozontal scroll bar on a list box?

    Not a JSP issue. Look up styles, CSS, and dynamic HTML. They should help.

  • JScrollPane size problems with horizontal bar

    Hello,
    I have made a panel with some lines of text (JLabels). The panel is contained inside a JScrollPane. When it gets a horizontal scrollbar, the bar hides the bottom-most line of text and you get a vertical scrollbar too.
    How do I get the JScrollPane to add the height of the horizontal scrollbar to its own height if it still fits inside its own maximum height? It is ridiculous when you have like 3 lines of text inside it and you have to scroll it to see the bottom line.
    Thanks,

    Thanks, that solved the problem good enuff for me here. Now I also got another similar problem, at http://forum.java.sun.com/thread.jsp?forum=57&thread=206828. Got any ideas on that :) ?

  • Working with line feed, carriege return, tab etc in JSP web layout

    Hi guys,
    After looking at an old thread
    line feed, carriege return, tab etc in JSP web layout
    I think I am experiencing the same problem here and I'm struggling to implement the solution, mainly because I am a complete newbie at jsp reports (and most things webby).
    1) Can I add the code following code directly to the web source? If not then how do I find the css file being used?
    table pre {
    overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
    white-space: pre-wrap; /* css-3 */
    white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
    /* width: 99%; */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
    2) I'm not sure how to set the width to be same as the width of the table cell.
    Here's the web source and thanks very much in advance!
    <%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>
    <%@ page language="java" import="java.io.*" errorPage="/rwerror.jsp" session="false" %>
    <%@ page contentType="text/html;charset=ISO-8859-1" %>
    <!--
    -- Version control data:
    -- $Revision: $
    -- $Date: $
    -->
    <!--
    <rw:report id="report" parameters="userid=xxx/xxx@xxx">
    <rw:objects id="objects">
    </rw:objects>
    -->
    <html>
    <head>
    <meta name="GENERATOR" content="Oracle 9i Reports Developer"/>
    <title> STAR Solution Plan Report </title>
    </head>
    <body>
    <!-- Data Area Generated by Reports Developer -->
    <rw:dataArea id="MG2GRPFR69">
    <rw:foreach id="RG2691" src="G_issue_solution">
    <!-- Start GetGroupHeader/n --> <table>
    <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" style="font-family: Book Antiqua; font-size: 10pt">
    <TBODY>
    <TR>
    <TD vAlign=center align="left">
    <p><IMG src="http://witton3/star/Docs/EU_Man/TIMET_Logo.jpg" width="150" height="77"><br>
    </p>
    </TD>
    <TD vAlign=center align="right">
    <p><IMG src="http://witton3/star/Docs/EU_Man/Star_Logo.gif" width="116" height="46">
    </p>
    </TD>
    </TR></TBODY></TABLE>
    <p align=center style='margin-right:.5in;margin-left:.5in;text-align:center'><span
    style='font-size:18.0pt;font-family:"Book Antiqua"'>STAR System Documentation</span></p>
    <p align=center style='margin-right:.5in;margin-left:.5in;text-align:center'>
    <u><b><span
    style='font-size:13.5pt;font-family:"Book Antiqua"'>Solution Plan for STCR </span><font size="4"><span style="font-family: Book Antiqua">
    <rw:field id="F_issue_id" src="issue_id" breakLevel="RG2691" breakValue=" "> F_issue_id </rw:field>
    </span></b></u></font></p>
    <P>NOTE: <font color="#008000">For existing STAR programs, unless explicitly
    stated in the solution plan, functionality pre-existing in the program or report
    will be retained. Approval of the solution  plan implies agreement that
    current functionality not being modified is still acceptable going forward, in
    the light of the specific changes documented. </font></P>
    <b><u><p>Root Cause of Issue</b></u></p>
    <p> <rw:field id="F_root_cause" src="root_cause" breakLevel="RG2691" breakValue=" "> F_root_cause </rw:field>
    </p>
    <b><u><p>Overview of Solution</b></u></p>
    <p> <rw:field id="F_solution_overview" src="solution_overview" breakLevel="RG2691" breakValue=" "> F_solution_overview </rw:field>
    </p>
    <b><u><p>Functionality Changes</b></u></p>
    <b><p>After implementation of these changes the users will now be able to:</b></p>
    <p> <rw:field id="F_sp_new_functionality" src="sp_new_functionality" breakLevel="RG2691" breakValue=" "> F_sp_new_functionality </rw:field>
    </p>
    <b><p>After implementation of these changes the users will no longer be able to:</b></p>
    <p> <rw:field id="F_sp_removed_functionality" src="sp_removed_functionality" breakLevel="RG2691" breakValue=" "> F_sp_removed_functionality </rw:field>
    </p>
    <b><p>After implementation of these changes the users will need to do this differently:</b></p>
    <p> <rw:field id="F_sp_changed_functionality" src="sp_changed_functionality" breakLevel="RG2691" breakValue=" "> F_sp_changed_functionality </rw:field>
    </p>
    <b><u><p>Program Units Affected</b></u></p>
    <!-- End GetGroupHeader/n --> <tr>
    <td valign="top">
    <table summary="STAR System Documentation" border="1" width="100%" style="font-family: Book Antiqua; font-size: 10pt">
    <!-- Header -->
    <thead>
    <tr>
    <th width="100" align="left" <rw:id id="HBprgunittype69" asArray="no"/>> <b><font face="Book Antiqua">Program <br>Unit Type </font></b></th>
    <th width="200" align="left" <rw:id id="HBprgunitname69" asArray="no"/>> <b><font face="Book Antiqua">Program Unit Name </font></b></th>
    <th align="left" <rw:id id="HBdescofchange69" asArray="no"/>> <b><font face="Book Antiqua">Description of Change </font></b></th>
    <th align="left" <rw:id id="HBtechnotes69" asArray="no"/>> <b><font face="Book Antiqua">Technical Notes </font></b></th>
    </tr>
    </thead>
    <!-- Body -->
    <tbody>
    <rw:foreach id="RG1691" src="G_issue_prg_units">
    <tr>
    <td width="100" align="left" valign="top" <rw:headers id="HFprgunittype69" src="HBprgunittype69"/>> <font face="Book Antiqua" size="2"><rw:field id="Fprgunittype69" src="program_unit_type" nullValue=" "> F_prgunittype </rw:field></font></td>
    <td width="200" align="left" valign="top" <rw:headers id="HFprgunitname69" src="HBprgunitname69"/>> <font face="Book Antiqua" size="2"><rw:field id="Fprgunitname69" src="program_unit_name" nullValue=" "> F_prgunitname </rw:field></font></td>
    <td <rw:headers id="HFdescofchange69" src="HBdescofchange69"/>> <font face="Book Antiqua" size="2"><rw:field id="Fdescofchange69" src="sp_description_of_change" nullValue=" "> F_descofchange </rw:field></font></td>
    <td <rw:headers id="HFtechnotes69" src="HBtechnotes69"/>> <font face="Book Antiqua" size="2"><rw:field id="Ftechnotes69" src="sp_technical_notes" nullValue=" "> F_technotes </rw:field></font></td>
    </tr>
    </rw:foreach>
    </tbody>
    </table>
    </td>
    </tr>
    <b><u><p>Security</b></u></p>
    <p> <rw:field id="F_sp_security" src="sp_security" breakLevel="RG2691" breakValue=" "> F_sp_security </rw:field>
    </p>
    <b><u><p>Site Specific data /processing</b></u></p>
    <p> <rw:field id="F_sp_site_specific_info" src="sp_site_specific_info" breakLevel="RG2691" breakValue=" "> F_sp_site_specific_info </rw:field>
    </p>
    <b><u><p>Impacts and restrictions</b></u></p>
    <p> <rw:field id="F_sp_impacts_and_restrictions" src="sp_impacts_and_restrictions" breakLevel="RG2691" breakValue=" "> F_sp_impacts_and_restrictions </rw:field>
    </p>
    <b><u><p>Pre-Implementation data modifications</b></u></p>
    <p> <rw:field id="F_sp_pre_imp_data_mods" src="sp_pre_imp_data_mods" breakLevel="RG2691" breakValue=" "> F_sp_pre_imp_data_mods </rw:field>
    </p>
    <b><u><p>Post Implementation user actions</b></u></p>
    <p> <rw:field id="F_sp_post_imp_data_mods" src="sp_post_imp_data_mods" breakLevel="RG2691" breakValue=" "> F_sp_post_imp_data_mods </rw:field>
    </p>
    </table>
    </rw:foreach>
    </rw:dataArea> <!-- id="MG2GRPFR69" -->
    <!-- End of Data Area Generated by Reports Developer -->
    </body>
    </html>
    <!--
    </rw:report>
    -->

    The solution in the original post was:
    set the
    width to be same as the width of the table cell
    add following class to css file
    table pre {
    overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
    white-space: pre-wrap; /* css-3 */
    white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
    /* width: 99%; */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
    But I dont have a css file ... can I just add this to the web source and if so where?

  • JSP, Data tags, How to build a form edit with multiple records

    Hi, I'm using Jdev 9i.
    I would like to have a JSP form where I can update, delete, insert records displayed in the same page.
    I know that I can use the data tag jbo:DataEdit to do it, but it only works with a single record, I want to have several records in the same page, displayed horizontally.
    The best example is a form to add items in an invoice:
    Productid description quantity price
    1001 xxx 10 20.00
    1002 yyy 15 30.00
    1003 zzz 7 10.00
    Could you give some help please?
    Thanks in advance.

    The form display is dictated by how you process the submit. I would build the form by using standard html tags. Here is another pseudo example:
    <FORM ACTION="target.jsp" >
    <TABLE>
    <TR>
    <TD>
    DeptNo
    </TD>
    <TD>
    DName
    </TD>
    <TR>
    <%
    int nRow = 0;
    %>
    <jbo:RowsetIterate datasource="ds">
    <%
    // increment the row number
    nRow++;
    String sDeptno = "Deptno" + nRow;
    String sDname = "Dname" + nRow;
    String sRowKey = "RowKey" + nRow;
    %>
    <jbo:Row id="myrow" action="current">
    <TR>
    <TD>
    <input type="text" name="<%=sDeptno%>" value='<jbo:ShowValue dataitem="Deptno" />' />
    </TD>
    <TD>
    <input type="text" name="<%=sDname%>" value='<jbo:ShowValue dataitem="Dname" />' />
    <input type="text" name="<%=sRowKey%>" value='<jbo:ShowValue dataitem="RowKey" />' />
    </TD>
    <TR>
    </jbo:Row>
    </jbo:RowsetIterate>
    <input type="submit" />
    </TABLE>
    </FORM>
    NOTE: This should get you started!!!

  • Chart legend too wide when using horizontal layout

    I am using a flex chart with about 15 series on it. I've set
    the legend direction variable to "horizontal". However since the
    panel width which contains the chart is fixed, the legend sprawls
    out to the right instead of going "wrapping around" nicely to stay
    within the panel. As a result, you can't read the whole legend when
    looking at the chart. The chart itself stays the proper width, but
    the legend is too wide and can only be seen via using the scrollbar
    to move horizontally. How can that be fixed?

    Solerous, you must create a custom legend. Here's an example
    that uses a grid to lay out the individual grid items. If you have
    a variable number of series, then you can probably come up with
    better logic for laying out the legend, but this should help get
    you going.
    hth,
    matt horn
    flex docs
    <?xml version="1.0"?>
    <!-- charts/CustomLegendInActionScript.mxml -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    backgroundColor="white" creationComplete="init()">
    <mx:Script><![CDATA[
    import mx.containers.GridItem;
    import mx.containers.GridRow;
    import mx.graphics.SolidColor;
    import mx.graphics.IFill;
    import mx.charts.LegendItem;
    import mx.charts.Legend;
    import mx.collections.ArrayCollection;
    [Bindable]
    public var expenses:ArrayCollection = new ArrayCollection([
    {Expense:"Taxes", April:2000, May:321, June:131, July:1100,
    August:200, September:1400, October:42},
    {Expense:"Rent", April:1000, May:95, June:313, July:600,
    August:400, September:200, October:52},
    {Expense:"Taxes", April:2000, May:321, June:131, July:90,
    August:500, September:900, October:300},
    {Expense:"Bills", April:100, May:478, June:841, July:400,
    August:600, September:1100, October:150}
    private function init():void {
    for (var i:int = 0; i < myChart.series.length; i++) {
    var li:LegendItem = new LegendItem();
    li.label = myChart.series
    .displayName;
    var sc:SolidColor = myChart.series.getStyle("fill");
    li.setStyle("fill", sc);
    var gi:GridItem = new GridItem();
    if (i < 3) {
    // First row
    gi.addChild(li);
    gr1.addChild(gi);
    } else if (i >= 3 && i < 6) {
    // Second row
    gi.addChild(li);
    gr2.addChild(gi);
    } else if (i >= 6) {
    // Third row
    gi.addChild(li);
    gr3.addChild(gi);
    ]]></mx:Script>
    <mx:Panel title="Bar Chart with Legend" width="500"
    height="600">
    <mx:BarChart id="myChart" dataProvider="{expenses}"
    height="400" showDataTips="true">
    <mx:verticalAxis>
    <mx:CategoryAxis
    dataProvider="{expenses}"
    categoryField="Expense"
    />
    </mx:verticalAxis>
    <mx:series>
    <mx:BarSeries xField="April" displayName="April (in
    $USD)"/>
    <mx:BarSeries
    xField="May"
    displayName="May (in $USD)"
    />
    <mx:BarSeries
    xField="June"
    displayName="June (in $USD)"
    />
    <mx:BarSeries
    xField="July"
    displayName="July (in $USD)"
    />
    <mx:BarSeries
    xField="August"
    displayName="August (in $USD)"
    />
    <mx:BarSeries
    xField="September"
    displayName="September (in $USD)"
    />
    <mx:BarSeries
    xField="October"
    displayName="October (in $USD)"
    />
    </mx:series>
    </mx:BarChart>
    <mx:Grid id="myGrid">
    <mx:GridRow id="gr1">
    </mx:GridRow>
    <mx:GridRow id="gr2">
    </mx:GridRow>
    <mx:GridRow id="gr3">
    </mx:GridRow>
    </mx:Grid>
    </mx:Panel>
    </mx:Application>

  • Horizontal scroll bar in OAF screen flexible layout

    Hi Gurus,
    We have developed an OAF screen using flexible layout. Currently we have two tabs showing in the same window. We are unable to increase the number of columns in the result table of the flexible layout as there is no horizontally scroll bar getting added dynamically.
    Please let me know any pointers on this.
    Thanks in Advance.
    Thanks & Regards,
    Nagesh.

    Tapash,
    I hope ur talking about this thread:
    Page Scrolling
    User did it in JTF i.e. jsp not in OAF, thats' what I was thinking, because OAF does not provide js api's for OATableBean, unless I create my own custom table , like we do in jsp.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Not displaying decalritive component in my jsp page

    i delete my adf libarary jar in my deploy folder and it works fine,but now
    not able to dislay decalartive components in my jsp page
    hi i have decalarative components page which am calling from another jsp page,the thing is when irun my jsp page am not able to display my decalartve components but in design of my jsp page i can see my decalartive components
    my decalaritive components xml is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <af:componentDef var="attrs" componentVar="comp" definition="public">
    <af:panelGroupLayout id="dc_pgl1" inlineStyle="width:736px;" layout="horizontal" valign="middle"
    halign="center">
    <af:panelFormLayout id="dc_pfl1" rows="1" maxColumns="10"
    inlineStyle="width:376px; height:33px; border-color:Navy; border-style:ridge;">
    <af:commandLink text="Home" id="dc_cl1" action="Home"/>
    <af:commandLink text="TaskPool" id="dc_cl2" action="toPool"/>
    <af:commandLink text="LogOut" id="dc_cl3" action="logout"/>
    <af:selectOneChoice label="Skin" id="dc_soc1" value="#{SkinHelper.currentSkin}">
    <f:selectItems value="#{SkinHelper.currentSkin}" id="dc_si1"/>
    </af:selectOneChoice>
    <af:commandButton text="Select" id="dc_cb1" action="#{SkinHelper.switchSkin}"/>
    </af:panelFormLayout>
    </af:panelGroupLayout>
    <af:xmlContent>
    <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
    <display-name>SmscomponentDef</display-name>
    <component-class>component.SmscomponentDef</component-class>
    <component-extension>
    <component-tag-namespace>component</component-tag-namespace>
    <component-taglib-uri>/componentLib1</component-taglib-uri>
    </component-extension>
    </component>
    </af:xmlContent>
    </af:componentDef>
    </jsp:root>
    when i drag and drop my decalaritive components from my components platter i get the below xml in my jsp page
    <sms:SmscomponentDef id="sd1"/>
    reference
    error running running application with decalaritive components

    timo
    Please be patient and wait for an answer in the other thread...
    how can i display the declarative components on the jsp page, am not able to diplay in runtime but can see decalarative components in design
    Edited by: Tshifhiwa on 2012/06/26 8:26 PM

  • Using javax.imageio in JSP

    Hi
    I have a simple code snippet that I use to read in JPG/GIF image from a file and create a new image that is upside down . Here is my snippet.
    //create upside down image
    try { 
    String imgPath = "\\images\\AINCC.gif";
    File fImg = new File(imgPath);
    BufferedImage imgREG = ImageIO.read(fImg);
    int iW = imgREG.getWidth(null);
    int iH = imgREG.getHeight(null);
    // Flip the image vertically and horizontally (equivalent to rotating the image 180 degrees)
    AffineTransform tx = AffineTransform.getScaleInstance(-1.0,-1.0);
    tx.translate(-iW, -iH);
    //tx.scale(0.8,0.8);
    AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
    BufferedImage imgUSD = op.filter(imgREG, null);
    // write flipped image to a file
    File fUSD = new File("images\\USD_image.tmp");
    ImageIO.write(imgUSD,"jpg",fUSD);
    catch (Exception e) {
    e.printStackTrace();
    If I use this in a stand alone Java app it works fine but it will not work from the JSP page....
    I have updated my server.policy file to give /images directory read, write, delete priviledges and I tried all the variations of the path (relative, absolute, direct....)...
    I get the following error from the server log:
    [#|2004-05-17T13:47:56.173-0400|WARNING|sun-appserver-pe8.0|javax.enterprise.system.stream.err|_ThreadID=11;|
    javax.imageio.IIOException: Can't read input file!
    at javax.imageio.ImageIO.read(ImageIO.java:1263)
    at org.apache.jsp.ecards.mailcard_jsp._jspService(mailcard_jsp.java:125)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141)
    Can someone tell me what am I missing....
    My JSP page is mailcard.jsp and images are under it in the images subdirectory....
    Thanks
    Amir

    Hi,
    Replace the following lines:
    try{
    String imgPath = "\\images\\AINCC.gif";
    with
    <%String contextPath = request.getContextPath();%>
    try{
    String imgPath = <%=contextPath%> + "\\images\\AINCC.gif";
    You may also need to set the web application context root.
    Regards,
    bazooka.

Maybe you are looking for

  • Windows vista locked in Shutdown mode loop.

    After FF latest update when I put my Dell Laptop with Windows Vista as the Operating System, it failed to shut down and seems to be locked in the shutdown mode. It will not respond to "Ctrl, Alt, Del), any key stroke and has a full battery. I have le

  • Cheapest video output for monitoring

    Hi I currently have my final cut pro setup to output via firewire through my panasonic video camera and to my monitor. I've decided its time to liberate the camera, and perhaps get something dedicated for conversion. I don't need much, I'm not editin

  • Very very synch with Windows 7

    I have recently gotten a new laptop with Windows 7 and while iTunes loaded without any problems I am having problems synching my iPhone. It takes so long that the device times out every time. Even when I tried to just synch one thing at a time (i.e.

  • Windows has encountere​d a problem communicat​ing with a device connected to your computer

    Hello, I realize there are other threads with this error, but I've tried all the solutions suggested, and have a few additional notes that seem to be unique to my situation. I have a Toshiba Satellite L675 laptop and am running Windows 7 64bit. I res

  • The synch process seems to hang (stop) for my iphone 3

    The synch process for my iphone 3g seems to hang up but doesn't give me any error message. It's been 1.5 hours with no progress.