Skip to main content

ValueDataMember.Type Property

Specifies the value type for series point values.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public ValueType Type { get; set; }

Property Value

Type Description
ValueType

The value type for series point values.

Available values:

Name Description
Value

Indicates the series point value. Valid for all series except for Financial, RangeBar, SideBySideRangeBar, and RangeArea series.

Weight

Indicates the Bubble series point weight (bubble size).

High

Indicates the highest price of the Financial series point.

Low

Indicates the lowest price of the Financial series point.

Open

Indicates the opening price of the Financial series point.

Close

Indicates the closing price of the Financial series point.

Value1

Indicates the first value of the RangeBar/SideBySideRangeBar or RangeArea series point.

Value2

Indicates the second value of the RangeBar/SideBySideRangeBar or RangeArea series point.

Example

These examples show how to create and configure the data adapter to populate ChartView series of different types with data.

  • For most series types supported by ChartView (besides financial, range bar and bubble charts), specify one ValueDataMember object with the Type set to Value:

    <dxc:ChartView>
      <dxc:ChartView.Series>
        <dxc:LineSeries>
          <dxc:LineSeries.Data>
            <dxc:SeriesDataAdapter DataSource="{Binding GdpValues}" ArgumentDataMember="Year">
              <dxc:SeriesDataAdapter.ValueDataMembers>
                <dxc:ValueDataMember Type="Value" Member="Value"/>
              </dxc:SeriesDataAdapter.ValueDataMembers>
            </dxc:SeriesDataAdapter>
          </dxc:LineSeries.Data>
        </dxc:LineSeries>
      </dxc:ChartView.Series>
    </dxc:ChartView>
    

    Note

    ValueDataMembers is a content property. You can skip property tags in the markup.

  • For financial series (CandleStickSeries and StockSeries), specify four ValueDataMember objects with Type set to High, Low, Open, and Close:

    <dxc:ChartView>
      <dxc:ChartView.Series>
        <dxc:CandleStickSeries>
          <dxc:CandleStickSeries.Data>
            <dxc:SeriesDataAdapter DataSource="{Binding StockPrices}" ArgumentDataMember="Date">
                <dxc:ValueDataMember Type="High" Member="HighValue" />
                <dxc:ValueDataMember Type="Low" Member="LowValue" />
                <dxc:ValueDataMember Type="Open" Member="OpenValue" />
                <dxc:ValueDataMember Type="Close" Member="CloseValue" />
            </dxc:SeriesDataAdapter>
          </dxc:CandleStickSeries.Data>
        </dxc:CandleStickSeries>
      </dxc:ChartView.Series>
    </dxc:ChartView>
    
  • For RangeBarSeries, specify two ValueDataMember objects with Type set to High and Low:

    <dxc:ChartView>
        <dxc:ChartView.Series>
            <dxc:RangeBarSeries>
                <dxc:RangeBarSeries.Data>
                    <dxc:SeriesDataAdapter DataSource="{Binding OilPrices}" ArgumentDataMember="Month">
                        <dxc:ValueDataMember Type="High" Member="HighValue" />
                        <dxc:ValueDataMember Type="Low" Member="LowValue" />
                    </dxc:SeriesDataAdapter>
                </dxc:RangeBarSeries.Data>
            </dxc:RangeBarSeries>
        </dxc:ChartView.Series>
    </dxc:ChartView>
    
  • For BubbleSeries, specify two ValueDataMember objects with Type set to Value and Weight:

    <dxc:ChartView>
      <dxc:ChartView.Series>
        <dxc:BubbleSeries>
          <dxc:BubbleSeries.Data>
            <dxc:SeriesDataAdapter DataSource="{Binding HighestGrossingFilms}" ArgumentDataMember="Date">
                <dxc:ValueDataMember Type="Value" Member="Value" />
                <dxc:ValueDataMember Type="Weight" Member="WorldwideGrosses" />
            </dxc:SeriesDataAdapter>
          </dxc:BubbleSeries.Data>
        </dxc:BubbleSeries>
      </dxc:ChartView.Series>
    </dxc:ChartView>
    
See Also