Search found 15 matches
- Wed Aug 09, 2006 3:13 pm
- Forum: JFreeChart
- Topic: Help with Time Series Chart
- Replies: 3
- Views: 4546
- Sun Jul 30, 2006 3:41 pm
- Forum: JFreeChart
- Topic: Help...
- Replies: 7
- Views: 7143
- Thu Jul 27, 2006 9:07 pm
- Forum: JFreeChart
- Topic: Help...
- Replies: 7
- Views: 7143
- Tue Jul 18, 2006 8:22 am
- Forum: JFreeChart
- Topic: I want to change colors of the bar chart
- Replies: 1
- Views: 3987
Try something like that : java.awt.Color[] color = new java.awt.Color[10]; color[0] = java.awt.Color.cyan; color[1] = java.awt.Color.green; color[2] = java.awt.Color.blue; color[3] = java.awt.Color.orange; color[4] = java.awt.Color.gray; color[5] = java.awt.Color.pink; color[6] = java.awt.Color.mage...
- Mon Jul 17, 2006 10:23 pm
- Forum: JFreeChart
- Topic: Vertical tick Labels for bar chart
- Replies: 2
- Views: 3619
Hi,
Try with this code :
Try with this code :
Code: Select all
CategoryPlot categoryPlot = jfreechart.getCategoryPlot();
CategoryAxis categoryAaxis = categoryPlot.getDomainAxis();
categoryAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);
- Thu Jul 06, 2006 6:22 pm
- Forum: JFreeChart
- Topic: setToolTipGenerator use
- Replies: 2
- Views: 4639
Try this code :
Code: Select all
renderer.setToolTipGenerator(new StandardXYToolTipGenerator("xxx {0} {1} {2}",format, NumberFormat.getInstance()));
- Sat Jul 01, 2006 8:04 am
- Forum: JFreeChart
- Topic: Generate tooltip for a Time Series Chart using my own format
- Replies: 2
- Views: 3849
Hi skunk,
You're right. It's work well !
The good code is :
Thanks a lot. 
You're right. It's work well !
The good code is :
Code: Select all
xylineandshaperenderer.setToolTipGenerator(new StandardXYToolTipGenerator("{0},{1},{2}",new SimpleDateFormat("MMM-yyyy"),new DurationFormat()));

- Fri Jun 30, 2006 9:36 pm
- Forum: JFreeChart
- Topic: Generate tooltip for a Time Series Chart using my own format
- Replies: 2
- Views: 3849
Generate tooltip for a Time Series Chart using my own format
Hi, I try to generate tooltip for a Time Series Chart using my own format. This is my code : XYLineAndShapeRenderer xylineandshaperenderer = (XYLineAndShapeRenderer)xyplot.getRenderer(); xylineandshaperenderer.setBaseShapesVisible(true); xylineandshaperenderer.setToolTipGenerator(new StandardXYToolT...
- Thu Jun 29, 2006 8:48 pm
- Forum: JFreeChart
- Topic: How to print a duration on Y-axis
- Replies: 8
- Views: 16056
- Wed Jun 28, 2006 11:53 am
- Forum: JFreeChart
- Topic: How to print a duration on Y-axis
- Replies: 8
- Views: 16056
Hi, Now, i try to generate tooltip for my Time Series Chart using my format DurationFormat. This is my code : XYLineAndShapeRenderer xylineandshaperenderer = (XYLineAndShapeRenderer)xyplot.getRenderer(); xylineandshaperenderer.setBaseShapesVisible(true); xylineandshaperenderer.setToolTipGenerator(ne...
- Tue Jun 27, 2006 8:55 pm
- Forum: JFreeChart
- Topic: How to print a duration on Y-axis
- Replies: 8
- Views: 16056
This code works :
Thanks a lot. 
Code: Select all
NumberAxis numberAxis = (NumberAxis) xyplot.getRangeAxis() ;
numberAxis.setNumberFormatOverride(new DurationFormat());
numberAxis.setLabel("CPU") ;

- Tue Jun 27, 2006 8:46 pm
- Forum: JFreeChart
- Topic: How to start JFreeChart
- Replies: 5
- Views: 5229
Some sources are created with older version as 0.9. You have to modify some imports. For example, replace : import org.jfree.data.DefaultCategoryDataset; import org.jfree.chart.renderer.BarRenderer; by : import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.chart.renderer.category....
- Tue Jun 27, 2006 1:12 pm
- Forum: JFreeChart
- Topic: How to print a duration on Y-axis
- Replies: 8
- Views: 16056
- Mon Jun 26, 2006 8:57 pm
- Forum: JFreeChart
- Topic: Il y a des français dans le coin ?
- Replies: 42
- Views: 91680
- Mon Jun 26, 2006 8:37 pm
- Forum: JFreeChart
- Topic: How to print a duration on Y-axis
- Replies: 8
- Views: 16056
Hi, I create a subclass of Java's NumberFormat as you said and i try to apply this new format to my Chart with this code : NumberAxis numberAxis = new NumberAxis("CPU"); numberAxis.setTickUnit(new NumberTickUnit(1, new DurationFormat())) ; or this : NumberAxis numberAxis = new NumberAxis("CPU"); num...