We examined the code you've provided and found that your report is not displayed because the field values you want to show on your Y axis (Duration
) have a constant value of 0. Once you provide some other values for the Duration
field, the graph will display the bar series.
Also we noticed that you have set the Minimum
of the Y axis scale to 1 and 2 respectively, which implies that the shown value should be of a floating point type, but in your TimeEntries
class you have declared the Duration
field as integer. This might be intentional, but the resulting bar chart will have only two types of bars, which doesn't seem very useful.
We're not sure that rotating or cropping the axis labels would be the best solution when there is not enough space to be displayed, although some charting engines
use such an approach. We've provided couple of options to help you in such scenarios, like LabelAngle
and others, that can be adjusted prior to processing the graph, if needed.
class is internal because it is not intended to be modified during processing. All the needed modifications should be performed on the Telerik.Reporting.Graph
instance, which represents the item definition.
Please find attached your example with the above fixes applied and see if it suits your needs.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.