Back to Devexpress

BootstrapChart.Rotated Property

aspnetbootstrap-devexpress-dot-web-dot-bootstrap-dot-bootstrapchart-37a71a08.md

latest3.1 KB
Original Source

BootstrapChart.Rotated Property

Specifies a value that defines whether to swap chart axes.

Namespace : DevExpress.Web.Bootstrap

Assembly : DevExpress.Web.Bootstrap.v25.2.dll

NuGet Package : DevExpress.Web.Bootstrap

Declaration

csharp
[DefaultValue(false)]
public bool Rotated { get; set; }
vb
<DefaultValue(False)>
Public Property Rotated As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true , to swap chart axes; otherwise, false.

|

Remarks

Setting the Rotated property to true swaps the axes around so that the value axis becomes horizontal and the argument axes becomes vertical.

Example

This example demonstrates the basic functionality of the Chart control.

The image below shows the result:

aspx
<dx:BootstrapChart runat="server" DataSourceUrl="~/jsondata/simple.json" TitleText="Daily Sales" Rotated="true">
    <ArgumentAxis ArgumentType="System.DateTime" MaxValue="2017-01-10" />
    <ValueAxisCollection>
        <dx:BootstrapChartValueAxis TickInterval="1" />
    </ValueAxisCollection>
    <SeriesCollection>
        <dx:BootstrapChartBarSeries ArgumentField="date" ValueField="sales" />
    </SeriesCollection>
    <SettingsLegend Visible="false" />
</dx:BootstrapChart>

See Also

Chart Series

BootstrapChart Class

BootstrapChart Members

DevExpress.Web.Bootstrap Namespace