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

Free Support Forum - aspose.com

LINQ Reporting Engine - Area chart - Need to show last category item value in chart as a marker/highlight

Using Aspose word (version:22.11) java, trying to generate Area chart which will show only the start and end date value at bottom with last last item value will be shown in different fashion (highlighted in yellow color) like attached image.

I tried to create a similar template using Microsoft-word and Aspose LinqEngine, but unable to create as mentioned in above attachment. Below attached is what i was able to achieve

So need your assistant to achieve the same.


Please note that LINQ Reporting Engine capabilities are restricted by MS Word capabilities. MS Word does not allow to show just starting and ending values for an axis. Nor does it allow to set a data marker for an area chart.

To make your chart look closer to what you describe, you can hide an x-axis for the chart in a template and then use textboxes over the chart to show only starting and ending axis values as described in this reply. The same approach can be used to imitate a data marker for an area chart.

yes, but how to take first and last value from dynamic data in textbox and same for the marker how do i will fetch the last value from data.

here we are using the the chart data as an JSON.


Please check first and last Enumeration Extension Methods. In textboxes, you can use expressions like <<[xvalues.first()]>> or <<[yvalues.last()]>>, where xvalues and yvalues stand for actual data as per your JSON file. See Outputting Expression Results for available options on formatting.