BCGSuite for MFC
BOOL CBCGPChartLegendVisualObject::AddLegendEntry ( CBCGPChartLegendEntry pEntry)

Adds a new legend entry (row)

Usually you call the first override from an CBCGPChartLegendVisualObject::OnLegendContentCreated handler to add custom entries. The second override is called by the legend internally when it gathers information from related charts. However, you can call the second override if you want to add an entry from a chart that is not connected to the legend

Parameters
pEntrya valid pointer to a legend entry