• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Array Values not showing in JFreeChart  RSS feed

 
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

 
Marshal
Posts: 5986
155
Chrome Eclipse IDE Java Postgres Database Ubuntu VI Editor
  • 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
Marshal
Posts: 5986
155
Chrome Eclipse IDE Java Postgres Database Ubuntu VI Editor
  • 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: 5475
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!