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

Changing series definition with MVVM

2 Answers 62 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Pete Davis
Top achievements
Rank 1
Pete Davis asked on 30 Mar 2011, 04:57 PM
I have a chart that I want to be able to change between stick and candlestick. My app is MVVM based, so how would I do that? Do I need to create two separate charts, one based on stick and one based on candlestick and then just display the one I want?

2 Answers, 1 is accepted

Sort by
0
Accepted
Sia
Telerik team
answered on 01 Apr 2011, 12:33 PM
Hi Pete Davis,

Our examples which demonstrate the Stick and the Candle Stick series use the same view model.
You can switch the two charts on Button click or CheckBox check as shown in the attached code. I hope this helps you. 

All the best,
Sia
the Telerik team
0
Pete Davis
Top achievements
Rank 1
answered on 01 Apr 2011, 04:57 PM
Excellent. That's exactly what I was looking for. Thank you.
Tags
Chart
Asked by
Pete Davis
Top achievements
Rank 1
Answers by
Sia
Telerik team
Pete Davis
Top achievements
Rank 1
Share this question
or