2010-05-19 59 views

回答

1

是的。 Axis類型的Location屬性可用於指定它應顯示在左側還是右側(或頂部或底部)。

1

您可以使用位置屬性作爲軸定義。像這樣:

<charts:LinearAxis Orientation="Y" 
    Title="Some (Units)" 
    Minimum="0" 
    Maximum="40" 
    Interval="5" 
    Location="Right"/> 

這也可以被「左」,「頂」,「底」或「自動」,自動是默認的,如果你定義的第二軸,這將默認爲在左,繪圖一個第二個在右邊(至少在2010年2月發佈)。

希望這有助於...

3

剛剛發現一個簡單的方法來做到這一點(但不容易找到!)

在第一個意甲(ColumnSerie在我的例子),添加此

<DVC:ColumnSeries.DependentRangeAxis > 
    <DVC:LinearAxis Location="Left" Orientation="Y" /> 
</DVC:ColumnSeries.DependentRangeAxis> 

在第二系列(供LineSeries),添加此

<DVC:LineSeries.DependentRangeAxis > 
    <DVC:LinearAxis Location="Right" Orientation="Y" /> 
</DVC:LineSeries.DependentRangeAxis> 
相關問題