Search found 13 matches

by hepzibahr
Thu May 02, 2013 6:07 am
Forum: JFreeChart
Topic: How to add a image to the Title
Replies: 0
Views: 2889

How to add a image to the Title

I have a CategoryPlot and have to add a image next to the title of the X asis with CategoryAnnotations
How can i accomplish this
by hepzibahr
Fri Nov 18, 2011 10:20 am
Forum: JFreeChart
Topic: Changing stroke for GanttRenderer
Replies: 0
Views: 2938

Changing stroke for GanttRenderer

private static final BasicStroke stroke1 = new BasicStroke(2.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, new float[] { 2.0f, 6.0f }, 0.0f); /* **others strokes defined here */ private static final BasicStroke stroke9 = new BasicStroke(2.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL...
by hepzibahr
Fri Sep 16, 2011 12:59 pm
Forum: JFreeChart
Topic: Change Bar Shape for a Gantt Chart
Replies: 1
Views: 3942

Change Bar Shape for a Gantt Chart

Shape BARSHAPE = new Polygon(new int[] { 12, 8, -8, -8, 8 }, new int[] { 0, 4, 4, -4, -4 }, 5);//arrow GanttRenderer renderer = new GanttRenderer(); CategoryItemLabelGenerator generator = new StandardCategoryItemLabelGenerator("{2}", DateFormat.getDateInstance()); renderer.setBaseItemLabelGenerator...
by hepzibahr
Fri Apr 18, 2008 7:18 am
Forum: JFreeChart
Topic: change font size of the diffrent values of Domain axis
Replies: 8
Views: 10206

CategoryAxis axis = plot.getDomainAxis(); axis.setTickLabelFont(new Font("Helvetica", Font.PLAIN, 6)); axis.setMaximumCategoryLabelWidthRatio(1.0f); axis.setMaximumCategoryLabelLines(2); plot.setDomainAxis(axis ); With this i could change the font of the domain axis values but not word wrap
by hepzibahr
Thu Apr 17, 2008 12:57 pm
Forum: JFreeChart
Topic: change font size of the diffrent values of Domain axis
Replies: 8
Views: 10206

Hallo Dave , This is what i have ...I do get my chart .But now i want to enhance the Domain axis values to display an additional field therfore have to change the font size and display in two lines instead of all being in one line private JFreeChart createChart(CategoryDataset dataset) { JFreeChart ...
by hepzibahr
Wed Apr 16, 2008 4:47 pm
Forum: JFreeChart
Topic: change font size of the diffrent values of Domain axis
Replies: 8
Views: 10206

As of now i have not used any specific one for Domain axis but for Range axis I am using DateAxis ..Should i use categoryaxis for Domain axis
by hepzibahr
Wed Apr 16, 2008 4:32 pm
Forum: JFreeChart
Topic: change font size of the diffrent values of Domain axis
Replies: 8
Views: 10206

Sorry ,Iam using Domain axis (Y axis ) and Range axis (X axis). i want to change the font of the Domain axis values and if possible as a two line text
containing the product code and product description
by hepzibahr
Wed Apr 16, 2008 10:27 am
Forum: JFreeChart
Topic: change font size of the diffrent values of Domain axis
Replies: 8
Views: 10206

change font size of the diffrent values of Domain axis

Basically i want to wrap the values displayed on the x axis (Not the xaxis title)and change the font size as well because the length of the values exceed 30 characters.
by hepzibahr
Fri Nov 24, 2006 9:10 am
Forum: JFreeChart
Topic: Linebreaks for domainxis labels
Replies: 1
Views: 3046

Linebreaks for domainxis labels

How can i have linebreaks for DomainAxis labels

Is this feature available or not ??

..Help on this would be highly appreciated ...
by hepzibahr
Thu Nov 23, 2006 4:28 pm
Forum: JFreeChart
Topic: Mutiline X axis label for Domain Axis
Replies: 2
Views: 4306

Mutiline X axis label for Domain Axis

Can anyone please let me know the snippet or library which supports multi line labels for Domain Axis ..rather than having values displayed in one line
by hepzibahr
Wed Sep 06, 2006 12:33 pm
Forum: JFreeChart
Topic: Is this a limitation of DateAxis?
Replies: 9
Views: 11080

Try something like this ... as it worked for me and displayed dates inlieu of those huge numbers

plot.setRangeAxis(new DateAxis("Date"));

Hope this works for DomainAxis too....

But i have a problem with overlapping ..now
by hepzibahr
Wed Sep 06, 2006 12:22 pm
Forum: JFreeChart
Topic: How to create Same Legend shape for a Multipage report
Replies: 1
Views: 2865

Resolved it by using the concept used for defining shapes in LineChartDemo5 and then customizing it ..
by hepzibahr
Mon Sep 04, 2006 2:42 pm
Forum: JFreeChart
Topic: How to create Same Legend shape for a Multipage report
Replies: 1
Views: 2865

How to create Same Legend shape for a Multipage report

While creating a multipage Event Frequencychart ..the legend shape differs for pages even if one of the series is not there.For example if series 1 has square,Series2 has circle and series3 has triangle for one page and in the seond page if if series1 has no value ..series 2 takes square and series3...