Search found 1634 matches

by paradoxoff
Thu Nov 01, 2007 9:05 pm
Forum: JFreeChart
Topic: DefaultXYDataset.renameSeries
Replies: 1
Views: 2402

DefaultXYDataset.renameSeries

Hi, I am currently working on a graphical JFreeChart frontend to generate scatter plots. I am using the DefaultXYDataset to store the data. However, one requirement is that the user is able to change the names of the series after the chart has been created. Using the DefaultXYDataset as it is, I can...
by paradoxoff
Sun Oct 21, 2007 5:06 pm
Forum: JFreeChart
Topic: Unable to get the "dataArea" of a chart
Replies: 4
Views: 4225

Hi MH23, somebody correct me whem I am mistaken: XYBlockRenderer.drawItem is NOT responsible for drawing the Plot but for drawing individual items. XYBlockRenderer.drawItem is called repetetively from one of the XYPlot functions that is responsible for drawing the plot. The chart size is not determi...
by paradoxoff
Sat Oct 20, 2007 5:06 pm
Forum: JFreeChart
Topic: Create CategoryDataset instead xySeries
Replies: 1
Views: 3725

Code: Select all

CategoryDataset mySerie= new DefaultCategoryDataset();
mySerie.addValue(23.0. new Integer(1));
mySerie.addValue(34.0. new Integer(2));
mySerie.addValue(51.0. new Integer(3));
Regards, paradoxoff
by paradoxoff
Sat Jun 02, 2007 8:53 am
Forum: JFreeChart
Topic: Why ValueAxis.MAXIMUM_TICK_COUNT = 500? Need more than 500!
Replies: 3
Views: 4096

Who on earth is going to be able to distinguish between more than 500 tick labels? Assuming a plot width on screen of 1000 pixel, even 500 ticks would result in a new tick every 2 pixels. In printed form, the situation is similar: assuming a width of 8in and a resolution of 72 dpi (IIRC thats the de...
by paradoxoff
Wed May 30, 2007 6:58 am
Forum: JFreeChart
Topic: sometimes black bars for series in 2D graphs
Replies: 5
Views: 4662

Is your m_chartDef-object properly initialized when you invoke its m_chartDef.hasSerieColors() and m_chartDef.getSerieColors(m_dataset.getSeries()) methods? Is it sure that the Paint[] array contains the right colors? What do you get when you print out the array?
Regards, Paradoxoff.
by paradoxoff
Wed May 30, 2007 6:48 am
Forum: JFreeChart
Topic: how can i plot dual axis same scale
Replies: 2
Views: 3206

First find the axis with the larger value range and then use the larger value as new upper bound for both axes. I assume that the methods double getUpperBound() and void setUpperBound(double max) in class org.jfree.chart.axis.ValueAxis can do that. //untested code fragment double max1 = valueAxis1.g...
by paradoxoff
Fri May 25, 2007 10:39 am
Forum: JFreeChart
Topic: How to set Axis lable fonts?
Replies: 2
Views: 3473

Hi jshea,
please have a look at the methods setTickLabelFont(java.awt.Font font) and setLabelFont(java.awt.Font font) in the class org.jfree.chart.axis.Axis. In this class there is a plethora of methods by which you can configure virtually everything.
Regards, paradoxoff
by paradoxoff
Sun May 20, 2007 10:04 pm
Forum: JFreeChart
Topic: series legend shapes not accurate
Replies: 3
Views: 4229

Sounds strange. At first, I had assumed that for some reason the renderer was not assigned properly to the plot (maybe missing some dataset), but in that case not only the legend but also data points in the graph should be wrong. Can you post some code? If possible, a compilable example. Regards, pa...
by paradoxoff
Thu Mar 08, 2007 6:37 pm
Forum: JFreeChart
Topic: jreechart based applications
Replies: 2
Views: 3472

Hi, I have started to develop one to generate XY scatter charts from informations read from csv files. You can assign one column in the data source file to the x-axis or "domain axis" and as many columns as you wish to different y axes or "range axes". For each data series, you can define the stroke...
by paradoxoff
Fri Mar 02, 2007 5:06 pm
Forum: JFreeChart
Topic: To draw two parameters
Replies: 2
Views: 2972

You seem to generate a graph in your DrawGraph() method based on a TimeSeriesCollection with a single, empty TimeSeries, put that f graph in a frame, and then start to modify the data. I conclude that from variable name "tseries" that is used twice. What about first generating the TimeSeriesCollecti...
by paradoxoff
Fri Mar 02, 2007 9:03 am
Forum: JFreeChart
Topic: Dynamic bar chart in a JTable's cell
Replies: 3
Views: 5503

Re: Dynamic bar chart in a JTable's cell

How can i display a dynamic bar chart in a JTable's cell? i'v read somewhere that i'v to subclass the ChartPanel class, and make the subclass implement the TableCellRenderer interface, and overrid the getTableCellRendererComponent method. can you help please ! Maybe it is better to use a component ...
by paradoxoff
Wed Feb 21, 2007 12:50 pm
Forum: JFreeChart
Topic: JFreeChart features
Replies: 6
Views: 9657

Another EPS generator in Java that seems to generate EPS through Java2D calls is included in the Apache XML Graphics Commons package.

http://xmlgraphics.apache.org/commons/

I haven´t tried it myself but will probably do that in some time.
Regards, paradoxoff
by paradoxoff
Sat Feb 17, 2007 10:47 pm
Forum: JFreeChart
Topic: LookupPaintScale and PaintScaleLegend problems
Replies: 3
Views: 6441

Hi Matthew, LookupPaintScale works for me as expected. Here is a demo: a small 9x9 matrix where the z coordinate is the product of the x and y coords. The "heat gradient" used for visualization is a bit coarse (is that the right word?) but sufficient as a proof-of-concept. No idea about getting the ...
by paradoxoff
Sat Feb 17, 2007 2:42 pm
Forum: JFreeChart
Topic: setSeriesShape() of cloned XYRenderer for 2nd dataset
Replies: 1
Views: 6508

setSeriesShape() of cloned XYRenderer for 2nd dataset

Hi there, First of all, I would like to say "thank you" for making such a great thing like JFreeChart available. I have spent some time to look for a charting program that would allow the creation of nice looking, feature-rich charts w/o learning a new programming language or fooling around with a c...