-
-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotate X-axis labels vertically #394
Comments
If |
@trashgod Can you provide code snippet of how can I use it ? |
|
@trashgod I hope this will help you to understand the usecase. I'm a bit constrained with width also. I'm using A4 page to generate charts hence I'm keeping height width as follow : if (!tokenDistributionOverTimeDtos.isEmpty()) {
document.newPage();
JFreeChart chart = generateGraphForTokensIn24hrs(tokenDistributionOverTimeDtos, "Ticket Distribution Over 24 Hour Timeline", "Time", "Number of Tokens");
BufferedImage chartImage = chart.createBufferedImage(500, 400);
ByteArrayOutputStream chartOut = new ByteArrayOutputStream();
ChartUtils.writeBufferedImageAsPNG(chartOut, chartImage);
com.lowagie.text.Element pdfImage = com.lowagie.text.Image.getInstance(chartOut.toByteArray());
document.add(pdfImage);
} |
It looks like you're preparing PDFs on demand. As far as appearance, why not use a larger |
@trashgod Increasing |
I didn't find any |
Ok. But, in this case it is managing columns very well only thing I wanted to improve is the X-axis Labels. |
Yes, crowded charts are a perennial problem. To the extent that this is a user interface issue, |
I want to show x-axis labels in complete vertical format just like the once mentioned in following diagram. I tried following code but none of them worked. Use case emerged because I want to fit a large date range on the x-axis
The text was updated successfully, but these errors were encountered: