I just added a categoryLabelRotation style to the area chart, bar chart, and line chart skins. If you build from source you can now use this style.
On Oct 22, 2010, at 5:41 PM, Shahzad Bhatti wrote: > 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); > 39 > > > 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? > Thanks. > > > 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 > > > >
