Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

line graph problem - not showing lines if only one record - can anyone

Status
Not open for further replies.

scouser

Programmer
Jun 7, 2001
26
GB
hi there

I have a graph which has a bar graph and a line graph overlaying it.

If there is more than one record in the query, the lines of the line graph show. However, when there is only one record in the query, the line graph no longer shows, but the underlying bar graph still shows. Does anyone one know why this is happening?

TIA

Shirley
 
You'll probably have to set the graph Scale to always include zero. It might be your trying to graph the line series based on one point and not the difference beteen two points.

Mark
 
Thanks for your help Mark. My graph does go through from 0 to 100 if that is what you mean ? However, I have since discovered that Crystal Reports requires two points to produce a line. So, maybe that it is why the line does appear when there is only one record...

Shirley
 
I think so. The scale may go from 0 to 100 but you'll have to always include zero as a data point in the series to get a line from the bottom left of the graph to the first 'real' data point.

Mark
 
Thanks Mark, still can't get it to work though!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top