1

I have came across the following implementation.

http://jsfiddle.net/ao617j2j/1/

As a default stack bar chart starts from 0, however, what if I want to start from +200. Is it possible?

 categoryAxis: {
     categories: ["First Stock", "Second Stock", "Third Stock", "Fourth Stock", "Fifth Stock"],
     axisCrossingValues: [0, 0, 10, 10],
 },
casillas
  • 16,351
  • 19
  • 115
  • 215

1 Answers1

3

Did you tried to change the valueAxes.min value?

valueAxes: [{
    title: {
        text: "Dollar($)"
    },
    reverse: true,
    min: 200, // Changed this from 0 to 200
    max: 1600
}],

Fiddle.

DontVoteMeDown
  • 21,122
  • 10
  • 69
  • 105
  • Thanks a lot for the answer. However, I would like to see all of them starts with 0, but my first stock does not have any data between 0-200. and it should show data after 200. I hope I have made it clear. I have upvoted your current answer. – casillas May 21 '15 at 14:57
  • @AndreaBanderas you mean, like the first stack should start from its initial value and no from the top of the chart area? – DontVoteMeDown May 21 '15 at 16:51
  • I mean assume there is no data for the first stock value until 200. But other have. First stock bar, between 0-200 no data, but after that data will be populated. Others have data starts from 0. – casillas May 21 '15 at 17:38
  • Your current solution shows all data starts from 200. But I have data for other stocks (second, third,fourth), except first stock. – casillas May 21 '15 at 17:39
  • Yes, exactly in your image – casillas May 21 '15 at 19:22
  • @AndreaBanderas I need to research but I'm afraid that can't be done, unfortunatelly. – DontVoteMeDown May 21 '15 at 20:03
  • Any idea for the following https://stackoverflow.com/questions/30675620/remove-legend-color-boundary – casillas Jun 05 '15 at 20:57