Error in Vertical Category Plot?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Doug Cook

Error in Vertical Category Plot?

Post by Doug Cook » Tue Oct 15, 2002 4:28 pm

VerticalCategoryAxis uses the getCategoryCoordinate method of VerticalCategoryPlot to help position the labels and ticks for the axis (by way of the refreshTicks method). However, getCategoryCoordinate uses getX,and getWidth type calls to calculate the center of the category (as if it were a horizontal category axis). Shouldn't it use getY, and getHeight since this is a vertical category axis?

Doug Cook

Doug Cook

Re: Error in Vertical Category Plot?

Post by Doug Cook » Tue Oct 15, 2002 10:50 pm

Never mind. I was looking at the wrong file when I wrote this. Got the horizontal and vertical plots confused.

Locked