• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Array Values not showing in JFreeChart

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an ArrayList that gets data from user input (console), and after getting the values it shows a Chart created using JFreeChart. The problem I have is my LineGraph won't create.

I don't really know how to get the data from my ArrayList and put it in an XYSeries. And also I am new to JFreeChart.

This is my code,




Input Class




Suvat Class

 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I doubt that many people here know how to debug JFreeChart.  I would suggest that you post your question to the JFreeChart support forum.

I couple of points before you go:

* If your question has to do specifically with the Java language, then yes, post it here.
* When you post code, please include the import statements.  That helps us understand what is your code and what is some third-party's code.
 
Hansana Jayawardana
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't edit the question. If you can delete the question I can add with more details. Thank you.
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deleting posts is a tricky issue.  We'd rather that you add onto the existing thread than create a new one.
 
Saloon Keeper
Posts: 6589
160
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having some experience with JFreeChart, I'd be happy to take a look at it if you post an SSCCE, as Knute suggested.
 
This tiny ad is wafer thin:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic