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

Small line in bar chart

1 Answer 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sander van Uden (JW)
Top achievements
Rank 1
Sander van Uden (JW) asked on 04 Sep 2012, 03:16 PM
Hi all,

I'm trying to create a small line in a bar chart.
I've tried to use a marked zone but this creates a line over the whole of the chart.

I only need a line across a small part of the chart.

Attached are screenshot of how i would like it to work and how it looks right now.

ChartMarkedZone mZone = new ChartMarkedZone();
 
mZone.ValueStartY = 90;
mZone.ValueEndY = 90;
mZone.Appearance.Border.Color = Color.Red;
mZone.Appearance.Border.Width = 2;
 
chart_overzichtAantallen.PlotArea.MarkedZones.Add(mZone);

1 Answer, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 10 Sep 2012, 04:44 PM
Hi,

Please, consider setting both the X and Y values. For example:

chartMarkedZone1.ValueStartX = 0;
chartMarkedZone1.ValueEndX = 2;
chartMarkedZone1.ValueEndY = 79;
chartMarkedZone1.ValueStartY = 81;

Another solution is to use a Line series with 2 items which will mark the start and the end point of the line.

Hope this helps.

Regards,
Chavdar
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Sander van Uden (JW)
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Share this question
or