मेरा बार चार्ट हमेशा डिफ़ॉल्ट रूप से ढाल रंग के साथ खींचा जाता है। मैं बस एक साधारण रंग बिना किसी स्टाइल प्रभाव चाहता हूं।जेएफरी चार्ट बार चार्ट -> कोई ढाल
क्या कोई मदद कर सकता है?
कोड:
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
धन्यवाद
अपना कोड पेस्ट करें। ज्यादातर मामलों में आपको इसे ढाल बनाने के लिए कुछ कोड जोड़ना चाहिए: यथार्थतम शीर्षक के लिए GradientPaint –
+1। वेब 2.0 अलविदा! –