How to generate line chart (e.g. stock market) in midlet?

how to write such a line chart in midlet? any tutorial recommended?
thanks a lot.

Well, I would draw it myself. I think that's your only option. If you are not familiar with MIDP, then you should start with a beginner tutorial - it will not have anything to do with graphics, but more importantly it will introduce you to the programming model. You'll need the experience when you grapple with graphics. Not a big deal, but I haven't seen any samples for it, so you'll have to work off of the API docs. A nice page with sample programs:
http://wireless.java.sun.com/midp/samples/
If you are familiar with MIDP programming, or when you are, then hop over to the API and you'll find what you need there. Some simple math and some custom graphic routines/classes and you'll be well on your way. Here's the API location for the graphics class in the MIDP API:
java.lang.Object
|
--javax.microedition.lcdui.Graphics
Good luck. Hope this helped.

Similar Messages

  • How to create line chart

    Hii Experts,
    How to create line chart?
    I want to  prepaire a line chart in a report. i have 1 table. In a table have 2 fields. chart is created in these 2 field refrence how It's possible?
    Thanx in Advance
    Regards
    Vshal

    I found it very easy to produce a line chart in a window container using FM GFW_PRES_SHOW.  In my case this produces a basic line graph with three lines across 15 time periods.
    See transaction GRAL for various chart types...they're relatively easy to produce...  I picked DEMO_GFW_PRES_SHOW report program from GRAL as my example for how to produce a simple line chart very quickly.

  • How to dispaly Line chart in output?

    Hi All,
    My requirement is that I want to display a line graph for 'year vs revenue' after calculation of revenue.
    I tried this with the FM GRAPH_2D . It displays only bar chart initially, for getting Line chart I have to choose it manually in options after displaying it, but I want to display the line graph directly without any manual operation.
    I've used the FM as below,
    CALL FUNCTION 'GRAPH_2D'
      EXPORTING
        inform             = 'X'
    *    display_type       = ''
        titl               = 'Year Vs Revenue'
      TABLES
        data               = it_summary
      EXCEPTIONS
        gui_refuse_graphic = 1
        OTHERS             = 2.
    Please let me know how to get the line chart directly using either FM GRAPH_2D or any other FM if you know that could do this.

    Hi,
    try this:
    DATA: BEGIN OF IGRAPH OCCURS 0,
            TXT   TYPE CHAR10,
            VALUE TYPE P,
          END   OF IGRAPH.
    DATA: TITLE(80) VALUE 'Header'.
    IGRAPH-TXT = '2000'. IGRAPH-VALUE = 10. APPEND IGRAPH.
    IGRAPH-TXT = '2001'. IGRAPH-VALUE = 23. APPEND IGRAPH.
    IGRAPH-TXT = '2002'. IGRAPH-VALUE = 06. APPEND IGRAPH.
    IGRAPH-TXT = '2003'. IGRAPH-VALUE = 34. APPEND IGRAPH.
    IGRAPH-TXT = '2004'. IGRAPH-VALUE = 45. APPEND IGRAPH.
    IGRAPH-TXT = '2005'. IGRAPH-VALUE = 66. APPEND IGRAPH.
    IGRAPH-TXT = '2006'. IGRAPH-VALUE = 15. APPEND IGRAPH.
    IGRAPH-TXT = '2007'. IGRAPH-VALUE = 17. APPEND IGRAPH.
    IGRAPH-TXT = '2008'. IGRAPH-VALUE = 30. APPEND IGRAPH.
    CALL FUNCTION 'GRAPH_2D'
      EXPORTING
        TITL   = TITLE
        VALT   = 'Value in EUR'
        WINSZX = '75'
        WINSZY = '75'
      TABLES
        DATA   = IGRAPH.
    CALL FUNCTION 'GRAPH_2D'
      EXPORTING
        TITL   = TITLE
        VALT   = 'Value in EUR'
        WINSZX = '75'
        WINSZY = '75'
        DISPLAY_TYPE = 'LN'
      TABLES
        DATA   = IGRAPH.
    CALL FUNCTION 'GRAPH_2D'
      EXPORTING
        TITL   = TITLE
        VALT   = 'Value in EUR'
        WINSZX = '75'
        WINSZY = '75'
        DISPLAY_TYPE = 'ST'
      TABLES
        DATA   = IGRAPH.
    and look in the Docu of this FM (Field DISPLAY_TYPE)
    Regards, Dieter

  • How to generate Flow Chart from Program Source Code easily and automatically.

    It is very crucial to have a clear mind when faced with abstract codes for software engineers and program developers. As always, the programmers have had an overall structure in your mind and then process the design with source code.  The structure can somehow be so complex that it becomes hard to cope with gradually. More often than not, you will get stuck when you process to some extent. However, codes can’t speak and present themselves in a straightforward way. You are eager to find out a straightforward layout to transfer those abstract codes to visible flowchart, aren’t you? Do you know there's code to flowchart software tools online? This tool can help you make a flowchart from source code automatically, here I will introduce you a great code to flowchart converter software.
    Code Flowchart Creator is professional source code to flowchart software tool. This software is designed for programmers or document writers, and its main function is to generate flow chart from source code such as C, C++, VC++ (Visual C++ .NET) and Delphi (Object Pascal) programming files. It helps users to understand complex program structures by visual diagrams. When users are editing the source code, it can make a flowchart or NS chart according to that code, the source code will be analyzed to build a visible flowchart that can help users get familiar with the process of the program.  The created flowchart can be exported as Visio/Word/BMP files. And it works well on all Windows OS, especially on Windows 7.
    Below is simple guide on how to use the Flowchart Converter. Step 1: Free download the setup file on official website: http://www.flowchart-creator.com Step 2: Install it on PC and startup the Flowchart Creator Step 3: Open a source code file and it will automatically generate the Flow Chart on right Window. Actually, the Flowchart Creator is very easy to use even without any experience. If you want to get more details and advanced setting, please visit the website to get tech info and support.         Moreover, it also provides users with browsing and navigation functions. Those functions will facilitate the process of programmer and come to great help to both senior and junior programmers. The generated flowchart can be used to review source code. It will help examine the whole process of a program and check where errors exist when users are verifying source codes. You will never be worried about the complex program structure with the powerful code to flowchart creator tool.

    Dear Chuck,
    I have used Google and other search engines intensively since years. What I need (and this is why I've opened this thread actually) is a suggestion for a product from someone that has already used it. That could also save me time instead of searching, installing, trying, and eventually deinstalling at random. After all, the forum should allow to exchange knowledge and experience with people having similar interests.

  • How to plot line chart for huge xml files?

    Guys,
    I would like to plot files over 2000 lines in a line chart!
    but the application is getting very slow!
    does anyone have any tips to improve performance?

    Can we see how you implement the LineChart and bind the XML please?
    It should be fast normally.

  • How to make line chart start at y-axis?

    How do you make the series on a line chart start at the y-axis?  I tried adding a data point for y(x=0), but the Xcelsius graph drops it and starts with y(x=1).  How do I fix that?  This is especially important for series that need to start at zero.

    Post Author: amr_foci
    CA Forum: Xcelsius and Live Office
    its all based on ur design of your Excel sheet
    design how it will be in Excel first
    then go to xeclsius
    ,,, by the way it looks very easy task
    you can do it.

  • How to customize line chart series and symbols?

    Hello Forum,
    who can help me to customize line chart series and symbols color?
    I need to customize this in dynamic way.
    Thanks in advanced.

    See example 8-10 (Example 8-10 Changing Chart Symbol Color) from http://docs.oracle.com/javafx/2.0/charts/css-styles.htm#CIHGIAGE (reproduced here).
    The linked tutorial document contains a picture of how this example renders.
    .chart-series-line {   
        -fx-stroke-width: 2px;
        -fx-effect: null;
    .default-color0.chart-series-line { -fx-stroke: #e9967a; }
    .default-color1.chart-series-line { -fx-stroke: #f0e68c; }
    .default-color2.chart-series-line { -fx-stroke: #dda0dd; }
    .default-color0.chart-line-symbol { -fx-background-color: #e9967a, white; }
    .default-color1.chart-line-symbol { -fx-background-color: #f0e68c, white; }
    .default-color2.chart-line-symbol { -fx-background-color: #dda0dd, white; }Note the two comma separated colors listed for each -fx-background-color for the chart-line-symbol.
    The first color is the color or the outside of the symbol, the second is the inside of the symbol.
    In the sample css you provided you only supply a single background color for the chart-line-symbol, when two colors are required.

  • How to draw Line Chart in SAP?

    There is a request that the customer want to see Line Chart in the report.
    Is it possible to do it using abap?
    Thank you very much.

    Hi,
    Yes it is possible.
    GOto Tcode SE83>Expand graphics node>double click on that
    you will get all graphic programs.

  • How to generate trend chart after submitting the jsp page

    hi,
    i have a jsp page, in that i will selec some values , after submitting that jsp with selected values , the trend chart will be displayed.
    how to do this , please tell me.

    thank you for your reply
    i took JFreeChart which is thirdparty API , but , in that i got one query.
    how to set the limit for y-axis?means , i want to put maximumm of 100, but its taking what is the maximum value i added to dataset.
    any one know about this, please tell me.

  • How to generate a chart in JPanel

    i want to implement (draw) a grpahical bar chart on JPanel , please help me

    Search the forum. This question has been asked many time. Maybe a simple keyword like "chart" or "graph" will get you started.

  • How to add Line Chart in javafx 2.2 FXML?

    I'm using javaFX scene builder 1.0. The LineChart component is not working for FXML ,I'm added a linechart component in FXML and initialized it in corresponding controller class. it displays the gui as default linechart ,when i'm adding some values of x and y using obsevablelist in the java controller class, it is not updating in the Linechart gui.

    It's hard to say for sure without seeing the complete markup and controller code, but it looks like you are replacing the "graph" instance you declare in markup with a new one you create in code:
    graph = new LineChart(xAxis, yAxis, lineChartData);Rather than creating a new chart, try declaring the chart with the axes you want in markup, and then call setData() on it instead of creating a new one:
    <Scene fx:controller="test.LineChartTestController" xmlns:fx="http://javafx.com/fxml">
        <LineChart fx:id="graph">
            <xAxis><NumberAxis label="Values for X-Axis" lowerBound="0" upperBound="3" tickUnit="1"/></xAxis>
            <yAxis><NumberAxis label="Values for Y-Axis" lowerBound="0" upperBound="3" tickUnit="1"/></yAxis>
        </LineChart>
    </Scene>
    public class LineChartTestController {
        @FXML private LineChart<Double, Double> graph;
        @FXML
        protected void initialize() {
            ObservableList<XYChart.Series<Double, Double>> lineChartData = FXCollections.observableArrayList();
            LineChart.Series<Double, Double> series1 = new LineChart.Series<Double, Double>();
            series1.setName("Series 1");
            series1.getData().add(new XYChart.Data<Double, Double>(0.0, 1.0));
            series1.getData().add(new XYChart.Data<Double, Double>(1.2, 1.4));
            series1.getData().add(new XYChart.Data<Double, Double>(2.2, 1.9));
            series1.getData().add(new XYChart.Data<Double, Double>(2.7, 2.3));
            series1.getData().add(new XYChart.Data<Double, Double>(2.9, 0.5));
            lineChartData.add(series1);
            LineChart.Series<Double, Double> series2 = new LineChart.Series<Double, Double>();
            series2.setName("Series 2");
            series2.getData().add(new XYChart.Data<Double, Double>(0.0, 1.6));
            series2.getData().add(new XYChart.Data<Double, Double>(0.8, 0.4));
            series2.getData().add(new XYChart.Data<Double, Double>(1.4, 2.9));
            series2.getData().add(new XYChart.Data<Double, Double>(2.1, 1.3));
            series2.getData().add(new XYChart.Data<Double, Double>(2.6, 0.9));
            lineChartData.add(series2);
            graph.setData(lineChartData);
            graph.createSymbolsProperty();
    }

  • How to combine Area chart and Line chart?

    Hi,
    I have to display Area chart with the Line chart in one graph.
    How can i do that,
    Please suggest.

    Pretty easy, just add series to your chart
    http://forums.arcgis.com/threads/73636-How-to-combine-line-chart-and-stacked-column-chart
    Dany

  • Generate the Chart in Excel from Java

    Hi All,
    I have a typical problem that is I want to generate the
    Excel charts through Java coding dynamically . Now Iam able to
    create a excel sheet and populating the Data in that,but Iam not
    able and not even have the Idea how to generate the Chart with
    the popuated data , please can any body suggest me ...with the
    code snippet ( iam using the jxl 2.4.2 jar ) .
    Thanks in Advance

    Still Looking forward for the reply...Pls Help meGod, what a loser, to wait for 7 days for what I could find in less that 7 minutes on Google. And I'd never even heard of jxl.jar.
    Incidentally -- what do you think this has to do with Swing, that you posted it here in the Swing forum?
    db

  • Developing line chart

    Hi, i am trying to figure out if there is a way to generate line chart(trending). I am not able to find that option in drop down, is this something left out and coming in future release ? I like bar charts but sometimes, data can be best presented by line chart.

    I'm pretty sure there's an existing request for this at the SQL Developer Exchange, where you can vote on to add weight for possible future implementation.
    Regards,
    K.

  • How to Generate Chart (line chart, bar chart)!

    I want to generate Graphic Chart using Java,(e.g. line chart, bar chart).
    Is any Class can easy to generate Chart??
    thanks!

    petes1234 wrote:
    meacod wrote:
    Dimpu wrote:
    i need the source code how to generate the graphs using the Java
    Give me teh codes?
    And yes, this thread is old.Also note how the poster here politely requests help along with the use of the word "please". Very instructive. He'll get far here.Indeed, you are wise in the ways of the fool **bows politely**

Maybe you are looking for

  • IPhone 3GS not recognized in itunes and xcode on imac i7

    I've got an issue where my iphone 3GS is no longer recognized by my iMac i7 in either itunes or xcode. Iphoto does see my iphone. If I hook it up to my macbook it works fine. Is anybody aware of something strange as far as imac i7 and iphone is conce

  • What does a folder with a question mark mean?

    When starting up my computer I get a folder with a question mark inside. How can I fix this problem?

  • ADF application deployment and Data source configuration

    Hi, we are developing an adf application . This app accessing the tables from a data base and i can run it in the integrated WLS of Jdeveloper. Now i would like to run it in a standalone WLS server. I can create a Data source in the server. How can i

  • Possible to turn off power saving/screen diming?

    Hi I'm new the Iphone but I find it annoying that it keeps going into standby unless I'm constantly touching it. I've found this listening to the radio (which then turns off!) but its the worst when trying to read an ebook, suddenly the screen dims t

  • The application failed to initialize properly 0xc000007B.

    HI team, I had developed an console application in visual studio 2012 .when i running it on local machine it works fine but when i run this EXE on server 2003 it shows me : 0xc000007B Error - The application failed to initialize properly 0xc000007B .