Results 1 to 2 of 2
  1. #1
    cowboy is offline Member
    Join Date
    Oct 2009
    Posts
    48
    Rep Power
    0

    Default The problem with the axis JFreeChart

    Hello everyone..I have a problem with axis in JfreeChart. First axis-it is a PRICE..And second -IT is a time.Then i set in time axis values from 1,2,3...5....50... everything is ok..But then i set in dataset a time value such as 1030000 , 103001,103002....103115.... and so on the chart did not image correct line..You can see those charts using link below and code in them:

    javatalks.ru/ftopic12779.php

  2. #2
    zweibieren is offline Senior Member
    Join Date
    Aug 2009
    Location
    Pittsburgh, PA
    Posts
    284
    Rep Power
    6

    Default

    All one can see from the picture of the chart is that
    some time values have no price values. For instance,
    there appear to be no price values for 103060 ... 103100.
    This could be a data problem or feature.
    Perhaps there were no sales because the shop closes during the night.
    Or there may be some problem with fetching the x value:
    Java Code:
    Object a=jTable1.getModel().getValueAt(i, 3);
    int x = Integer.parseInt(a.toString());
    This code looks a tad suspicious, anyway.
    If the Object fetched from the table is an Integer,
    why not say
    Java Code:
    int x = ((Integer)a).intValue();

Similar Threads

  1. Replies: 9
    Last Post: 07-21-2009, 03:41 AM
  2. Tomcat 5.5, Axis 1.2
    By ushan.unltd.online in forum New To Java
    Replies: 2
    Last Post: 03-17-2009, 07:07 AM
  3. How to Customize Jfreechart value axis?
    By neeraj.singh in forum AWT / Swing
    Replies: 0
    Last Post: 02-16-2009, 09:57 AM
  4. webservices axis..
    By kalpana in forum Advanced Java
    Replies: 0
    Last Post: 01-30-2008, 07:06 PM
  5. How to retrieve HttpSession from axis 2.0.
    By snooze-g in forum Advanced Java
    Replies: 0
    Last Post: 10-02-2007, 08:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •