It seems you are experiencing an issue with the Bevel property not functioning as expected when converting DoughnutChart and PieChart to an image using Aspose.Cells in .NET.
To address this, you can ensure that you are applying the 3D formatting correctly to your charts. Here’s a sample code snippet that demonstrates how to apply 3D formatting, including the Bevel property, to a chart:
using Aspose.Cells;
using Aspose.Cells.Charts;
class Program
{
static void Main()
{
// Create a new workbook
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
// Add sample data
worksheet.Cells["A1"].PutValue("Category");
worksheet.Cells["A2"].PutValue("A");
worksheet.Cells["A3"].PutValue("B");
worksheet.Cells["A4"].PutValue("C");
worksheet.Cells["B1"].PutValue("Value");
worksheet.Cells["B2"].PutValue(1);
worksheet.Cells["B3"].PutValue(2);
worksheet.Cells["B4"].PutValue(3);
// Add a Pie chart
int chartIndex = worksheet.Charts.Add(ChartType.Pie, 5, 0, 25, 15);
Chart chart = worksheet.Charts[chartIndex];
// Add data series
chart.NSeries.Add("B2:B4", true);
chart.NSeries.CategoryData = "A2:A4";
// Apply 3D formatting
ShapePropertyCollection shapeProperties = chart.NSeries[0].ShapeProperties;
Format3D format3D = shapeProperties.Format3D;
Bevel bevel = format3D.TopBevel;
bevel.Type = BevelPresetType.Circle;
bevel.Height = 5;
bevel.Width = 9;
// Save the workbook
workbook.Save("DoughnutChartWithBevel.xlsx");
}
}
In this example, we create a new workbook, add a Pie chart, and apply 3D formatting with the Bevel property. Make sure to adjust the properties according to your specific requirements.
If the issue persists after implementing this, please check if there are any updates or patches available for Aspose.Cells that might address this specific problem. Additionally, you may want to refer to the Aspose.Cells documentation or community forums for further assistance.
If you have any more details or specific error messages, feel free to share them for more targeted help!
Hi @Limeneal_Solutions_FZCO
The Bevel property has a 3D effect, and currently the rendering image does not support the Bevel 3D effect. We have established an issue to track it, but this issue requires more time to study. Once there is progress, we will notify you here.
@Limeneal_Solutions_FZCO
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSNET-57705
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.