Search found 15 matches

by cenicienta
Wed Aug 09, 2006 3:13 pm
Forum: JFreeChart
Topic: Help with Time Series Chart
Replies: 3
Views: 4546

Take a look at this post.
by cenicienta
Sun Jul 30, 2006 3:41 pm
Forum: JFreeChart
Topic: Help...
Replies: 7
Views: 7143

What happens if you do that : DateAxis dateAxis = new DateAxis() ; SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss"); timeFormat.setTimeZone(TimeZone.getTimeZone("GMT")); dateAxis.setDateFormatOverride(timeFormat) ; xyplot.setRangeAxis(dateAxis);
by cenicienta
Thu Jul 27, 2006 9:07 pm
Forum: JFreeChart
Topic: Help...
Replies: 7
Views: 7143

If you use a TimeSeriesChart with TimeSeriesCollection and if values of TimeSeries are in seconds, you can use a DateAxis for range axis : DateAxis dateAxisRange = new DateAxis("Time"); dateAxisRange.setDateFormatOverride(new SimpleDateFormat("HH:mm:ss")) ; xyplot.setRangeAxis(dateAxisRange );
by cenicienta
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...
by cenicienta
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 :

Code: Select all

 
       CategoryPlot categoryPlot = jfreechart.getCategoryPlot();
       CategoryAxis categoryAaxis = categoryPlot.getDomainAxis();
       categoryAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);
by cenicienta
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())); 
by cenicienta
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 :

Code: Select all

xylineandshaperenderer.setToolTipGenerator(new StandardXYToolTipGenerator("{0},{1},{2}",new SimpleDateFormat("MMM-yyyy"),new DurationFormat())); 
Thanks a lot. :wink:
by cenicienta
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...
by cenicienta
Thu Jun 29, 2006 8:48 pm
Forum: JFreeChart
Topic: How to print a duration on Y-axis
Replies: 8
Views: 16056

Nobody can help me ? :wink:
by cenicienta
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...
by cenicienta
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 :

Code: Select all

        NumberAxis numberAxis = (NumberAxis) xyplot.getRangeAxis() ;
        numberAxis.setNumberFormatOverride(new DurationFormat());
        numberAxis.setLabel("CPU") ;
Thanks a lot. :wink:
by cenicienta
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....
by cenicienta
Tue Jun 27, 2006 1:12 pm
Forum: JFreeChart
Topic: How to print a duration on Y-axis
Replies: 8
Views: 16056

Thanks for your response. :wink:
But my class DurationFormat works well out of JFreeChart.
I don't understand what happens. :?
by cenicienta
Mon Jun 26, 2006 8:57 pm
Forum: JFreeChart
Topic: Il y a des français dans le coin ?
Replies: 42
Views: 91680

Salut à tous,

Moi aussi je suis POUR un forum JFreeChart en Français. :wink:
by cenicienta
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...