Jump to content
JasperReports Library 7.0 is now available ×

How do I change axis label fonts and colors


itchytoes

Recommended Posts

Hi --

 

I am trying to figure out how to change the font of my horizontal (category) axis on my stackedBarChart. I cannot seem to make it work. I played with the sample StackedBarChartReport and added a <valueAxis> under <barPlot> which includes axisformat/labelFont, but notthing works. No matter what size or labelcolor I specify, I get the same font.

 

Thanks

 

Betty

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi ---

 

I've attached my adjusted StackedBarChartReport.jrxml from the samples that come with Jasper. You'll see the extra <valueAxisFormat> element.

[file name=StackedBarChartReport-9d47ef837107d104dd15484568bb9c74.jrxml size=16997]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/StackedBarChartReport-9d47ef837107d104dd15484568bb9c74.jrxml[/file]

 

I have been able to make this work using a ChartCustomizer program, which I need to use anyway for other reasons, so this is not critical. I am curious as to how to make it work without the customizer

 

Betty

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...