Setting x-axis with out decimal
Setting x-axis with out decimal
Dear All:
I have a report chart in which when i assign data, if the value is less then 5 so the x-axis scale is display in decimal..
e.g
0 0.5 1 1.5 2 2.5
I want like this
0 1 2 3 4 5 etc
check the below picture
Regards
I have a report chart in which when i assign data, if the value is less then 5 so the x-axis scale is display in decimal..
e.g
0 0.5 1 1.5 2 2.5
I want like this
0 1 2 3 4 5 etc
check the below picture
Regards
- Attachments
-
- 1831.report.png (10.79 KiB) Viewed 1208 times
Setting x-axis with out decimal
Hello.
Please, set the Area - X Axis - Labels - Step property of the Chart to 1.
Thank you.
Please, set the Area - X Axis - Labels - Step property of the Chart to 1.
Thank you.
Setting x-axis with out decimal
Thank you very much .. it solve my problem.. 
but how can i set this X-Axis - Label - Step from the coding.. may be the quantity reach to 2000 so the step will be still one,, in this case i want to set it at run time, base on the quantity i have.
Regards

but how can i set this X-Axis - Label - Step from the coding.. may be the quantity reach to 2000 so the step will be still one,, in this case i want to set it at run time, base on the quantity i have.
Regards
Setting x-axis with out decimal
Hello.
Thank you.
Please try to use next code:soober wrote:Thank you very much .. it solve my problem..
but how can i set this X-Axis - Label - Step from the coding.. may be the quantity reach to 2000 so the step will be still one,, in this case i want to set it at run time, base on the quantity i have.
Code: Select all
StiChart chart = (rep.GetComponentByName("Chart1") as StiChart);
((Stimulsoft.Report.Chart.StiAxis)(((Stimulsoft.Report.Chart.StiAxisArea)(chart.Area)).XAxis)).Labels.Step = 2;
Setting x-axis with out decimal
Thank you very much .. It solve my problem 

Setting x-axis with out decimal
Hello,
Great!
Have a nice day!
Thank you.
Great!
Have a nice day!
Thank you.