don't display legend for CandleStick

3 posts, 1 answers
  1. Mike
    Mike avatar
    9 posts
    Member since:
    Jun 2009

    Posted 25 Jun 2009 Link to this post

    Is there a way to setup a CandleStick chart to not display a legend?
    Thanks,
    Mike
  2. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 01 Jul 2009 Link to this post

    Hi Mike,

    You can achieve the desired functionality like this:

    DataSeries series = new DataSeries(); 
    series.Definition = new CandleStickSeriesDefinition(); 
    series.Add(new DataPoint() { Open = 10, Close = 30, Low = 5, High = 35 }); 
    series.Add(new DataPoint() { Open = 30, Close = 20, Low = 20, High = 45 }); 
     
    RadChart1.DefaultView.ChartArea.DataSeries.Add(series); 
    RadChart1.DefaultView.ChartLegend.Visibility = System.Windows.Visibility.Collapsed; 


    Hope this helps.


    Regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Mike
    Mike avatar
    9 posts
    Member since:
    Jun 2009

    Posted 01 Jul 2009 Link to this post

    Works great. Thanks.
Back to Top