改变堆栈条形图的起点(Changing the Start point in Stack Bar C

2019-10-23 04:48发布

我曾经遇到下列实施来了。

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

作为默认堆栈条形图从0开始,但是,如果我想从+200开始。 可能吗?

 categoryAxis: {
     categories: ["First Stock", "Second Stock", "Third Stock", "Fourth Stock", "Fifth Stock"],
     axisCrossingValues: [0, 0, 10, 10],
 },

Answer 1:

你试图改变valueAxes.min价值?

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

小提琴 。



文章来源: Changing the Start point in Stack Bar Chart