更改堆栈条形图中的起点

时间:2015-05-21 14:46:20

标签: javascript kendo-ui kendo-chart

我遇到了以下实施。

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

默认堆栈条形图从0开始,但是,如果我想从+200开始怎么办?有可能吗?

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

1 个答案:

答案 0 :(得分:3)

您是否尝试更改valueAxes.min值?

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

Fiddle