pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shahzad Bhatti <sbha...@peak6.com>
Subject Re: Vertical label for bar chart
Date Fri, 22 Oct 2010 21:41:49 GMT
I found an example of vertical label (with angle) at http://left.subtree.org/2007/08/14/rotate-labels-jfreechart/.
It's using axis property to change the angle, e.g.

CategoryPlot plot = (CategoryPlot)chart.getPlot();
37              CategoryAxis xAxis = (CategoryAxis)plot.getDomainAxis();
38              xAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_45);

On Oct 22, 2010, at 11:15 AM, Greg Brown wrote:

Ah - good question. I don't think you can currently do that. However, if you can figure out
how to do this via the JFreeChart API, maybe we can add a style to allow you to specify it
via the chart skin.

On Oct 22, 2010, at 2:12 PM, Shahzad Bhatti wrote:

I will take a look at JFreeChart documentation, but how do I get handle to underlying JFreeChart
object as it's all abstracted in the ChartView class?

On Oct 22, 2010, at 10:05 AM, Greg Brown wrote:

Not sure - you'll have to look at the JFreeChart docs for that.

On Oct 22, 2010, at 12:57 PM, Shahzad Bhatti wrote:

I am using pivot-chart and jfreechart to generate a bar chart, where the labels that are truncating.
Is it possible to show labels vertically? Thanks.


See  http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email

View raw message