Menu

BarChart

ama1215
2015-10-13
2015-10-16
  • ama1215

    ama1215 - 2015-10-13

    Hi everybody,

    I'm wondering how could I set my xAxis Extreme values on my horizontal bar chart so that I get them from the left side to the right side because, with just this code

    stackedBar.getXAxis()
            .setExtremes(0, 85200)
            .setLineWidth(0).setTickLength(0);
    
    1. I get them from top to bottom like in the joined file!!
     
  • ama1215

    ama1215 - 2015-10-13

    here is the snapshot of my stackedBar

     

    Last edit: ama1215 2015-10-13
  • ama1215

    ama1215 - 2015-10-14

    Any idea please ???

     
  • Cory Skowronek

    Cory Skowronek - 2015-10-14

    With bar charts, the x-axis is rendered vertically by default, so its values will go from top to bottom. The y-axis values will go left to right.

     
  • ama1215

    ama1215 - 2015-10-15

    the problem is that when I set extremes values on the y-Axis, the chart will completely disappear and become blank ???????

    Do you know why this is happening and how could I fix it???

     
  • ama1215

    ama1215 - 2015-10-16

    any suggestion or idea please.

     
  • Shawn Quinn

    Shawn Quinn - 2015-10-16

    I'm not sure I completely follow your question, but as Cory noted you'd want to set the extremes on the "Y Axis" for a bar chart to control the width of the horizontal axis (as Highcharts defaults to reversing the axis positions for bar charts.) If you're getting a blank chart when you do that though, then you probably have something different going on. If you can boil your use case down to simple example that demonstrates the problem and post that code here, someone may be able to provide some better assistance.

     

Log in to post a comment.