Need to remove vertical white lines in stackedareachart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
vegeta
Posts: 1
Joined: Wed Oct 31, 2012 9:00 am
antibot: No, of course not.

Need to remove vertical white lines in stackedareachart

Post by vegeta » Wed Oct 31, 2012 9:11 am

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.Image

John Matthews
Posts: 410
Joined: Wed Sep 12, 2007 3:18 pm

Re: Need to remove vertical white lines in stackedareachart

Post by John Matthews » Wed Oct 31, 2012 2:02 pm

Cross-posted here.

david.gilbert
JFreeChart Project Leader
Posts: 11666
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Need to remove vertical white lines in stackedareachart

Post by david.gilbert » Fri Nov 02, 2012 8:09 am

In the StackedXYAreaRenderer2 class, there is a flag roundXCoordinates that you can set to true as a (not perfect) workaround for this issue.

A proper fix would probably involve calculating the areas that need to be filled across the complete dataset, and filling them in a single operation (the current renderer tries to fill the areas segment by segment).
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited

bmanoj
Posts: 1
Joined: Thu May 23, 2013 11:58 am
antibot: No, of course not.

Re: Need to remove vertical white lines in stackedareachart

Post by bmanoj » Thu May 23, 2013 12:53 pm

Hi,

I am facing the same issue like same white vertical lines are displaying on stackedAreaChart, and it is weared.
It will be great if anyone has idea to resolved it.


Regards,
Manoj

remiohead
Posts: 201
Joined: Fri Oct 02, 2009 3:53 pm
antibot: No, of course not.

Re: Need to remove vertical white lines in stackedareachart

Post by remiohead » Thu May 23, 2013 7:41 pm

Our approach was create a new interface called SeriesRenderer (extends from CategoryItemRenderer) which together with a slightly modified plot and implementing version of AreaRenderer, paints one series at a time, rather than one category at the time.

Post Reply