0

How can I read a raw image file and let it show as a line graph by using JFreechart? For example, load the file via FileChooser and let it show as Line Graph. Graph with sample data and Button are already in place.

Jongware
  • 22,200
  • 8
  • 54
  • 100
  • Why do you need `JFreeChart` to load an image? – trashgod May 26 '14 at 22:30
  • it is not actually an image. It is a raw image file which is produced by an electronic device like a digitalcamera. The raw file contains coordinates for RGB layer from which any image format can be build. I was hoping that JFreechart would support showing this kind of format. – michaelsteven May 27 '14 at 06:46

1 Answers1

2

JFreeChart has no direct support for raw image format, but you can extend AbstractXYDataset to manage any data of interest. Examples are seen here and here. An XYDataset can be used to create a variety of charts; see org.jfree.chart.ChartFactory for examples.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045