This discussion is archived
4 Replies Latest reply: Aug 3, 2013 2:35 PM by cardel RSS

How to Set Anychart Bar Width?

K Cannell Newbie
Currently Being Moderated
I have searched for this, perhaps I am missing something obvious ...

How do I set the Anychart bar chart width?

When a chart has only a few values, the bars are too wide.
Client want standard (narrower) bar widths in these cases, not one or two wide bars.

Have searched the XML settings, have not found it yet.
Anyone?

Thank you - Karen
  • 1. Re: How to Set Anychart Bar Width?
    cardel Newbie
    Currently Being Moderated

    I have same question and problem with AnyChart in APEX 4.2.2

    I would like to know how to set specific width (or height for horizontal bars) in chart. I have searched documentation and haven't found anything.

     

    I have chart with scrollbar, but bars are too slim or wide.

  • 2. Re: How to Set Anychart Bar Width?
    Hilary Expert
    Currently Being Moderated

    Hi Karen,

     

    With AnyChart, the bar width is something that is calculated automatically.  You'll see this mentioned in the AnyChart online documentation on Bar Charts.  You could try playing around with the padding options, to see if such settings help.

     

    Regards,

    Hilary

  • 3. Re: How to Set Anychart Bar Width?
    K Cannell Newbie
    Currently Being Moderated

    Thank you Hilary,

     

    I tried padding the borders, and  that helped some, but it seems AnyChart calculates as it will - it tries to fill the entire plot area and determines the width that way. 

    Glad to know I am not missing something obvious,

    Karen

  • 4. Re: How to Set Anychart Bar Width?
    cardel Newbie
    Currently Being Moderated

    I've found simple trick to set bar width.

    You need to use FLASH version of Anychart and enable ZOOM of AXIS in XML definition.

     

    <zoom enabled="true" show_scroll_bar="true" scroll_bar_position="outside" start="0" visible_range="40" />

     

    You can also set visible_range dynamically. If you set for example 40, you will have 40 values X or Y axis and bars will have same width.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points