prabhat Posted January 16, 2008 Report Share Posted January 16, 2008 Hi All, I have a requirement, where I need to draw horizontal reference axis in the Bar graphs. I am not able to get the much required code for it. Can any one help me in this regard. Thanks, Prabhat Joshi Link to comment Share on other sites More sharing options...
maximop Posted January 17, 2008 Report Share Posted January 17, 2008 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 More sharing options...
prabhat Posted January 17, 2008 Author Report Share Posted January 17, 2008 I did not find a customgrid class. can you please tell me, which namespace,will I find that in. Thank you for the help provided. Link to comment Share on other sites More sharing options...
maximop Posted January 17, 2008 Report Share Posted January 17, 2008 You need to have the ChartFX.WebForms; namespace set; otherwise, you will need to specify the full qualified name. Link to comment Share on other sites More sharing options...
prabhat Posted January 17, 2008 Author Report Share Posted January 17, 2008 I have Chart FX 6.2. Does Chart FX 6.2 support customGridline? Again thank you for your timely help. Thanks, Prabhat Joshi Link to comment Share on other sites More sharing options...
prabhat Posted January 17, 2008 Author Report Share Posted January 17, 2008 Hi Maximop, I got the solution by this line of code; <ConstantLines><ChartFX:ConstantLine Axis=Y Text="testing" Value=25 Color=red /></ConstantLines> I added this line in bthe Design time of the chart building. Thanks, Prabhat Joshi Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.