We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Words (.NET) - Scatter chart - How to setup axis X as datetime axis?

Hello, we have a purchased license.
We need to configure axis X as datetime axis with timespan intervals between tick marks.

In our case values for axis X is datetimes that converted to double OA dates, and we use number format for display OA dates as strings:

var axisXValues = dateTimes.Select(x => x.ToOADate()).ToArray();
asposeChart.Series.Add(seriesName, axisXValues, axisYValues);
asposeChart.AxisX.NumberFormat.FormatCode = formatCode;
asposeChart.AxisX.CategoryType = AxisCategoryType.Time;

The result is:
Screenshot_1016.png (19.3 KB)

Is there a way to make interval between tick marks on axis X is more consistent and readable? For example:
Screenshot_1017.png (9.5 KB)


To ensure a timely and accurate response, please attach the following resources here for testing:

  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to 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.

PS: To attach these resources, please zip and upload them.