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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...