Hi everyone, I have an issue with generating data for ColumnStacked Chart where the values seem to be overlapping. I attached pictures of the issue and my code. I hope someone can help me to solve it.
Hi there,
Document doc = new
Document();<o:p></o:p>
DocumentBuilder builder = new DocumentBuilder(doc);
builder.PageSetup.PageHeight = 500;
// Add chart with default data. You can specify different chart types and sizes.
Shape shape = builder.InsertChart(ChartType.ColumnStacked, 432, 300);
shape.AllowOverlap = false;
// Chart property of Shape contains all chart related options.
Chart chart = shape.Chart;
chart.Legend.Position = LegendPosition.Top;
// Get chart series collection.
ChartSeriesCollection seriesColl = chart.Series;
// Delete default generated series.
seriesColl.Clear();
// Create category names array, in this example we have two categories.
string[] categories = new string[] { "AW Category 1", "AW Category 2" ,"AW Catergory 3"};
// Adding new series. Please note, data arrays must not be empty and arrays must be the same size.
seriesColl.Add("AW Series 1", categories, new double[] { 4.3,2.5,3.5 });
seriesColl.Add("AW Series 2", categories, new double[] { 2,4.4,2 });
seriesColl.Add("AW Series 3", categories, new double[] { 2,2,3 });
doc.Save("ColumnStacked_174.docx");
Hi there,
Hi there,
Thank you for your supporting.
minh.nguyen1101:
- How can I modify label without effect values of charts ?
minh.nguyen1101:
- How can I modify font of chart title, categories name ?
minh.nguyen1101:
- How can I modify width of columns in chart ?- How can I config formating number by Culture?
minh.nguyen1101:
- For the modifying width of columns in chart, you can see picture "Width_columns_in_chart.png"
minh.nguyen1101:
- For the choosing format number in each columns and Axis, you can see picture "Config_currency.png"
The issues you have found earlier (filed as WORDSNET-15328) have been fixed in this Aspose.Words for .NET 17.6 update and this Aspose.Words for Java 17.6 update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
The issues you have found earlier (filed as WORDSNET-15342) have been fixed in this Aspose.Words for .NET 17.10 update and this Aspose.Words for Java 17.10 update.