Take the 2-minute tour ×

I have created a Stacked area chart. In the chart vertical white lines appear. I need to remove the vertical white lines. How can this be done. An image link is attached.

vertical lines

share|improve this question
Please edit your question to include an sscce that exhibits the problem you illustrate. –  trashgod Oct 30 '12 at 16:03
Cross-posted here. –  trashgod Oct 31 '12 at 13:03

2 Answers 2

up vote 1 down vote accepted

Heyy Vegeta now you will fly in sky ... I have a solution for your problem.

Override the StackedAreaRenderer to draw the path in single path. Basically the chart is drawn by combining two polygons, the polygons are alternate left and right so if you make left = right polygon there will not be any gaps. It worked out for me, you also give a try. I hope your boss will be happy now.

Here is the trick

GeneralPath left = new GeneralPath();
GeneralPath right = left;
share|improve this answer
great solution.....dude!!! it worked for me!! Thanks.... –  vegeta Nov 2 '12 at 9:42

Look at this. The problem is related with an antialiasing effect. The solution is not easy.

share|improve this answer

Your Answer


