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

Can not position item label in candlestick chart

1 Answer 84 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jim Coleman
Top achievements
Rank 1
Jim Coleman asked on 22 Dec 2010, 04:56 PM
I have a candlestick chart that is displaying the item labels just above the x axis.  I would like for the label to be displayed just above the high value mark for each item.  In addition if I could rotate the label 90 degrees that would be optimal.

From the ajax forum I found the following code  (I can not find the equivalent code for the Silverlight chart control to position item labels in a candlestick chart):

RadChart1.Series[0].Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside; 
 
RadChart1.Series[0].Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.BottomRight;  

A stripped down version of my code is the following:

RadChart radChart = new RadChart();
radChart.ItemsSource = seriesList;

SeriesMapping sm = new SeriesMapping();

ItemMapping imHigh = new ItemMapping("High", DataPointMember.High);
ItemMapping imLow = new ItemMapping("Low", DataPointMember.Low);
ItemMapping imOpen = new ItemMapping("Open", DataPointMember.Open);
ItemMapping imClose = new ItemMapping("Close", DataPointMember.Close);               
ItemMapping imXCategory = new ItemMapping("XCategory", DataPointMember.XCategory);
ItemMapping imLabel = new ItemMapping("Label", DataPointMember.Label); 

sm.ItemMappings.Add(imHigh);
sm.ItemMappings.Add(imLow);
sm.ItemMappings.Add(imOpen);
sm.ItemMappings.Add(imClose);
sm.ItemMappings.Add(imXCategory);
sm.ItemMappings.Add(imLabel);

CandleStickSeriesDefinition cssd = new CandleStickSeriesDefinition();

cssd.ShowItemLabels = true;

sm.SeriesDefinition = cssd;

radChart.SeriesMappings.Add(sm);



1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 23 Dec 2010, 04:44 PM
Hello Jim,

Unfortunately the current version of RadChart for Silverlight does not support item labels for Stick / CandleStick series. We will forward your feedback to our developers so they can consider it for one of the future releases of the control and you can vote for this feature in our public issue tracking system to raise its priority here.


Greetings,
Freddie
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Chart
Asked by
Jim Coleman
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or