jpatracar Posted November 11, 2010 Report Share Posted November 11, 2010 Hello, I'm creating a new report where it will show in AxisX months (month and year) and AxisY currency values. The query throws me this information: Fecha Saldo 01/04/2010 138 01/05/2010 164 So basically what I do in chartFX is set the format I want to show to the user and display the information but I'm having problems with the second month (the label is not being shown). This is the code Im using for the AxisX (I believe I'm missing something) //AxisX format ChartFX.WinForms.AxisX x = this.chart1.AxisX; x.DataFormat.Format = ChartFX.WinForms.AxisFormat.Date; x.Step = 30; x.DataFormat.CustomFormat = "MM" + Application.CurrentCulture.DateTimeFormat.DateSeparator + "yyyy"; x.Style = ChartFX.WinForms.AxisStyles.AutoScale; x.LabelsFormat.CustomFormat = x.DataFormat.CustomFormat; x.LabelAngle = 90; x.Visible = true; I'm also using Data.Compact but I believe this is not required since the information I am sending is already compacted? Any ideas are appreciated Thanks, Quote Link to comment Share on other sites More sharing options...
CarlosAC Posted December 1, 2010 Report Share Posted December 1, 2010 Hi jpatracar Please try removing the Step property (x.Step = 30). Note that the difference of both dates are 31 days and not 30. Carlos Chaves Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.