2010-10-25 30 views
0

我查看了所有IBM文檔和Adobe livedocs,我動態加載的列的標籤沒有正確居中在列下。這是組件代碼。標籤偏離左側中心,有些與左側應該重疊。我嘗試添加樣式幾個不同的領域,但無法得到它:ILog Elixir ColumnChart3D標籤沒有正確格式

 <ilog:ColumnChart3D id="columnChart" dataProvider="{chartData}" showDataTips="true" elevationAngle="5" projectionType="oblique" width="90%" height="100%" 
          rotationAngle="2" lightLatitude="0" lightLongitude="0" 
          ambientLight="0.1" 
          totalDepth="2" zoom="1" > 
      <ilog:horizontalAxis> 
       <mx:CategoryAxis dataProvider="{chartData}" 
           categoryField="{chartCatField}"/> 

      </ilog:horizontalAxis> 

     </ilog:ColumnChart3D> 
    <mx:Legend dataProvider="{columnChart}" right="0" bottom="0" /> 
</s:Panel> 

回答

0

三維圖表軸渲染標籤佈局並不像2D圖表的一個智能由於在佈局3D空間不那麼容易。

您可以嘗試在AxisRenderer3D上使用labelRotation屬性來旋轉標籤,使其不會摺疊。或者使用同一對象上的fontSize屬性來減小它們的大小。

<ilog:ColumnChart3D ...> 
    ... 
    <ilog:horizontalAxisRenderer> 
    <ilog:AxisRenderer3D labelRotation="30" fontSize="8"/> 
    </ilog:horizontalAxisRenderer> 
</ilog:ColumnChart3D> 

您還可以使用canDropLabels屬性去除一些標籤。

僅供參考IBM ILOG Elixir確實有特定的論壇here,您可以在其中找到有關產品的信息。