Search results

Vertical Chart in Blazor Chart component

22 Jul 2021 / 1 minute to read

Blazor Charts can be transposed vertically to view the data in a different perspective. All series types support this feature. By setting IsTransposed property to true in chart to render a chart in vertical manner.

Copied to clipboard
@using Syncfusion.Blazor.Charts

<SfChart IsTransposed="true">
        <ChartSeries DataSource="@SalesReports" XName="X" YName="Y" Type="ChartSeriesType.Spline">

    public class ChartData
        public double X { get; set; }
        public double Y { get; set; }

    public List<ChartData> SalesReports = new List<ChartData>
        new ChartData{ X= 2005, Y= 28 },
        new ChartData{ X= 2006, Y= 25 },
        new ChartData{ X= 2007, Y= 26 },
        new ChartData{ X= 2008, Y= 27 },
        new ChartData{ X= 2009, Y= 32 },
        new ChartData{ X= 2010, Y= 35 },
        new ChartData{ X= 2011, Y= 30 }

Vertical Chart

Refer to our Blazor Charts feature tour page for its groundbreaking feature representations and also explore our Blazor Chart example to know various chart types and how to represent time-dependent data, showing trends at equal intervals.

See Also