Jump to content
Software FX Community

Two errors in Chart FX 7


FSzymanski

Recommended Posts

 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();

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...