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

Size of chart

2 Answers 44 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Grtjn
Top achievements
Rank 1
Grtjn asked on 10 Mar 2010, 09:24 AM
Hi all,

I hope someone out there knows the answer to my problem!

I have created a project with two charts onto a stackpanel.
Everything is fine, the correct data is shown and so on.

Now when I run this project and minimize my window, the charts' sizes remain the same! (see attached image)
Is it possible to have the charts minimize as well?
Fact is when I have only one chart in my project, the charts minimizes with the window...

Plz help!

Gertjan

2 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 12 Mar 2010, 11:00 AM
Hello GJ DM,

You can achieve the desired functionality with a grid panel instead:

XAML
<Grid x:Name="LayoutRoot">
    <Grid.ColumnDefinitions>
        <ColumnDefinition />
        <ColumnDefinition />
    </Grid.ColumnDefinitions>
 
    <control:RadChart x:Name="RadChart1" Grid.Column="0" />
    <control:RadChart x:Name="RadChart2" Grid.Column="1" />
 
</Grid>

C#
DataSeries series = new DataSeries();
series.Add(new DataPoint(21));
series.Add(new DataPoint(31));
series.Add(new DataPoint(11));
series.Add(new DataPoint(41));
 
RadChart1.DefaultView.ChartArea.DataSeries.Add(series);
 
DataSeries series2 = new DataSeries();
series2.Add(new DataPoint(11));
series2.Add(new DataPoint(41));
series2.Add(new DataPoint(51));
series2.Add(new DataPoint(21));
 
RadChart2.DefaultView.ChartArea.DataSeries.Add(series2);


Hope this helps.


Best wishes,
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.
0
Grtjn
Top achievements
Rank 1
answered on 12 Mar 2010, 01:29 PM
Unfortunately this did not do the trick :)

But thanks for replying!

kind regards,

Gertjan
Tags
Chart
Asked by
Grtjn
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Grtjn
Top achievements
Rank 1
Share this question
or