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

How to create a baseline/target chart

2 Answers 114 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 26 Oct 2010, 03:23 PM
Good day everyone.

Is there a way to create a baseline chart, like the attached image?

I managed to create a marked-zone chart, but we would like a single line instead of a painted area.

Thank you.

Iván.

2 Answers, 1 is accepted

Sort by
0
Accepted
Evgenia
Telerik team
answered on 29 Oct 2010, 12:30 PM
Hi Ivan,

There are two approaches you can choose from to create the baseline:
1. Use Line Series. Just disable their label appearance. 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.

2. 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="red"
                Appearance-Border-Width="1.5"
                <Appearance FillStyle-MainColor="green"
                </Appearance
            </telerik:ChartMarkedZone>
</MarkedZones>

All the best,
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
Ivan
Top achievements
Rank 1
answered on 29 Oct 2010, 03:57 PM
Thank you very much for your help.
Tags
Chart (Obsolete)
Asked by
Ivan
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Ivan
Top achievements
Rank 1
Share this question
or