aspnetbootstrap-devexpress-dot-web-dot-bootstrap-dot-bootstrapchart-37a71a08.md
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
[DefaultValue(false)]
public bool Rotated { get; set; }
<DefaultValue(False)>
Public Property Rotated As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true , to swap chart axes; otherwise, false.
|
Setting the Rotated property to true swaps the axes around so that the value axis becomes horizontal and the argument axes becomes vertical.
This example demonstrates the basic functionality of the Chart control.
BootstrapChart.Rotated property to true.The image below shows the result:
<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