Search found 16 matches

by alsw-2000
Wed May 11, 2005 12:29 pm
Forum: JFreeChart
Topic: How can I set chart's inner border before text/plot begins?
Replies: 0
Views: 2201

How can I set chart's inner border before text/plot begins?

Dear all, I am using JFreeChart 0.9.14. How can I set 10 pixels padding display on the inner border before text/plot begins? I have tried the JFreeChart's setBorder function But it just add a border on the top of the text/plot. chart.setBorderVisible(true); chart.setBorderStroke(new BasicStroke(10))...
by alsw-2000
Thu Jun 03, 2004 10:57 am
Forum: JFreeChart
Topic: ContourPlot's ColorBar can't set Range
Replies: 0
Views: 2099

ContourPlot's ColorBar can't set Range

Dear all, I have a ContourPlot as follow: http://home.so-net.com.hk/~andyswleung/JFreeContour4.jpg I found that the ColorBar is auto adjusted according to the data set. However I want to fix the Range and TickUnit of the ColorBar so that is has the same ColorBar for any data set. Is there anyone kno...
by alsw-2000
Tue May 25, 2004 11:58 am
Forum: JFreeChart
Topic: how to shade the area between 2 lines of a CategoryPlot?
Replies: 0
Views: 2009

how to shade the area between 2 lines of a CategoryPlot?

Hi guys, I have generated a chart as follow: http://home.so-net.com.hk/~andyswleung/JFreeVolatilityCone.jpg However my user want to shade the area between the "Inner Cone (Lower)" and "Inner Cone (Upper)" series, and the legend also need to merge to "Inner Cone" like the following one. Is there any ...
by alsw-2000
Thu May 06, 2004 10:30 am
Forum: JFreeChart
Topic: contour chart can't support gridline?
Replies: 0
Views: 2293

contour chart can't support gridline?

Dear all, Thx to David's help, I can draw a contour chart with symbolic axis now, but it can't draw the gridelines. http://home.so-net.com.hk/~andyswleung/JFreeContour3.jpg I found that the ContourPlot don't have the setDomainGridlinesVisible and setRangeGridlinesVisible functions like XYPlot, is th...
by alsw-2000
Wed May 05, 2004 11:42 am
Forum: JFreeChart
Topic: addAnnotation function of the ContourPlot class can't work
Replies: 2
Views: 3044

addAnnotation function of the ContourPlot class can't work

Dear all, I have make a contour chart like this http://home.so-net.com.hk/~andyswleung/JFreeContour2.jpg but my requirement is to make a contour chart on a category axis. And I find that the contour chart only support value axis so I want to use the following work around (please tell me if there is ...
by alsw-2000
Wed May 05, 2004 8:42 am
Forum: JFreeChart
Topic: can ContourPlot support CategoryAxis?
Replies: 0
Views: 1996

can ContourPlot support CategoryAxis?

Hi all,

I found that the constructor of ContourPlot only support ValueAxis, is there any method to make it support CategoryAxis?
by alsw-2000
Fri Apr 30, 2004 10:11 am
Forum: JFreeChart
Topic: Contour Chart problem
Replies: 0
Views: 2239

Contour Chart problem

Dear all, I am new to Contour Chart. I have downloaded a Contour Chart's demo program, it shows the following chart, but which is not the one I want. http://home.so-net.com.hk/~andyswleung/JFreeContour.jpg When I input the same data set to ms excel it generate the following chart. And which is exact...
by alsw-2000
Sat Feb 07, 2004 3:10 am
Forum: JFreeChart
Topic: Legend problem
Replies: 3
Views: 4034

Legend problem

My legend has more then 10 legend items. I want to limit the width of the legend by seperate the items into more rows, so that no legend items will show under the y-axis's label. Is there any method to set the width of the legend? or set maximun number of legend items in a row? I have already search...
by alsw-2000
Tue Feb 03, 2004 8:45 am
Forum: JFreeChart
Topic: range gridlines for secondary axis workaround
Replies: 1
Views: 2875

range gridlines for secondary axis workaround

I know that gridlines are only drawn for the ticks on the primary axis. However my customer insist to draw gridlines for both primary and secondary axises. I am trying to make the gridlines looks like drawn for both ticks by increasing the range of the axis with smaller calculateVisibleTickCount(), ...
by alsw-2000
Mon Feb 02, 2004 11:27 am
Forum: JFreeChart
Topic: how to remove legend items?
Replies: 1
Views: 4931

how to remove legend items?

I have generated the following CombinedDomainCategoryPlot using jfree chart. Is there any method to remove the last two legend items? http://home.so-net.com.hk/~andyswleung/plot.png here is the major source code to generate the plot: // get flow dataset DefaultCategoryDataset flowDataset = new Defau...
by alsw-2000
Fri Jan 30, 2004 8:50 am
Forum: JFreeChart
Topic: duplicated legend in CombinedDomainCategoryPlot
Replies: 1
Views: 2841

duplicated legend in CombinedDomainCategoryPlot

I am trying to make a CombinedDomainCategoryPlot with 2 CategoryPlot combined vertically together. I find that the same set of legend on the upper plot and lower plot is shown twice in the legend's item. how can I show only one set of legend? or how can I remove some legend item manually? Regards, A...
by alsw-2000
Mon Jan 26, 2004 12:44 pm
Forum: JFreeChart
Topic: some look and feel customisation of jfree chart
Replies: 2
Views: 10125

some look and feel customisation of jfree chart

My user want to change the chart library to jfree chart, but I can't solve some of his requirements about the look and feel of the chart, is there anyone can help? 1) he want to use Red, Black and Dark grey as first 3 colours for the charts traces of the XYPlot, is there any function in the Standard...
by alsw-2000
Fri May 30, 2003 3:23 am
Forum: JFreeChart
Topic: can YAxis have 0 in middle and auto range at the same time
Replies: 2
Views: 4738

can YAxis have 0 in middle and auto range at the same time

Dear all, Can I set the YAxis of a VerticalCategoryPlot to have the zero in the middle of the axis and at the same time, the range of the axis can show all the data? I have tried the following but fail // this can show all data in the plot but the 0 not in middle YAxis = new VerticalNumberAxis("USD ...
by alsw-2000
Thu May 29, 2003 6:57 am
Forum: JFreeChart
Topic: How to explicitly set the plot area inside a chart
Replies: 4
Views: 5207

How to explicitly set the plot area inside a chart

Dear all,

Is there any API that can set the plot's height or width of a chart?
or the length of the x/y-axis of a chart?

Cheers,
alsw-2000
by alsw-2000
Thu May 29, 2003 5:21 am
Forum: JFreeChart
Topic: How to auto set DateAxis's tick unit to the smallest one
Replies: 1
Views: 3114

How to auto set DateAxis's tick unit to the smallest one

Dear all, I want to set a HorizontalDateAxis with the tick unit as small as possible, but the text won't overlap. Is there any function to do that? I find that there is a setSkipCategoryLabelsToFit function for HorizontalCategoryAxis, is there any similar function for HorizontalDateAxis ? Cheers, al...