Plot effect and animation

3 posts, 0 answers
  1. Francesco
    Francesco avatar
    5 posts
    Member since:
    Oct 2012

    Posted 03 Oct 2012 Link to this post

    Hi,

    i'm using RadChartView in my WPF project. 
    this is my code:

    <telerik:RadCartesianChart x:Name="chart" Grid.Row="1">
                <telerik:RadCartesianChart.Palette>
                    <ChartView:ChartPalette Name="PreparationPalette">
                        <ChartView:ChartPalette.GlobalEntries>
                            <ChartView:PaletteEntry AdditionalFill="{x:Null}" AdditionalStroke="{x:Null}" Fill="{StaticResource passColor}" Stroke="{x:Null}" />
                            <ChartView:PaletteEntry AdditionalFill="{x:Null}" AdditionalStroke="{x:Null}" Fill="{StaticResource failColor}" Stroke="{x:Null}" />
                            <ChartView:PaletteEntry AdditionalFill="{x:Null}" AdditionalStroke="{x:Null}" Fill="{StaticResource reconstitutionColor}" Stroke="{x:Null}" />
                        </ChartView:ChartPalette.GlobalEntries>                   
                    </ChartView:ChartPalette>
                </telerik:RadCartesianChart.Palette>
                <telerik:RadCartesianChart.HorizontalAxis>
                    <ChartView:CategoricalAxis></ChartView:CategoricalAxis>
                </telerik:RadCartesianChart.HorizontalAxis>
     
                <telerik:RadCartesianChart.VerticalAxis>
                    <ChartView:LinearAxis Visibility="Hidden" />
                </telerik:RadCartesianChart.VerticalAxis>
     
                <telerik:RadCartesianChart.Series>
                    <ChartView:BarSeries Name="BarPass"  CategoryBinding="Label"
                            ValueBinding="Value"
                            ItemsSource="{Binding Mode=TwoWay, Path=RuntimePass}" CombineMode="{Binding CombineMode, Mode=TwoWay}" DataBindingComplete="BindingComplete" ShowLabels="True">                   
                    </ChartView:BarSeries>
                    <ChartView:BarSeries Name="BarFail"  CategoryBinding="Label"
                            ValueBinding="Value"
                            ItemsSource="{Binding Mode=TwoWay, Path=RuntimeFail}" CombineMode="{Binding Mode=TwoWay, Path=CombineMode}" DataBindingComplete="BindingComplete" ShowLabels="True">
                    </ChartView:BarSeries>
                    <ChartView:BarSeries Name="BarReconsitution"  CategoryBinding="Label"
                            ValueBinding="Value"
                            ItemsSource="{Binding Mode=TwoWay, Path=RuntimeReconstitution}" CombineMode="{Binding Path=CombineMode, Mode=TwoWay}" DataBindingComplete="BindingComplete" ShowLabels="True">
                    </ChartView:BarSeries>
                </telerik:RadCartesianChart.Series>
            </telerik:RadCartesianChart>


    My question is:
    have RadChartView animations o plot effects? In older object RadChart, bar are plotted with a effect by default; is there a way to apply for RadChartView?


    I'm using this Telerik version: 2012.2.912.40

    Thanks.
    Francesco

  2. Evgenia
    Admin
    Evgenia avatar
    1265 posts
    Member since:
    Sep 2012

    Posted 05 Oct 2012 Link to this post

    Hello Francesco,

     By design there are no animations for our RadChartView control and we are not planning to add such.

    Please note that we are actively encouraging our customers to use the new RadChartView control if they are starting new development projects now. However, since RadChartView is missing some of the features of RadChart (animations in your case) - you need to evaluate whether to use RadChart vs RadChartView on project by project basis and the specific requirements.

    You can find below a sample that will show you how to create an animation for the Bar series of RadChartView on your own. It is done via an EventTrigger that applies a change in the Height of each bar in response to its Loaded event. Feel free to modify this code per your needs and please have in mind that any further customizations on it should be implemeted by yourself. 

    Kind regards,
    Evgenia
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Francesco
    Francesco avatar
    5 posts
    Member since:
    Oct 2012

    Posted 18 Oct 2012 Link to this post

    Thanks for the reply.

    Now i have replaced RadChartView with RadChart. I converted all function and now all it works.
    Thanks.

Back to Top