JfreeChart Fixed Bar Width

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mala
Posts: 8
Joined: Tue Jan 28, 2014 1:06 pm
antibot: No, of course not.

JfreeChart Fixed Bar Width

Post by Mala » Tue Feb 04, 2014 7:38 am

Hi,
I am trying to use JfreeSVG along with JfreeChart.
For a BarChart what I want to achieve is give a fixed bar width to Bars.
I know that the width of bars is calculated based on the
upperMargin- rangeaxis api
LowerMargin - rangeaxis api
maximumBarWidth - renderer api

But ,
Now as I am Using JfreeSvg , i can manage the extra bars drawn with the help of scrollbar at client side.
So how this can can be done to achieve the fixed bar width for bar chart.

Thanks in Advance.

Just to give you a picture of what I am trying to achieve.
Similar to http://postimg.org/image/5b1mmt3zd/

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

Re: JfreeChart Fixed Bar Width

Post by david.gilbert » Mon Feb 10, 2014 2:25 pm

This is difficult to achieve with JFreeChart since the rendering is a straight drawing to the Graphics2D API, we don't implement any "component" system to manage scrollable regions.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked