낡은 질문이지만, 여기 극좌표를 사용하여 비슷한 점 (1, 2, 3, ...시 위치의 주석)을 작성했습니다.
final JFreeChart chart = ChartFactory.createPolarChart(
"HAPI Hourly Usage (UTC)", ds, true, true, false);
final PolarPlot plot = (PolarPlot) chart.getPlot();
// Create a ChoiceFormat to map the degrees to clock positions
double[] limits = new double[12];
String[] formats = new String[12];
limits[0] = 0;
formats[0] = "12";
// degrees = 360/12
for (int i = 1; i < limits.length; i++) {
limits[i] = degrees * (i);
formats[i] = Integer.toString(i);
}
ChoiceFormat clock = new ChoiceFormat(limits, formats);
TickUnit tickUnit = new NumberTickUnit(degrees, clock);
// now configure the plot
plot.setAngleTickUnit(tickUnit); // sets the ticks
plot.setAngleLabelsVisible(true); // makes the labels visible
plot.setAngleLabelPaint(Color.LIGHT_GRAY); // user choice
plot.setAngleGridlinesVisible(true); // must set this to display the
// labels
plot.setAngleGridlinePaint(Color.BLACK); // plot's background color
// (makes lines invisible)
plot.setRadiusGridlinesVisible(false); //turn off the radius value circles
ValueAxis axis = plot.getAxis();
axis.setTickLabelsVisible(false); //turn off the radius value labels
바람이 최대 http://img522.imageshack.us/img522/6693/hapihours.jpg
흥미로운 기술처럼 보이는 : 그것은 ChoiceFormatter과 NumberTickUnit를 사용합니다! 근본적으로 극좌표를 사용하여 파이 차트 풍의 qraph를 만듭니다. 이것은 당신에게 진드기 단위와 레이블의 사용을 구입합니까? 아주 멋지다. – Adam
아직 답변을 검색하지 않은 사용자의 경우, 이전 질문이었던 것은 중요하지 않습니다. 도와 주셔서 감사합니다! – Adam