Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
Height of the bars
posted

Is it possible to control the height of the bars inside the chart? 

Parents
No Data
Reply
  • 1775
    Verified Answer
    posted

    Hi, dreesarjan

    You can use the gap option of the category axis object to control the gap between categories data and hence change the height of the bars. If the gap is bigger then the space to draw bars will be smaller and their height will be less. You can set your axes like this for a bar chart: 

    1. axes: [{
    2.     name: "xAxis",
    3.     type: "numericX"
    4. },
    5. {
    6.     name: "yAxis",
    7.     type: "categoryY",
    8.     label: "Label",
    9.     gap: 10
    10. }],

    Experiment with different values for the gap option and find the best for your case.

    Cheers, Lazar

Children
No Data