Stock chart X axis label

Hi!

Is there a way to set X axis time interval "resolution" for stock chart? What I mean is to show monthly/daily/hourly labels. Or show a label for each data point in the chart?

Thank you!

5 Replies 1 reply marked as answer

KR Kristof April 9, 2021 10:03 AM UTC

What I've tried so far (but does not seem to have any effect):

<StockChartAxes>
  <StockChartPrimaryXAxis IntervalType="IntervalType.Days" Interval="20" />
</StockChartAxes>


SM Srihari Muthukaruppan Syncfusion Team April 12, 2021 06:20 AM UTC

Hi Kristof, 
 
Based on the provided code snippet we would like to let you know that StockChartAxes tag is only used for the secondary axes and not for the primary X-Axis in it. Based on your requirement we have prepared a sample for your reference in which we have used LabelFormat property in the primary X-Axis to display the labels in monthly/daily/hourly format as requested. Please find the sample, code snippet and screenshot below. 
 
 
Code Snippet: 
// add your additional code here 
<SfStockChart Title="Multiple Series" IndicatorType="@Indicators"> 
            <StockChartPrimaryXAxis LabelFormat="MMM/dd/hh:mm:ss" Interval="20" IntervalType="IntervalType.Days" > 
            </StockChartPrimaryXAxis>  
            <StockChartSeriesCollection> 
                <StockChartSeries DataSource="@DataSource" Type="ChartSeriesType.Line" XName="x" YName="close" Name="Apple"> 
                </StockChartSeries> 
            </StockChartSeriesCollection> 
</SfStockChart> 
// add your additional code here 
 
 
Screenshot: 
 
 
We have also attached the UG link for using multiple axis in stock chart for further reference. 
 
 
Regards, 
Srihari 


Marked as answer

KR Kristof April 12, 2021 03:00 PM UTC

Thanks. Exactly what I was looking for. 
Is there something similar for the labels on the range/perion selector (inside StockChart)?


SM Srihari Muthukaruppan Syncfusion Team April 13, 2021 09:23 AM UTC

Hi Kristof, 
 
Sorry for the inconvenience. 
 
As of now we do not have support to achieve your requirement. Hence we have considered the reported scenario as an improvement and logged a feature request for this. This feature will be available in our volume 1 sp1 2021 release which is expected to be rolled by the mid of May 2021. We appreciate your patience until then. You can keep track of the feature request from the feedback portal below.  
  
   
The provided feedback link is private, and you need to login to view this feedback. If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.  
 
Regards, 
Srihari 



SM Srihari Muthukaruppan Syncfusion Team May 17, 2021 07:51 AM UTC

Hi Kristof, 
  
We are glad to announce that our Essential Studio 2021 Volume 1 Service pack release v19.1.0.63  is rolled out and is available for download under the following link. 
  
 
 
Screenshot: 
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
  
Regards,  
Srihari M 


Loader.
Up arrow icon