Search found 31 matches

by pmlb
Wed Aug 16, 2006 12:28 pm
Forum: JFreeChart
Topic: How to change font size for Legend, can someone help please?
Replies: 2
Views: 3608

Hi Lochin,

Try something like:

Code: Select all

LegendTitle lt = chart.getLegend(); 
lt.setItemFont(new Font("Arial", Font.PLAIN, 8));
by pmlb
Wed Aug 16, 2006 11:29 am
Forum: JFreeChart
Topic: Jfreechart applet problem
Replies: 1
Views: 3365

Hi Sridhar,

The Applet is executed in the browser which is unaware of the Jxxx libraries. You have to use the ARCHIVE attribute of the APPLET tag to indicate the needed jar files:

Code: Select all

<APPLET code="demo.Applet1.class" ARCHIVE="comma separated list of jar files"></APPLET>
Hope it helps
by pmlb
Thu Oct 13, 2005 5:10 pm
Forum: JFreeChart
Topic: Display data using StackedBarChart3D ??
Replies: 2
Views: 3427

Hi,

You don't have to worry about this, the StackedBar does it for you.

Months are the categories while Assigned and Unassigned are two series and therefore displayed in same bars with different colors.
by pmlb
Thu Oct 13, 2005 4:55 pm
Forum: JFreeChart
Topic: category area charts look like mountains, not horizons
Replies: 3
Views: 4208

Hi,

Sounds like this : http://www.jfree.org/phpBB2/viewtopic.php?t=14697

Try to set set the upper and lower margins of your domain axis, may be something like that:

Code: Select all

CategoryAxis axis = plot.getDomainAxis();
axis.setLowerMargin(0.0); 
axis.setUpperMargin(0.0); 
by pmlb
Mon Oct 10, 2005 5:11 pm
Forum: JFreeChart
Topic: How can I use tooltip in BarChart??
Replies: 1
Views: 3072

Create a tooltip generator then assign it to the renderer with the setToolTipGenerator method.
For instance for a CategoryDataset based barchart:

Code: Select all

StandardCategoryToolTipGenerator tt = new StandardCategoryToolTipGenerator();
renderer.setToolTipGenerator(tt);
by pmlb
Fri Oct 07, 2005 4:01 pm
Forum: JFreeChart
Topic: Create JThermometer & MeterPlot charts
Replies: 3
Views: 5132

The plot is ThermometerPlot
by pmlb
Fri Oct 07, 2005 3:43 pm
Forum: JFreeChart
Topic: [Legend] Change the font's color and position
Replies: 2
Views: 3773

For your first problem (legend color) have a look here
http://www.jfree.org/phpBB2/viewtopic.php?t=13906
by pmlb
Fri Oct 07, 2005 3:34 pm
Forum: JFreeChart
Topic: How to NOT show zero in item Label of bar chart ?
Replies: 2
Views: 3638

You could extend StandardCategoryItemLabelGenerator and override generateLabel() method to make it return null when the value is 0
by pmlb
Thu Sep 15, 2005 3:57 pm
Forum: JFreeChart
Topic: Tooptip can't show in ServletDemo2ChartGenerator
Replies: 8
Views: 7065

Did you try with different browsers?
In my case tooltips work fine with Mozilla 1.7.3 but don't show up with Netscape 4.73
by pmlb
Thu Sep 08, 2005 12:57 pm
Forum: JFreeChart
Topic: set more params in URL::URGENT
Replies: 1
Views: 3529

Try this:

Code: Select all

StandardCategoryURLGenerator("../servlet/ChartWindow?parent=LOAD","series","category"));
by pmlb
Tue Sep 06, 2005 10:49 am
Forum: JFreeChart
Topic: Floating Bar/Gantt with multiple images / icons on top
Replies: 3
Views: 6306

I had the same problem (with JFreeChart 1.0.0-pre2). To solve this I created a subclass of IntervalCategoryToolTipGenerator and modified the drawTasks method in GanttRenderer class. I have posted a feature request with the code : http://sourceforge.net/tracker/index.php?func=detail&aid=1183877&group...
by pmlb
Tue Sep 06, 2005 10:29 am
Forum: JFreeChart
Topic: Problem with coloring
Replies: 1
Views: 3904

In the non working example you create a renderer, change the colors create a plot, assign the renderer to the plot, and then you create a chart with ChartFactory.createStackedBarChart but when creating the chart you don't use the plot previously prepared because there is no plot parameter for the cr...
by pmlb
Thu Sep 01, 2005 1:49 pm
Forum: JFreeChart
Topic: want to change color in piechart
Replies: 9
Views: 12068

As written previously:

setLabelGenerator for lthe pie section label
setLegendLabelGenerator for the legend

build the format you need for each of them using StandardPieItemLabelGenerator class (different format if you want different label)
by pmlb
Wed Aug 31, 2005 2:40 pm
Forum: JFreeChart
Topic: want to change color in piechart
Replies: 9
Views: 12068

I guess you could use the setLegendLabelGenerator method of the plot in the same way.