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

Custom grid line?

1 Answer 60 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 25 Oct 2012, 10:59 AM
Hi,
I need to draw a custom grid line (to mark a border value) in my grid. Is this possible with the ASP.NET AJAX version of the Chart control? I want to do something like this: http://www.telerik.com/help/silverlight/radchart-features-annotations-custom-gridline.html

I would like my chart to look something like the attached image.

Im using version 2011.3.1115.35.


Regards,
Martin

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Kirov
Telerik team
answered on 26 Oct 2012, 03:12 PM
Hi Martin,

Although the ASP RadChart does not provide a direct analogue of the custom grid line from the SL/WPF RadChart, you can achieve a similar effect using marked zones. Here is an example:

RadChart1.PlotArea.MarkedZones.Add(
    new ChartMarkedZone { ValueStartY = 10, ValueEndY = 11 } );

PlotArea MarkedZones are ranges that can be labeled and filled to highlight areas of the chart or to visually group data. The MarkedZones property is displayed by default behind the chart series. You can create any number of members for the MarkedZones collection and each marked zone is defined by a starting and ending X and Y value pairs. You can also control the labeling and appearance for each zone independently. 

Regards,
Petar Kirov
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
Martin
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or