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

Render a telerik chart on a canvas

2 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff Kershner
Top achievements
Rank 1
Jeff Kershner asked on 20 Jul 2010, 06:04 PM
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 Answers, 1 is accepted

Sort by
0
Jeff Kershner
Top achievements
Rank 1
answered on 20 Jul 2010, 06:34 PM
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?

0
Giuseppe
Telerik team
answered on 21 Jul 2010, 05:02 PM
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
Tags
General Discussions
Asked by
Jeff Kershner
Top achievements
Rank 1
Answers by
Jeff Kershner
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or