How would you programatically create chartlegened itmes for a pie chart and be able to associate them with a specific chart such that it matches the colors of the specific chart. I am able to programatically create ChartLegendItems and add them to the chart i.e.
chart1.defaultview.chartlegend.Items.Add(chartlegenditem1) ... but the items show up with white background. How do I associate the chartlegenditems with the chart so that the colors match?
chart1.defaultview.chartlegend.Items.Add(chartlegenditem1) ... but the items show up with white background. How do I associate the chartlegenditems with the chart so that the colors match?