Excluding a Series from the Legend

At times it is convenient to plot shapes, lines and curves that do not represent data, but rather data regions of interest, or error bands, and so on. In these instances, additional series may be added to the chart, but should be excluded from the legend. Each ChartDataSeries contains a Boolean property called LegendEntry. If set to True, as it is by default, the series will be listed in the legend. If False, however, the series will be charted, but not listed in the legend.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.