Church;
Sorry for the confusion.
(1) Design a Crystal Report as normal, with the chart you want placed in the report header as normal. As you know that you will never exceed 40 lines of data, format the graph to best display all 40 lines.
(2) Right-click in the report header and then insert section below, so that you now have Report Header A (RH-a), which contains your original graph, and a new, blank, Report Header B (RH-b).
(3) Right-click and copy your graph, and paste a copy into RH-b.
(4) Format the graph in RH-b to best display 20 lines of data.
(5a) Now here's a part where I can't be more specific without fully knowing the details of your report. You need to create a formula that will tell you how many lines of data are going to be on the graph.
(5b) In the far left of the Design screen, right-click under RH-a and click Format Section. In the right-hand column of the Section Expert click the button to create a boolean expression to Suppress the section. The code will be something to the effect of "linecounter < 21".
(5c) Do the same as (5b) for RH-b using the code "linecounter > 20".
Done: If it all works right, if the graph contains 1-20 lines only RH-b should be displayed; and RH-a for 21-40 lines. Depending on specifics of the report and how it's reading and processing the data, you might need to move the charts down into Report Footers instead of the headers.
If you're still confused by any of this, let me know.
-Paul
phoerner@state.nd.us