Set BarChart To Horizontal

3 posts, 1 answers
  1. Martin Hamilton
    Martin Hamilton avatar
    36 posts
    Member since:
    Aug 2009

    Posted 25 Nov 2019 Link to this post

    I have been trying to turn a stacked barchart to be horizontal - and must be misunderstand what must be a simple solution to my problem.

    using the Telerik Example for a stacked barChart - how do I set this so that the Representatives are on the vertical axis and the performance values are on the bottom horizontal axis as shown in the attached image.

    Thank you in advance

                Dim barSeries As New Telerik.WinControls.UI.BarSeries("Performance", "RepresentativeName")
                barSeries.Name = "Q1"
                barSeries.DataPoints.Add(New CategoricalDataPoint(177, "Harley"))
                barSeries.DataPoints.Add(New CategoricalDataPoint(128, "White"))
                barSeries.DataPoints.Add(New CategoricalDataPoint(143, "Smith"))
                barSeries.DataPoints.Add(New CategoricalDataPoint(111, "Jones"))
                barSeries.DataPoints.Add(New CategoricalDataPoint(118, "Marshall"))

                Dim barSeries2 As New Telerik.WinControls.UI.BarSeries("Performance", "RepresentativeName")
                barSeries2.Name = "Q2"
                barSeries2.DataPoints.Add(New CategoricalDataPoint(153, "Harley"))
                barSeries2.DataPoints.Add(New CategoricalDataPoint(141, "White"))
                barSeries2.DataPoints.Add(New CategoricalDataPoint(130, "Smith"))
                barSeries2.DataPoints.Add(New CategoricalDataPoint(88, "Jones"))
                barSeries2.DataPoints.Add(New CategoricalDataPoint(109, "Marshall"))
                barSeriesQ1.CombineMode = ChartSeriesCombineMode.Stack
                barSeries2.CombineMode = ChartSeriesCombineMode.Stack


  2. Answer
    Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4125 posts

    Posted 25 Nov 2019 Link to this post

    Hello, Martin,

    Following the provided information, I have prepared a sample project. The chart looks as follows on my end:

    If you want to change the orientation, it is necessary to set the Orientation of the CartesianArea

    Me.RadChartView1.GetArea(Of CartesianArea)().Orientation = Orientation.Horizontal


    It is expected that the horizontal axis now will display the values of each category.

    I hope this information helps. If you need any further assistance please don't hesitate to contact me.

    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Martin Hamilton
    Martin Hamilton avatar
    36 posts
    Member since:
    Aug 2009

    Posted 25 Nov 2019 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Wow, Thank you - I think I was overthinking it.

    Thank you for your assistance!

Back to Top