Search found 17 matches

by forsey85
Thu Dec 14, 2006 4:16 pm
Forum: JFreeChart
Topic: JFreeChart constant redraws in JInternalFrame
Replies: 2
Views: 3133

I had just found that out and was about to post it here :lol:

It would be nice to have a live drag mode though. Does the chart need to be constantly repainted during the live drag of a JInternalFrame?
by forsey85
Thu Dec 14, 2006 4:03 pm
Forum: JFreeChart
Topic: JFreeChart constant redraws in JInternalFrame
Replies: 2
Views: 3133

JFreeChart constant redraws in JInternalFrame

Hi, I have noticed that a JFreeChart in a JDialog or JFrame doesn't get redrawn during the dragging of the window, however in a JInternalFrame the graph is constantly being redrawn while the JInternalFrame is being dragged. I have some fairly large graphs and this slows down the dragging of JInterna...
by forsey85
Wed Nov 15, 2006 4:53 pm
Forum: JFreeChart
Topic: Cannot show a chart on a Swing JPanel
Replies: 8
Views: 8077

So it isn't a problem with your JFreeChart code, its your swing code. What LayoutManager is the panel using? is CENTER_ALIGNMENT the correct value for the LayoutManager? Are you adding the panel after or before you do pack(); setVisible(true); If you are putting the panel on afterwards, you can do a...
by forsey85
Wed Nov 15, 2006 12:49 pm
Forum: JFreeChart
Topic: Cannot show a chart on a Swing JPanel
Replies: 8
Views: 8077

Where are you putting jPanel1? on a JFrame/JDialog?
by forsey85
Tue Nov 14, 2006 4:48 pm
Forum: JFreeChart
Topic: How...???
Replies: 1
Views: 2373

JFreeChart is a Java library, not a .NET library.

If you want to use JFreeChart in a web application, you will need to use J2EE.
by forsey85
Tue Nov 14, 2006 4:18 pm
Forum: JFreeChart
Topic: Category labels inbetween categories
Replies: 3
Views: 5145

Just bumping up this thread :lol:
by forsey85
Wed Oct 18, 2006 11:44 am
Forum: JFreeChart
Topic: Category labels inbetween categories
Replies: 3
Views: 5145

Category labels inbetween categories

Hi, I'm looking for a way to move the label for a category on a bar chart to the end of a category (so the category labels appear to be inbetween the categories). This was easy to do with the gridlines by using: plot.setDomainGridlinePosition(CategoryAnchor.END); but I can't seem to find a similar m...
by forsey85
Thu Sep 21, 2006 2:23 pm
Forum: JFreeChart
Topic: Rotate label text on XYPointerAnnotation
Replies: 1
Views: 2526

Rotate label text on XYPointerAnnotation

Hi, Im using XYPointerAnnotations to mark some points on a graph to the user. I would like to make the label on the XYPointerAnnotation printed vertically. The setAngle method sets the angle for the arrow, but I cannot find a method to set the angle of the label. I have tried using a seperate XYText...
by forsey85
Wed Jul 19, 2006 1:06 pm
Forum: JFreeChart
Topic: Setting the rangeAxis w 1 grid unit margin on top n bottom
Replies: 4
Views: 7785

you could try getting the tick size:

Code: Select all

NumberAxis yAxis = (NumberAxis)chart.getXYPlot().getRangeAxis();

double size = yAxis.getTickUnit().getSize();

rangeAxis.setUpperBound(maxValue+size); 
rangeAxis.setLowerBound(minValue-size);
by forsey85
Wed Jul 19, 2006 9:17 am
Forum: JFreeChart
Topic: How to specify starting,ending point on x-axis,y-axis
Replies: 1
Views: 3564

chart.getXYPlot().getDomainAxis().setLowerBound(double)

and

chart.getXYPlot().getDomainAxis().setUpperBound(double)

call getRangeAxis() for the Y axis :shock:
by forsey85
Wed Jul 19, 2006 9:15 am
Forum: JFreeChart
Topic: setBorderVisible(false); doesn't work
Replies: 4
Views: 5967

or

plot.setOutlinePaint(new Color(0,0,0,0));

to set it as a transparent colour
by forsey85
Tue Jul 18, 2006 12:56 pm
Forum: JFreeChart
Topic: XYStepRenderer only works for first dataset?
Replies: 7
Views: 9986

I've realised that it works fine so long as you don't use 0 for any of the dataset indicies. If you start from an index of 1 then its fine.
by forsey85
Tue Jul 18, 2006 12:49 pm
Forum: JFreeChart
Topic: Document or guide needed for creatine new Chart Types
Replies: 12
Views: 19317

NumberAxis is a subclass of ValueAxis.

You should be fine I think
by forsey85
Tue Jul 18, 2006 12:38 pm
Forum: JFreeChart
Topic: XYStepRenderer only works for first dataset?
Replies: 7
Views: 9986

Oh yeh, I do have a bug in that code :lol: When I fix the bug however i get a slightly different problem. plot.setRenderer(1, new XYStepRenderer()); works correctly now, but plot.setRenderer(0, new XYStepRenderer()); sets the renderer for both datasets, when I only one it to set the renderer for the...
by forsey85
Tue Jul 18, 2006 9:36 am
Forum: JFreeChart
Topic: XYStepRenderer only works for first dataset?
Replies: 7
Views: 9986

My source code isnt easy to post as it isn't very self contained, but I made a demo instead: import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swing.WindowConstants; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import ...