JFreeChart: Customize X axis labels for a LineChart

Posted on 2011-09-23
Medium Priority
Last Modified: 2012-05-12
I want to customize the labels of a LineChart in the sense that, regardless of the values that I am plotting, I want specific labels on the X-axis.

If possible, please provide some sample code. Thanks!
Question by:dshrenik
  • 3
LVL 47

Expert Comment

ID: 36590573

I am not sure waht you mean exactly, but look here about custom label generator:

Did you try custom lablel generator, like in the examples below:



It allows to chacnge many things about the lable - I didn't see font size change, though, but maybe these will behave differently
LVL 47

Expert Comment

ID: 36590590
LVL 47

Accepted Solution

for_yan earned 2000 total points
ID: 36590644

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
A discussion about automated testing of Web Applications utilizing Selenium, along with illustrated configuration steps for the Jenkins open source tool.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question