Make the edges on the series is simple, but on how to make the graph shown in Figure 2 I did not find any example. The code shown to follow generates the graph shown in Figure 1. I would like to find a way to get the one shown in Figure 2.
Some of you has ever happened to this need? Is there an easy way to get the result?
Figura 1
Figura 2
Thank you very much.
How to make the edges of a graph of type Stacked Bar?
Re: How to make the edges of a graph of type Stacked Bar?
Someone correct me if I'm wrong but I don't think that's possible out of the box.
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: How to make the edges of a graph of type Stacked Bar?
Cross-posted here. There's a suggestion to override getItemOutlinePaint() and getItemOutlineStroke(), as suggested in the StackedBarRenderer API, but I haven't tried it.
Re: How to make the edges of a graph of type Stacked Bar?
That draws the outline around the entire item.
Easiest way to get what you want is to extend StandardBarPainter and override paintBar(). Where it does the outline stuff in the original you just need to draw the left and right border for all items, and for the first row you also draw the bottom border and for the last row you also draw the top border.
Easiest way to get what you want is to extend StandardBarPainter and override paintBar(). Where it does the outline stuff in the original you just need to draw the left and right border for all items, and for the first row you also draw the bottom border and for the last row you also draw the top border.
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: How to make the edges of a graph of type Stacked Bar?
Given a suggestion to override getItemOutlinePaint() and getItemOutlineStroke()
D'oh! Thanks for clarifying, remiohead, and for pointing to the BarPainter.That draws the outline around the entire item.
Re: How to make the edges of a graph of type Stacked Bar?
Thank you all for your suggestions, I will try to do a short test. I will keep you informed.
Bye,
Antonio.
Bye,
Antonio.