Questions tagged [chartpanel]

A Swing GUI component for displaying a JFreeChart object.

A Swing GUI component for displaying a JFreeChart object.

The panel registers with the chart to receive notification of changes to any component of the chart. The chart is redrawn automatically whenever this notification is received.

16 questions
7
votes
1 answer

JFreeChart select an area without zooming

I recently started using JFreeChart and there is something i would like to do but i'm not sure if it's possible. My program is supposed to draw a spectrogram (a sound graph) from a wav file. So i managed to get the data from my wav file in a double…
user2299206
  • 71
  • 1
  • 3
4
votes
3 answers

Subscript in Axis description

I wanted to know if it is possible to use subscript in axis description. I have the following code XYItemRenderer lineYY = new StandardXYItemRenderer(); lineYY.setSeriesPaint(0, Color.BLUE); lineYY.setSeriesVisibleInLegend(0,false); …
3
votes
2 answers

JFreeChart select multiple points - mouse drag - lasso - Java

I am using JFreeChart in Java to draw an XYLineChart containing 50+ x, y points. The chart is in a ChartPanel which is in 1 of the JPanels of my JFrame. I know JFreeChart already has zoom functionality built-in whereby on a mouse click and drag, it…
Ajit Singh
  • 115
  • 11
3
votes
1 answer

Adding ChartPanel to JTabbedPane using JPanel

I want to add JFreeChart to JPanel and then add JPanel to JTabbedPane. I managed to display JFreeChart on JFrame, but I want to add JFreeChart as a 4th tab of JTabbedPane. Code to display Chart: public class Chart extends javax.swing.JPanel { …
amal
  • 3,470
  • 10
  • 29
  • 43
2
votes
2 answers

Get rid of jfreechart chartpanel unnecessary space

I am trying to get a JFreeChart ChartPanel to remove unwanted extra space between the edge of the panel and the graph itself. To best illustrate, here's a SSCCE (with JFreeChart installed): public static void main(String[] args) { JPanel panel =…
ryvantage
  • 13,064
  • 15
  • 63
  • 112
0
votes
1 answer

JFreechart: save in png file ALL components of a chartPanel

Using JFree I would like to make a XY plot, and write some information in the right margin outside the plot... and save all of it (i.e. plot + information) in a png file. I thought I found a way to do that with the following code: import…
0
votes
0 answers

It does not order inside the graph

I'm working with the JfreeChart library in java and I'm doing the graphs for the ordering methods, but I want the exchanges to be shown in execution time, what has occurred to me is that in each exchange the graph is updated but at the end of the…
0
votes
1 answer

I am having trouble getting a ChartPanel to appear in an existing jPanel. Does this have to do with Matisse?

this being my first question on Stack Overflow, I apologize for any mistakes in describing the problem, so feel free to ask for more or a different description. I am making a program with the jFreeChart API where I'm trying to allow for live editing…
0
votes
1 answer

How to automatically resize JFreeChart when window is resized

I have a chart inside a ChartPanel inside a JPanel inside a JFrame. I currently have BoxLayout for the frame and FlowLayout for the JPanel. I want to get the chart to resize automatically when the window is resized. I've tried all solutions I found…
0
votes
0 answers

Jfreechart graph get too small after zooming out

I have a Jfreechart timeseries line graph running well. After I add frame.getChartPanel().setMouseWheelEnabled(true); frame.getChartPanel().setMouseZoomable(true, false); to the code, it can zoom in and out by the mouse wheel, but the problem is…
newbimyth
  • 55
  • 10
0
votes
1 answer

JFreeChart is not updating ChartPanel, after reading data from serial port

I am trying to read some data from serial port and display the same using JFreeChart and ChartPanel. After I click button 'Aquire' I get new set of data from serial port. For the first time when panel is getting displayed, the values read from…
S N B
  • 39
  • 6
0
votes
1 answer

Update Jfreechart when update data from Webcam

My jfreeChart comes from frames of a webcam. I pass this frames and it generates a graphic of R, G and B colors of this frame. I want this chart do automatic update as I pass the frames. I've tried everything but nothing seens to work. Any help is…
0
votes
1 answer

Adding Barchart in a chartpanel to a jpanel

I've tried looking for answers to get this but it didn't work properly so here goes my question. I have created a barchart and I want to add this to a jpanel in a java swing application , here is my code for adding chart to the panel, void…
0
votes
1 answer

How to convert ChartPanel Coordinates to XYPlot coordinates in JFreeChart

I have ChartPanel with all Listners implemented on it. On mouse dragging event I am changing the coordinates on my Annotation to redraw as to show dragging action. It is working alright but the coordinates are little messed up. Actually the…
0
votes
1 answer

Align a jFreeChart (setAlignmentX and Y?)

I am trying to align the whole chart within a JFrame but the normal component codes that I know do not work for JChartPanels. Initially I tried to setAligmentX and Y on the JChartPanel but that didn't work. I then tried to add the JChartPanel to a…
user3221070
1
2