Size of chart

3 posts, 0 answers
  1. Grtjn
    Grtjn avatar
    129 posts
    Member since:
    Feb 2010

    Posted 10 Mar 2010 Link to this post

    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. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 12 Mar 2010 Link to this post

    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.
  3. Grtjn
    Grtjn avatar
    129 posts
    Member since:
    Feb 2010

    Posted 12 Mar 2010 Link to this post

    Unfortunately this did not do the trick :)

    But thanks for replying!

    kind regards,

    Gertjan
Back to Top