how to always ensure line annotations are in view

Discussion about JFreeChart related to stockmarket charts.
Locked
andrewbee
Posts: 1
Joined: Thu Nov 15, 2007 9:32 pm

how to always ensure line annotations are in view

Post by andrewbee » Thu Nov 15, 2007 9:37 pm

Hi,

First, let me say that JFreeChart is awesome; so powerful and easy to use right out of the box. I quickly put together a program that charts a stock price, and annotated the chart with lines showing the stops and limits on each trade.

The problem is, JFree does a great job of scaling the chart to the size of the data to be displayed, but since some stops (or limits) are never hit, they are never shown, since they are outside the area of the chart. I would still like to see them. How can I make JFree include certain points (or annotations) in the viewable area?

Thanks in advance

Locked