ColumnChartについていくつか質問があります (以下のスクリーンショットとコード)。
- 各列の後ろに描かれた影を取り除く方法は? 追加してみましたが、効果
<mx:filters />
がありません - 列間のパディングを取り除き、横方向に互いに接触するようにする方法 (階段のように)解決済み
警告を取り除く方法は
Data binding will not be able to detect assignments to "horizontalAxis"
? そのコード ブロックを移動してパラメーターを削除しようとしましたaxis
が、適切な場所が見つかりません。解決した<mx:ColumnChart id="_chart" type="overlaid" dataProvider="{_ac}" > <mx:filters /> <!-- doesn't remove shadows --> <mx:horizontalAxis> <mx:CategoryAxis categoryField="yw"/> </mx:horizontalAxis> <mx:horizontalAxisRenderers> <!-- warning --> <mx:AxisRenderer axis="{_chart.horizontalAxis}" canDropLabels="true" /> </mx:horizontalAxisRenderers> <mx:series> <mx:ColumnSeries xField="yw" yField="max" displayName="Лидер недели" /> <mx:ColumnSeries xField="yw" yField="pos" displayName="Выигрыш" /> <mx:ColumnSeries xField="yw" yField="neg" displayName="Проигрыш" /> </mx:series> </mx:ColumnChart> <mx:Legend dataProvider="{_chart}" direction="horizontal" width="100%" />
更新:
Sunil は質問 #3 を手伝ってくれました。ありがとう!
そして、問題#2は次の方法で解決されますcolumnWidthRatio="1"
だから今、私は影を取り除く方法を知る必要があります-質問のタイトルに従って:-)