Write the values on the Linechart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
U

Write the values on the Linechart

Post by U » Tue Mar 26, 2002 11:28 pm

How to Write the actual values on the Linechart?

Thanks,

David Gilbert

Re: Write the values on the Linechart

Post by David Gilbert » Tue Mar 26, 2002 11:43 pm

As for the bar chart, except the renderer class is LineAndShapeRenderer. So you need to add some drawing code (g2.drawString(...)) to the drawCategoryItem(...) method, to put text representing data values at whatever position you require.

Regards,

DG.

U

Re: Write the values on the Linechart

Post by U » Tue Mar 26, 2002 11:59 pm

It would be nice if there is a property which enables to write values or not.

Locked