This is a migrated thread and some comments may be shown as answers.

How to set yaxis major gridline stlye for each axis item ?

3 Answers 42 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Muhamed Shafi
Top achievements
Rank 1
Muhamed Shafi asked on 08 Nov 2011, 07:59 AM
Hi,
       I am using a rad chart (type="Line") where I need to set major grid line style for each axis item in the y axis like, need to set different color for different grid lines and set visibility =false for some items etc. Is there a chance to do this ? I know there is a property to set the visibility or other styles for all the axis items in the y axis. But my need is to do the styling for individual items separately.
Thanks & Regards
Shafi

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Nov 2011, 10:02 AM
Hello Muhamed,

You can take a look into the following documentations.
Styling Chart Elements
Gridlines

Thanks,
Princy.
0
Muhamed Shafi
Top achievements
Rank 1
answered on 08 Nov 2011, 01:30 PM
Hi Princy,
    Thanks for the reply. But my requirement is to set styles for each y axis item separately. The given reference tells about general styles applicable to all y axis item. Please help.
Thanks
Shafi
0
Evgenia
Telerik team
answered on 10 Nov 2011, 10:28 AM
Hi Muhamed,

    There is no way that you can customize the Gridlines differently from one another. What I can suggest is that you use MarkedZones to achieve your scenario. Each MarkedZone can have different color. You may find the approach described in this forum post with sample code provided.

Kind regards,
Evgenia
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Chart (Obsolete)
Asked by
Muhamed Shafi
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Muhamed Shafi
Top achievements
Rank 1
Evgenia
Telerik team
Share this question
or