Render a telerik chart on a canvas

3 posts, 0 answers
  1. Jeff Kershner
    Jeff Kershner avatar
    62 posts
    Member since:
    Aug 2009

    Posted 20 Jul 2010 Link to this post

    I have a non-telerik silverlight 4 application and I would like to render several telerik charts on different canvas that animate in a slideshow like fashion.

    I am able to handle everything except how to render a telerik chart on a canvas.  How would I go about doing that?
    Thanks!
  2. Jeff Kershner
    Jeff Kershner avatar
    62 posts
    Member since:
    Aug 2009

    Posted 20 Jul 2010 Link to this post

    public bool Initialize()
    {
        canvas = new Canvas();
        canvas.Width = 440.0;
        canvas.Height = 260.0;
      
        RadChart chart = new RadChart();
        chart.Height = 260.0;
        chart.Width = 440.0;
      
        canvas.Children.Add(chart);
      
        Canvas parentCanvas = page.BottomRightCanvas;
        parentCanvas.Children.Add(canvas);
      
        return true;
    }

    This is what I currently have.  I get a blank chart on an canvas.  How do I determine the chart type and connect to a data table?

  3. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 21 Jul 2010 Link to this post

    Hello Jeff,

    We would suggest you to review the help articles here that discuss how to populate RadChart with data either manually or through databinding.

    Hope this helps.


    All the best,
    Freddie
    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
Back to Top