Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Created Unassigned: I cannot set the chart title without editing the XML [14989]

$
0
0
I am doing the following:

```
var chart = (ExcelScatterChart)oepSheetData.Drawings["Chart 1"];
chart.Series.Delete(0);
chart.Name = "New Name"; // I know this is not the title

// Add some series manually

// This doesn't seem to be working
chart.Title.Text = "New Title";

// This does work
chart.ChartXml.DocumentElement["c:chart"]["c:title"].InnerXml =
"<c:tx><c:rich><a:bodyPr /><a:lstStyle /><a:p><a:pPr><a:defRPr /></a:pPr><a:r><a:rPr lang=\"en-US\" /><a:t>New Title</a:t></a:r></a:p></c:rich></c:tx><c:layout /><c:overlay val=\"0\" />";
```

I tried chart.Title.RichText as well. I'll try to submit a patch later when I get a chance to dig into it.

Viewing all articles
Browse latest Browse all 2262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>