mi gráfico de barras siempre se dibuja con un degradado de color por defecto. Solo quiero un color simple sin ningún efecto de estilo.JFreeChart BarChart -> NO gradiente
¿Alguien puede ayudar?
Código:
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
Gracias
Pegue su código. En la mayoría de los casos, debe agregar un código para hacerlo degradado como: GradientPaint –
+1 para el título más real. Web 2.0 ¡Adiós! –