My requirement is to generate the chart shown in RequiredChart.docx. The chart that I’ve drawn using Aspose.Words is in AsposeChart.docx. How do I format the chart generated by Aspose to make it appear as in RequiredChart.docx?
1) Format y-axis as percentage with no decimal places
2) Increase the width of the bar and decrease the distance between them
3) Rotate the x-axis labels so that we can see all of them
4) Adjust the font and font size for both x and y axes
5) Show tick marks on the x axis
var doc = new Document();
var builder = new DocumentBuilder(doc);
// Insert Column chart.
Shape shape = builder.InsertChart(ChartType.Column, 432, 252);
Chart chart = shape.Chart;
string categories = new
, “Provence-Alpes-C. d’A.”
, “Pays de la Loire”
, “Outre mere”
var values = new double
// Use this overload to add series to any type of Bar, Column, Line and Surface charts.
chart.Series.Add(“Regional distribution”, categories, values);
// Saves the document to disk.
string outputFile = “AsposeChart.docx”;
Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested features at the moment. However, we have logged these features in our issue tracking system.
WORDSNET-13512 : Add feature to Format X and Y Axis of chart
WORDSNET-13513 : Add feature to format Data Series (Gap Width)
You will be notified via this forum thread once these features are available. We apologize for your inconvenience.
Thanks for the prompt reply Tahir