We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Got fuzzy technical indicator line when using CategoryAxis (XAxis)

Thread ID:

Created:

Updated:

Platform:

Replies:

124206 May 24,2016 03:13 PM UTC May 26,2016 09:20 AM UTC UWP 3
loading
Tags: SfChart
William Wang
Asked On May 24, 2016 03:13 PM UTC

A basic stock chart.
// Chart XAML
<chart:SfChart x:Name="Chart" TechnicalIndicators="{x:Bind IndicatorsCollection}">       
        <chart:SfChart.RowDefinitions>
            <chart:ChartRowDefinition Height="2"/>
            <chart:ChartRowDefinition Height="6" />
        </chart:SfChart.RowDefinitions>      

        <chart:SfChart.Behaviors>
            <chart:ChartCrossHairBehavior />
        </chart:SfChart.Behaviors>

        <chart:SfChart.PrimaryAxis>
            <common:PrettyLabelSfChartCategoryAxis DataContext="{x:Bind ViewModel.StockBars, Mode=OneTime}"  />
        </chart:SfChart.PrimaryAxis>

        <chart:FastCandleBitmapSeries ItemsSource="{x:Bind ViewModel.StockBars}" XBindingPath="Time" High="High" Low="Low" Open="Open" Close="Close" >
            <chart:FastCandleBitmapSeries.YAxis>
                <chart:NumericalAxis chart:ChartBase.Row="1" RangePadding="None" OpposedPosition="True" />
            </chart:FastCandleBitmapSeries.YAxis>
        </chart:FastCandleBitmapSeries>

        <chart:FastColumnBitmapSeries Interior="#7F7F7F" ItemsSource="{x:Bind ViewModel.StockBars}" XBindingPath="Time" YBindingPath="VolumeMillion" >
            <chart:FastColumnBitmapSeries.YAxis>
                <chart:NumericalAxis chart:ChartBase.Row="0" RangePadding="None" OpposedPosition="True"  />
            </chart:FastColumnBitmapSeries.YAxis>
        </chart:FastColumnBitmapSeries>
</Chart:SfChart>

// Indicator adding
foreach (var i in maPeriods)
{
    var indicator = new SimpleAverageIndicator()
     {
           Period = i,
           ItemsSource = ViewModel.StockBars,
                    XBindingPath = "Time",
                    Low = "Low",
                    High = "High",
                    Open = "Open",
                    Close = "Close"
      };
      IndicatorsCollection.Add(indicator);
}

// Please see the attached screen picture.


Couple questions:
1. How can we draw a smooth indicator line when using CategoryAxis?

2. I am not sure whether there is a bug in the SfChart.RowDefinitions. Like the code above, I have only to define the chart:ChartRowDefinition + Height + chart:ChartBase.Row (in such strange order) all reversed to get the multiple area display properly which is Candle area on top Volume area at the bottom.

3. About the candle color. Are we able to draw a candle like the one in the attached file?  Which is just one pixel as the border, all left are transparent, 

Thanks,
William


Attachment: screen2_2f65c494.zip

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On May 25, 2016 01:25 PM UTC

Hi William, 
  
Thanks for contacting Syncfusion Support. 
  
Query 1: How can we draw a smooth indicator line when using CategoryAxis? 
We have considered “fuzzy indicator line” as  defect and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.   
  
  
Query 2: Regarding the ChartRowDefinition arrangement 
SfChart’s ChartRowDefinition behavior to render the rows from bottom to top like it starts to render  row from the bottom. 
  
Query 3: About the candle color customization 
Please confirm as whether the below hollow candle chart is your requirement. 
 
 
  
Regards, 
Devi M 
  
  


William Wang
Replied On May 25, 2016 01:40 PM UTC

Hi William, 
  
Thanks for contacting Syncfusion Support. 
  
Query 1: How can we draw a smooth indicator line when using CategoryAxis? 
We have considered “fuzzy indicator line” as  defect and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.   
  
  
Query 2: Regarding the ChartRowDefinition arrangement 
SfChart’s ChartRowDefinition behavior to render the rows from bottom to top like it starts to render  row from the bottom. 
  
Query 3: About the candle color customization 
Please confirm as whether the below hollow candle chart is your requirement. 
 
 
  
Regards, 
Devi M 
  
  


Yeah. Exactly what I expected except that line width in the middle line (high/low) is twice the weight compare to body rectangle border?
  
Query 3: About the candle color customization 
Please confirm as whether the below hollow candle chart is your requirement. 
 
  

Rachel A [Syncfusion]
Replied On May 26, 2016 09:20 AM UTC

Hi William, 
  
Thanks for the update. 
  
We have considered the hollow candle chart requirement as a feature and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.    

  
Regards, 
Rachel. A 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;