Hi:
I noticed that the export of 3D chart images doesn’t look quite the same as the charts in excel.
Here is some code that allows you to see the differences. It runs against the attached file. Please run the app to export the chart to a png file then open the file in excel and compare them. You’ll notice the following:
- the labels for dates are chopped off
- the labels for drinks are horizontal while in Excel they are oblique.
- the horizontal axis that has the beverages is displayed in a different
angle. On the aspose version is horizontal while in the excel version
is oblique.
- Aspose seems to create small rectangle surfaces for the missing values, while Excel simple doesn’t put anything there. Excel seems to add something only as long as there is a value.
- the view angles are not exactly the same
- the vertical values are placed on the right side
Is this something that you are going to fix? I know making the charts look like the excel ones can be a daunting task. I would say the most stringent issues are the dates being chopped off and the small areas should be removed if there are no values.
Thank you
Code:
using System;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Text;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using Aspose.Cells.Pivot;
using Aspose.Cells.Rendering;
namespace TestAspose
{
class Program
{
static void Main(string[] args)
{
Procedure20();
Console.WriteLine(“Done!”);
Console.ReadKey();
}
private static void Procedure20()
{
Workbook workbook = new Workbook(@"…\test3d_chart.xlsx");
Worksheet worksheet = workbook.Worksheets[0];
workbook.CalculateFormula(false);
worksheet.Charts[0].ToImage(@"…\chart.png", ImageFormat.Png);
}
}
}