Can not position item label in candlestick chart

2 posts, 0 answers
  1. Jim Coleman
    Jim Coleman avatar
    2 posts
    Member since:
    May 2010

    Posted 22 Dec 2010 Link to this post

    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); 


    CandleStickSeriesDefinition cssd = new CandleStickSeriesDefinition();

    cssd.ShowItemLabels = true;

    sm.SeriesDefinition = cssd;


  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 23 Dec 2010 Link to this post

    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.

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top