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

marked Zone on a chart

7 Answers 108 Views
Chart
This is a migrated thread and some comments may be shown as answers.
scorp
Top achievements
Rank 1
scorp asked on 28 Mar 2011, 04:46 PM
I need dynamic marked zones on the chart based on the values of x and y axis similar to the attached image
http://img714.imageshack.us/f/51117882.jpg/
How do I go about this. Example code would be appreciated.
Thanks.

7 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 31 Mar 2011, 12:38 PM
Hello scorp,

Dynamic Marked Zones on the Chart is not currently possible. However your feedback was sent to our developers and they will decide whether and when this will be made in future.

Regards,
Evgenia
the Telerik team
0
scorp
Top achievements
Rank 1
answered on 31 Mar 2011, 02:49 PM
Is there are alternative. Can we have a StackedArea100 chart without the point marks visible on the chart along with the line chart.
Can I get an example if so on how to achieve this.
0
Evgenia
Telerik team
answered on 04 Apr 2011, 10:08 AM
Hello scorp,

You can use our 2D Stacked Area100 Chart as MarkedZone with turning off the Visibility of it's SeriesItemsLabels and PointMarks. You may follow our demo with full source code to achieve this.

However have in mind that the StackedArea100 Chart type should be added first so that it stands as Background to other Series (otherwise it will cover the Series you've added first as Chart is laying the Series one over another keeping the order by which they were created).

Regards,
Evgenia
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
scorp
Top achievements
Rank 1
answered on 08 Apr 2011, 10:11 PM
How can I have the last datapoint not truncated from the chart. Take a look at the image below to see what I am talking about.

http://img706.imageshack.us/img706/4514/88424872.jpg

I tried to put the AxisX.LayoutMode = AxisLayoutMode.Inside and the result is this:

http://img716.imageshack.us/img716/1703/insidep.jpg

Can you suggest something better. The line series acting as marked zones should ideally start from the left most of the chart all the way to the right.

Thanks.
0
Evgenia
Telerik team
answered on 13 Apr 2011, 09:04 AM
Hello scorp,

The issue you are facing is caused by the fact that the last datapoint of the Line Series (which you are using as MarkedZones) is on the same XValue as the green DataPoint you have on your Chart Area.
That's why no matter if you set the LayoutMode of the YAxis to Inside or Between the Line Series will always be cutted from left and right.
What I can suggest is that you set the Start XValue for the first PointMark of each Line Serie to 2006 and the end XValue to 2011 (currently they are 2007 and 2010). Then set the XAxis to start from 2007(MinValue) and end in 2010(MaxValue) with turning off the AutoRange property as described in our help topic.

Kind regards,
Evgenia
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
scorp
Top achievements
Rank 1
answered on 13 Apr 2011, 06:47 PM
That worked out pretty good. http://img685.imageshack.us/img685/8223/95806532.jpg
Now I need to make it look like : http://img816.imageshack.us/img816/6448/39614802.jpg
I was hoping to use the StackedArea100Series however from the demo you had suggested the viewmodel file is missing.

0
Evgenia
Telerik team
answered on 18 Apr 2011, 03:33 PM
Hello scorp,

You can find the full source code for our examples under your installation path - for example - C:\Program Files\Telerik\RadControls for Silverlight Q1 2011\Demos.

Greetings,
Evgenia
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
Tags
Chart
Asked by
scorp
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
scorp
Top achievements
Rank 1
Share this question
or