Support for 'chg' (step size and line style for grid lines)

A discussion forum for the Eastwood Chart Servlet.
Locked
ntherning
Posts: 5
Joined: Fri Jun 27, 2008 10:30 am

Support for 'chg' (step size and line style for grid lines)

Post by ntherning » Mon Jun 30, 2008 1:03 pm

I've just committed better support for the 'chg' parameter. X and Y step size can now be specified for line charts and bar charts (only Y step size is supported for bar charts). Furthermore, the line segment and blank segment lengths can also be specified.

Use the link below to have a look at the changes I've made (NOT clickable since I don't seem to have the right to post links yet):

http ://eastwood.svn.sourceforge.net/viewvc/eastwood?view=rev&revision=20

Please let me know if there is any problem with this new code.

/Niklas

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

Post by david.gilbert » Tue Jul 01, 2008 7:57 am

Hi Niklas,

The patch looks fine - thanks for adding it! There's some itemLabelPosition code in your new createBarChart() method in the ChartEngine class...does this get used?

Regards,

Dave

ntherning
Posts: 5
Joined: Fri Jun 27, 2008 10:30 am

Post by ntherning » Wed Jul 02, 2008 8:13 am

I copied the itemLabelPosition stuff from ChartFactory.createBarChart(). I don't know enough about JFreeChart to be able to tell whether it is necessary or not. But the test charts seem to render perfectly without it. I'll remove it.

ntherning
Posts: 5
Joined: Fri Jun 27, 2008 10:30 am

Post by ntherning » Wed Jul 02, 2008 8:22 am

Done!

zain123
Posts: 1
Joined: Sat Oct 25, 2014 7:11 am
antibot: No, of course not.

Re: Support for 'chg' (step size and line style for grid lin

Post by zain123 » Sat Oct 25, 2014 7:22 am

Hi,

I have patched Eastwood to be able to specify my own font. I've done this using servlet init-params. The user can either specify a TTF file containing the font or give the name of a font to be used instead of the default Dialog font. The default font size is also configurable using an init-param.

I'd like to add this to Eastwood. What do you think?
Sign 300-101 latest exam dumps with getting incredible online ICDL courses.

Locked