This is a migrated thread and some comments may be shown as answers.
add markedzones to series
3 Answers 36 Views
This is a migrated thread and some comments may be shown as answers.
Prasanna
Top achievements
Rank 1
Prasanna asked on 24 Sep 2010, 03:53 AM
Hi,
I know i can add markedzones to a chart. but just wondering if it is possible to add a markedzone to a series.

this works fine =>   chart.PlotArea.MarkedZones.Add(mz1);

but this will give an error =>   series[i].PlotArea.MarkedZones.Add(mz1);

Thanks

3 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 29 Sep 2010, 04:00 PM
Hi Prasanna,

Thank you for contacting us.
Presently RadChart doesn't provide such a feature - marked zones for Series. Can you please supply some additional details on your setup/requirement? How is the marked zone going to be defined? 
In what cases/scenarios is this going to be used? Any additional information will help us better address the question at hand.

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
Prasanna
Top achievements
Rank 1
answered on 29 Sep 2010, 11:58 PM
Hey Evgenia ,

I can understand that RadChart does not provide the feature I wanted. but FYI, scenario I'm having is,

I'm trying to plot some test results in to the graph. There are number of Chemical Elements in the solution we are testing. in this case each element is a series because we are plotting all history readings to the chart. (I'll be attaching a image of a chart with what i want drawn on it.)

So each of these elements has it's own maximum, minimum and average recommended zones. The request is to plot these limits on the graphs as lines (not as colored zones). but the trick is each series has it's own limits. so i wanted to plot these limits as lines on same color as series color.

hope this does make sense to you

Cheers
Prasanna
0
Accepted
Evgenia
Telerik team
answered on 30 Sep 2010, 03:30 PM
Hi Prasanna,

Thank you for your explanation and attached picture. Now I understand why you needed marked zones for series. I suggest you two approaches to complete your scenario:
  1.  Use Marked Zones but make their start value and end value equal. After that you can customize it's border as it will be the onliest thing you will see. Here is shown a sample:

<MarkedZones>
            <telerik:ChartMarkedZone ValueStartY="2" ValueEndY="2" Appearance-Border-Color="Blue"
                Appearance-Border-Width="1.5" Appearance-Border-PenStyle="Dash">
                <Appearance FillStyle-MainColor="green">
                </Appearance>
            </telerik:ChartMarkedZone>
</MarkedZones>
   2.  Use Line Series as bridle for your recommended zones. Just disable their label appearance and set FillStyle-MainColor to be the same as those used for original LineSeries. Here is a sample:
<Series>
        <telerik:ChartSeries Name="series 1" Type="Line" Appearance-FillStyle-MainColor="red"
            Appearance-LabelAppearance-Visible="false">
            <Items>
                <telerik:ChartSeriesItem YValue="4" XValue="0" />
                <telerik:ChartSeriesItem YValue="4" XValue="1" />
                <telerik:ChartSeriesItem YValue="4" XValue="2" />
                <telerik:ChartSeriesItem YValue="4" XValue="3" />
                <telerik:ChartSeriesItem YValue="4" XValue="4" />
            </Items>
        </telerik:ChartSeries>
    </Series>

Note that YValue is constant. It defines where your Line will be positioned.

I hope this information helps.

Best wishes,
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
Asked by
Prasanna
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Prasanna
Top achievements
Rank 1
Share this question
or