<Grid>
<Grid.DataContext>
<local:TestingValuesCollection />
</Grid.DataContext>
<Grid.Resources>
<chart:NumericalAxis x:Key="yAxis" OpposedPosition="True"/>
</Grid.Resources>
<chart:SfChart x:Name="FastHiloOpenClose"
AreaBorderThickness="0,1,1,1"
AreaBorderBrush="DarkGray"
HorizontalAlignment="Center"
Margin="10">
..
<chart:SfChart.PrimaryAxis>
<chart:DateTimeCategoryAxis LabelFormat="dd/MMM" x:Name="axis1"
Header="Product ID">
</chart:DateTimeCategoryAxis>
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis RangePadding="Round"
Header="Price in USD"
Interval="10"
Minimum="0"
Maximum="70"/>
</chart:SfChart.SecondaryAxis>
<chart:FastCandleBitmapSeries ItemsSource="{Binding ChartData}"
XBindingPath="X"
High="High"
Low="Low"
Open="Open"
Close="Close"
BullFillColor="Green"
BearFillColor="Red" />
<!--Customerize the indicator by setting the user defined formula calculation value to the FastLine series ItemsSource-->
<chart:FastLineSeries ItemsSource="{Binding IndicatorValues}"
XBindingPath="XValue"
YBindingPath="YValue"
Interior="Blue"
YAxis="{StaticResource yAxis}"/>
<chart:SfChart.TechnicalIndicators>
<chart:MACDTechnicalIndicator XBindingPath="X"
High="High"
Low="Low"
Open="Open"
Close="Close"
ItemsSource="{Binding ChartData}"
YAxis="{StaticResource yAxis}">
</chart:MACDTechnicalIndicator>
</chart:SfChart.TechnicalIndicators>
</chart:SfChart>
</Grid> |
Any advise on what I'm missing?
<sfchart:SfChart x:Name="CandleChart" Margin="10,0,10,10" >
<sfchart:SfChart.PrimaryAxis>
<sfchart:DateTimeAxis ShowTrackBallInfo="True" LabelsIntersectAction="Auto" LabelFormat="dd/MM/yyyy - hh:mm"/>
</sfchart:SfChart.PrimaryAxis>
<sfchart:SfChart.SecondaryAxis>
<sfchart:NumericalAxis RangePadding="Round"/>
</sfchart:SfChart.SecondaryAxis>
..
<!--Charts-->
<sfchart:FastCandleBitmapSeries Foreground="{StaticResource ForegroundColor}" ItemsSource="{Binding Candles}"
BearFillColor="Red" BullFillColor="Green" XBindingPath="Date"
Open="Open" High="High" Low="Low" Close="Close">
<sfchart:FastCandleBitmapSeries.YAxis>
<sfchart:NumericalAxis x:Name="indicatorAxis" OpposedPosition="True" Header="Test"/>
</sfchart:FastCandleBitmapSeries.YAxis>
</sfchart:FastCandleBitmapSeries>
<sfchart:FastLineSeries x:Name="Line1Chart" Interior="Green"
ItemsSource="{Binding Line1Points}" XBindingPath="Date" YBindingPath="Value">
</sfchart:FastLineSeries>
<sfchart:SfChart.TechnicalIndicators>
<sfchart:BollingerBandIndicator ItemsSource="{Binding Candles}"
XBindingPath="Date"
YAxis="{Binding ElementName=indicatorAxis}"
Open="Open" High="High" Low="Low" Close="Close"/>
</sfchart:SfChart.TechnicalIndicators>
</sfchart:SfChart>
|