Search found 2 matches
- Fri Mar 30, 2007 7:43 pm
- Forum: JFreeChart
- Topic: Can't make it visible!
- Replies: 3
- Views: 4858
Try public void DrawChart() { initDataSet(); // create the chart... JFreeChart chart = ChartFactory.createBarChart( "Bar Chart", // chart title "Category", // domain axis label "Value", // range axis label dataset, // data PlotOrientation.VERTICAL, // orientation true, // include legend true, // too...
- Fri Mar 30, 2007 7:15 pm
- Forum: JFreeChart
- Topic: Gantt ItemLabel generation
- Replies: 6
- Views: 9147
In GanttRenderer.drawTasks(...), you can see where each subtask is rendered. Specifically, a Rectangle2D named 'bar' is created to indicate the bounds of each subtask. After the bar is drawn: Paint seriesPaint = getItemPaint(row, column); g2.setPaint(seriesPaint); g2.fill(bar); ... use 'bar' to rend...