내 막대 그래프는 기본적으로 그라디언트 색상으로 그려집니다. 단순한 색상을 원한다. 스타일이 적용되지 않은.JFreeChart BarChart -> no gradient
아무도 도와 줄 수 있습니까?
코드 :
final JFreeChart chart = ChartFactory.createBarChart(
"", // chart title
xLabel, // domain axis label
yLabel, // range axis label
dataset, // data
PlotOrientation.VERTICAL, // orientation
true, // include legend
false, // tooltips?
false // URLs?
);
final CategoryPlot plot = chart.getCategoryPlot();
// SOMETHING HAS TO BE DONE HERE
showChart(chart); // Simply shows the chart in a new window
감사 org.jfree.chart.demo.BarChartDemo1
에 대한
코드를 붙여 넣습니다. 대부분의 경우 다음과 같이 그라디언트를 만들기 위해 코드를 추가해야합니다. GradientPaint –
+1 실제 제목입니다. 웹 2.0 작별 인사! –