asethi1 / charts4j

Automatically exported from code.google.com/p/charts4j
Other
0 stars 0 forks source link

LinearGradientFill is not gradient! #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I am using charts4j library (version: 1.2) and I need its background changig 
property as a gradient color. However, when i used it as:

Fill fill = Fills.newLinearGradientFill(60,com.googlecode.charts4j.Color.BROWN 
, 40);
chart.setBackgroundFill(fill);

The numbers 60(angle) and 40(offset) do not affect anything. This command makes 
the background just brown.

Could you please help me about this problem?

Original issue reported on code.google.com by ulger.gu...@gmail.com on 7 Mar 2014 at 10:06

GoogleCodeExporter commented 8 years ago
Does the example here shed any insight:

https://code.google.com/p/charts4j/source/browse/tags/v1.2/example/com/googlecod
e/charts4j/ScatterChartExample.java#50

which generates this image:

http://charts4j.googlecode.com/svn/tags/v1.2/img/ScatterChartExample.example1.pn
g

Original comment by Julien.C...@gmail.com on 7 Mar 2014 at 5:15

GoogleCodeExporter commented 8 years ago
Hi again,

Thank you so much your help! It works:)

Original comment by ulger.gu...@gmail.com on 12 Mar 2014 at 9:35