Changing the Start point in Stack Bar Chart

你说的曾经没有我的故事 提交于 2019-12-11 08:59:03

问题


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],
 },

回答1:


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.



来源:https://stackoverflow.com/questions/30377141/changing-the-start-point-in-stack-bar-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!