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

Plot effect and animation

2 Answers 226 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Francesco
Top achievements
Rank 1
Francesco asked on 03 Oct 2012, 07:18 AM
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 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 05 Oct 2012, 10:40 AM
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.

0
Francesco
Top achievements
Rank 1
answered on 18 Oct 2012, 09:02 AM
Thanks for the reply.

Now i have replaced RadChartView with RadChart. I converted all function and now all it works.
Thanks.
Tags
ChartView
Asked by
Francesco
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Francesco
Top achievements
Rank 1
Share this question
or