Page 1 of 1
Setting x-axis with out decimal
Posted: Tue May 15, 2012 11:30 am
by soober
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
Setting x-axis with out decimal
Posted: Wed May 16, 2012 2:36 am
by HighAley
Hello.
Please, set the Area - X Axis - Labels - Step property of the Chart to 1.
Thank you.
Setting x-axis with out decimal
Posted: Wed May 16, 2012 3:37 am
by soober
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
Setting x-axis with out decimal
Posted: Thu May 17, 2012 2:40 am
by HighAley
Hello.
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.
Please try to use next code:
Code: Select all
StiChart chart = (rep.GetComponentByName("Chart1") as StiChart);
((Stimulsoft.Report.Chart.StiAxis)(((Stimulsoft.Report.Chart.StiAxisArea)(chart.Area)).XAxis)).Labels.Step = 2;
Thank you.
Setting x-axis with out decimal
Posted: Sun May 20, 2012 4:08 am
by soober
Thank you very much .. It solve my problem
Setting x-axis with out decimal
Posted: Sun May 20, 2012 11:11 pm
by Andrew
Hello,
Great!
Have a nice day!
Thank you.