Is it possible to add a dotted line with a label in the middle of a bar chart? I want to represent a threshold using a dotted line across the barchart so that the user can see which entries are above a certain number.
Thanks,
2 Answers, 1 is accepted
0
Dessy
Telerik team
answered on 17 Mar 2009, 03:32 PM
Hi Randy,
In order to create a dotted line,you can use a marked zone with values for ValueStartX , ValueEndX and ValueStartY, ValueEndY properties. Then use its border to specify the line color and style. Unfortunately this method does not provide labels option outside the marked zone.
Here is an example:
<PlotArea>
<MarkedZones>
<telerik:ChartMarkedZone Name="Marked zone 1"ValueEndX="100"ValueStartX="0" ValueStartY="20" ValueEndY="20">
<Appearance>
<Border Color="Blue"PenStyle="Dot"Width="2"/>
</Appearance>
</telerik:ChartMarkedZone>
</MarkedZones>
</PlotArea>
Alternatively , you can add a line series with constant values and set its appearance as shown below. This way you will have a designated legend item.