DataPointCollection.ArgumentScaleType Property
Specifies the scale type of data points arguments.
Namespace: DevExpress.UI.Xaml.Charts
Assembly: DevExpress.UI.Xaml.Charts.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
Property Value
Type | Description |
---|---|
ScaleType | A ScaleType enumeration value. |
Available values:
Name | Description |
---|---|
Auto | A scale type is detected automatically based on the type of underlying data. This means that numerical data will be treated as numerical, date-time data as date-time, qualitative as qualitative values. |
Numerical | Identifies the Numerical data scale. This means that data provided for the DataPointCollection.Points will be treated as numerical values, and will be shown on the axis as numbers (e.g., 100, 200, and 300). |
DateTime | Identifies the DateTime data scale. This means that data provided for the DataPointCollection.Points will be treated as DateTime values, and will be shown on the axis as DateTime values (e.g., January, 2003, January, 2004, and January, 2005). |
Qualitative | Identifies the Qualitative data scale. This means that data provided for the DataPointCollection.Points will be treated as qualitative values, and will be shown on the axis as textual representations (e.g., A, B, and C). |
Remarks
For more information, refer to Providing Data.
Example
This example demonstrates how to create a simple Cartesian chart with 3 Stacked Bar series, populate them with data and adjust common settings.
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:CartesianChart"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Charts="using:DevExpress.UI.Xaml.Charts"
x:Class="CartesianChart.MainPage"
mc:Ignorable="d">
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<Charts:CartesianChart Margin="50">
<Charts:CartesianChart.Legend>
<Charts:Legend HorizontalPosition="Left" VerticalPosition="Top"/>
</Charts:CartesianChart.Legend>
<Charts:CartesianChart.Series>
<Charts:Series DisplayName="Illinois">
<Charts:Series.View>
<Charts:StackedBarSeriesView />
</Charts:Series.View>
<Charts:Series.Data>
<Charts:DataPointCollection ArgumentScaleType="Qualitative">
<Charts:DataPoint Argument="1998" Value="423.721"/>
<Charts:DataPoint Argument="2001" Value="476.851"/>
<Charts:DataPoint Argument="2004" Value="528.904"/>
</Charts:DataPointCollection>
</Charts:Series.Data>
</Charts:Series>
<Charts:Series DisplayName="Indiana">
<Charts:Series.View>
<Charts:StackedBarSeriesView />
</Charts:Series.View>
<Charts:Series.Data>
<Charts:DataPointCollection ArgumentScaleType="Qualitative">
<Charts:DataPoint Argument="1998" Value="178.719" />
<Charts:DataPoint Argument="2001" Value="195.769" />
<Charts:DataPoint Argument="2004" Value="227.271" />
</Charts:DataPointCollection>
</Charts:Series.Data>
</Charts:Series>
<Charts:Series DisplayName="Michigan" >
<Charts:Series.View>
<Charts:StackedBarSeriesView />
</Charts:Series.View>
<Charts:Series.Data>
<Charts:DataPointCollection ArgumentScaleType="Qualitative">
<Charts:DataPoint Argument="1998" Value="308.845" />
<Charts:DataPoint Argument="2001" Value="335.793" />
<Charts:DataPoint Argument="2004" Value="372.576" />
</Charts:DataPointCollection>
</Charts:Series.Data>
</Charts:Series>
</Charts:CartesianChart.Series>
</Charts:CartesianChart>
</Grid>
</Page>