Renko Chart - Axis Intervals and Brick Size/Amount

As per documentation on Syncfusion site - 
Automatic Range Calculation

The range and intervals for an axis are automatically calculated by the built-in nice range calculation engine, by default. This engine takes a raw data series and comes up with a nice human readable range of numbers in which to represent them. For example, if the data series contains points in the range 1.2 - 3.7, the engine would come up with a scale of 0 - 5 for the axis with 10 intervals of 0.5 each.

******************************************

I am working on Financial Charts. I have Daily Price values (Y Axis) as - {10, 10.05, 10.1, 10.14, 10.19, 10.22,........,11.5, 11.67,11.7}

Issue 1: The chart is not displaying intervals as mentioned in documentation given above. Also, i am not able to set chartControl1.PrimaryYAxis.DesiredIntervals to 0.25 or 0.5 as it requires integer value. Please see attached image.

Kindly guide on property that should be set to change the intervals based on the Y axis values.


Issue 2: Documentation says -

Renko Chart

Renko charting method is thought to have acquired its name from renga which is the Japanese word for bricks. Renko Charts were introduced by Steve Nison. Renko (Bricks) are drawn equal in size for a determined amount. A brick is drawn in the direction of the prior move only if prices move by a minimum amount. If prices change by the determined amount or more, a new brick is drawn. 

************************************************

Bricks are drawn equal in size for determined amount. How is the Brick Size/amount calculated? Is there property to get/know the Brick Size(Amount) and if we can set to fixed value/percent based on the Price values?


Thank you.




Attachment: RenkoChartIssue_5660d5a5.zip

4 Replies

SJ Suyamburaja Jayakumar Syncfusion Team April 8, 2020 06:52 PM UTC

Hi Rizwan, 
 
Greetings from Syncfusion. 
 
Currently we are validating the reported query and we will update the complete status on or before April 9, 2020. 
 
Regards, 
Suyamburaja J 



SJ Suyamburaja Jayakumar Syncfusion Team April 10, 2020 03:06 AM UTC

Hi Rizwan, 
 
Greetings from Syncfusion. 
 
Query1: I am not able to set chartControl1.PrimaryYAxis.DesiredIntervals to 0.25 or 0.5 as it requires integer value. 
 
We would like to let you know that, DesiredIntervals property is used to draw tick lines in chart. Is not used to set interval. Based on the data point and no of tick line the interval will be calculated automatically. 
 
C#: 
this.chartControl = new Syncfusion.Windows.Forms.Chart.ChartControl(); 
            this.tabControl = new System.Windows.Forms.TabControl(); 
            this.SuspendLayout(); 
  . . . . .  
            BindingList<SalesData> dataSource = new BindingList<SalesData>(); 
            dataSource.Add(new SalesData("1999", 10)); 
            dataSource.Add(new SalesData("2000", 10.05)); 
            . . . .  
            dataSource.Add(new SalesData("2015", 11.5)); 
            dataSource.Add(new SalesData("2014", 11.67)); 
            dataSource.Add(new SalesData("2015", 11.70)); 
            CategoryAxisDataBindModel dataSeriesModel = new CategoryAxisDataBindModel(dataSource); 
            dataSeriesModel.CategoryName = "Year"; 
            dataSeriesModel.YNames = new string[] { "SalesOne"}; 
 
            this.chartControl.PrimaryXAxis.ValueType = ChartValueType.Category; 
            this.chartControl.PrimaryYAxis.ValueType = ChartValueType.Double; 
            this.chartControl.PrimaryYAxis.DesiredIntervals = 20; 
 
            ChartSeries series = new ChartSeries(); 
            series.Type = ChartSeriesType.Renko; 
            series.CategoryModel = dataSeriesModel; 
            this.chartControl.Series.Add(series); 
 
            this.chartControl.Dock = System.Windows.Forms.DockStyle.Fill; 
            this.chartControl.Size = new System.Drawing.Size(800, 700); 
            this.Controls.Add(chartControl); 
 
 
 
Screenshot: 
 
 
Query2: Bricks are drawn equal in size for determined amount. How is the Brick Size/amount calculated? Is there property to get/know the Brick Size (Amount) and if we can set to fixed value/percent based on the Price values? 
 
Time and volume are not included here for their size calculation. By default, bricks are kept in same size. If that size is 10 points and price increased by 20 points, then two bricks are drawn. 
 
Please let us know if you need any further assistance.     
 
Regards, 
Suyamburaja J.  



SK Senthuran K March 21, 2023 06:18 AM UTC

Is there any way to implement the Renko chart in flutter



NM Nanthini Mahalingam Syncfusion Team March 22, 2023 07:33 AM UTC

Hi Sethuran K,


We have analyzed your query and would like to inform you that you have successfully created a new forum for Renko chart in flutter. Therefore, you can follow that forum branch. As a result, we will mark this issue as resolved.

Need Information regarding Renko Chart | Flutter Forums | Syncfusion


Regards,

Nanthini Mahalingam.


Loader.
Up arrow icon