Hi All,

 I am facing an issue of scrollbar in my barchart. If the data grows to
bigger size, the width of the bar starts decreasing. I intend to fix width
of bars and if data grows, scrollbar should appear so that data is readable.
Please let me know how can I do this?

My code:


<mx:VBox id="vbDateGraph" width="600" height="300" horizontalAlign="left"
scroll="true"
                        horizontalScrollPolicy="auto"
verticalScrollPolicy="auto">

                <mx:BarChart id="barDate" width="90%" horizontalAxisRatio=""
                    paddingLeft="5" paddingRight="5"
                    showDataTips="true" dataProvider="{books}"
maxHeight="300" maxBarWidth="10">
                    <mx:verticalAxis>
                        <mx:CategoryAxis categoryField="showId"
labelFunction="createLabel" dataProvider="{books}"/>
                    </mx:verticalAxis>
                    <mx:series>
                        <mx:BarSeries xField="price"/>
                    </mx:series>

                </mx:BarChart>
        </mx:VBox>


Regards
Vaibhav Chauhan

Reply via email to