Limiting the number of chart values

Top  Previous  Next

Our chart is over-crowded with many small values, which has resulted in many becoming invisible. FastReport allows you to limit the number of values displayed in the chart. All the values in excess of a set number are displayed as a single composite value, consisting of the sum of all these values.


In our example the chart has 18 values but practically only 8 of them can be seen. Open the chart editor and set the limit to 8:




If “TopN” is set to zero then there will be no limitation. A name should be entered in “TopN caption” so that the aggregated values are identified correctly in the legend list. The Sort mode is irrelevant as the values will always be sorted descending by default.


The report will look like this: