Jump to content
Software FX Community

How do I set a horizontal reference lines in a bar graph.


prabhat

Recommended Posts

If you are trying to draw custom horizontal lines, what you need is to add CustomGridLines to the chart. You can do the following to add a horizontal line:

 CustomGridLine custom1 = new CustomGridLine();

custom1.Value = 3;

custom1.Color = System.Drawing.Color.DarkBlue;custom1.Text = "CustomGridLine 1";

custom1.Width = 2;

Chart1.AxisY.CustomGridLines.Add(custom1);

For more information about CustomGridLine, please refer to the Samples and Resource Center (Documentation installed with the product). There is a sample provided specific to this class.

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...