RadChart酒吧宽度

问题描述:

我有一个RadChart控件。我的目标是固定数据栏宽度。我不根据自己的号码需要自动宽度吧(我明明使用滚动)RadChart酒吧宽度

搜索Telerik的网站后,谷歌和我想出了两篇文章。他们都说说下面的代码行:

RadChart1.PlotArea.XAxis.AutoScale

的文章:

The first article

The second article

其实我找不到PlotArea属性..这将是因为我有更新版本的Telerik?!! .....我不知道 任何人都知道可以做同样事情的另一个属性..?

感谢

注:我工作的一个Silverlight 4的Web应用程序

可以使用StyleSeries类的BarWidthPercent属性。如果您使用XAML配置图形,则必须使用ChartArea的ItemWidthPercent属性。

<telerik:RadChart Height="200" ItemsSource="{Binding ChartData, Mode=OneWay}" > 
      <telerik:RadChart.DefaultView> 
       <telerik:ChartDefaultView> 
        <telerik:ChartDefaultView.ChartArea> 
         <telerik:ChartArea ItemWidthPercent="10"> 

您所指的AutoScale属性是xaxis的最小值和最大值的设置。