How to implement the bar chart with Round Edge Corners.
I have tried as below but it is not even reflecting any thing in the Bar Chart.
Code: Select all
renderer.setSeriesShape(1, new RoundRectangle2D.Float(3, 3, 6, 6, 10, 10));
Code: Select all
renderer.setSeriesShape(1, new RoundRectangle2D.Float(3, 3, 6, 6, 10, 10));
Code: Select all
Rectangle2D bar = null;
Code: Select all
RoundRectangle2D bar = null;
if (orientation == PlotOrientation.HORIZONTAL) {
bar = new java.awt.geom.RoundRectangle2D.Double(barL0 - barL0Adj,barW0, barLength + barLengthAdj, state.getBarWidth(),10,10);
} else {
bar = new RoundRectangle2D.Double(barW0, barL0 - barL0Adj, state.getBarWidth(), (barLength + barLengthAdj), 10, 10);
}
Could you please share the entire code of the customiser class how you have made the edges look rounded. Thanks in advance for your help.haran_123 wrote:Hi,
paradoxoff,thanks for your reply.I have created my own CustomBarRenderer class which extends BarRenderer for round corners.
Just providing few points to others.
Insted of,I have used,Code: Select all
Rectangle2D bar = null;
Code: Select all
RoundRectangle2D bar = null; if (orientation == PlotOrientation.HORIZONTAL) { bar = new java.awt.geom.RoundRectangle2D.Double(barL0 - barL0Adj,barW0, barLength + barLengthAdj, state.getBarWidth(),10,10); } else { bar = new RoundRectangle2D.Double(barW0, barL0 - barL0Adj, state.getBarWidth(), (barLength + barLengthAdj), 10, 10); }