Orientation
The orientation of the series depends on which chart axis is horizontal and which one is vertical.
Orientation property could be applied only to CategoricalSeries, such as Bar, Line and Area.
Horizontal BarSeries Example
Here is an example how to create RadCartesianChart with vertical CategoricalAxis and Horizontal Bar Series:
First, create the needed business objects, for example:
Then create a ViewModel:
Finally, use the following snippet to declare a RadCartesianChart with Bar Series in XAML and in C#:
Where the telerikChart namespace is the following:
Here is the result:
A sample Horizontal Bar Series example can be found in the Chart/Series folder of the SDK Samples Browser application.
Horizontal Stack BarSeries Example
Here is an example how to create RadCartesianChart with vertical CategoricalAxis and Stack Horizontal Bar Series:
First, create the needed business objects, for example:
Then create a ViewModel:
Finally, use the following snippet to declare a RadCartesianChart with Bar Series in XAML and in C#:
Where the telerikChart namespace is the following:
Here is the result:
A sample Stack Horizontal Bar Series example can be found in the Chart/Series folder of the SDK Samples Browser application.