Hi
I am getting the following error on opening the presentation file:
"An XML error has occurred"
"
at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParser.ParseDataPoint(XmlReader reader, ChartSerieImpl series, RelationCollection relations)
at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartExParser.ParseChartExSeries(XmlReader reader, ChartImpl chart, RelationCollection relations, Excel2007Parser excel2007Parser, Int32& secondaryAxisId)
at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartExParser.ParsePlotAreaRegion(XmlReader reader, ChartImpl chart, RelationCollection relations, Excel2007Parser excel2007Parser, Int32& secondaryAxisId)
at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartExParser.ParseChartExPlotArea(XmlReader reader, ChartImpl chart, RelationCollection relations, Excel2007Parser excel2007Parser)
at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartExParser.ParseChartExElement(XmlReader reader, ChartImpl chart, RelationCollection relations)
at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartExParser.ParseChartEx(XmlReader reader, ChartImpl chart, RelationCollection relations)
at Syncfusion.Presentation.FileDataHolder.ParseChartData(PresentationChart chart, String chartPath)
at Syncfusion.Presentation.FileDataHolder.ParseChart(PresentationChart chart)
at Syncfusion.Presentation.Parser.CheckGraphicData(Stream stream, Shapes shapeCollection)
at Syncfusion.Presentation.Parser.ParseShapeTree(XmlReader reader, Shapes shapeCollection)
at Syncfusion.Presentation.Parser.ParseCommonSilde(XmlReader reader, BaseSlide slide)
at Syncfusion.Presentation.Parser.ParseSlide(XmlReader reader, Slide slide)
at Syncfusion.Presentation.FileDataHolder.ParseSlide(Slide slide, String slidePath)
at Syncfusion.Presentation.FileDataHolder.ParseSlides()
at Syncfusion.Presentation.FileDataHolder.Read()
at Syncfusion.Presentation.FileDataHolder.ParseDocument()
at Syncfusion.Presentation.Presentation.ParseDocument(Stream fileStream)
at Syncfusion.Presentation.Presentation.OpenAsStream(Stream stream, String password, String extension)
at Syncfusion.Presentation.Presentation.Open(Stream fileStream)
at Revuze.Pro.Reports.Services.ReportsService.GenerateStarRatingPPT(OverviewSlideModel overviewSlideModel) in C:\Users\moran\source\repos\Pro\revuze.pro.reports\Revuze.Pro.Reports\Services\ReportsService.cs:line 32
"
"IPresentation pptxDoc = Presentation.Open(new FileStream(_generalTempaltePath, FileMode.Open))"
I get the error on the file: "Revuze_Graphs 2_v2.pptx"
the file "Revuze_Graphs 4_v1.pptx" is working correctly, I have attached the files to the Thread
Can you help me understand what's the issue?
Hi
Thanks for your fast response. After I get the error message, nothing was created.
Hi
The end requirement is to fill the existing PPT with our own website data. the idea is to use the PPT I sent you as a base template and to fill it with relevant data each time the client press download.
Thanks.
Once I remove the treemap chart from the last slide, I get an error about "DataLabelRange". Does Syncfusion support data labels?
Hi
I tried to render the treemap chart using the latest version on NuGet - 19.4.0.43, but the chart won't render.
I am not getting any error messages or exceptions, only the chart area in the slide won't render. I attached the ppt template that I work with.
Hi
Can you give me an example for creating a treemap chart? one that I can define the colors based on the range of the values and the data label is in the middle?
Thank you, I am working on your example and was wondering how can I get the data but not from the Xls file. Since I get the data for our front end.
I am having an issue accessing the series from the code below, I get an exception when I try to get and change the series properties -> the code is marked with an underline.
var topicMapChart = slide.Charts.AddChart(120, 50, 1450, 710);
_pptHelperService.UpdateChart(topicMapChart, productVSCategoryModel.product_vs_category_chart);
topicMapChart.ChartType = OfficeChartType.TreeMap;
topicMapChart.IsSeriesInRows = false;
var series = topicMapChart.Series[0];
series.DataPoints.DefaultDataPoint.DataLabels.IsCategoryName = true;
series.SerieFormat.TreeMapLabelOption = TreeMapLabelOption.None;
topicMapChart.HasLegend = false;
Thank for the sample
I found that there is a topic missing in the chart example you sent me. I marked it in the screenshots below
I didn't understand why there's a calculation for:
serie1.DataPoints[i - serie1.Values.FirstRow]
Can't I just iterate on the index itself?
Thanks for your response.
Can you help me with the data label? I want to place them like in this image
|
chart.Series[0].DataPoints[0].DataLabels.Position = OfficeDataLabelPosition.Center; |
Hi Moran,
We have fixed the reported “Last
data label is incorrect in the Presentation document for tree map chart”
issue at our end. Since
our 2022 volume 1 main release is expected to be rolled out this week. So there
will be no weekly release this week.
We have prepared the custom patch NuGet for the reported issue in v19.4.0.56.
Please find the custom patch NuGet form the below link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/syncfusion.officechart.net.core.19.4.0.562091294266
We will include the
fix for the reported issue in our upcoming weekly NuGet release once our 2022 Volume
1 is rolled out which we excepted on the first week of April 2022 tentatively.
The status of this bug report can be tracked through the
below link:
Regards,
Lokesh B
Hi Moran,
As promised earlier, we have included the fix for the reported issue with “Last
data label is incorrect in the Presentation document for tree map chart"
in our latest weekly NuGet release (v20.1.0.48).
Please use the below link to download our latest weekly NuGet:
https://www.nuget.org/packages/Syncfusion.Presentation.Net.Core/20.1.0.48
The status of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/33187/last-data-label-is-incorrect-in-the-presentation-document-for-treemap-chart
Note: We will include this fix in our 2022 Volume 1 SP release which will
be available in mid of May 2022.
Regards,
Manikandan Ravichandran