or
Hi,
I have a 3D Pyramid chart from Telerik RadControls. I would like to know how we can enable interactivity for this chart (like rotating the pyramid to view it from different angles). The interactivity has been enabled in Telerik Demos, but i wasnt able to understand the code behind. Also, I would like to know whether there is a way we can enable the interactivity through XAML or through some properties of the Chart. Could anyone help me out with this pls? Thanx.
public class ClassB: INotifyPropertyChanged
{
#region Data
DataRow _data;
[Browsable(false), Bindable(false)]
public DataRow DataRow
{
get { return _data; }
set { _data = value; OnPropertyChanged("DataRow"); }
}
#endregion // Data
#region Constructors
protected ClassB(DataRow data)
: this()
{
_data = data;
}
protected ClassB()
{
}
#endregion // Constructors
public object GetField(string name)
{
object value = null;
try
{
if (_data.Table.Columns.Contains(name))
{
value = _data[name];
if (value is DBNull)
value = null;
}
else
value = null;
}
catch { }
return value;
}
public void SetField(string name, object value)
{
try
{
if (_data.Table.Columns.Contains(name))
{
_data[name] = (value == null) ? DBNull.Value : value;
}
}
catch {}
}
#region INotifyPropertyChanged Members
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
#endregion // INotifyPropertyChanged Members
}
AxisY temp =
new
AxisY();
temp = radChart1.DefaultView.ChartArea.AdditionalYAxes[0];
radChart1.DefaultView.ChartArea.AdditionalYAxes.RemoveAt(0);
radChart1.DefaultView.ChartArea.AxisY = temp;
//radChart1.DefaultView.ChartArea.AxisX.Title = temp.Title;