Increase Axis Label Space On Winform Chart

Hi,


I have a candlestick chart on winform. However when I plot for a stock that trades in values of 5 digits, the Y axis lables does not show the price info fully. Attached the image which shows the Y axis values are truncated / not visible. Please suggest how can I increase the sace for the label so that the full price labels show up.


NOTE: My Y axis in inversed.



Thanks,

Amit


1 Reply

YP Yuvaraj Palanisamy Syncfusion Team August 4, 2021 09:23 AM UTC

Hi Amitabha, 
 
Greetings from Syncfusion.

We have analyzed your query and you can resolve the reported problem “Crosshair label and axis label are cut-off in Opposed position of axis” by setting of ChartAreaMargin property of chart. Please find the code example below.
 
 
CodeSnippet: 
this.chartControl1.PrimaryYAxis.ShowCrosshairTooltip = true; 
this.chartControl1.PrimaryYAxis.Inversed = true; 
this.chartControl1.PrimaryYAxis.RoundingPlaces = 4; 
this.chartControl1.ChartAreaMargins = new ChartMargins(0, 0, 40, 0); 
 
Output: 
 

Regards,
 
Yuvaraj. 


Loader.
Up arrow icon