This didn’t seem to work. I’m running this code and seeing no difference in the format.
I’ll mention I’m modifying an existing chart not creating a new one.
for (int i = 0; i < posDS.Series.Count; i++)
{
//Add the series and data points to the chart
double[] vals = Array.ConvertAll<object, double>(posDS.Data[i].ItemArray, x => (double)x);
ChartSeries series = s.Chart.Series.Add(posDS.Series[i].SeriesName, categories, vals);
s.Chart.AxisY.CategoryType = AxisCategoryType.Category;
for (int j = 0; j < categories.Count(); j++)
{
ChartDataLabel chartDataLabel = series.DataLabels.Add(j);
chartDataLabel.NumberFormat.FormatCode = "\"$\"#,##0.00";
chartDataLabel.ShowValue = true;
chartDataLabel.ShowCategoryName = false;
chartDataLabel.ShowLegendKey = false;
chartDataLabel.ShowSeriesName = false
}
}
Thanks for your inquiry. To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:
Your input Word document
Aspose.Words generated output DOCX file showing the undesired behavior
Your expected document. Please create this document by using MS Word
Please create a standalone console application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.