Page 1 of 1

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

Posted: Mon Jun 30, 2008 1:03 pm
by ntherning
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

Posted: Tue Jul 01, 2008 7:57 am
by david.gilbert
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

Posted: Wed Jul 02, 2008 8:13 am
by ntherning
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.

Posted: Wed Jul 02, 2008 8:22 am
by ntherning
Done!

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

Posted: Sat Oct 25, 2014 7:22 am
by zain123
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?