Search found 12 matches

by Rahan
Thu Jul 24, 2008 2:33 pm
Forum: JFreeChart
Topic: Get Color with getSeriesPaint returns null
Replies: 0
Views: 1805

Get Color with getSeriesPaint returns null

Hi i have a Timeserieschart and i will change the color with renderer.setSeriesPaint(series, color); but before i will save the old color with renderer.getSeriesPaint(series); but i become a null object. I read here in the forum getSeriesPaint that the colours are generally assigned when the chart i...
by Rahan
Wed Jul 23, 2008 7:59 am
Forum: JFreeChart
Topic: How Line Style dotted, dashed, solid?
Replies: 3
Views: 4643

Look at some of the other constructors for java.awt.BasicStroke
Sorry, but i look and dont understand. Image
Maybe you can give me an example?
by Rahan
Tue Jul 22, 2008 3:12 pm
Forum: JFreeChart
Topic: How Line Style dotted, dashed, solid?
Replies: 3
Views: 4643

How Line Style dotted, dashed, solid?

Hi i have a Timeserieschart and use jfreechart 1.0.9. I want change the line style. i know i can choose the color with like renderer.setSeriesPaint(series, Color.green); and the thickness of the line like renderer.setSeriesStroke(series, new BasicStroke(2)); but i dont know how can i choose the line...
by Rahan
Wed Jul 16, 2008 10:57 am
Forum: JFreeChart
Topic: Why you cant choose a color at TimeSeriesChart?
Replies: 1
Views: 2169

Why you cant choose a color at TimeSeriesChart?

Hi, i use JfreeChart version 1.0.9. We create a TimeSeriesChart like this. http://img297.imageshack.us/img297/4937/diagrammeigenschaftensq4.gif But the chart user wants to change the line styles, like color, thickness, solid, dotted, or dashed and in the properties this is not active. Why is this no...
by Rahan
Fri Apr 20, 2007 12:21 pm
Forum: JFreeChart
Topic: How can i put axis units in the middle with correct Gridline
Replies: 1
Views: 2281

How can i put axis units in the middle with correct Gridline

Hello, i have a TimeSeries Chart like this http://www.imagehack.eu/de/uploads/a14b651ff9.jpg The Problem: The month January is on the end of the scale. This confused the people who watch it too much. I set the align with the command: DateAxis axis = (DateAxis)plot.getDomainAxis(); axis.setTickUnit(n...
by Rahan
Thu Oct 12, 2006 9:16 am
Forum: JFreeChart
Topic: change comma and point
Replies: 1
Views: 2512

change comma and point

Hello can you help me

i create charts in german and english
my problem is

in german i put the format 12.345,67
and how can i change the format in 12,345.67 ?
by Rahan
Thu Aug 17, 2006 6:34 pm
Forum: JFreeChart
Topic: new line in title - gives a substitution like \n?
Replies: 5
Views: 10397

Yes i try it, too. Here my Code for update the header with linebreak substituon -n protected void generateTitle (String titles, JFreeChart chart) { int numberOfSubtitle = (int)chart.getSubtitleCount(); String[] result = titles.split("-n"); chart.setTitle( result[0]); System.out.println(result.length...
by Rahan
Thu Aug 17, 2006 10:00 am
Forum: JFreeChart
Topic: new line in title - gives a substitution like \n?
Replies: 5
Views: 10397

Subtitles have the Problem that they are not have a method "setFont()" and then the font is very smal. You know an other method?
by Rahan
Wed Aug 16, 2006 6:26 pm
Forum: JFreeChart
Topic: new line in title - gives a substitution like \n?
Replies: 5
Views: 10397

new line in title - gives a substitution like \n?

Hallo i need an idea

The Title of my chart should have a new line break.
And the second line should be in the centre (not left like a big title)
gives a substitution like \n ?

Thanks

Image
by Rahan
Fri Oct 28, 2005 6:03 pm
Forum: JFreeChart
Topic: Label size?
Replies: 4
Views: 4466

ok so gehts

JFreeChart chart = ChartFactory.createBarChart(...)

CategoryPlot plot = chart.getCategoryPlot();

CategoryAxis axis = plot.getDomainAxis();

axis.setMaximumCategoryLabelWidthRatio(50);


Mann kann zwar jetzt noch vorher berechnen lassen wie groß das Label ist oder so aber 50 reicht mir erst mal :D
by Rahan
Mon Sep 26, 2005 3:09 pm
Forum: JFreeChart
Topic: Label size?
Replies: 4
Views: 4466

david.gilbert wrote:You can control this with the width ratio setting in the CategoryLabelPosition class. But there was a bug in a fairly recent version that caused a problem with this...which version are you using?
I use version 1.0.0!
Can you give me an example?
by Rahan
Fri Sep 23, 2005 5:28 pm
Forum: JFreeChart
Topic: Label size?
Replies: 4
Views: 4466

Label size?

Can you help me. I need a bigger size for my Label
Image