2 questions about candle bar

Q1:

How to set width of candle bar on a chart?


Q2:

How to set span between 2 candle bars?



1 Reply

DD Devakumar Dhanapoosanam Syncfusion Team February 28, 2022 02:02 PM UTC

Hi UMLer, 
 
Q1: How to set width of candle bar on a chart? 
 
You can set the candle bar width using the ColumnFixedWidth property as per the below code example. 
 
this.chartControl1.ColumnWidthMode = ChartColumnWidthMode.FixedWidthMode; 
this.chartControl1.ColumnFixedWidth = 40; 
 
 
Q2: How to set span between 2 candle bars? 
 
The Spacing property of ChartControl can used to set the spacing between the candle bars as shown in below code. 
 
this.chartControl1.Spacing = 60; 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Devakumar D 


Loader.
Up arrow icon