FSzymanski Posted December 2, 2011 Report Share Posted December 2, 2011 I have stumbled across two errors in the .NET control. I am using version 7.0.4259.29043 If you only have values of 0 and the Y Axis is set to "Auto" for min and max, the Y Axis will not display any labels at all. Similarly, if you only have a single X Axis value and the min and max are set to Auto, the X Axis will not have any labels. When I set a DataTable as the DataSource and remove the Axis context menu, right clicking an axis item gives me an exception. I used the following code to reproduce the issue: chart1.Data.Clear(); DataTable table = new DataTable(); table.Columns.Add("enc_timestamp", typeof(DateTime)); table.Columns.Add("value", typeof(double)); DataRow row = table.NewRow(); row["enc_timestamp"] = DateTime.Now.AddDays(-60); row["value"] = 5.0; table.Rows.Add(row); row = table.NewRow(); row["enc_timestamp"] = DateTime.Now.AddDays(-30); row["value"] = 25.0; table.Rows.Add(row); row = table.NewRow(); row["enc_timestamp"] = DateTime.Now; row["value"] = 75.0; table.Rows.Add(row); chart1.DataSourceSettings.DataSource = table; chart1.Commands[(int)CommandId.ContextMenuAxis].SubCommands.Clear(); 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.