something like
LegendItem Newseries = new LegendItem();
LegendItem newcell = new LegendCell(LegendCellType.Text, "New sheet = " + chart.Series[0].LegendText, ContentAlignment.BottomCenter); //Error
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted May 7, 2014, 10:06 AM
Failing that I think you'd need to try and use the Legend.Position property to get the first Legend on top of the second.
Farhan ShariffPosted May 8, 2014, 5:48 AM
http://imgur.com/ju3gCyY
But as you said I used Legends.Position property which solved the problem
VulpesPosted May 7, 2014, 11:20 AM
LegendItem Newseries = new LegendItem();
LegendCell newcell = new LegendCell(LegendCellType.Text, "New sheet = " + chart1.Series[0].LegendText, ContentAlignment.BottomCenter);
newcell.Font = new Font("Georgia", 16);
newcell.ForeColor = Color.Orange;
newcell.BackColor = Color.Black;
Newseries.Cells.Add(newcell);
Farhan ShariffPosted May 7, 2014, 10:09 AM