The problem is due to barSeries.VerticalAxis
being null when you add it to radChartView1. You need to defining a vertical axis of a series is needed before you can add it to a ChartView.
You can define the vertical series where you defined the categoricalAxis and use it for the barSeries. For example:
DateTimeCategoricalAxis categoricalAxis =
categoricalAxis.DateTimeComponent = DateTimeComponent.Date;
categoricalAxis.PlotMode = AxisPlotMode.BetweenTicks;
categoricalAxis.LabelFitMode = AxisLabelFitMode.Rotate;
categoricalAxis.LabelRotationAngle = 270;
LinearAxis verticalAxis =
//set your preferred properties for the linear axis
//add the series to the ChartView
//further down in the method in the foreach loop, assign the axes to the series
barSeries.VerticalAxis = radChartView1.Axes
barSeries.HorizontalAxis = radChartView1.Axes
If you have any further difficultly, please reply to the Support Ticket you have submitted for this issue and we will follow up there.
Lance | Senior Support Specialist
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.