2013-04-09 87 views
0

我已经创建了DVC:Chart,如下图所示,我如何在图表中添加x轴和y轴标签?WPF DVC图表轴标签

<DVC:Chart Name="callLogs" 
     Background="SteelBlue" Grid.ColumnSpan="2"> 

     <DVC:Chart.Series> 
      <DVC:ColumnSeries Title="Calls per Hour" 
       IndependentValueBinding="{Binding Path=Key}" 
       DependentValueBinding="{Binding Path=Value}"> 
      </DVC:ColumnSeries> 
     </DVC:Chart.Series> 
    </DVC:Chart> 

在此先感谢

回答

0

我设法弄明白:

<DVC:Chart Name="callLogs" 
     Background="SteelBlue" Grid.ColumnSpan="2"> 
     <DVC:Chart.Axes> 
      <DVC:LinearAxis Orientation="Y" Title="Ammount of calls"/> 
      <DVC:LinearAxis Orientation="X" Title="Time (Hours)"/> 
     </DVC:Chart.Axes> 
     <DVC:Chart.Series> 
      <DVC:ColumnSeries Title="Calls per Hour" 
       IndependentValueBinding="{Binding Path=Key}" 
       DependentValueBinding="{Binding Path=Value}"> 
      </DVC:ColumnSeries> 
     </DVC:Chart.Series> 
    </DVC:Chart> 

然而,其标签我的x轴对我来说,不知道如何来定制它,所以当我弄明白的时候,我会发布新的解决方案。