We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Chart gridlines and labels

I'm working on a simple column chart with one column representing a dimensional measurement (see screen shot in attached doc). As you can see I'm using a custom origin.

Is there a way to create custom gridlines with labels to the left where I can control their values (e.g. where they show up on the Y-axis), color, etc? I need to show the zero line (middle of the Y-axis), one upper measurement limit, one lower measurement limit and the upper and lower bounds of the chart.

Thanks.



Chart_86444ad2.zip

3 Replies

JB Jaffersathick B Syncfusion Team April 21, 2010 06:38 AM UTC

Hi Ken J Law Jr,


Thank you for using Syncfusion products.

We suggest you to create a custom Strip Line and customize the same and add it the PrimaryYaxis. This will show a line similar to the GridLine in chart.

Please refer the following documentation link:

http://help.syncfusion.com/ug_81/WindowsFormsUI_Chart/ChartStripLines.html


Let me know if you have any concerns.

Regards,
Jaffer.B



KJ Ken J Law Jr. April 22, 2010 12:51 PM UTC

Thank you.

Is there a way to label the strip line outside (to the left of) the grid?


JB Jaffersathick B Syncfusion Team April 27, 2010 04:52 AM UTC


Hi Ken J Law Jr,

Thanks for the update.

Stripe line text can be included inside the chart area only. We suggest you to make use of the TextAlignment to place the stripe line text in different position.

Please refer the following code snippet:

[CS]

stripLine.TextAlignment = ContentAlignment.BottomLeft;



Let me know if you have any concerns.

Regards,
Jaffer.B



Loader.
Live Chat Icon For mobile
Up arrow icon