Hi there,
I am building a chart dynamically, if the X-axis data is less (ex: 10 rows in data table) the chart is showing fine with all labels.
But if the table has more no.of rows (ex: 35 as in attached screen shot), the chart is loosing the data to display in X-axis, but the data markers are showing fine for each axis.
If I increase the width of the chart, then I am able to see X-axis labels. So how could I increase the width of chart automatically depends on the data table of the chart?
PFA to check how the X-axis is missing the labels, but data marker in chart are showing properly.
Hi,
Well, Aspose.Cells will work similar to MS Excel. You may try to create your desired chart manually in MS Excel and check the issue.
If you have different opinion, kindly do create your desired chart in MS Excel with your desired length (also find out if some of the labels are lost or not), and post the file here. We will check it soon.
Also to increase the chart’s width and height, you may try:
chart.ChartObject.HeightCM = intNumber;
chart.ChartObject.WidthCM = intNumber;
Thank you.