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

Custom gridlines on chart

3 Answers 105 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Oner
Top achievements
Rank 1
Oner asked on 14 Oct 2010, 10:50 PM
Hello every one, I have a problem with axis gridlines. In my project I need to draw custom gridlines on the chart. On the chart I have to draw those gridlines that I calculated. I tried ArrayList, List, Array for each lines but I could not succeeded. Each line calculated simultaneusly.

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 20 Oct 2010, 11:49 AM
Hello Oner,

Currently the RadChart for WinForms doesn't support custom grid lines. This feature is available in our WPF and Silverlight RadChart. You can see it in action in our demo here.
I hope this information helps.

Regards,
Yavor Ivanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael
Top achievements
Rank 1
answered on 11 Oct 2011, 05:06 PM
Hi Yavor

I need your help on this matter:
For current WPF project I must create a report with an embedded Chart which must display horizontal gridlines (corresponding to Y axis) for certain values (not major or minor gridlines!). Please see attached file.

Short explanations: on X axis: time, on Y axis: weight (kg)

After one working day I couldn't find any solution.
Any help will be appreciated (an example would be great).

Thanks a lot!!
Dan
0
Yavor
Telerik team
answered on 12 Oct 2011, 09:46 AM
Hi Dan,

You can use RadChart custom GridLine functionality which allows you to display grid lines (both horizontal and vertical) on any value you want. Here is a small example:

<telerik:RadChart Name="radChart">
    <telerik:RadChart.DefaultView>
        <telerik:ChartDefaultView>
            <telerik:ChartDefaultView.ChartArea>
                <telerik:ChartArea>
                    <telerik:ChartArea.Annotations>
                        <telerik:CustomGridLine YIntercept="150"
                                     Stroke="Red"
                                     StrokeThickness="2" />
                    </telerik:ChartArea.Annotations>
                </telerik:ChartArea>
            </telerik:ChartDefaultView.ChartArea>
        </telerik:ChartDefaultView>
    </telerik:RadChart.DefaultView>
    ...
</telerik:RadChart>
You can find more information on custom GridLines in our online help system here.

If you have any other questions about RadChart for WPF please ask them in the proper category. This way other people that have similar problems can help you too.

All the best,
Yavor
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
Chart (obsolete as of Q1 2013)
Asked by
Oner
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Michael
Top achievements
Rank 1
Share this question
or