Kendo UI堆积图表

时间:2015-08-06 11:15:58

标签: javascript kendo-ui kendo-grid

我在使用剑道堆积图时遇到了一些问题 - 例如,值为:M4_IN = 1,M4_OUT = 7 图表在值轴上显示701 - 它将7堆叠为700.

$("#monthlyChartIn").kendoChart({
                    dataSource: monthlyDS,
                    title: "aaa",
                    autoBind: true,
                    theme: "Metro",
                    legend: {visible:true},
                    seriesDefaults: {
                          type: "column",  
                          stack: true,
                          tooltip: {
                              visible: true,
                              template: "#: category# : #: value#"
                          }


                        },
                          categoryAxis: {
                              field: "Unit",
                              labels: {
                                    rotation: -90
                                  }                        
                          },
                           series: [
                           {
                          stack: "M4",
                          name: 'a',
                           field: "M4_IN",
                          },
                            {
                          stack: "M4",
                          name: 'b',
                           field: "M4_OUT",
                          },




                              ],



                        });

感谢您的帮助!

0 个答案:

没有答案