yunjianwu / achartengine

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

XYMultipleSeriesRenderer (BarChart-specific?) setMarginsColor(Color.TRANSPARENT) does not work #218

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.As the title says, create a BarChart and attempt to set the margin color to 
transparent.

What is the expected output? What do you see instead?
The margins should be transparent, showing whatever is behind them. Instead, 
the margins remain black.

What version of the product binary library are you using?
abarchartengine-1.0.0.jar

Please provide any additional information below.
There is a workaround posted on stackoverflow: 
http://stackoverflow.com/a/9372036/10161

Original issue reported on code.google.com by drfl...@gmail.com on 9 Jun 2012 at 12:15

GoogleCodeExporter commented 9 years ago

Original comment by dandrome...@gmail.com on 13 Jun 2012 at 10:43

GoogleCodeExporter commented 9 years ago
why is this invalid, exactly?

Original comment by drfl...@gmail.com on 15 Jun 2012 at 1:43

GoogleCodeExporter commented 9 years ago
Attached is a minimal application that demonstrates the problem and the 
workaround. 

Line 39 of com.drfloob.android.achartengine.ace218.Main illustrates the problem.
Line 42 of Main illustrates the workaround.

Comment/uncomment these lines accordingly to see for yourself.

Result: 
 * with line 39 uncommented, the margin is shown black and should show Transparent.
 * with line 42 uncommented, the margin is transparent, showing the tiled background.

Tested on android 2.3.7, LG Optimus V. Project targeted to android-10

Will someone reopen and address this issue please?

Original comment by drfl...@gmail.com on 15 Jun 2012 at 9:52

Attachments:

GoogleCodeExporter commented 9 years ago
As I don't understand what the issue is, I cannot fix it.
What is your proposed fix?
Just use the fix that is suggested on stackoverflow and you will be fine.

Original comment by dandrome...@gmail.com on 16 Jun 2012 at 1:57

GoogleCodeExporter commented 9 years ago
I also have the same problem:I want to set the background of the whole bar 
graph to a transparent color (the background of the graph and the one that 
surround the graph with text, legend and y,x axes labels).
If I set the renderer margin color to Color.TRANSPARENT nothing happens, but I 
need to use the workaround suggested "renderer.setMarginsColor(Color.argb(0x00, 
0x01, 0x01, 0x01)) "  to have a transparent margin color.

Original comment by vettorel...@gmail.com on 5 Jul 2012 at 7:58