...
private JFreeChart createChart(XYDataset dataset, ICarteira car) {
// create the chart...
final JFreeChart chart = ChartFactory.createTimeSeriesChart(
car.getNome(), // title
"Tempo", // x axis label
"Valor", // y axis label
dataset, // data
true, // include legend
true, // tooltips
true // urls
);
XYPlot plot = chart.getXYPlot();
// here we change the line size
int seriesCount = plot.getSeriesCount();
for (int i = 0; i < seriesCount; i++) {
plot.getRenderer().setSeriesStroke(i, new BasicStroke(2));
}
// line size changed
return chart;
}
...
No comments:
Post a Comment